dor-workflow-service 2.11.0 → 2.12.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8f863086a378b50a1d61a7a2defaa0c33731683b53c7082108438725a7d7ec1
4
- data.tar.gz: b398505b2babc4b039678f3b17e06ccd120df459ec8ef38784994690fc0dbf19
3
+ metadata.gz: 2e6c5805e79584b2d589228b7aeb42594a4bc95574270780825c2895dad05ade
4
+ data.tar.gz: 7aca0e0086cdf447f8a04eec4ae74d12ef9bcaa7839b8553bc578447fdaf057d
5
5
  SHA512:
6
- metadata.gz: 3e0bbcea11e6b9ba2070ff50a47145f9cdc6a8e9b2d9b59d8da5961bcf7683c80767ad39928f426358ec7e627b402c1e89846c329988fda417ada8267223c21d
7
- data.tar.gz: 9b9006a691d3e89917442e9040bb1c3907c1789c472da4e399b9e5214fd46737455b28822fa2958e53f6c0c791b4947ec9549e04cce2b018ddd9a90ea149e1fa
6
+ metadata.gz: aac7c412e1f9514753cc5505206bb38f18887fb762507104407a7e60d0764946645800c87e0112d7ad66243fbfd60c0476df9d1cfc348537881c52fee02ae513
7
+ data.tar.gz: 249ce3b4527851fed63841e74def916ea7d5b04bbc49f368900b5c531a3ce6f5ea508df988ee1e8a1ba01efc21d53da43c4a8fe2916f431bcbdfd1b29e2ea798
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2019-04-03 11:51:29 -0500 using RuboCop version 0.63.1.
3
+ # on 2019-04-04 15:30:18 -0500 using RuboCop version 0.63.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -23,7 +23,7 @@ Metrics/AbcSize:
23
23
  # Offense count: 1
24
24
  # Configuration parameters: CountComments.
25
25
  Metrics/ClassLength:
26
- Max: 305
26
+ Max: 307
27
27
 
28
28
  # Offense count: 3
29
29
  # Configuration parameters: CountComments, ExcludedMethods.
@@ -177,7 +177,7 @@ module Dor
177
177
  # @param [String] workflow_name The name of the workflow
178
178
  # @return [Workflow::Response::Workflow]
179
179
  def workflow(repo: 'dor', pid:, workflow_name:)
180
- xml = get_workflow_xml(repo, pid, workflow_name)
180
+ xml = workflow_xml(repo, pid, workflow_name)
181
181
  Workflow::Response::Workflow.new(xml: xml)
182
182
  end
183
183
 
@@ -390,6 +390,8 @@ module Dor
390
390
  #
391
391
  # @return [Integer] Number of objects with this repository:workflow:step that have a status of 'error'
392
392
  def count_errored_for_workstep(workflow, step, repository = 'dor')
393
+ Deprecation.warn(self, 'count_errored_for_workstep is deprecated and will be removed in dor-workflow-service version 3. Use count_objects_in_step instead.')
394
+
393
395
  count_objects_in_step(workflow, step, 'error', repository)
394
396
  end
395
397
 
@@ -401,6 +403,8 @@ module Dor
401
403
  #
402
404
  # @return [Integer] Number of objects with this repository:workflow:step that have a status of 'queued'
403
405
  def count_queued_for_workstep(workflow, step, repository = 'dor')
406
+ Deprecation.warn(self, 'count_queued_for_workstep is deprecated and will be removed in dor-workflow-service version 3. Use count_objects_in_step instead.')
407
+
404
408
  count_objects_in_step(workflow, step, 'queued', repository)
405
409
  end
406
410
 
@@ -3,7 +3,7 @@
3
3
  module Dor
4
4
  module Workflow
5
5
  module Service
6
- VERSION = '2.11.0'
6
+ VERSION = '2.12.0'
7
7
  end
8
8
  end
9
9
  end
@@ -584,6 +584,7 @@ RSpec.describe Dor::WorkflowService do
584
584
 
585
585
  describe 'count_errored_for_workstep' do
586
586
  it 'counts how many steps are errored out' do
587
+ expect(Deprecation).to receive(:warn)
587
588
  expect(described_class.count_errored_for_workstep(@workflow, @step, @repository)).to eq(1)
588
589
  end
589
590
  end
@@ -609,6 +610,7 @@ RSpec.describe Dor::WorkflowService do
609
610
  end
610
611
 
611
612
  it 'counts how many steps are errored out' do
613
+ expect(Deprecation).to receive(:warn)
612
614
  expect(described_class.count_queued_for_workstep(@workflow, @step, @repository)).to eq(1)
613
615
  end
614
616
  end
@@ -724,7 +726,7 @@ RSpec.describe Dor::WorkflowService do
724
726
  XML
725
727
  end
726
728
  before do
727
- allow(described_class).to receive(:get_workflow_xml) { xml }
729
+ allow(described_class).to receive(:workflow_xml) { xml }
728
730
  end
729
731
 
730
732
  it 'it returns a workflow' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dor-workflow-service
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.0
4
+ version: 2.12.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: 2019-04-03 00:00:00.000000000 Z
12
+ date: 2019-04-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport