dor-workflow-client 3.23.0 → 3.23.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -3
- data/dor-workflow-client.gemspec +1 -1
- data/lib/dor/workflow/client/status.rb +2 -2
- data/lib/dor/workflow/client/version.rb +1 -1
- data/spec/workflow/client/status_spec.rb +8 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2db7637402c0dd629a9d7ced145e20558b24717e56f7bc3fcd3adabbfca4d162
|
4
|
+
data.tar.gz: 7d4b3a6e7903ebb67a7786d1e10e7210020dee185674028507570e3ca271b796
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14374bf91330e5b7280984ffec6a9547731b8a65a9dbe251d2496ed6c94e732efdddfaeab342ae077658e26b4db24af0c3f7fc59ca8c77ddf7fb3143e6c26453
|
7
|
+
data.tar.gz: ded3fd3fb5f3cbd7a3a3accbfa010e96cfd30df3773c799176a5645aede13fc5cbdf8171445b1bf60805980292014dd83c4255ad62fe83fb9a0440c78c5b5338
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
[![CircleCI](https://circleci.com/gh/sul-dlss/dor-workflow-client.svg?style=svg)](https://circleci.com/gh/sul-dlss/dor-workflow-client)
|
2
|
-
[![Test Coverage](https://api.codeclimate.com/v1/badges/
|
3
|
-
[![Maintainability](https://api.codeclimate.com/v1/badges/
|
2
|
+
[![Test Coverage](https://api.codeclimate.com/v1/badges/ff9d01af29a7a357645c/test_coverage)](https://codeclimate.com/github/sul-dlss/dor-workflow-client/test_coverage)
|
3
|
+
[![Maintainability](https://api.codeclimate.com/v1/badges/ff9d01af29a7a357645c/maintainability)](https://codeclimate.com/github/sul-dlss/dor-workflow-client/maintainability)
|
4
|
+
|
4
5
|
[![Gem Version](https://badge.fury.io/rb/dor-workflow-client.svg)](https://badge.fury.io/rb/dor-workflow-client)
|
5
6
|
|
6
7
|
# dor-workflow-client gem
|
@@ -19,7 +20,7 @@ client = Dor::Workflow::Client.new(url: 'https://test-server.edu/workflow/')
|
|
19
20
|
Consumers of recent versions of the [dor-services](https://github.com/sul-dlss/dor-services) gem can access the configured `Dor::Workflow::Client` object via `Dor::Config`.
|
20
21
|
|
21
22
|
## API
|
22
|
-
[Rubydoc](https://www.rubydoc.info/github/sul-dlss/dor-workflow-client/
|
23
|
+
[Rubydoc](https://www.rubydoc.info/github/sul-dlss/dor-workflow-client/main)
|
23
24
|
|
24
25
|
### Example usage
|
25
26
|
Create a workflow
|
data/dor-workflow-client.gemspec
CHANGED
@@ -33,11 +33,11 @@ module Dor
|
|
33
33
|
}.freeze
|
34
34
|
|
35
35
|
# @param [String] druid the object identifier
|
36
|
-
# @param [String] version the version identifier
|
36
|
+
# @param [String|Integer] version the version identifier
|
37
37
|
# @param [LifecycleRoutes] lifecycle_routes the lifecycle client
|
38
38
|
def initialize(druid:, version:, lifecycle_routes:)
|
39
39
|
@druid = druid
|
40
|
-
@version = version
|
40
|
+
@version = version.to_s
|
41
41
|
@lifecycle_routes = lifecycle_routes
|
42
42
|
end
|
43
43
|
|
@@ -75,6 +75,14 @@ RSpec.describe Dor::Workflow::Client::Status do
|
|
75
75
|
expect(status).to eq('v2 Accessioned')
|
76
76
|
end
|
77
77
|
|
78
|
+
context 'when version is an integer' do
|
79
|
+
let(:version) { 2 }
|
80
|
+
|
81
|
+
it 'converts to a string' do
|
82
|
+
expect(status).to eq('v2 Accessioned')
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
78
86
|
context 'when there are no lifecycles for the current version, indicating malfunction in workflow' do
|
79
87
|
let(:version) { '3' }
|
80
88
|
|
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.23.
|
4
|
+
version: 3.23.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Willy Mene
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-03-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -256,7 +256,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
256
256
|
- !ruby/object:Gem::Version
|
257
257
|
version: '0'
|
258
258
|
requirements: []
|
259
|
-
rubygems_version: 3.
|
259
|
+
rubygems_version: 3.0.3
|
260
260
|
signing_key:
|
261
261
|
specification_version: 4
|
262
262
|
summary: Provides convenience methods to work with the DOR Workflow Service
|