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:
authorGabriel Mazetto <brodock@gmail.com>2018-07-20 14:58:17 +0300
committerGabriel Mazetto <brodock@gmail.com>2018-07-20 15:16:01 +0300
commit31a349e0db78f6a466a096065860688ea273b877 (patch)
treec40c7e377baba11f22b33a44426f6646b5a2b045 /config/boot.rb
parent3bd8a783e8e91cc863655a46c02f8c3391f2a1a4 (diff)
Add bootsnap to development/test bundle and enable it if available
This will enable bootsnap whenver the gem is available.
Diffstat (limited to 'config/boot.rb')
-rw-r--r--config/boot.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/boot.rb b/config/boot.rb
index 84f390f3228..655c54ddb84 100644
--- a/config/boot.rb
+++ b/config/boot.rb
@@ -9,3 +9,8 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../#{gemfile}", __dir__)
# Set up gems listed in the Gemfile.
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
+begin
+ require 'bootsnap/setup'
+rescue LoadError
+ # bootsnap is optional dependency, so if we don't have it it's fine
+end