Skip to content

Commit

Permalink
Merge pull request #1026 from pod4lib/update-dependencies
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
cbeer authored Jan 16, 2024
2 parents 1810918 + 01d96ad commit 6aedfa6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 18 deletions.
31 changes: 17 additions & 14 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand All @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions app/services/normalized_marc_record_reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand All @@ -30,7 +30,7 @@ def each(&block)
nil
end

records.each(&block)
records.each(...)
end

pool.shutdown
Expand Down
4 changes: 2 additions & 2 deletions spec/support/marc_fixture_seed_fetcher.rb
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 6aedfa6

Please sign in to comment.