dor-services-client 3.6.0 → 3.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: e2d62ed8726e31d71908dd15fdf8f3921cd1c60004f35ffa6904dc5e7483503b
4
- data.tar.gz: 79e3ad53f98986817f63dcaaa78abc41775cbdfdd0ac938ac5c46383a9d8ba29
3
+ metadata.gz: a3579f137bb76a9db9abb8b701de338b7fd4d6190d2aa36337c51141d8611db6
4
+ data.tar.gz: 8096f0878f77f2c79e477ab4c34e7d8cd47ac1fffb1b17b2be887ee094447ea7
5
5
  SHA512:
6
- metadata.gz: 7a4347ee57212280a53a7b9160ec0093ac3174e183e911b3afda52be6bc9840530b0f09427bfa59723fa9a952b84a32fcaf6489f54ddf1e86a1334ba451ea8e4
7
- data.tar.gz: eb336cffbd79e45fe420b0dff38a580bbbfc7ab18a716480f3fd2e079def6269fd25f5484ab1f88c56ea649eea973627b67f7c62b871966a600222dcd3cd756d
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
 
@@ -3,7 +3,7 @@
3
3
  module Dor
4
4
  module Services
5
5
  class Client
6
- VERSION = '3.6.0'
6
+ VERSION = '3.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: 3.6.0
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-10-31 00:00:00.000000000 Z
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
- rubyforge_project:
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