From 92b8259ff326dd22f88a36af2d2147d18851736f Mon Sep 17 00:00:00 2001 From: sul-devops-team Date: Mon, 21 Oct 2024 02:51:07 -0700 Subject: [PATCH 1/2] Update Ruby dependencies --- Gemfile.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 761a7031..ec4bfc4c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -20,7 +20,7 @@ PATH GEM remote: https://rubygems.org/ specs: - activesupport (7.2.1) + activesupport (7.2.1.1) base64 bigdecimal concurrent-ruby (~> 1.0, >= 1.3.1) @@ -108,7 +108,7 @@ GEM rspec-core (~> 3.13.0) rspec-expectations (~> 3.13.0) rspec-mocks (~> 3.13.0) - rspec-core (3.13.1) + rspec-core (3.13.2) rspec-support (~> 3.13.0) rspec-expectations (3.13.3) diff-lcs (>= 1.2.0, < 2.0) @@ -119,7 +119,7 @@ GEM rspec-support (3.13.1) rspec_junit_formatter (0.6.0) rspec-core (>= 2, < 4, != 2.12.0) - rubocop (1.66.1) + rubocop (1.67.0) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) @@ -160,7 +160,7 @@ GEM tzinfo (2.0.6) concurrent-ruby (~> 1.0) unicode-display_width (2.6.0) - zeitwerk (2.7.0) + zeitwerk (2.7.1) PLATFORMS ruby From 06ee8a0633ed2628bd30ab3aa4f2688c081a827b Mon Sep 17 00:00:00 2001 From: Peter Mangiafico Date: Mon, 21 Oct 2024 08:21:00 -0700 Subject: [PATCH 2/2] rubocop fixes --- lib/cocina/models/mapping/from_mods/note.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/cocina/models/mapping/from_mods/note.rb b/lib/cocina/models/mapping/from_mods/note.rb index fe0653be..3e1c90a2 100644 --- a/lib/cocina/models/mapping/from_mods/note.rb +++ b/lib/cocina/models/mapping/from_mods/note.rb @@ -32,7 +32,7 @@ def abstracts note_present?(node) end altrepgroup_abstract_nodes, other_abstract_nodes = AltRepGroup.split(nodes: all_abstract_nodes) - other_abstract_nodes.map { |node| common_note_for(node).merge(abstract_type(node)) } + \ + other_abstract_nodes.map { |node| common_note_for(node).merge(abstract_type(node)) } + altrepgroup_abstract_nodes.map { |parallel_nodes| parallel_abstract_for(parallel_nodes) } end @@ -92,7 +92,7 @@ def notes note_present?(node) && node[:type] != 'contact' end altrepgroup_note_nodes, other_note_nodes = AltRepGroup.split(nodes: all_note_nodes) - other_note_nodes.map { |node| common_note_for(node) } + \ + other_note_nodes.map { |node| common_note_for(node) } + altrepgroup_note_nodes.map { |parallel_nodes| parallel_note_for(parallel_nodes) } end @@ -123,7 +123,7 @@ def table_of_contents note_present?(node) end altrepgroup_toc_nodes, other_toc_nodes = AltRepGroup.split(nodes: all_toc_nodes) - other_toc_nodes.map { |node| toc_for(node).merge({ type: 'table of contents' }) } + \ + other_toc_nodes.map { |node| toc_for(node).merge({ type: 'table of contents' }) } + altrepgroup_toc_nodes.map { |parallel_nodes| parallel_toc_for(parallel_nodes) } end