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 91d5d12 commit 28c591eCopy full SHA for 28c591e
lib/spring/client/binstub.rb
@@ -36,15 +36,14 @@ class Binstub < Command
36
require "rubygems"
37
require "bundler"
38
39
- match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m)
40
- version = match && match[1]
+ if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m)
+ ENV["GEM_PATH"] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR)
41
+ ENV["GEM_HOME"] = ""
42
+ Gem.paths = ENV
43
- ENV["GEM_PATH"] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR)
- ENV["GEM_HOME"] = ""
44
- Gem.paths = ENV
45
-
46
- gem "spring", version
47
- require "spring/binstub"
+ gem "spring", match[1]
+ require "spring/binstub"
+ end
48
end
49
CODE
50
0 commit comments