summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2024-09-19 16:25:49 +0200
committergit <svn-admin@ruby-lang.org>2024-09-23 10:53:32 +0000
commit5d53993a3773e4299277807a8bbcb63aa552bf68 (patch)
treeb42850987ea0913b98e7c9caed7df55b632fb38d /lib
parentd0925c075b5c9de9702adf1949f77faf8fbfc3b8 (diff)
[rubygems/rubygems] Don't try to auto-install dev versions of Bundler not available remotely
https://github.com/rubygems/rubygems/commit/1a7a3fdeb9
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/self_manager.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bundler/self_manager.rb b/lib/bundler/self_manager.rb
index ea7c014f3c..a6d93f20ff 100644
--- a/lib/bundler/self_manager.rb
+++ b/lib/bundler/self_manager.rb
@@ -98,10 +98,10 @@ module Bundler
def needs_switching?
autoswitching_applies? &&
- released?(lockfile_version) &&
- !running?(lockfile_version) &&
- !updating? &&
- Bundler.settings[:version] != "system"
+ Bundler.settings[:version] != "system" &&
+ released?(restart_version) &&
+ !running?(restart_version) &&
+ !updating?
end
def autoswitching_applies?