Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bin/spring')
-rwxr-xr-xbin/spring8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/spring b/bin/spring
index 497ab099954..f3d9e81b53f 100755
--- a/bin/spring
+++ b/bin/spring
@@ -11,7 +11,11 @@ unless (defined?(Spring) || ENV['ENABLE_SPRING'] != '1') && File.basename($0) !=
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'
+ begin
+ gem 'spring', spring.version
+ require 'spring/binstub'
+ rescue Gem::MissingSpecError => e
+ $stderr.puts 'INFO: Spring not available.'
+ end
end
end