Skip to content

Commit

Permalink
Back to Bundler.ui and Bundler::Definition.no_lock
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Sep 12, 2024
1 parent e0bd201 commit 5ded8dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions prelude.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def irb

Bundler.reset!

orig_ui = Bundler.ui
ui = Bundler::UI::Shell.new
ui.level = "silent"
Bundler.ui = ui
Expand All @@ -28,8 +29,12 @@ def irb

definition = @builder.to_definition(nil, true)
definition.validate_runtime!
orig_no_lock = Bundler::Definition.no_lock
Bundler::Definition.no_lock = true
Bundler::Runtime.new(nil, definition).setup
ensure
Bundler.ui = orig_ui
Bundler::Definition.no_lock = orig_no_lock
end
end

Expand Down

0 comments on commit 5ded8dd

Please sign in to comment.