dor-workflow-client 3.11.0 → 3.11.1

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: f99d2c878711b586b19b4493e6bfdfb97ccaa2d4633937aadf12527c275129be
4
- data.tar.gz: 69101e12eb0cef2ee37e46983a7ca762e4d598f2794fcbc00923b0c4c07b30a7
3
+ metadata.gz: 9befc325f9a9f7f39fb51bfe1ec663ac1e47f4b873a8d86853849ab71842b14d
4
+ data.tar.gz: 57cdb8cc8896292bf406298bcfd779cca36cc68fdcdc5d5c352f2a8b63590b58
5
5
  SHA512:
6
- metadata.gz: 332dc12278f377747eaabeeacb2c728420c268e6664e6760b314353d38fb6e1443cfa515caee3c8c1df49209d514d526253345fd9bbd1a44d4f449c601c7782d
7
- data.tar.gz: b6c26f3c28452ab4b566ec1ee0d60531a6776a215a71d1859695fe615c9b45dc9e5640edf2d158f010cb42c8d4ddcaa48edee0e826663a7e3cfe8768577660a7
6
+ metadata.gz: 5130e4c0418579681766938f1c53ddeba5ea84ef8aec72e4f1b87877d4120ecc718bd1b8e64c90f7eb515e0383080d73de4eecd6ffdbc6809ab459f2c1136f3b
7
+ data.tar.gz: dc7b9d86a50b2dc1bc2f7e706294c212df2e3e1c03c9693ea91d0ce4fe419354b8c8cb05d45716752e9d0ce98fe204351de64ab3b8ca3112d3e60e67943acfa7
@@ -3,7 +3,7 @@
3
3
  module Dor
4
4
  module Workflow
5
5
  class Client
6
- VERSION = '3.11.0'
6
+ VERSION = '3.11.1'
7
7
  end
8
8
  end
9
9
  end
@@ -153,6 +153,7 @@ module Dor
153
153
  # @param [String] druid The id of the object
154
154
  # @param [String] workflow The name of the workflow
155
155
  # @return [String] XML of the workflow
156
+ # rubocop:disable Metrics/MethodLength
156
157
  def workflow_xml(*args)
157
158
  case args.length
158
159
  when 3
@@ -166,9 +167,11 @@ module Dor
166
167
  workflow = opts[:workflow]
167
168
  end
168
169
  raise ArgumentError, 'missing workflow' unless workflow
170
+ return requestor.request "#{repo}/objects/#{druid}/workflows/#{workflow}" if repo
169
171
 
170
- requestor.request "#{repo}/objects/#{druid}/workflows/#{workflow}"
172
+ requestor.request "objects/#{druid}/workflows/#{workflow}"
171
173
  end
174
+ # rubocop:enable Metrics/MethodLength
172
175
 
173
176
  # Updates the status of one step in a workflow to error.
174
177
  # Returns true on success. Caller must handle any exceptions
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dor-workflow-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.11.0
4
+ version: 3.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Willy Mene