From 4eefaee633df5cfd65537cbfc899c12f113a6326 Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Sat, 10 Oct 2020 17:29:48 +0200 Subject: [PATCH] Drop spring/bootsnap This is such a small app, the few milliseconds we shave off with spring are not worth the added complexity. bootsnap was in the bundle, but never used... --- Gemfile | 8 +------- Gemfile.lock | 13 ------------- bin/rails | 5 ----- bin/rake | 5 ----- config/boot.rb | 1 - 5 files changed, 1 insertion(+), 31 deletions(-) diff --git a/Gemfile b/Gemfile index 8166663f7..92ee745b7 100644 --- a/Gemfile +++ b/Gemfile @@ -7,11 +7,6 @@ gem 'ruby-progressbar', '1.10.1' # as framework gem 'rails', '~> 5.2' -# To speedup app startup -gem 'spring', group: [:development, :test] -gem 'spring-commands-rspec', group: [:development, :test] -gem 'spring-watcher-listen', '~> 2.0.0', group: [:development, :test] - # gem package to include jQuery UI assets for the Rails asset pipeline gem 'jquery-ui-rails' @@ -86,8 +81,7 @@ gem 'mina', '~> 0.3' gem 'puma', '~> 4.3' # as the log formater gem 'lograge' -# for speeding up application boot -gem 'bootsnap', '>= 1.1.0', require: false +# for listening to file modifications gem 'listen', '>= 3.0.5', '<= 3.2.1', :group => [:development, :test] group :test do diff --git a/Gemfile.lock b/Gemfile.lock index cf35ecf42..2a8890b97 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -55,8 +55,6 @@ GEM autoprefixer-rails (9.4.10.2) execjs bcrypt (3.1.13) - bootsnap (1.4.6) - msgpack (~> 1.0) bootstrap-sass (3.4.1) autoprefixer-rails (>= 5.2.1) sassc (>= 2.0.0) @@ -185,7 +183,6 @@ GEM mini_portile2 (2.4.0) minitest (5.14.2) mousetrap-rails (1.4.6) - msgpack (1.3.3) mysql2 (0.5.3) nio4r (2.5.3) nokogiri (1.10.10) @@ -317,12 +314,6 @@ GEM json (>= 1.8, < 3) simplecov-html (~> 0.10.0) simplecov-html (0.10.2) - spring (2.1.0) - spring-commands-rspec (1.0.4) - spring (>= 0.9.1) - spring-watcher-listen (2.0.1) - listen (>= 2.7, < 4.0) - spring (>= 1.2, < 3.0) sprockets (3.7.2) concurrent-ruby (~> 1.0) rack (> 1, < 3) @@ -368,7 +359,6 @@ DEPENDENCIES aasm airbrake airbrake-ruby - bootsnap (>= 1.1.0) bootstrap-sass cancancan capybara @@ -410,9 +400,6 @@ DEPENDENCIES ruby-progressbar (= 1.10.1) sass-rails (~> 5.0) selectize-rails - spring - spring-commands-rspec - spring-watcher-listen (~> 2.0.0) stringex thinking-sphinx timecop diff --git a/bin/rails b/bin/rails index 5badb2fde..073966023 100755 --- a/bin/rails +++ b/bin/rails @@ -1,9 +1,4 @@ #!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end APP_PATH = File.expand_path('../config/application', __dir__) require_relative '../config/boot' require 'rails/commands' diff --git a/bin/rake b/bin/rake index d87d5f578..17240489f 100755 --- a/bin/rake +++ b/bin/rake @@ -1,9 +1,4 @@ #!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end require_relative '../config/boot' require 'rake' Rake.application.run diff --git a/config/boot.rb b/config/boot.rb index b9e460cef..30f5120df 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -1,4 +1,3 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) require 'bundler/setup' # Set up gems listed in the Gemfile. -require 'bootsnap/setup' # Speed up boot time by caching expensive operations.