You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b827bf7
Browse filesBrowse the repository at this point in the historyBrowse files
Extract WorkspaceStack and loosen Context's coupling to Irb and WorkSpace
The workspace stack lived in Context, but several places changed it
directly, and each had to remember the rules itself, like keeping the
home workspace and loading helper methods. That caused a bug: `pushws
foo` followed by a bare `chws` stayed on `foo` instead of going back to
main.
- Add WorkspaceStack and make it the only place that changes the stack.
- Move the workspace methods from ext/workspaces.rb and ext/change-ws.rb
into Context, and delete those files.
- Store from_binding on Context, so it no longer asks Irb.
- Stop reading Context's instance variables from outside it.
- Extract WorkSpace.base_binding from WorkSpace#initialize.
- Remove dead code: Context#workspace_home, IrbLoader#old and
Measure#initialize.
A file loaded with `irb_load file, true` now also gets helper methods
like `conf`.
0 commit comments