Permalink
Browse files

Match spring binstub with Rails 5.0

  • Loading branch information...
mvz committed May 26, 2017
1 parent 6712153 commit a2ab0e4a9da310e4899ce1876fce7613c5863b96
Showing with 2 additions and 1 deletion.
  1. +2 −1 bin/spring
View
@@ -8,7 +8,8 @@ unless defined?(Spring)
require 'bundler'
lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read)
- if spring = lockfile.specs.detect { |spec| spec.name == "spring" }
+ spring = lockfile.specs.detect { |spec| spec.name == "spring" }
+ if spring
Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
gem 'spring', spring.version
require 'spring/binstub'

0 comments on commit a2ab0e4

Please sign in to comment.