dor-services-client 15.37.0 → 15.38.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: b3132ec88cc3266dd20bae81dea4f7c00d129b98f8a026f05542f4a891fcd25f
4
- data.tar.gz: d7a5ec367663f9c30053894a291670257305ecdb77f5ff488610474b73108928
3
+ metadata.gz: e5556ec1864d837c826b8c07d6e43d9ad6fa85bd7c4a7cb809c6ebe10f3d706a
4
+ data.tar.gz: 22b30e6cf8d51adb477c4db16aadb4dc773d67b55f3288bfe1fc6674700a952b
5
5
  SHA512:
6
- metadata.gz: d9fb1c0c881f3df73ae33de27afc867ed1eb0973b6863c901b4718e55c5dd4ce3763a3ae7567b9e9080b81b9831e27c2c97c5a6c4a9fb4e986188cafe07019b4
7
- data.tar.gz: a578791902a3c7987c57435d244157e559bc12b56102367859312032e8c7336065e1abb778ed123843a2bc30dee3d6a26eaf4ea17c0363a3149dab54c0b4ae89
6
+ metadata.gz: 69df36b0ee685b53a92f5aa661ef1d93ad0ca9766168a9c905eec042e39cf862d69c9865bff3541f7580ed364be0d61358b609d2e542aa76eeeda41fdc426554
7
+ data.tar.gz: 3a4617c11c22b8451f256de63358dd58d2a0c019f6ecc70951695ef40946dcd992e0ce44d6236f419e3ccc389b47a5e0a5a7e935edb66f1d3d30942528191f87
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
- dor-services-client (15.37.0)
4
+ dor-services-client (15.38.0)
5
5
  activesupport (>= 7.0.0)
6
6
  cocina-models (~> 0.116.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.2)
17
+ activesupport (8.1.3)
18
18
  base64
19
19
  bigdecimal
20
20
  concurrent-ruby (~> 1.0, >= 1.3.1)
@@ -27,12 +27,12 @@ GEM
27
27
  securerandom (>= 0.3)
28
28
  tzinfo (~> 2.0, >= 2.0.5)
29
29
  uri (>= 0.13.1)
30
- addressable (2.8.9)
30
+ addressable (2.9.0)
31
31
  public_suffix (>= 2.0.2, < 8.0)
32
32
  ast (2.4.3)
33
33
  attr_extras (7.1.0)
34
34
  base64 (0.3.0)
35
- bigdecimal (4.0.1)
35
+ bigdecimal (4.1.1)
36
36
  byebug (13.0.0)
37
37
  reline (>= 0.6.0)
38
38
  cocina-models (0.116.0)
@@ -101,10 +101,7 @@ GEM
101
101
  concurrent-ruby (~> 1.0)
102
102
  ice_nine (0.11.2)
103
103
  io-console (0.8.2)
104
- json (2.19.1)
105
- json-schema (6.2.0)
106
- addressable (~> 2.8)
107
- bigdecimal (>= 3.1, < 5)
104
+ json (2.19.3)
108
105
  json_schemer (2.5.0)
109
106
  bigdecimal
110
107
  hana (~> 1.3)
@@ -115,23 +112,21 @@ GEM
115
112
  language_server-protocol (3.17.0.5)
116
113
  lint_roller (1.1.0)
117
114
  logger (1.7.0)
118
- mcp (0.8.0)
119
- json-schema (>= 4.1)
120
- minitest (6.0.2)
115
+ minitest (6.0.3)
121
116
  drb (~> 2.0)
122
117
  prism (~> 1.5)
123
118
  multi_json (1.19.1)
124
119
  net-http (0.9.1)
125
120
  uri (>= 0.11.1)
126
- nokogiri (1.19.1-arm64-darwin)
121
+ nokogiri (1.19.2-arm64-darwin)
127
122
  racc (~> 1.4)
128
- nokogiri (1.19.1-x86_64-darwin)
123
+ nokogiri (1.19.2-x86_64-darwin)
129
124
  racc (~> 1.4)
130
- nokogiri (1.19.1-x86_64-linux-gnu)
125
+ nokogiri (1.19.2-x86_64-linux-gnu)
131
126
  racc (~> 1.4)
132
127
  optimist (3.2.1)
133
- parallel (1.27.0)
134
- parser (3.3.10.2)
128
+ parallel (1.28.0)
129
+ parser (3.3.11.1)
135
130
  ast (~> 2.4.1)
136
131
  racc
137
132
  patience_diff (1.2.0)
@@ -141,7 +136,7 @@ GEM
141
136
  racc (1.8.1)
142
137
  rainbow (3.1.1)
143
138
  rake (13.3.1)
144
- regexp_parser (2.11.3)
139
+ regexp_parser (2.12.0)
145
140
  reline (0.6.3)
146
141
  io-console (~> 0.5)
147
142
  rexml (3.4.4)
@@ -158,11 +153,10 @@ GEM
158
153
  diff-lcs (>= 1.2.0, < 2.0)
159
154
  rspec-support (~> 3.13.0)
160
155
  rspec-support (3.13.7)
161
- rubocop (1.85.1)
156
+ rubocop (1.86.0)
162
157
  json (~> 2.3)
163
158
  language_server-protocol (~> 3.17.0.2)
164
159
  lint_roller (~> 1.1.0)
165
- mcp (~> 0.6)
166
160
  parallel (~> 1.10)
167
161
  parser (>= 3.3.0.2)
168
162
  rainbow (>= 2.2.2, < 4.0)
@@ -196,7 +190,7 @@ GEM
196
190
  unicode-emoji (~> 4.1)
197
191
  unicode-emoji (4.2.0)
198
192
  uri (1.1.1)
199
- webmock (3.26.1)
193
+ webmock (3.26.2)
200
194
  addressable (>= 2.8.0)
201
195
  crack (>= 0.3.2)
202
196
  hashdiff (>= 0.4.0, < 2.0.0)
@@ -224,4 +218,4 @@ DEPENDENCIES
224
218
  webmock
225
219
 
226
220
  BUNDLED WITH
227
- 4.0.8
221
+ 4.0.9
data/README.md CHANGED
@@ -141,6 +141,9 @@ object_client.collections
141
141
  # Query for a collection's members
142
142
  object_client.members
143
143
 
144
+ # Returns the solr document for the head version.
145
+ object_client.solr(validate: false)
146
+
144
147
  # Create, update, destroy, and list administrative tags for an object
145
148
  object_client.administrative_tags.create(tags: ['Tag : One', 'Tag : Two'])
146
149
  object_client.administrative_tags.replace(tags: ['Tag : One', 'Tag : Two']) # like #create but removes current tags first
@@ -183,6 +183,17 @@ module Dor
183
183
  end
184
184
  # rubocop:enable Metrics/MethodLength
185
185
 
186
+ # @return [Hash] the solr document for the head version
187
+ # @raise [UnexpectedResponse] on an unsuccessful response from the server
188
+ def solr(validate: true)
189
+ resp = connection.get do |req|
190
+ req.url "#{object_path}/solr?validate=#{validate}"
191
+ end
192
+ raise_exception_based_on_response!(resp) unless resp.success?
193
+
194
+ JSON.parse(resp.body)
195
+ end
196
+
186
197
  private
187
198
 
188
199
  def parent_params
@@ -3,7 +3,7 @@
3
3
  module Dor
4
4
  module Services
5
5
  class Client
6
- VERSION = '15.37.0'
6
+ VERSION = '15.38.0'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dor-services-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 15.37.0
4
+ version: 15.38.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
8
8
  - Michael Giarlo
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-03-20 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -307,7 +307,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
307
307
  - !ruby/object:Gem::Version
308
308
  version: '0'
309
309
  requirements: []
310
- rubygems_version: 3.6.2
310
+ rubygems_version: 4.0.6
311
311
  specification_version: 4
312
312
  summary: A client for dor-services-app
313
313
  test_files: []