dor-workflow-client 7.1.0 → 7.2.0

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: 2691ff10a4a127beadce86389243d3bc13db82ef745a53bf030c50ea85d75f40
4
- data.tar.gz: e5872d67e32db69fc53cdf843f394be3f384c8fa5f4f0cd931cc9a04286ae16e
3
+ metadata.gz: 29157476de970bf333e7ca643d49b79ef4e03cf0bf9e18aab8277767492aab3f
4
+ data.tar.gz: c25c23a411be47575be4c3d91e912c4d5b48b698423d302d8263a7ca0f1170f7
5
5
  SHA512:
6
- metadata.gz: 1ac0df9fb64bc20d641cdc58874fab21b00dee008075d71b5105834495ebc9d191b21196ab6dfe7a72e891ce1761f8679bd41bbce76846820f8ff973f50884a9
7
- data.tar.gz: 1209cbb67b48e24bdb48bdffb8976c8048c5465b12e2468ea42eb91b6e475a7dc3616e8805727a94e155e266d9adf48eccbac7441788681e8a84cc112fc476ad
6
+ metadata.gz: 32b74f669d2ec51717389c34e6ab113f1271ba05b84f3a9ac5a2e5e95da562ada8d2e7cb85ed78a8d4c80e14862e7658b15bf18b9933f0be4223933d80dcc0c2
7
+ data.tar.gz: af1f2bbbb802ebd84ccb239ea62e29b8bfdfb3a0947d0729a9e16caea8594b9bc224750085674b28c7448ff47f4fd8525830b8627ad5dab2f31f0c861d8dafcd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dor-workflow-client (7.1.0)
4
+ dor-workflow-client (7.2.0)
5
5
  activesupport (>= 3.2.1, < 8)
6
6
  deprecation (>= 0.99.0)
7
7
  faraday (~> 2.0)
@@ -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 (described)',
14
- 4 => 'In accessioning (described, published)',
15
- 5 => 'In accessioning (described, published, deposited)',
16
- 6 => 'Accessioned',
17
- 7 => 'Accessioned (indexed)',
18
- 8 => 'Accessioned (indexed, ingested)',
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
- 'described' => 3,
27
- 'published' => 4,
28
- 'deposited' => 5,
29
- 'accessioned' => 6,
30
- 'indexed' => 7,
31
- 'shelved' => 8,
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. 'In accessioning (described)' and 'In accessioning (described, published)' both return 'In accessioning'
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
@@ -3,7 +3,7 @@
3
3
  module Dor
4
4
  module Workflow
5
5
  class Client
6
- VERSION = '7.1.0'
6
+ VERSION = '7.2.0'
7
7
  end
8
8
  end
9
9
  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 (described, published)')
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 (described, published)')
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 (described, published, deposited) 2013-10-01 07:10PM')
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.1.0
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.5.7
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