From 223f5eace09575f9c29af96bd165da5a8eacac8c Mon Sep 17 00:00:00 2001 From: "Yuri S." Date: Thu, 21 May 2015 15:07:36 +0500 Subject: [PATCH] Update binstub.rb --- lib/spring/client/binstub.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spring/client/binstub.rb b/lib/spring/client/binstub.rb index 3872a65b..98de19fe 100644 --- a/lib/spring/client/binstub.rb +++ b/lib/spring/client/binstub.rb @@ -36,7 +36,7 @@ class Binstub < Command require "rubygems" require "bundler" - if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m) + if (match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m)) Gem.paths = { "GEM_PATH" => [Bundler.bundle_path.to_s, *Gem.path].uniq } gem "spring", match[1] require "spring/binstub"