dor-services-client 15.71.0 → 15.72.0

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: 730aef635e88c59d2124afc5c4a14bec8e5a1b6bc73e76726a647be01a97a420
4
- data.tar.gz: 8f0b4402c3a91a00d186e15c0360d248f9f53363605702046919cba80b3ec091
3
+ metadata.gz: 8f9e1bb543528f839e695b61d0a0ebd7fb3c8eed0c79daced2895cb8041b4e53
4
+ data.tar.gz: 0a5ac7c2beab6b5d0a7c8fb4fa51d5e841b61e5949feffe0b8921a4849cf5b97
5
5
  SHA512:
6
- metadata.gz: 914ba382636b58b9d0a257066b5c1d7a60cc94155157d1d5fad943d340750f66d04d04c3b61d0b74d8bcdf1310eb21dcb3eea004ac752da5cdd077eca63d8033
7
- data.tar.gz: eb7e38f3a6ff299338a4178378c9aad9cff096dcf4fe68f260794fddae36422b930634ea4ff3ccf4d1d2ae0c5c8ade4d74cecfdef7a87a9e1da7888253230be7
6
+ metadata.gz: 4d3d42cd92c936f94fb3a15a394e0cc446d64449f1ec51795fb936288961f1d1d52f61d1aeca781b38e3e4be0d678af2ca723427803054425d5bca047280e162
7
+ data.tar.gz: 1b53270dfe565b253a609ff4dd72a7de7b7e762a91d0997d1d328ab097f0504095658e264e77aa18116297b4097d8439ba8ed7fc5ba8bba26fa17e8ba7a9abb1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dor-services-client (15.71.0)
4
+ dor-services-client (15.72.0)
5
5
  activesupport (>= 7.0.0)
6
6
  cocina-models (~> 0.133.0)
7
7
  deprecation
@@ -14,7 +14,7 @@ PATH
14
14
  GEM
15
15
  remote: https://rubygems.org/
16
16
  specs:
17
- activesupport (8.1.4)
17
+ activesupport (8.1.4.1)
18
18
  base64
19
19
  bigdecimal
20
20
  concurrent-ruby (~> 1.0, >= 1.3.1)
@@ -27,7 +27,7 @@ GEM
27
27
  securerandom (>= 0.3)
28
28
  tzinfo (~> 2.0, >= 2.0.5)
29
29
  uri (>= 0.13.1)
30
- addressable (2.9.2)
30
+ addressable (2.10.0)
31
31
  public_suffix (>= 2.0.2, < 8.0)
32
32
  ast (2.4.3)
33
33
  attr_extras (7.1.0)
@@ -58,7 +58,7 @@ GEM
58
58
  janeway-jsonpath (>= 0.6, < 2)
59
59
  zeitwerk (~> 2.7)
60
60
  concurrent-ruby (1.3.8)
61
- connection_pool (3.0.2)
61
+ connection_pool (3.0.3)
62
62
  crack (1.0.1)
63
63
  bigdecimal
64
64
  rexml
@@ -81,7 +81,7 @@ GEM
81
81
  dry-types (~> 1.8, >= 1.8.2)
82
82
  ice_nine (~> 0.11)
83
83
  zeitwerk (~> 2.6)
84
- dry-types (1.9.1)
84
+ dry-types (1.9.2)
85
85
  bigdecimal (>= 3.0)
86
86
  concurrent-ruby (~> 1.0)
87
87
  dry-core (~> 1.0)
@@ -101,8 +101,8 @@ GEM
101
101
  faraday-retry (2.4.0)
102
102
  faraday (~> 2.0)
103
103
  geo_coord (0.2.0)
104
- hashdiff (1.2.1)
105
- hashie (5.2.0)
104
+ hashdiff (1.3.0)
105
+ hashie (6.0.0)
106
106
  logger
107
107
  i18n (1.15.2)
108
108
  concurrent-ruby (~> 1.0)
@@ -111,42 +111,55 @@ GEM
111
111
  iso8601 (0.13.0)
112
112
  janeway-jsonpath (1.2.0)
113
113
  json (3.1.0)
114
- jsonschema_rs (0.60.2-arm64-darwin)
114
+ jsonschema_rs (0.63.1)
115
115
  bigdecimal (>= 3.1, < 5)
116
- jsonschema_rs (0.60.2-x86_64-darwin)
116
+ rb_sys (~> 0.9.130)
117
+ jsonschema_rs (0.63.1-arm64-darwin)
117
118
  bigdecimal (>= 3.1, < 5)
118
- jsonschema_rs (0.60.2-x86_64-linux)
119
+ jsonschema_rs (0.63.1-x86_64-darwin)
120
+ bigdecimal (>= 3.1, < 5)
121
+ jsonschema_rs (0.63.1-x86_64-linux)
119
122
  bigdecimal (>= 3.1, < 5)
120
123
  language_server-protocol (3.17.0.6)
121
124
  lint_roller (1.1.0)
122
125
  logger (1.7.0)
123
- minitest (6.0.6)
126
+ mini_portile2 (2.8.9)
127
+ minitest (6.1.0)
124
128
  drb (~> 2.0)
125
- prism (~> 1.5)
129
+ prism (>= 1.5, < 3)
126
130
  net-http (0.10.0)
127
131
  net-protocol (>= 0.3.0)
128
132
  uri (>= 0.11.1)
129
133
  net-protocol (0.4.0)
130
134
  timeout
131
- nokogiri (1.19.6-arm64-darwin)
135
+ nokogiri (1.19.7)
136
+ mini_portile2 (~> 2.8.2)
137
+ racc (~> 1.4)
138
+ nokogiri (1.19.7-arm64-darwin)
132
139
  racc (~> 1.4)
133
- nokogiri (1.19.6-x86_64-darwin)
140
+ nokogiri (1.19.7-x86_64-darwin)
134
141
  racc (~> 1.4)
135
- nokogiri (1.19.6-x86_64-linux-gnu)
142
+ nokogiri (1.19.7-x86_64-linux-gnu)
136
143
  racc (~> 1.4)
137
144
  optimist (3.2.1)
138
145
  parallel (2.3.0)
139
- parser (3.3.13.0)
146
+ parser (3.3.14.0)
140
147
  ast (~> 2.4.1)
141
148
  racc
142
149
  patience_diff (1.2.0)
143
150
  optimist (~> 3.0)
144
- prism (1.9.0)
151
+ prism (2.1.0)
152
+ prism (2.1.0-arm64-darwin)
153
+ prism (2.1.0-x86_64-darwin)
154
+ prism (2.1.0-x86_64-linux-gnu)
145
155
  public_suffix (7.0.5)
146
156
  racc (1.8.1)
147
157
  rainbow (3.1.1)
148
158
  rake (13.4.2)
149
- regexp_parser (2.13.1)
159
+ rake-compiler-dock (1.12.0)
160
+ rb_sys (0.9.130)
161
+ rake-compiler-dock (= 1.12.0)
162
+ regexp_parser (2.13.4)
150
163
  reline (0.7.0)
151
164
  io-console (~> 0.5)
152
165
  rexml (3.4.4)
@@ -154,16 +167,16 @@ GEM
154
167
  rspec-core (~> 3.13.0)
155
168
  rspec-expectations (~> 3.13.0)
156
169
  rspec-mocks (~> 3.13.0)
157
- rspec-core (3.13.6)
170
+ rspec-core (3.13.7)
158
171
  rspec-support (~> 3.13.0)
159
- rspec-expectations (3.13.5)
172
+ rspec-expectations (3.13.6)
160
173
  diff-lcs (>= 1.2.0, < 2.0)
161
174
  rspec-support (~> 3.13.0)
162
- rspec-mocks (3.13.8)
175
+ rspec-mocks (3.13.9)
163
176
  diff-lcs (>= 1.2.0, < 2.0)
164
177
  rspec-support (~> 3.13.0)
165
- rspec-support (3.13.7)
166
- rubocop (1.92.2)
178
+ rspec-support (3.13.8)
179
+ rubocop (1.92.3)
167
180
  json (>= 2.3)
168
181
  language_server-protocol (~> 3.17.0.2)
169
182
  lint_roller (~> 1.1.0)
@@ -174,9 +187,11 @@ GEM
174
187
  rubocop-ast (>= 1.49.0, < 2.0)
175
188
  ruby-progressbar (~> 1.7)
176
189
  unicode-display_width (>= 2.4.0, < 4.0)
177
- rubocop-ast (1.50.0)
190
+ rubocop-ast (1.53.0)
191
+ ast (~> 2.4)
178
192
  parser (>= 3.3.7.2)
179
- prism (~> 1.7)
193
+ prism (>= 1.7)
194
+ racc
180
195
  rubocop-rspec (3.10.2)
181
196
  lint_roller (~> 1.1)
182
197
  regexp_parser (>= 2.0)
@@ -196,7 +211,7 @@ GEM
196
211
  unicode-emoji (~> 4.3)
197
212
  unicode-emoji (4.3.0)
198
213
  uri (1.1.2)
199
- webmock (3.34.0)
214
+ webmock (3.38.0)
200
215
  addressable (>= 2.8.0)
201
216
  crack (>= 0.3.2)
202
217
  hashdiff (>= 0.4.0, < 2.0.0)
@@ -206,6 +221,7 @@ PLATFORMS
206
221
  arm64-darwin-23
207
222
  arm64-darwin-24
208
223
  arm64-darwin-25
224
+ arm64-darwin-27
209
225
  x86_64-darwin-19
210
226
  x86_64-darwin-20
211
227
  x86_64-darwin-21
@@ -224,4 +240,4 @@ DEPENDENCIES
224
240
  webmock
225
241
 
226
242
  BUNDLED WITH
227
- 4.0.23
243
+ 4.1.0
data/README.md CHANGED
@@ -98,8 +98,8 @@ object_client.publish(workflow: 'releaseWF', lane_id: 'low')
98
98
  # Start accessioning an object (initialize assemblyWF or specified workflow, and version object if needed)
99
99
  object_client.accession.start(**versioning_params)
100
100
 
101
- # Copy metadata from Symphony into descMetadata
102
- object_client.refresh_descriptive_metadata_from_ils
101
+ # Copy metadata from Folio into the description, recording who requested it
102
+ object_client.refresh_descriptive_metadata_from_ils(user_name: 'dude')
103
103
 
104
104
  # Apply defaults from the item's AdminPolicy to the item itself
105
105
  object_client.apply_admin_policy_defaults
@@ -60,13 +60,15 @@ module Dor
60
60
  # rubocop:enable Metrics/AbcSize
61
61
  # rubocop:enable Metrics/MethodLength
62
62
 
63
- # Pull in metadata from Symphony and updates descriptive metadata
63
+ # Pull in metadata from Folio and updates descriptive metadata
64
+ # @param [String] user_name (nil) the sunetid of the user requesting the refresh, recorded with its event
64
65
  # @raise [NotFoundResponse] when the response is a 404 (object not found)
65
66
  # @raise [UnexpectedResponse] when the response is not successful.
66
67
  # @return [boolean] true on success
67
- def refresh_descriptive_metadata_from_ils
68
+ def refresh_descriptive_metadata_from_ils(user_name: nil)
68
69
  resp = connection.post do |req|
69
70
  req.url "#{object_path}/refresh_metadata"
71
+ req.params = { user_name: user_name }.compact
70
72
  end
71
73
 
72
74
  raise_exception_based_on_response!(resp) unless resp.success?
@@ -3,7 +3,7 @@
3
3
  module Dor
4
4
  module Services
5
5
  class Client
6
- VERSION = '15.71.0'
6
+ VERSION = '15.72.0'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dor-services-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 15.71.0
4
+ version: 15.72.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne