-
Notifications
You must be signed in to change notification settings - Fork 346
Closed
Description
When having not the original gem loaded in the Gemfile:
gem 'spring', github: 'guard/spring',
branch: 'listen2'
...then the bin/spring
(that was patched using bundle exec spring binstub --all
) doesn't work, because the REGEX doesn't match GIT
(only GEM
):
if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m)
I changed it to this:
if match = Bundler.default_lockfile.read.match(/^GEM|GIT$.*?^ spring \((.*?)\)$.*?^$/m)
...which seems to solve this specific problem. But when trying to run spring
, it's not found, as it isn't recognised as a gem (I guess):
$ spring
/Users/josh/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'spring' (= 1.1.2) among 176 total gem(s) (Gem::LoadError)
from /Users/josh/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/dependency.rb:309:in `to_spec'
from /Users/josh/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_gem.rb:53:in `gem'
from /Users/josh/Documents/Work/MuheimWebdesign/synaesthesia/bin/spring:15:in `<main>'
I have to use bundle exec
to make it work:
$ bundle exec spring
Version: 1.1.2
...
As guessed, the gem is not found:
gem list | grep spring
# (nothing)
Bundle list:
$ bundle | grep spring
Using spring (1.1.2) from git://github.com/guard/spring.git (at listen2)
Is this expected behavior? Is there anything to fix? Just wanted to point this out here, maybe it's important info.
Metadata
Metadata
Assignees
Labels
No labels