summaryrefslogtreecommitdiff
path: root/bin/spring
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-04-23 12:27:09 +0200
committerDouwe Maan <douwe@selenight.nl>2016-04-23 12:27:09 +0200
commit952e2dc6d9cfacf223345bd34dacb0d34d3fdeca (patch)
tree9e1db5aedd40687d61ad837448794b9d7a611e0a /bin/spring
parent7910853368970292eb243ee34072c7f527fa67f2 (diff)
parent7acea6bde9dbffafc99401eb0d7bb748c1f06d3f (diff)
downloadgitlab-ce-952e2dc6d9cfacf223345bd34dacb0d34d3fdeca.tar.gz
Merge branch 'master' into eReGeBe/gitlab-ce-feature/milestone-md
Diffstat (limited to 'bin/spring')
-rwxr-xr-xbin/spring12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/spring b/bin/spring
index 7b45d374fcd..7fe232c3aae 100755
--- a/bin/spring
+++ b/bin/spring
@@ -4,12 +4,12 @@
# It gets overwritten when you run the `spring binstub` command.
unless defined?(Spring)
- require "rubygems"
- require "bundler"
+ require 'rubygems'
+ require 'bundler'
- 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"
+ if (match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m))
+ Gem.paths = { 'GEM_PATH' => [Bundler.bundle_path.to_s, *Gem.path].uniq.join(Gem.path_separator) }
+ gem 'spring', match[1]
+ require 'spring/binstub'
end
end