dor-services-client 14.14.0 → 14.15.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: b17e776b7a8c068dd71595ca1d2e508c96b69700c87f8516f7247f4a0208f28a
4
- data.tar.gz: 70b426fa3ac52729feb726c8c63e5907ede88b255f8095c91acfbbb9d5a8a724
3
+ metadata.gz: f2b55c7474fab7b39f9c192e3effa26056d8523e8d319a5915b205d242ae4edf
4
+ data.tar.gz: f15fdecc7e97287f58a6e386a4b94f8ba466f5db6d95e5f763ef773852ded901
5
5
  SHA512:
6
- metadata.gz: de501280c3a367a9557f146ad44fe1c8a76dd408904ba6f866c3472722868b64ab650670fb9cffc6da6b06847ac723323d8436a72f77e0b27e17b4f8754ce8e8
7
- data.tar.gz: 3783ee7eead4fc35d9305e9b88482b10708c153cf64b5ad2a695567086be641ec7e0ed9592c55dfd0369a0fadfe6f034e88fa02e29d080a0cb898b4578444a6b
6
+ metadata.gz: 324c792ac506b0e4fdd0ff750c6348864bd116a0881dc02ebc657a0ca8ccceeed236c529a36cbf9bfdaedd0261363d5b69e9d5a9526fcfd3116ba29ad34486e1
7
+ data.tar.gz: 5aa5c984f0e3815bcb30b39b09292c9b7965113264e26c987d73cc0cbf3e8fe7e94906bb5d1395666da053d4bbde7ef48c3c8fd7611f41dd120e37438b008b1a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dor-services-client (14.14.0)
4
+ dor-services-client (14.15.0)
5
5
  activesupport (>= 4.2, < 8)
6
6
  cocina-models (~> 0.98.0)
7
7
  deprecation
@@ -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.0)
32
+ cocina-models (0.98.1)
33
33
  activesupport
34
34
  deprecation
35
35
  dry-struct (~> 1.0)
@@ -95,7 +95,7 @@ GEM
95
95
  jsonpath (1.1.5)
96
96
  multi_json
97
97
  language_server-protocol (3.17.0.3)
98
- minitest (5.24.0)
98
+ minitest (5.24.1)
99
99
  multi_json (1.15.0)
100
100
  mutex_m (0.2.0)
101
101
  net-http (0.4.1)
@@ -121,7 +121,7 @@ GEM
121
121
  rainbow (3.1.1)
122
122
  rake (13.2.1)
123
123
  regexp_parser (2.9.2)
124
- rexml (3.3.0)
124
+ rexml (3.3.1)
125
125
  strscan
126
126
  rspec (3.13.0)
127
127
  rspec-core (~> 3.13.0)
data/README.md CHANGED
@@ -132,6 +132,7 @@ object_client.version.close
132
132
  # Manage user versions
133
133
  object_client.user_version.inventory
134
134
  object_client.user_version.find(2)
135
+ object_client.user_version.solr(2)
135
136
  object_client.user_version.create(object_version: 3)
136
137
  object_client.user_version.update(user_version: Dor::Services::Client::UserVersion::Version.new(version: 3, userVersion: 3, withdrawn: true))
137
138
 
@@ -35,6 +35,17 @@ module Dor
35
35
  build_cocina_from_response(resp, validate: false)
36
36
  end
37
37
 
38
+ # @return [Hash] the solr document for the user version
39
+ # @raise [UnexpectedResponse] on an unsuccessful response from the server
40
+ def solr(version)
41
+ resp = connection.get do |req|
42
+ req.url "#{base_path}/#{version}/solr"
43
+ end
44
+ raise_exception_based_on_response!(resp) unless resp.success?
45
+
46
+ JSON.parse(resp.body)
47
+ end
48
+
38
49
  # Create a user version for an object
39
50
  #
40
51
  # @param [String] object_version the version of the object to create a user version for
@@ -3,7 +3,7 @@
3
3
  module Dor
4
4
  module Services
5
5
  class Client
6
- VERSION = '14.14.0'
6
+ VERSION = '14.15.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.14.0
4
+ version: 14.15.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-06-27 00:00:00.000000000 Z
12
+ date: 2024-07-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport