dor-services-client 3.6.0 → 3.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/dor/services/client/object.rb +7 -2
- data/lib/dor/services/client/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3579f137bb76a9db9abb8b701de338b7fd4d6190d2aa36337c51141d8611db6
|
4
|
+
data.tar.gz: 8096f0878f77f2c79e477ab4c34e7d8cd47ac1fffb1b17b2be887ee094447ea7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 044544aa4d1b55cbec9eb6ff17a3f92c3ee8e1b3326c0ab892bbfe143e20d6fb5e26b280a414028f7b79d945ce46f05b265370c949e42b1cda2afa0465963cf1
|
7
|
+
data.tar.gz: 3d5c76a3c79318e8c5eacb24f8d82a1ecc97df50513491637d1644c1f2ed73c83d187826e7af52c4f5f72fc7f34c11f82216fd7687d8933a8956b71ccaac40e2
|
data/README.md
CHANGED
@@ -73,7 +73,7 @@ background_jobs_client.show(job_id: 123)
|
|
73
73
|
object_client = Dor::Services::Client.object(object_identifier)
|
74
74
|
|
75
75
|
# Publish an object (push to PURL)
|
76
|
-
object_client.publish
|
76
|
+
object_client.publish(workflow: 'releaseWF')
|
77
77
|
|
78
78
|
# Shelve an object (push to Stacks)
|
79
79
|
object_client.shelve
|
@@ -67,10 +67,15 @@ module Dor
|
|
67
67
|
# Publish an object (send to PURL)
|
68
68
|
# @raise [NotFoundResponse] when the response is a 404 (object not found)
|
69
69
|
# @raise [UnexpectedResponse] when the response is not successful.
|
70
|
+
# @param [String] workflow ('accessionWF') which workflow to callback to.
|
70
71
|
# @return [boolean] true on success
|
71
|
-
def publish
|
72
|
+
def publish(workflow: nil)
|
73
|
+
unless workflow
|
74
|
+
workflow = 'accessionWF'
|
75
|
+
Deprecation.warn(self, 'calling publish without passing a workflow is deprecated and will be removed in the next major version')
|
76
|
+
end
|
72
77
|
resp = connection.post do |req|
|
73
|
-
req.url "#{object_path}/publish"
|
78
|
+
req.url "#{object_path}/publish?workflow=#{workflow}"
|
74
79
|
end
|
75
80
|
return resp.headers['Location'] if resp.success?
|
76
81
|
|
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: 3.
|
4
|
+
version: 3.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: 2019-
|
12
|
+
date: 2019-11-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -256,8 +256,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
256
256
|
- !ruby/object:Gem::Version
|
257
257
|
version: '0'
|
258
258
|
requirements: []
|
259
|
-
|
260
|
-
rubygems_version: 2.7.8
|
259
|
+
rubygems_version: 3.0.3
|
261
260
|
signing_key:
|
262
261
|
specification_version: 4
|
263
262
|
summary: A client for dor-services-app
|