datacite 0.8.1 → 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a4e41bbe60c1bb9cab7315f2a5b48348cec51cfdd41950f3daa7097cb7135e6d
4
- data.tar.gz: 30aff4a9d851eea079ab657b19765b6c6027ced8e9a20dff62f4a40f3a898ccd
3
+ metadata.gz: 6831ee0a6ce1abb9edb551f6ed48bfede53b1ac9b70a5502197c46c3bcf01757
4
+ data.tar.gz: 8951d2b96b64ad44eb327f2325f23b53b64437f8468943f0ff410c303247e4b5
5
5
  SHA512:
6
- metadata.gz: c636aa314c1e154c62badf517aded67ae2e00e69172563a0207bb288513e0d577e5c548616ecd4c6b44fbc5df2ae40974435e462ef9e4dba22b43d6ef4b17765
7
- data.tar.gz: 8e61aba2ca1229458c456c4293c2ebce17c63ad4e7eff9c779c74f65861573e7f3933579f71435cb60cfde265e85baad91ae4bcd11895a930599bd6324182e20
6
+ metadata.gz: d31a68163e34e12227048ae2c0a59c202f0805d4993158fe5aff0274d809cd76515d5eca882c4949adc6f7ee1265c961a92b738d7bfd1a96bfef41c30b7c3fc5
7
+ data.tar.gz: d1e65f7b14bcb0f9f78827f4a9e3eda638d3d62f58badbd017f0dcad519f008a3cc5b469399bb786a09140e84fd31741c15fca70484e65c2f4f7f7431ac150ec
data/.circleci/config.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  version: 2.1
2
2
  orbs:
3
- ruby-rails: sul-dlss/ruby-rails@4.6.0
3
+ ruby-rails: sul-dlss/ruby-rails@4.7.0
4
4
  workflows:
5
5
  build:
6
6
  jobs:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- datacite (0.8.1)
4
+ datacite (0.8.3)
5
5
  activesupport
6
6
  dry-monads (~> 1.3)
7
7
  faraday (~> 2.0)
@@ -11,7 +11,7 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- activesupport (8.1.2)
14
+ activesupport (8.1.3)
15
15
  base64
16
16
  bigdecimal
17
17
  concurrent-ruby (~> 1.0, >= 1.3.1)
@@ -24,15 +24,15 @@ GEM
24
24
  securerandom (>= 0.3)
25
25
  tzinfo (~> 2.0, >= 2.0.5)
26
26
  uri (>= 0.13.1)
27
- addressable (2.8.8)
27
+ addressable (2.9.0)
28
28
  public_suffix (>= 2.0.2, < 8.0)
29
29
  ast (2.4.3)
30
30
  attr_extras (7.1.0)
31
31
  base64 (0.3.0)
32
- bigdecimal (4.0.1)
32
+ bigdecimal (4.1.2)
33
33
  byebug (13.0.0)
34
34
  reline (>= 0.6.0)
35
- cocina-models (0.110.1)
35
+ cocina-models (0.116.0)
36
36
  activesupport
37
37
  deprecation
38
38
  dry-struct (~> 1.0)
@@ -42,7 +42,6 @@ GEM
42
42
  i18n
43
43
  json_schemer (~> 2.0)
44
44
  jsonpath
45
- marc (~> 1.3)
46
45
  nokogiri
47
46
  super_diff
48
47
  thor
@@ -67,11 +66,11 @@ GEM
67
66
  concurrent-ruby (~> 1.0)
68
67
  dry-core (~> 1.1)
69
68
  zeitwerk (~> 2.6)
70
- dry-monads (1.9.0)
69
+ dry-monads (1.10.0)
71
70
  concurrent-ruby (~> 1.0)
72
71
  dry-core (~> 1.1)
73
72
  zeitwerk (~> 2.6)
74
- dry-struct (1.8.0)
73
+ dry-struct (1.8.1)
75
74
  dry-core (~> 1.1)
76
75
  dry-types (~> 1.8, >= 1.8.2)
77
76
  ice_nine (~> 0.11)
@@ -99,7 +98,7 @@ GEM
99
98
  concurrent-ruby (~> 1.0)
100
99
  ice_nine (0.11.2)
101
100
  io-console (0.8.2)
102
- json (2.18.1)
101
+ json (2.19.4)
103
102
  json_schemer (2.5.0)
104
103
  bigdecimal
105
104
  hana (~> 1.3)
@@ -110,43 +109,41 @@ GEM
110
109
  language_server-protocol (3.17.0.5)
111
110
  lint_roller (1.1.0)
112
111
  logger (1.7.0)
113
- marc (1.4.0)
114
- nokogiri (~> 1.0)
115
- rexml
116
- minitest (6.0.1)
112
+ minitest (6.0.5)
113
+ drb (~> 2.0)
117
114
  prism (~> 1.5)
118
- multi_json (1.19.1)
115
+ multi_json (1.20.1)
119
116
  net-http (0.9.1)
120
117
  uri (>= 0.11.1)
121
- nokogiri (1.19.0-aarch64-linux-gnu)
118
+ nokogiri (1.19.2-aarch64-linux-gnu)
122
119
  racc (~> 1.4)
123
- nokogiri (1.19.0-aarch64-linux-musl)
120
+ nokogiri (1.19.2-aarch64-linux-musl)
124
121
  racc (~> 1.4)
125
- nokogiri (1.19.0-arm-linux-gnu)
122
+ nokogiri (1.19.2-arm-linux-gnu)
126
123
  racc (~> 1.4)
127
- nokogiri (1.19.0-arm-linux-musl)
124
+ nokogiri (1.19.2-arm-linux-musl)
128
125
  racc (~> 1.4)
129
- nokogiri (1.19.0-arm64-darwin)
126
+ nokogiri (1.19.2-arm64-darwin)
130
127
  racc (~> 1.4)
131
- nokogiri (1.19.0-x86_64-darwin)
128
+ nokogiri (1.19.2-x86_64-darwin)
132
129
  racc (~> 1.4)
133
- nokogiri (1.19.0-x86_64-linux-gnu)
130
+ nokogiri (1.19.2-x86_64-linux-gnu)
134
131
  racc (~> 1.4)
135
- nokogiri (1.19.0-x86_64-linux-musl)
132
+ nokogiri (1.19.2-x86_64-linux-musl)
136
133
  racc (~> 1.4)
137
134
  optimist (3.2.1)
138
- parallel (1.27.0)
139
- parser (3.3.10.1)
135
+ parallel (2.1.0)
136
+ parser (3.3.11.1)
140
137
  ast (~> 2.4.1)
141
138
  racc
142
139
  patience_diff (1.2.0)
143
140
  optimist (~> 3.0)
144
141
  prism (1.9.0)
145
- public_suffix (7.0.2)
142
+ public_suffix (7.0.5)
146
143
  racc (1.8.1)
147
144
  rainbow (3.1.1)
148
- rake (13.3.1)
149
- regexp_parser (2.11.3)
145
+ rake (13.4.2)
146
+ regexp_parser (2.12.0)
150
147
  reline (0.6.3)
151
148
  io-console (~> 0.5)
152
149
  rexml (3.4.4)
@@ -159,22 +156,22 @@ GEM
159
156
  rspec-expectations (3.13.5)
160
157
  diff-lcs (>= 1.2.0, < 2.0)
161
158
  rspec-support (~> 3.13.0)
162
- rspec-mocks (3.13.7)
159
+ rspec-mocks (3.13.8)
163
160
  diff-lcs (>= 1.2.0, < 2.0)
164
161
  rspec-support (~> 3.13.0)
165
162
  rspec-support (3.13.7)
166
- rubocop (1.84.1)
163
+ rubocop (1.86.1)
167
164
  json (~> 2.3)
168
165
  language_server-protocol (~> 3.17.0.2)
169
166
  lint_roller (~> 1.1.0)
170
- parallel (~> 1.10)
167
+ parallel (>= 1.10)
171
168
  parser (>= 3.3.0.2)
172
169
  rainbow (>= 2.2.2, < 4.0)
173
170
  regexp_parser (>= 2.9.3, < 3.0)
174
171
  rubocop-ast (>= 1.49.0, < 2.0)
175
172
  ruby-progressbar (~> 1.7)
176
173
  unicode-display_width (>= 2.4.0, < 4.0)
177
- rubocop-ast (1.49.0)
174
+ rubocop-ast (1.49.1)
178
175
  parser (>= 3.3.7.2)
179
176
  prism (~> 1.7)
180
177
  rubocop-rake (0.7.1)
@@ -203,11 +200,11 @@ GEM
203
200
  unicode-emoji (~> 4.1)
204
201
  unicode-emoji (4.2.0)
205
202
  uri (1.1.1)
206
- webmock (3.26.1)
203
+ webmock (3.26.2)
207
204
  addressable (>= 2.8.0)
208
205
  crack (>= 0.3.2)
209
206
  hashdiff (>= 0.4.0, < 2.0.0)
210
- zeitwerk (2.7.4)
207
+ zeitwerk (2.7.5)
211
208
 
212
209
  PLATFORMS
213
210
  aarch64-linux-gnu
@@ -233,4 +230,4 @@ DEPENDENCIES
233
230
  webmock (~> 3.13)
234
231
 
235
232
  BUNDLED WITH
236
- 4.0.6
233
+ 4.0.10
@@ -111,7 +111,7 @@ module Datacite
111
111
  {
112
112
  nameType: 'Personal',
113
113
  nameIdentifiers: name_identifiers(cocina_contributor).presence,
114
- affiliation: affiliations(cocina_contributor).presence
114
+ affiliation: affiliations(cocina_contributor).uniq { |affiliation| affiliation[:affiliationIdentifier] }.presence # rubocop:disable Layout/LineLength
115
115
  }.tap do |name_hash|
116
116
  # NOTE: This is needed for ETDs, for which we do not receive structured
117
117
  # contributor names from Axess for ETD readers
@@ -145,7 +145,7 @@ module Datacite
145
145
  {
146
146
  nameIdentifier: identifier.value || identifier.uri,
147
147
  nameIdentifierScheme: identifier.type,
148
- schemeUri: identifier.source.uri
148
+ schemeUri: identifier.source&.uri
149
149
  }.compact
150
150
  end
151
151
  end
@@ -194,7 +194,7 @@ module Datacite
194
194
  def degree_committee_member?(cocina_contributor)
195
195
  cocina_contributor.role.any? { |contrib_role| contrib_role.value == 'degree committee member' } &&
196
196
  cocina_contributor.role.any? do |contrib_role|
197
- contrib_role.code == 'ths' && contrib_role.source.code == 'marcrelator'
197
+ contrib_role.code == 'ths' && contrib_role.source&.code == 'marcrelator'
198
198
  end
199
199
  end
200
200
 
@@ -48,7 +48,7 @@ module Datacite
48
48
  def related_item_attributes # rubocop:disable Metrics/MethodLength
49
49
  return if related_resource_blank?
50
50
 
51
- titles = related_item_title ? [title: related_item_title] : []
51
+ titles = related_item_title ? [{ title: related_item_title }] : []
52
52
  id, type = unpack_related_uri_and_type
53
53
 
54
54
  if id && type
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Datacite
4
- VERSION = '0.8.1'
4
+ VERSION = '0.8.3'
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datacite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2026-02-13 00:00:00.000000000 Z
10
+ date: 2026-04-28 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: activesupport