diff --git a/Gemfile.lock b/Gemfile.lock index 414cfc4b..a21c4ac9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -50,7 +50,7 @@ GEM activejob (7.0.8) activesupport (= 7.0.8) globalid (>= 0.3.6) - activejob-status (1.0.0) + activejob-status (1.0.1) activejob (>= 6.0) activesupport (>= 6.0) activemodel (7.0.8) @@ -76,7 +76,7 @@ GEM activesupport (>= 6.1) device_detector (>= 1) safely_block (>= 0.4) - airbrussh (1.5.0) + airbrussh (1.5.1) sshkit (>= 1.6.1, != 1.7.0) ast (2.4.2) bcrypt (3.1.20) @@ -159,7 +159,7 @@ GEM capistrano-one_time_key capistrano-shared_configs docile (1.4.0) - domain_name (0.6.20231109) + domain_name (0.6.20240107) dry-configurable (1.1.0) dry-core (~> 1.0, < 2) zeitwerk (~> 2.6) @@ -242,9 +242,9 @@ GEM activesupport (>= 3.0) nokogiri (>= 1.6) io-console (0.7.1) - irb (1.11.0) + irb (1.11.1) rdoc - reline (>= 0.3.8) + reline (>= 0.4.2) jbuilder (2.11.5) actionview (>= 5.0.0) activesupport (>= 5.0.0) @@ -283,7 +283,7 @@ GEM matrix (0.4.2) method_source (1.0.0) mini_mime (1.1.5) - minitest (5.20.0) + minitest (5.21.1) mutex_m (0.2.0) net-imap (0.4.9.1) date @@ -294,6 +294,8 @@ GEM timeout net-scp (4.0.0) net-ssh (>= 2.6.5, < 8.0.0) + net-sftp (4.0.0) + net-ssh (>= 5.0.0, < 8.0.0) net-smtp (0.4.0.1) net-protocol net-ssh (7.2.1) @@ -308,7 +310,7 @@ GEM activerecord (>= 6.1) request_store (~> 1.4) parallel (1.24.0) - parser (3.3.0.2) + parser (3.3.0.3) ast (~> 2.4.1) racc pg (1.5.4) @@ -366,7 +368,7 @@ GEM redis-client (>= 0.17.0) redis-client (0.19.1) connection_pool - regexp_parser (2.8.3) + regexp_parser (2.9.0) reline (0.4.2) io-console (~> 0.5) request_store (1.5.1) @@ -393,11 +395,11 @@ GEM rspec-mocks (~> 3.12) rspec-support (~> 3.12) rspec-support (3.12.1) - rubocop (1.59.0) + rubocop (1.60.0) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 3.2.2.4) + parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml (>= 3.2.5, < 4.0) @@ -408,9 +410,9 @@ GEM parser (>= 3.2.1.0) rubocop-capybara (2.20.0) rubocop (~> 1.41) - rubocop-factory_bot (2.25.0) - rubocop (~> 1.33) - rubocop-performance (1.20.1) + rubocop-factory_bot (2.25.1) + rubocop (~> 1.41) + rubocop-performance (1.20.2) rubocop (>= 1.48.1, < 2.0) rubocop-ast (>= 1.30.0, < 2.0) rubocop-rails (2.23.1) @@ -451,9 +453,10 @@ GEM sprockets (>= 3.0.0) sqlite3 (1.7.0-x86_64-darwin) sqlite3 (1.7.0-x86_64-linux) - sshkit (1.21.7) + sshkit (1.22.0) mutex_m net-scp (>= 1.1.2) + net-sftp (>= 2.1.2) net-ssh (>= 2.8.0) stringio (3.1.0) terminal-table (3.0.2) diff --git a/app/services/normalized_marc_record_reader.rb b/app/services/normalized_marc_record_reader.rb index 64cadb47..6fd4ce52 100644 --- a/app/services/normalized_marc_record_reader.rb +++ b/app/services/normalized_marc_record_reader.rb @@ -15,7 +15,7 @@ def initialize(uploads, thread_pool_size: 10) end # @yield [MarcRecord] - def each(&block) + def each(...) pool = Concurrent::FixedThreadPool.new(thread_pool_size) current_marc_record_ids.each_slice(200) do |slice| @@ -30,7 +30,7 @@ def each(&block) nil end - records.each(&block) + records.each(...) end pool.shutdown diff --git a/spec/support/marc_fixture_seed_fetcher.rb b/spec/support/marc_fixture_seed_fetcher.rb index 08dbf206..95076585 100644 --- a/spec/support/marc_fixture_seed_fetcher.rb +++ b/spec/support/marc_fixture_seed_fetcher.rb @@ -1,8 +1,8 @@ # frozen_string_literal: true class MarcFixtureSeedFetcher - def self.fetch_uploads(slug, &block) - new.fetch_uploads(slug, &block) + def self.fetch_uploads(slug, ...) + new.fetch_uploads(slug, ...) end def fetch_uploads(slug, &_block)