We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc2a145 commit 7861ba8Copy full SHA for 7861ba8
bundler/lib/bundler/self_manager.rb
@@ -92,6 +92,7 @@ def needs_switching?
92
def autoswitching_applies?
93
ENV["BUNDLER_VERSION"].nil? &&
94
Bundler.rubygems.supports_bundler_trampolining? &&
95
+ ruby_can_restart_with_same_arguments? &&
96
SharedHelpers.in_bundle? &&
97
lockfile_version
98
end
@@ -151,6 +152,10 @@ def released?(version)
151
152
!version.to_s.end_with?(".dev")
153
154
155
+ def ruby_can_restart_with_same_arguments?
156
+ $PROGRAM_NAME != "-e"
157
+ end
158
+
159
def updating?
160
"update".start_with?(ARGV.first || " ") && ARGV[1..-1].any? {|a| a.start_with?("--bundler") }
161
0 commit comments