summaryrefslogtreecommitdiff
path: root/lib/bundler/cli
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2023-10-05 11:40:02 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-10-16 13:52:11 +0900
commit4dbee36f84952d7a237a2fdd8fd8d3e2823692df (patch)
treee2afe076ea39686577fb2bef758546e28000d9a8 /lib/bundler/cli
parentf37e9f42b95e033ec557fa3bf68282dd823ee199 (diff)
[rubygems/rubygems] Use instantiated definition directly
https://github.com/rubygems/rubygems/commit/bc233af4d2
Diffstat (limited to 'lib/bundler/cli')
-rw-r--r--lib/bundler/cli/lock.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/cli/lock.rb b/lib/bundler/cli/lock.rb
index cb3ed27138..e23bef1990 100644
--- a/lib/bundler/cli/lock.rb
+++ b/lib/bundler/cli/lock.rb
@@ -34,7 +34,7 @@ module Bundler
end
definition = Bundler.definition(update)
- Bundler::CLI::Common.configure_gem_version_promoter(Bundler.definition, options) if options[:update]
+ Bundler::CLI::Common.configure_gem_version_promoter(definition, options) if options[:update]
options["remove-platform"].each do |platform|
definition.remove_platform(platform)