From 8aee2533a0f5cffa49d52e6a8644aa811b6a4ffd Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Tue, 19 Jul 2022 12:24:52 +0200 Subject: [PATCH] Add Bootsnap --- Gemfile | 1 + Gemfile.lock | 4 ++++ config/boot.rb | 5 +++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index 51a5fbd6..48e1df72 100644 --- a/Gemfile +++ b/Gemfile @@ -15,6 +15,7 @@ gem "turbolinks", "~> 2.5.3" gem "bcrypt", "~> 3.1.18" gem "active_model_otp" +gem "bootsnap", require: false gem "bootstrap_form" gem "carrierwave", "~> 2.0" gem "carrierwave_backgrounder", git: "https://github.com/mltnhm/carrierwave_backgrounder.git" diff --git a/Gemfile.lock b/Gemfile.lock index 4fed0d76..db94a7a1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -86,6 +86,8 @@ GEM bindex (0.8.1) binding_of_caller (1.0.0) debug_inspector (>= 0.0.1) + bootsnap (1.12.0) + msgpack (~> 1.2) bootstrap_form (5.1.0) actionpack (>= 5.2) activemodel (>= 5.2) @@ -303,6 +305,7 @@ GEM mini_mime (1.1.2) mini_portile2 (2.8.0) minitest (5.16.2) + msgpack (1.5.3) multi_json (1.15.0) multi_xml (0.6.0) multipart-post (2.1.1) @@ -570,6 +573,7 @@ DEPENDENCIES bcrypt (~> 3.1.18) better_errors binding_of_caller + bootsnap bootstrap_form brakeman bullet diff --git a/config/boot.rb b/config/boot.rb index 30f5120d..997563c2 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -1,3 +1,4 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) +ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) -require 'bundler/setup' # Set up gems listed in the Gemfile. +require "bundler/setup" # Set up gems listed in the Gemfile. +require "bootsnap/setup"