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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a552471ebb7a9502fef71faf54eac00a0b798c559c3c8f64d464b8451c0a65cd
4
- data.tar.gz: 6e2d889807437760359d6bce44e5eaa30e805eefd4a2be505bbf05b871a182d8
3
+ metadata.gz: ab2f881e234a336b06ace164c42eed78bb9ac3f286ef4dffcaad1f0085fa3abb
4
+ data.tar.gz: 218f7087e0df111b46d304ca42224a95b949d4b9d15b389427a6df2dd9232d8b
5
5
  SHA512:
6
- metadata.gz: 16f2629ff57c968d20a3500c1056ef1e67fbbd31c8b32c18e6ce8854e2123b8c00b42a0adf0834f85f96f3c6e4cf90f05381e477e83caf3015461419fffac8a4
7
- data.tar.gz: 0044a1dc227550e4d676724c814f6fc8334218392f4e8619522ea576b4b04434d2d09a952db8ac889148bb8055a96c97f73eb0f5ed7711f4fe5a02cb64cda2e1
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.6.1)
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.0)
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.1)
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.3-x86_64-darwin)
102
+ nokogiri (1.16.4-x86_64-darwin)
103
103
  racc (~> 1.4)
104
- nokogiri (1.16.3-x86_64-linux)
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.4)
116
+ public_suffix (5.0.5)
117
117
  racc (1.7.3)
118
118
  rainbow (3.1.1)
119
- rake (13.1.0)
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.62.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.28.0)
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.2)
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, :tag, :message, keyword_init: true)
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
 
@@ -3,7 +3,7 @@
3
3
  module Dor
4
4
  module Services
5
5
  class Client
6
- VERSION = '14.6.1'
6
+ VERSION = '14.7.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.6.1
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-03 00:00:00.000000000 Z
12
+ date: 2024-04-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport