Skip to content

Commit 5790c8b

Browse files
committed
update binstub to find spring as a subdependency
if you only add say spring-commands-rspec to your Gemfile, that will automatically pull in the latest version of spring, but as a sub-dependency, so there will be an extra line of indentation in the lockfile
1 parent 8f81e5e commit 5790c8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/spring/client/binstub.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Binstub < Command
3636
require "rubygems"
3737
require "bundler"
3838
39-
if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m)
39+
if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m)
4040
ENV["GEM_PATH"] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR)
4141
ENV["GEM_HOME"] = ""
4242
Gem.paths = ENV

0 commit comments

Comments
 (0)