diff --git a/Gemfile.lock b/Gemfile.lock index 37eaaceee..06f3e6de2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -83,7 +83,7 @@ GEM ast (2.4.2) attr_extras (7.1.0) base64 (0.2.0) - bigdecimal (3.1.4) + bigdecimal (3.1.5) bootsnap (1.17.0) msgpack (~> 1.2) builder (3.2.4) @@ -244,13 +244,13 @@ GEM sprockets-rails graphql (2.1.7) racc (~> 1.4) - hashdiff (1.0.1) + hashdiff (1.1.0) hashie (5.0.0) honeybadger (5.4.0) i18n (1.14.1) concurrent-ruby (~> 1.0) ice_nine (0.11.2) - io-console (0.6.0) + io-console (0.7.1) irb (1.10.1) rdoc reline (>= 0.3.8) @@ -305,7 +305,7 @@ GEM multi_json (1.15.0) multi_xml (0.6.0) mutex_m (0.2.0) - net-imap (0.4.7) + net-imap (0.4.8) date net-protocol net-pop (0.1.2) @@ -339,7 +339,7 @@ GEM commonmarker (~> 0.17) openapi_parser (1.0.0) optimist (3.1.0) - parallel (1.23.0) + parallel (1.24.0) parser (3.2.2.4) ast (~> 2.4.1) racc @@ -406,7 +406,7 @@ GEM rainbow (3.1.1) rake (12.3.3) rbtree (0.4.6) - rdoc (6.6.1) + rdoc (6.6.2) psych (>= 4.0.0) redis-client (0.19.0) connection_pool @@ -458,10 +458,10 @@ GEM rubocop (~> 1.41) rubocop-factory_bot (2.24.0) rubocop (~> 1.33) - rubocop-performance (1.19.1) - rubocop (>= 1.7.0, < 2.0) - rubocop-ast (>= 0.4.0) - rubocop-rails (2.22.2) + rubocop-performance (1.20.0) + rubocop (>= 1.48.1, < 2.0) + rubocop-ast (>= 1.30.0, < 2.0) + rubocop-rails (2.23.0) activesupport (>= 4.2.0) rack (>= 1.1) rubocop (>= 1.33.0, < 2.0) @@ -546,7 +546,7 @@ GEM tty-cursor (~> 0.7) tty-screen (~> 0.8) unicode-display_width (>= 1.6, < 3.0) - tty-screen (0.8.1) + tty-screen (0.8.2) tzinfo (2.0.6) concurrent-ruby (~> 1.0) unf (0.1.4) diff --git a/app/services/cocina/to_datacite/form.rb b/app/services/cocina/to_datacite/form.rb index 456db8a44..46b0cc1cd 100644 --- a/app/services/cocina/to_datacite/form.rb +++ b/app/services/cocina/to_datacite/form.rb @@ -57,9 +57,9 @@ def self_deposit_type(cocina_self_deposit_form) end def self_deposit_subtypes(cocina_self_deposit_form) - cocina_self_deposit_form&.structuredValue&.map do |struct_val| + cocina_self_deposit_form&.structuredValue&.filter_map do |struct_val| struct_val.value if struct_val.type == 'subtype' - end&.compact + end end def self_deposit_form?(cocina_form)