From d2f202eeb5ad2c116990292fb336114a582f501d Mon Sep 17 00:00:00 2001 From: "depfu[bot]" <23717796+depfu[bot]@users.noreply.github.com> Date: Mon, 22 Jul 2024 19:12:07 +0000 Subject: [PATCH 1/2] Update rubocop-rspec to version 3.0.3 --- Gemfile.lock | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 0202f010..0a73015c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -155,7 +155,7 @@ GEM mini_portile2 (~> 2.8.2) racc (~> 1.4) parallel (1.25.1) - parser (3.3.3.0) + parser (3.3.4.0) ast (~> 2.4.1) racc pry (0.14.2) @@ -205,7 +205,7 @@ GEM rdoc (6.6.3.1) psych (>= 4.0.0) regexp_parser (2.9.2) - rexml (3.3.1) + rexml (3.3.2) strscan rspec-collection_matchers (1.2.1) rspec-expectations (>= 2.99.0.beta1) @@ -226,23 +226,19 @@ GEM rspec-mocks (~> 3.5.0) rspec-support (~> 3.5.0) rspec-support (3.5.0) - rubocop (1.64.1) + rubocop (1.65.0) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.8, < 3.0) + regexp_parser (>= 2.4, < 3.0) rexml (>= 3.2.5, < 4.0) rubocop-ast (>= 1.31.1, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) rubocop-ast (1.31.3) parser (>= 3.3.1.0) - rubocop-capybara (2.21.0) - rubocop (~> 1.41) - rubocop-factory_bot (2.26.0) - rubocop (~> 1.41) rubocop-performance (1.21.1) rubocop (>= 1.48.1, < 2.0) rubocop-ast (>= 1.31.1, < 2.0) @@ -251,13 +247,8 @@ GEM rack (>= 1.1) rubocop (>= 1.33.0, < 2.0) rubocop-ast (>= 1.31.1, < 2.0) - rubocop-rspec (2.31.0) - rubocop (~> 1.40) - rubocop-capybara (~> 2.17) - rubocop-factory_bot (~> 2.22) - rubocop-rspec_rails (~> 2.28) - rubocop-rspec_rails (2.29.0) - rubocop (~> 1.40) + rubocop-rspec (3.0.3) + rubocop (~> 1.61) ruby-progressbar (1.13.0) rubyzip (2.3.2) sass-rails (6.0.0) From 2ed967cce45d8a2ed1b9e9e9ead7c5da17010196 Mon Sep 17 00:00:00 2001 From: Stephen <519327+stevieing@users.noreply.github.com> Date: Tue, 23 Jul 2024 13:24:23 +0100 Subject: [PATCH 2/2] chore: Update autoload and eager load paths for presenters --- config/application.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/application.rb b/config/application.rb index d1407928..e0e77836 100644 --- a/config/application.rb +++ b/config/application.rb @@ -22,12 +22,12 @@ class Application < Rails::Application config.load_defaults 7.0 - config.mailer = YAML.load_file("#{Rails.root}/config/mailer.yml")[Rails.env] + config.mailer = YAML.load_file(Rails.root.join('config/mailer.yml').to_s)[Rails.env] config.autoload_paths += %W[#{config.root}/lib/utils] config.disable_animations = false - config.autoload_paths += %W[#{Rails.root}/app/presenters] - config.eager_load_paths += %W[#{Rails.root}/app/presenters] + config.autoload_paths += %W[#{Rails.root.join('app/presenters')}] + config.eager_load_paths += %W[#{Rails.root.join('app/presenters')}] # Enabling the behaviour where 'belongs_to' associations are required by default. # (https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#active-record-belongs-to-required-by-default-option)