dor-workflow-client 3.23.0 → 3.23.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: 7b6a0ed1dac951da79aabe808df201cd4064ef5e1699d803673e1675d4b9dc0f
4
- data.tar.gz: 8ada5b31dda45a87efaad45a420a300fd907d376cbe85f52b93a099eb5859d27
3
+ metadata.gz: 2db7637402c0dd629a9d7ced145e20558b24717e56f7bc3fcd3adabbfca4d162
4
+ data.tar.gz: 7d4b3a6e7903ebb67a7786d1e10e7210020dee185674028507570e3ca271b796
5
5
  SHA512:
6
- metadata.gz: 47ad0a88123584d64c7324adc24d19c597475edb884510faca16ee4b2abb8c2f18ef6f1a70ca74008de4e9ce4b6aa2af6fe52f94e92febd72667c2d02ed25838
7
- data.tar.gz: 4d19c76451e137c4a8c7a4cbc443115324f65b722ee747168b75d2898c278abfec3ee3ece4d7e0e81cafd154bea5cff5ec945d5b09061d1f7105ed791f0a960e
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/fba77ff479c468f8510f/test_coverage)](https://codeclimate.com/github/sul-dlss/dor-services-client/test_coverage)
3
- [![Maintainability](https://api.codeclimate.com/v1/badges/fba77ff479c468f8510f/maintainability)](https://codeclimate.com/github/sul-dlss/dor-services-client/maintainability)
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/master)
23
+ [Rubydoc](https://www.rubydoc.info/github/sul-dlss/dor-workflow-client/main)
23
24
 
24
25
  ### Example usage
25
26
  Create a workflow
@@ -1,4 +1,4 @@
1
- # frozen_string_literal: true
1
+ # frozen_string_literal: true
2
2
 
3
3
  lib = File.expand_path('lib', __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
@@ -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
 
@@ -3,7 +3,7 @@
3
3
  module Dor
4
4
  module Workflow
5
5
  class Client
6
- VERSION = '3.23.0'
6
+ VERSION = '3.23.1'
7
7
  end
8
8
  end
9
9
  end
@@ -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.0
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: 2020-10-08 00:00:00.000000000 Z
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.1.2
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