lyber-core 7.4.0 → 7.4.2

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: 953c42b0301b9a4466602a1df18cd42588ca10635655289011d1d9256aca0a20
4
- data.tar.gz: 9be4e067b5c41d9975cf25a44ca20d6b45498b6819faf91f942e94edeb8f7b6d
3
+ metadata.gz: ec486e6f8b80154f3af46f6a85c0cd902237cd2a5dba74a92885626ab86e14b5
4
+ data.tar.gz: 79cd8e7fe23eb7a96b7c7661c045898350314b9239fae5415340d5b1a462f109
5
5
  SHA512:
6
- metadata.gz: 793d188720a5c666990e4b91aea1f9b0e9ff238ef78c13da30369354c18ff57ce2610ea5b523739806aff75d47dd65e6f7d20c42678a1bf9d0855a80b8af08f2
7
- data.tar.gz: 001e1d5f8f2ef5506ae773a169f63159d59a03eb9891c2321feca941a25db3d7915d46d51a0cd0de76f431ffa67d0b8af869b93d1428a8d5d74ce3af7df912bf
6
+ metadata.gz: 50e8533b28a2d02ab3e445cd6891150c77da736a20fb572989696989fd5214416ef24cd4d90966331376900d325f22843081b11528a91ddfbdd7e3a826fd0e7f
7
+ data.tar.gz: 461f29e4eb548881f0460f37d580de9b5c5c041bfdf516475625b9d719b58af7d0a476519ae36bf83fc5e62ca9f0c01f0506d8152b31b9b3f435e4a71c8c862f
@@ -8,12 +8,14 @@ module LyberCore
8
8
  sidekiq_options retry: 0
9
9
 
10
10
  attr_reader :workflow_name, :process, :druid
11
+ attr_accessor :check_queued_status
11
12
 
12
13
  delegate :lane_id, to: :workflow
13
14
 
14
- def initialize(workflow_name, process)
15
+ def initialize(workflow_name, process, check_queued_status: true)
15
16
  @workflow_name = workflow_name
16
17
  @process = process
18
+ @check_queued_status = check_queued_status
17
19
  end
18
20
 
19
21
  def workflow_service
@@ -108,6 +110,8 @@ module LyberCore
108
110
  end
109
111
 
110
112
  def check_item_queued?
113
+ return true unless check_queued_status
114
+
111
115
  return true if /queued/i.match?(workflow.status)
112
116
 
113
117
  msg = "Item #{druid} is not queued for #{process} (#{workflow_name}), " \
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LyberCore
4
- VERSION = '7.4.0'
4
+ VERSION = '7.4.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lyber-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.4.0
4
+ version: 7.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alpana Pande
@@ -16,7 +16,7 @@ authors:
16
16
  autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
- date: 2024-01-10 00:00:00.000000000 Z
19
+ date: 2024-01-31 00:00:00.000000000 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: activesupport
@@ -64,16 +64,16 @@ dependencies:
64
64
  name: dor-workflow-client
65
65
  requirement: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - "~>"
67
+ - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: '5.0'
69
+ version: '0'
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - "~>"
74
+ - - ">="
75
75
  - !ruby/object:Gem::Version
76
- version: '5.0'
76
+ version: '0'
77
77
  - !ruby/object:Gem::Dependency
78
78
  name: druid-tools
79
79
  requirement: !ruby/object:Gem::Requirement
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  - !ruby/object:Gem::Version
240
240
  version: 1.3.6
241
241
  requirements: []
242
- rubygems_version: 3.3.7
242
+ rubygems_version: 3.5.5
243
243
  signing_key:
244
244
  specification_version: 4
245
245
  summary: Core services used by the SUL Digital Library