dor-workflow-client 3.22.0 → 3.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +35 -0
- data/README.md +1 -1
- data/dor-workflow-client.gemspec +2 -2
- data/lib/dor/workflow/client/version.rb +1 -1
- data/lib/dor/workflow/response/process.rb +4 -0
- data/lib/dor/workflow/response/workflow.rb +4 -0
- data/spec/models/response/process_spec.rb +4 -0
- data/spec/models/response/workflow_spec.rb +4 -0
- metadata +8 -8
- data/.travis.yml +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b6a0ed1dac951da79aabe808df201cd4064ef5e1699d803673e1675d4b9dc0f
|
4
|
+
data.tar.gz: 8ada5b31dda45a87efaad45a420a300fd907d376cbe85f52b93a099eb5859d27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47ad0a88123584d64c7324adc24d19c597475edb884510faca16ee4b2abb8c2f18ef6f1a70ca74008de4e9ce4b6aa2af6fe52f94e92febd72667c2d02ed25838
|
7
|
+
data.tar.gz: 4d19c76451e137c4a8c7a4cbc443115324f65b722ee747168b75d2898c278abfec3ee3ece4d7e0e81cafd154bea5cff5ec945d5b09061d1f7105ed791f0a960e
|
@@ -0,0 +1,35 @@
|
|
1
|
+
version: 2.1
|
2
|
+
|
3
|
+
jobs:
|
4
|
+
build:
|
5
|
+
docker:
|
6
|
+
- image: circleci/ruby:2.7.1
|
7
|
+
environment:
|
8
|
+
CC_TEST_REPORTER_ID: 3853bc688a88a4de1a5568eaa8163d20db8637fe988540a935aff028190cff6a
|
9
|
+
RAILS_ENV: test
|
10
|
+
steps:
|
11
|
+
- checkout
|
12
|
+
- run:
|
13
|
+
name: Install Bundler
|
14
|
+
command: gem install bundler
|
15
|
+
- run:
|
16
|
+
name: Which bundler?
|
17
|
+
command: bundle -v
|
18
|
+
- run:
|
19
|
+
name: Bundle Install
|
20
|
+
command: bundle check || bundle install
|
21
|
+
- run:
|
22
|
+
name: Lint using rubocop
|
23
|
+
command: bundle exec rubocop
|
24
|
+
- run:
|
25
|
+
name: Setup Code Climate test-reporter
|
26
|
+
command: |
|
27
|
+
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
28
|
+
chmod +x ./cc-test-reporter
|
29
|
+
./cc-test-reporter before-build
|
30
|
+
- run:
|
31
|
+
name: rspec
|
32
|
+
command: bundle exec rspec
|
33
|
+
- run:
|
34
|
+
name: upload test coverage report to Code Climate
|
35
|
+
command: ./cc-test-reporter after-build --coverage-input-type simplecov --exit-code $?
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
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
2
|
[![Test Coverage](https://api.codeclimate.com/v1/badges/fba77ff479c468f8510f/test_coverage)](https://codeclimate.com/github/sul-dlss/dor-services-client/test_coverage)
|
3
3
|
[![Maintainability](https://api.codeclimate.com/v1/badges/fba77ff479c468f8510f/maintainability)](https://codeclimate.com/github/sul-dlss/dor-services-client/maintainability)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/dor-workflow-client.svg)](https://badge.fury.io/rb/dor-workflow-client)
|
data/dor-workflow-client.gemspec
CHANGED
@@ -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)
|
@@ -27,7 +27,7 @@ Gem::Specification.new do |gem|
|
|
27
27
|
gem.add_development_dependency 'rake'
|
28
28
|
gem.add_development_dependency 'rspec', '~> 3.3'
|
29
29
|
gem.add_development_dependency 'rubocop', '~> 0.63.1'
|
30
|
-
gem.add_development_dependency 'simplecov'
|
30
|
+
gem.add_development_dependency 'simplecov', '~> 0.17.0' # CodeClimate cannot use SimpleCov >= 0.18.0 for generating test coverage
|
31
31
|
gem.add_development_dependency 'webmock'
|
32
32
|
gem.add_development_dependency 'yard'
|
33
33
|
end
|
@@ -5,6 +5,9 @@ module Dor
|
|
5
5
|
module Response
|
6
6
|
# Represents the status of an object doing a workflow process
|
7
7
|
class Process
|
8
|
+
extend Deprecation
|
9
|
+
self.deprecation_horizon = '4.x'
|
10
|
+
|
8
11
|
# @params [Workflow] parent
|
9
12
|
# @params [Hash] attributes
|
10
13
|
def initialize(parent:, **attributes)
|
@@ -49,6 +52,7 @@ module Dor
|
|
49
52
|
end
|
50
53
|
|
51
54
|
delegate :pid, :workflow_name, :repository, to: :parent
|
55
|
+
deprecation_deprecate :repository
|
52
56
|
|
53
57
|
private
|
54
58
|
|
@@ -5,6 +5,9 @@ module Dor
|
|
5
5
|
module Response
|
6
6
|
# The response from asking the server about a workflow for an item
|
7
7
|
class Workflow
|
8
|
+
extend Deprecation
|
9
|
+
self.deprecation_horizon = '4.x'
|
10
|
+
|
8
11
|
def initialize(xml:)
|
9
12
|
@xml = xml
|
10
13
|
end
|
@@ -20,6 +23,7 @@ module Dor
|
|
20
23
|
def repository
|
21
24
|
workflow['repository']
|
22
25
|
end
|
26
|
+
deprecation_deprecate :repository
|
23
27
|
|
24
28
|
# @param [Integer] version the version we are checking for.
|
25
29
|
def active_for?(version:)
|
@@ -32,6 +32,10 @@ RSpec.describe Dor::Workflow::Response::Workflow do
|
|
32
32
|
describe '#repository' do
|
33
33
|
subject { instance.repository }
|
34
34
|
|
35
|
+
before do
|
36
|
+
allow(Deprecation).to receive(:warn)
|
37
|
+
end
|
38
|
+
|
35
39
|
let(:xml) do
|
36
40
|
<<~XML
|
37
41
|
<workflow repository="dor" objectId="druid:mw971zk1113" id="assemblyWF">
|
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.
|
4
|
+
version: 3.23.0
|
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-
|
12
|
+
date: 2020-10-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -153,16 +153,16 @@ dependencies:
|
|
153
153
|
name: simplecov
|
154
154
|
requirement: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
|
-
- - "
|
156
|
+
- - "~>"
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version:
|
158
|
+
version: 0.17.0
|
159
159
|
type: :development
|
160
160
|
prerelease: false
|
161
161
|
version_requirements: !ruby/object:Gem::Requirement
|
162
162
|
requirements:
|
163
|
-
- - "
|
163
|
+
- - "~>"
|
164
164
|
- !ruby/object:Gem::Version
|
165
|
-
version:
|
165
|
+
version: 0.17.0
|
166
166
|
- !ruby/object:Gem::Dependency
|
167
167
|
name: webmock
|
168
168
|
requirement: !ruby/object:Gem::Requirement
|
@@ -198,12 +198,12 @@ executables: []
|
|
198
198
|
extensions: []
|
199
199
|
extra_rdoc_files: []
|
200
200
|
files:
|
201
|
+
- ".circleci/config.yml"
|
201
202
|
- ".github/pull_request_template.md"
|
202
203
|
- ".gitignore"
|
203
204
|
- ".rspec"
|
204
205
|
- ".rubocop.yml"
|
205
206
|
- ".rubocop_todo.yml"
|
206
|
-
- ".travis.yml"
|
207
207
|
- ".yardopts"
|
208
208
|
- Gemfile
|
209
209
|
- LICENSE.txt
|
@@ -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.1.2
|
260
260
|
signing_key:
|
261
261
|
specification_version: 4
|
262
262
|
summary: Provides convenience methods to work with the DOR Workflow Service
|
data/.travis.yml
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
cache: bundler
|
3
|
-
|
4
|
-
rvm:
|
5
|
-
- 2.5.3
|
6
|
-
|
7
|
-
env:
|
8
|
-
- "RAILS_VERSION=5.2.3"
|
9
|
-
- "RAILS_VERSION=6.0.0"
|
10
|
-
|
11
|
-
before_script:
|
12
|
-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
13
|
-
- chmod +x ./cc-test-reporter
|
14
|
-
- ./cc-test-reporter before-build
|
15
|
-
|
16
|
-
after_script:
|
17
|
-
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
18
|
-
|
19
|
-
notifications:
|
20
|
-
email: false
|