dor-workflow-client 7.1.0 → 7.2.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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/dor/workflow/client/status.rb +13 -15
- data/lib/dor/workflow/client/version.rb +1 -1
- data/spec/dor/workflow/client/status_spec.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29157476de970bf333e7ca643d49b79ef4e03cf0bf9e18aab8277767492aab3f
|
4
|
+
data.tar.gz: c25c23a411be47575be4c3d91e912c4d5b48b698423d302d8263a7ca0f1170f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32b74f669d2ec51717389c34e6ab113f1271ba05b84f3a9ac5a2e5e95da562ada8d2e7cb85ed78a8d4c80e14862e7658b15bf18b9933f0be4223933d80dcc0c2
|
7
|
+
data.tar.gz: af1f2bbbb802ebd84ccb239ea62e29b8bfdfb3a0947d0729a9e16caea8594b9bc224750085674b28c7448ff47f4fd8525830b8627ad5dab2f31f0c861d8dafcd
|
data/Gemfile.lock
CHANGED
@@ -10,26 +10,24 @@ module Dor
|
|
10
10
|
0 => 'Unknown Status', # if there are no milestones for the current version, someone likely messed up the versioning process.
|
11
11
|
1 => 'Registered',
|
12
12
|
2 => 'In accessioning',
|
13
|
-
3 => 'In accessioning (
|
14
|
-
4 => 'In accessioning (
|
15
|
-
5 => '
|
16
|
-
6 => 'Accessioned',
|
17
|
-
7 => 'Accessioned (indexed)',
|
18
|
-
8 => '
|
19
|
-
9 => 'Opened'
|
13
|
+
3 => 'In accessioning (published)',
|
14
|
+
4 => 'In accessioning (published, deposited)',
|
15
|
+
5 => 'Accessioned',
|
16
|
+
6 => 'Accessioned (indexed)',
|
17
|
+
7 => 'Accessioned (indexed, ingested)',
|
18
|
+
8 => 'Opened'
|
20
19
|
}.freeze
|
21
20
|
|
22
21
|
# milestones from accessioning and the order they happen in
|
23
22
|
STEPS = {
|
24
23
|
'registered' => 1,
|
25
24
|
'submitted' => 2,
|
26
|
-
'
|
27
|
-
'
|
28
|
-
'
|
29
|
-
'
|
30
|
-
'
|
31
|
-
'
|
32
|
-
'opened' => 9
|
25
|
+
'published' => 3,
|
26
|
+
'deposited' => 4,
|
27
|
+
'accessioned' => 5,
|
28
|
+
'indexed' => 6,
|
29
|
+
'shelved' => 7,
|
30
|
+
'opened' => 8
|
33
31
|
}.freeze
|
34
32
|
|
35
33
|
attr_reader :status_code
|
@@ -78,7 +76,7 @@ module Dor
|
|
78
76
|
end
|
79
77
|
|
80
78
|
# @return [String] text translation of the status code, minus any trailing parenthetical explanation
|
81
|
-
# e.g. '
|
79
|
+
# e.g. 'Accessioned (indexed)' and 'Accessioned (indexed, ingested)', both return 'Accessioned'
|
82
80
|
def simplified_status_code(display)
|
83
81
|
display.gsub(/\(.*\)$/, '').strip
|
84
82
|
end
|
@@ -32,7 +32,7 @@ RSpec.describe Dor::Workflow::Client::Status do
|
|
32
32
|
let(:version) { '4' }
|
33
33
|
|
34
34
|
it 'generates a status string' do
|
35
|
-
expect(status).to eq('v4 In accessioning (
|
35
|
+
expect(status).to eq('v4 In accessioning (published)')
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
@@ -47,7 +47,7 @@ RSpec.describe Dor::Workflow::Client::Status do
|
|
47
47
|
let(:version) { '3' }
|
48
48
|
|
49
49
|
it 'generates a status string' do
|
50
|
-
expect(status).to eq('v3 In accessioning (
|
50
|
+
expect(status).to eq('v3 In accessioning (published)')
|
51
51
|
end
|
52
52
|
end
|
53
53
|
end
|
@@ -177,7 +177,7 @@ RSpec.describe Dor::Workflow::Client::Status do
|
|
177
177
|
end
|
178
178
|
|
179
179
|
it 'has the correct status of deposited (v2) object' do
|
180
|
-
expect(status).to eq('v2 In accessioning (
|
180
|
+
expect(status).to eq('v2 In accessioning (published, deposited) 2013-10-01 07:10PM')
|
181
181
|
end
|
182
182
|
end
|
183
183
|
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.
|
4
|
+
version: 7.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Willy Mene
|
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
168
|
- !ruby/object:Gem::Version
|
169
169
|
version: '0'
|
170
170
|
requirements: []
|
171
|
-
rubygems_version: 3.
|
171
|
+
rubygems_version: 3.4.10
|
172
172
|
signing_key:
|
173
173
|
specification_version: 4
|
174
174
|
summary: Provides convenience methods to work with the DOR Workflow Service
|