dor-services-client 14.19.0 → 14.21.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4136d57baaf81fc1d27cc97a9d9fca6dae65a9dc5e736fb73c33b83b79224ee2
4
- data.tar.gz: 66cb019012bff4ff0a2b9a1c5595c1306055a899de81851f076654027d137e07
3
+ metadata.gz: 3ff6813b9be520819736afe92755b1d8cc43588fad5f6f1af004cad685c57292
4
+ data.tar.gz: 6d2c7eb5cb09746fb7d523a3dfedf6a98f3735d35da9c91b619c3893ddf04cf2
5
5
  SHA512:
6
- metadata.gz: 25fa723dfa2453e4976b6059c3e3b8f2b9c8d0e6a3ba3c60332c87d04a334c3ed7956d39902001e5fad8acb847a41ac55d9b60adcc84410690c9089939072c27
7
- data.tar.gz: 48036d3c29fd7029b54d4670f92542f4fbf58d357e78a5ec21c2c6aa5f84a34387e3f2583eec096768727c3eb726c93e70065131c2b6c6f6c45e48a1979e6766
6
+ metadata.gz: 6ad3758cdc34002e137d7d6e7702f9b639e9b56177d0ca94dc55893a7607a5ca4a20cb524018148de76a1b249a608a3a1482d5e24d7c0d30a58e0ede2df5a398
7
+ data.tar.gz: 16342d7ae5dbaa1138a9127cd497e43e45f6f6c78d79e1bb76d5db2b1ab18160ca5d7e608ad0d1c7ba312cc37c2f897cb3bf4b5bd8755e7c540b1fd53a7c8b8b
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dor-services-client (14.19.0)
4
+ dor-services-client (14.21.0)
5
5
  activesupport (>= 4.2, < 8)
6
- cocina-models (~> 0.98.0)
6
+ cocina-models (~> 0.99.0)
7
7
  deprecation
8
8
  faraday (~> 2.0)
9
9
  faraday-retry
@@ -29,7 +29,7 @@ GEM
29
29
  base64 (0.2.0)
30
30
  bigdecimal (3.1.8)
31
31
  byebug (11.1.3)
32
- cocina-models (0.98.1)
32
+ cocina-models (0.99.0)
33
33
  activesupport
34
34
  deprecation
35
35
  dry-struct (~> 1.0)
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.required_ruby_version = '>= 3.0', '< 4'
26
26
 
27
27
  spec.add_dependency 'activesupport', '>= 4.2', '< 8'
28
- spec.add_dependency 'cocina-models', '~> 0.98.0'
28
+ spec.add_dependency 'cocina-models', '~> 0.99.0'
29
29
  spec.add_dependency 'deprecation', '>= 0'
30
30
  spec.add_dependency 'faraday', '~> 2.0'
31
31
  spec.add_dependency 'faraday-retry'
@@ -152,6 +152,17 @@ module Dor
152
152
  VersionStatus.new(JSON.parse(resp.body).symbolize_keys!)
153
153
  end
154
154
 
155
+ # @return [Hash] the solr document for the user version
156
+ # @raise [UnexpectedResponse] on an unsuccessful response from the server
157
+ def solr(version)
158
+ resp = connection.get do |req|
159
+ req.url "#{base_path}/#{version}/solr"
160
+ end
161
+ raise_exception_based_on_response!(resp) unless resp.success?
162
+
163
+ JSON.parse(resp.body)
164
+ end
165
+
155
166
  private
156
167
 
157
168
  attr_reader :object_identifier
@@ -3,7 +3,7 @@
3
3
  module Dor
4
4
  module Services
5
5
  class Client
6
- VERSION = '14.19.0'
6
+ VERSION = '14.21.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: 14.19.0
4
+ version: 14.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-08-01 00:00:00.000000000 Z
12
+ date: 2024-08-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -37,14 +37,14 @@ dependencies:
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.98.0
40
+ version: 0.99.0
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.98.0
47
+ version: 0.99.0
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: deprecation
50
50
  requirement: !ruby/object:Gem::Requirement