From 15268d026694713a8d18d14dd8b36e993389292e Mon Sep 17 00:00:00 2001 From: Jenkins Date: Mon, 6 Nov 2023 02:29:17 -0800 Subject: [PATCH 1/2] Update Ruby dependencies --- Gemfile.lock | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 5aa5d91e..ab0736f8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -134,7 +134,7 @@ GEM docile (1.4.0) domain_name (0.5.20190701) unf (>= 0.0.5, < 1.0.0) - dor-rights-auth (1.7.0) + dor-rights-auth (1.8.0) nokogiri dry-configurable (1.1.0) dry-core (~> 1.0, < 2) @@ -224,7 +224,7 @@ GEM mini_mime (1.1.5) minitest (5.20.0) msgpack (1.7.2) - net-imap (0.4.2) + net-imap (0.4.4) date net-protocol net-pop (0.1.2) @@ -236,7 +236,8 @@ GEM net-smtp (0.4.0) net-protocol net-ssh (7.2.0) - newrelic_rpm (9.5.0) + newrelic_rpm (9.6.0) + base64 nio4r (2.5.9) nokogiri (1.15.4-x86_64-darwin) racc (~> 1.4) @@ -257,7 +258,7 @@ GEM public_suffix (5.0.3) puma (5.6.7) nio4r (~> 2.0) - racc (1.7.2) + racc (1.7.3) rack (2.2.8) rack-test (2.1.0) rack (>= 1.3) @@ -298,7 +299,7 @@ GEM rb-fsevent (0.11.2) rb-inotify (0.10.1) ffi (~> 1.0) - rdoc (6.5.0) + rdoc (6.6.0) psych (>= 4.0.0) redis (5.0.8) redis-client (>= 0.17.0) @@ -343,13 +344,13 @@ GEM rubocop (~> 1.41) rubocop-factory_bot (2.24.0) rubocop (~> 1.33) - rubocop-performance (1.10.2) - rubocop (>= 0.90.0, < 2.0) + rubocop-performance (1.19.1) + rubocop (>= 1.7.0, < 2.0) rubocop-ast (>= 0.4.0) - rubocop-rails (2.9.1) + rubocop-rails (2.22.1) activesupport (>= 4.2.0) rack (>= 1.1) - rubocop (>= 0.90.0, < 2.0) + rubocop (>= 1.33.0, < 2.0) rubocop-rspec (2.25.0) rubocop (~> 1.40) rubocop-capybara (~> 2.17) @@ -357,7 +358,7 @@ GEM ruby-progressbar (1.13.0) ruby2_keywords (0.0.5) rubyzip (2.3.2) - selenium-webdriver (4.14.0) + selenium-webdriver (4.15.0) rexml (~> 3.2, >= 3.2.5) rubyzip (>= 1.2.2, < 3.0) websocket (~> 1.0) @@ -367,8 +368,8 @@ GEM simplecov_json_formatter (~> 0.1) simplecov-html (0.12.3) simplecov_json_formatter (0.1.4) - sqlite3 (1.6.7-x86_64-darwin) - sqlite3 (1.6.7-x86_64-linux) + sqlite3 (1.6.8-x86_64-darwin) + sqlite3 (1.6.8-x86_64-linux) sshkit (1.21.5) net-scp (>= 1.1.2) net-ssh (>= 2.8.0) From 4dda61452e09bdc97c30f1c0917f656e30d596f6 Mon Sep 17 00:00:00 2001 From: Justin Coyne Date: Mon, 6 Nov 2023 06:49:56 -0600 Subject: [PATCH 2/2] Autocorrect rubocop --- spec/rails_helper.rb | 2 +- spec/services/iiif_info_service_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index fbeebd7d..c181c1a7 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -39,7 +39,7 @@ RSpec.configure do |config| # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures - config.fixture_path = "#{::Rails.root}/spec/fixtures" + config.fixture_path = Rails.root.join('spec/fixtures').to_s config.include RightsXMLFixtures # If you're not using ActiveRecord, or you'd prefer not to run each of your # examples within a transaction, remove the following line or assign false diff --git a/spec/services/iiif_info_service_spec.rb b/spec/services/iiif_info_service_spec.rb index 05ddebb5..6af65bb0 100644 --- a/spec/services/iiif_info_service_spec.rb +++ b/spec/services/iiif_info_service_spec.rb @@ -185,7 +185,7 @@ it 'advertises support for both login and external authentication' do expect(image_info['service']).to be_present expect(image_info['service'].length).to eq 2 - expect(image_info['service'].map { |x| x['profile'] }).to match_array [ + expect(image_info['service'].pluck('profile')).to match_array [ 'http://iiif.io/api/auth/1/login', 'http://iiif.io/api/auth/1/external' ]