dor-services-client 14.6.1 → 14.7.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 +4 -4
- data/Gemfile.lock +10 -10
- data/README.md +3 -0
- data/lib/dor/services/client/object.rb +13 -0
- data/lib/dor/services/client/object_version.rb +1 -1
- data/lib/dor/services/client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ab2f881e234a336b06ace164c42eed78bb9ac3f286ef4dffcaad1f0085fa3abb
|
|
4
|
+
data.tar.gz: 218f7087e0df111b46d304ca42224a95b949d4b9d15b389427a6df2dd9232d8b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d66632338d084e408c97e126162662f33a040633e2f16dd60207d037a696605984baba73d191a170f95cc2b873677d930528f8eb1069047563c8bb68eefdaee6
|
|
7
|
+
data.tar.gz: af855efdb398086e72051b4497cea0e74004fd3c900a875c83d15b684db81a25ed500906b64ff3c5eaa3d2d6441b388bbdd02c638a3f710a68dd44471f57eccb
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
dor-services-client (14.
|
|
4
|
+
dor-services-client (14.7.0)
|
|
5
5
|
activesupport (>= 4.2, < 8)
|
|
6
6
|
cocina-models (~> 0.96.0)
|
|
7
7
|
deprecation
|
|
@@ -84,13 +84,13 @@ GEM
|
|
|
84
84
|
faraday-net_http (>= 2.0, < 3.2)
|
|
85
85
|
faraday-net_http (3.1.0)
|
|
86
86
|
net-http
|
|
87
|
-
faraday-retry (2.2.
|
|
87
|
+
faraday-retry (2.2.1)
|
|
88
88
|
faraday (~> 2.0)
|
|
89
89
|
hashdiff (1.1.0)
|
|
90
90
|
i18n (1.14.4)
|
|
91
91
|
concurrent-ruby (~> 1.0)
|
|
92
92
|
ice_nine (0.11.2)
|
|
93
|
-
json (2.7.
|
|
93
|
+
json (2.7.2)
|
|
94
94
|
jsonpath (1.1.5)
|
|
95
95
|
multi_json
|
|
96
96
|
language_server-protocol (3.17.0.3)
|
|
@@ -99,9 +99,9 @@ GEM
|
|
|
99
99
|
mutex_m (0.2.0)
|
|
100
100
|
net-http (0.4.1)
|
|
101
101
|
uri
|
|
102
|
-
nokogiri (1.16.
|
|
102
|
+
nokogiri (1.16.4-x86_64-darwin)
|
|
103
103
|
racc (~> 1.4)
|
|
104
|
-
nokogiri (1.16.
|
|
104
|
+
nokogiri (1.16.4-x86_64-linux)
|
|
105
105
|
racc (~> 1.4)
|
|
106
106
|
openapi3_parser (0.9.2)
|
|
107
107
|
commonmarker (~> 0.17)
|
|
@@ -113,10 +113,10 @@ GEM
|
|
|
113
113
|
racc
|
|
114
114
|
patience_diff (1.2.0)
|
|
115
115
|
optimist (~> 3.0)
|
|
116
|
-
public_suffix (5.0.
|
|
116
|
+
public_suffix (5.0.5)
|
|
117
117
|
racc (1.7.3)
|
|
118
118
|
rainbow (3.1.1)
|
|
119
|
-
rake (13.1
|
|
119
|
+
rake (13.2.1)
|
|
120
120
|
regexp_parser (2.9.0)
|
|
121
121
|
rexml (3.2.6)
|
|
122
122
|
rspec (3.13.0)
|
|
@@ -134,7 +134,7 @@ GEM
|
|
|
134
134
|
rspec-support (3.13.1)
|
|
135
135
|
rss (0.3.0)
|
|
136
136
|
rexml
|
|
137
|
-
rubocop (1.
|
|
137
|
+
rubocop (1.63.2)
|
|
138
138
|
json (~> 2.3)
|
|
139
139
|
language_server-protocol (>= 3.17.0)
|
|
140
140
|
parallel (~> 1.10)
|
|
@@ -151,12 +151,12 @@ GEM
|
|
|
151
151
|
rubocop (~> 1.41)
|
|
152
152
|
rubocop-factory_bot (2.25.1)
|
|
153
153
|
rubocop (~> 1.41)
|
|
154
|
-
rubocop-rspec (2.
|
|
154
|
+
rubocop-rspec (2.29.1)
|
|
155
155
|
rubocop (~> 1.40)
|
|
156
156
|
rubocop-capybara (~> 2.17)
|
|
157
157
|
rubocop-factory_bot (~> 2.22)
|
|
158
158
|
rubocop-rspec_rails (~> 2.28)
|
|
159
|
-
rubocop-rspec_rails (2.28.
|
|
159
|
+
rubocop-rspec_rails (2.28.3)
|
|
160
160
|
rubocop (~> 1.40)
|
|
161
161
|
ruby-progressbar (1.13.0)
|
|
162
162
|
simplecov (0.22.0)
|
data/README.md
CHANGED
|
@@ -161,6 +161,9 @@ object_client.workspace.create(source: object_path_string)
|
|
|
161
161
|
object_client.workspace.cleanup
|
|
162
162
|
object_client.workspace.reset
|
|
163
163
|
|
|
164
|
+
# Reindex
|
|
165
|
+
object_client.reindex
|
|
166
|
+
|
|
164
167
|
# Search for administrative tags:
|
|
165
168
|
Dor::Services::Client.administrative_tags.search(q: 'Project')
|
|
166
169
|
```
|
|
@@ -164,6 +164,19 @@ module Dor
|
|
|
164
164
|
raise_exception_based_on_response!(resp)
|
|
165
165
|
end
|
|
166
166
|
|
|
167
|
+
# Reindex the object in Solr.
|
|
168
|
+
# @raise [NotFoundResponse] when the response is a 404 (object not found)
|
|
169
|
+
# @raise [UnexpectedResponse] when the response is not successful.
|
|
170
|
+
# @return [boolean] true on success
|
|
171
|
+
def reindex
|
|
172
|
+
resp = connection.post do |req|
|
|
173
|
+
req.url "#{object_path}/reindex"
|
|
174
|
+
end
|
|
175
|
+
return true if resp.success?
|
|
176
|
+
|
|
177
|
+
raise_exception_based_on_response!(resp)
|
|
178
|
+
end
|
|
179
|
+
|
|
167
180
|
private
|
|
168
181
|
|
|
169
182
|
def parent_params
|
|
@@ -5,7 +5,7 @@ module Dor
|
|
|
5
5
|
class Client
|
|
6
6
|
# API calls that are about versions
|
|
7
7
|
class ObjectVersion < VersionedService
|
|
8
|
-
Version = Struct.new(:versionId, :
|
|
8
|
+
Version = Struct.new(:versionId, :message, keyword_init: true)
|
|
9
9
|
VersionStatus = Struct.new(:versionId, :open, :openable, :assembling, :accessioning, :closeable, keyword_init: true) do
|
|
10
10
|
alias_method :version, :versionId
|
|
11
11
|
|
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.
|
|
4
|
+
version: 14.7.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-04-
|
|
12
|
+
date: 2024-04-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|