From 43b09640a9add141776fee58526064a69b1075cf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 1 Jul 2022 08:47:51 +0000 Subject: [PATCH 1/2] Bump spring from 3.0.0 to 4.0.0 Bumps [spring](https://github.com/rails/spring) from 3.0.0 to 4.0.0. - [Release notes](https://github.com/rails/spring/releases) - [Changelog](https://github.com/rails/spring/blob/main/CHANGELOG.md) - [Commits](https://github.com/rails/spring/compare/v3.0.0...v4.0.0) --- updated-dependencies: - dependency-name: spring dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 893ed2134d..341aa1a9c4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -266,9 +266,8 @@ GEM dotenv (= 2.7.6) railties (>= 3.2) dry-inflector (0.2.1) - e2mmap (0.1.0) erubi (1.10.0) - et-orbi (1.2.4) + et-orbi (1.2.7) tzinfo excon (0.81.0) execjs (2.7.0) @@ -319,8 +318,8 @@ GEM nokogiri (>= 1.5.11, < 2.0.0) foreman (0.87.2) formatador (0.2.5) - fugit (1.4.5) - et-orbi (~> 1.1, >= 1.1.8) + fugit (1.5.3) + et-orbi (~> 1, >= 1.2.7) raabro (~> 1.4) fuubar (2.5.1) rspec-core (~> 3.0) @@ -576,7 +575,7 @@ GEM ffi (~> 1.12) ruby2_keywords (0.0.4) rubyzip (2.3.2) - rufus-scheduler (3.7.0) + rufus-scheduler (3.8.1) fugit (~> 1.1, >= 1.1.6) sass (3.4.25) sass-rails (5.0.8) @@ -597,12 +596,10 @@ GEM connection_pool (>= 2.2.2) rack (~> 2.0) redis (>= 4.2.0) - sidekiq-scheduler (3.1.0) - e2mmap - redis (>= 3, < 5) + sidekiq-scheduler (4.0.2) + redis (>= 4.2.0) rufus-scheduler (~> 3.2) - sidekiq (>= 3) - thwait + sidekiq (>= 4) tilt (>= 1.4.0) simplecov (0.21.2) docile (~> 1.1) @@ -614,7 +611,7 @@ GEM axlsx_styler (>= 1.0.0, < 2) caxlsx (>= 2.0.2, < 4) rodf (>= 1.0.0, < 2) - spring (3.0.0) + spring (4.0.0) spring-commands-rspec (1.0.4) spring (>= 0.9.1) sprockets (3.7.2) @@ -639,8 +636,6 @@ GEM power_assert thor (1.2.1) thread-local (1.1.0) - thwait (0.2.0) - e2mmap tilt (2.0.10) timecop (0.9.4) ttfunk (1.7.0) From 84fcc8f1acf4189ca473ed40a477458a843d5233 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Thu, 21 Jul 2022 10:55:31 +1000 Subject: [PATCH 2/2] Upgrade spring binstubs I ran `bundle exec spring binstub --all` after reading about the update in the changelog. --- bin/rails | 6 +----- bin/rake | 6 +----- bin/rspec | 6 +----- bin/spring | 15 ++++++--------- 4 files changed, 9 insertions(+), 24 deletions(-) diff --git a/bin/rails b/bin/rails index 5badb2fde0..40b071ea57 100755 --- a/bin/rails +++ b/bin/rails @@ -1,9 +1,5 @@ #!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end +load File.expand_path("spring", __dir__) APP_PATH = File.expand_path('../config/application', __dir__) require_relative '../config/boot' require 'rails/commands' diff --git a/bin/rake b/bin/rake index d87d5f5781..a5c86fcf1f 100755 --- a/bin/rake +++ b/bin/rake @@ -1,9 +1,5 @@ #!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end +load File.expand_path("spring", __dir__) require_relative '../config/boot' require 'rake' Rake.application.run diff --git a/bin/rspec b/bin/rspec index 6e6709219a..3c8368a4e2 100755 --- a/bin/rspec +++ b/bin/rspec @@ -1,8 +1,4 @@ #!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end +load File.expand_path("spring", __dir__) require 'bundler/setup' load Gem.bin_path('rspec-core', 'rspec') diff --git a/bin/spring b/bin/spring index d89ee495fa..37f429ba02 100755 --- a/bin/spring +++ b/bin/spring @@ -1,17 +1,14 @@ #!/usr/bin/env ruby -# This file loads Spring without using Bundler, in order to be fast. +# This file loads Spring without using loading other gems in the Gemfile, in order to be fast. # It gets overwritten when you run the `spring binstub` command. -unless defined?(Spring) - require 'rubygems' - require 'bundler' +if !defined?(Spring) && [nil, "development", "test"].include?(ENV["RAILS_ENV"]) + require "bundler" - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == 'spring' } - if spring + Bundler.locked_gems.specs.find { |spec| spec.name == "spring" }&.tap do |spring| Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' + gem "spring", spring.version + require "spring/binstub" end end