dor-workflow-client 7.0.0 → 7.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aed52be59d8bdd07de43af3d484e04d7d0aefa98dd8a8813840401a1cd06978c
4
- data.tar.gz: d81de9c43e0bc80eb50b02048422a399f77dc2a450db8ecf5aec165cdcc18251
3
+ metadata.gz: bec7fdf12fdbda526eb0cea1d89fde04626a8589b09c1737b5d3bf085a57bcbc
4
+ data.tar.gz: f6b8e662f70cdd9977bdda365391a1fbe96eca213b8d0dfdf09c407ef635480a
5
5
  SHA512:
6
- metadata.gz: 672a4500292b005090dddf14ab56bdb8adfc981badaf2840e7c9439d84b996143aa047fbe1948efb9aa2c5b22c188ce02ee8929814fc9a4d072a6bd5aec4d6bd
7
- data.tar.gz: 2ede4f3978b2f7e27fc405146b9f106bddd7b9f787c4eb26295ee09fff2c1b7be02145da55f6f9ddae93de7da36c20709116114484da59e4adcc61f55bcc2fd7
6
+ metadata.gz: fea03cec5f39ed246decc53a87f14601df480443f0cdcb4f87dee0ffbaafb7e06d5bc85d39e7125c3ac17a9d0464f97c71f65205a2d0cd5d8c12d9bfee75494d
7
+ data.tar.gz: 5274a94c239f252ace6d324092a954c5f901522514323b11a0dd39fcc94073b8b81c38818a9e0dd350d80201c4f49412740eb45b3871bf87889ead10a1bf49f0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dor-workflow-client (7.0.0)
4
+ dor-workflow-client (7.0.1)
5
5
  activesupport (>= 3.2.1, < 8)
6
6
  deprecation (>= 0.99.0)
7
7
  faraday (~> 2.0)
@@ -3,7 +3,7 @@
3
3
  module Dor
4
4
  module Workflow
5
5
  class Client
6
- VERSION = '7.0.0'
6
+ VERSION = '7.0.1'
7
7
  end
8
8
  end
9
9
  end
@@ -21,6 +21,15 @@ module Dor
21
21
  JSON.parse(body)
22
22
  end
23
23
 
24
+ # Retrieves a list of workflow template name
25
+ #
26
+ # @return [Array<String>] the list of templates
27
+ #
28
+ def all
29
+ body = requestor.request 'workflow_templates'
30
+ JSON.parse(body)
31
+ end
32
+
24
33
  private
25
34
 
26
35
  attr_reader :requestor
@@ -18,4 +18,15 @@ RSpec.describe Dor::Workflow::Client::WorkflowTemplate do
18
18
  expect(mock_requestor).to have_received(:request).with('workflow_templates/accessionWF')
19
19
  end
20
20
  end
21
+
22
+ describe '#all' do
23
+ subject(:workflow_templates) { routes.all }
24
+
25
+ let(:data) { '["assemblyWF","registrationWF"]' }
26
+
27
+ it 'returns a list of templates' do
28
+ expect(workflow_templates).to eq %w[assemblyWF registrationWF]
29
+ expect(mock_requestor).to have_received(:request).with('workflow_templates')
30
+ end
31
+ end
21
32
  end
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: 7.0.0
4
+ version: 7.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Willy Mene