lyber-core 7.4.1 → 7.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lyber_core/robot.rb +5 -1
- data/lib/lyber_core/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec486e6f8b80154f3af46f6a85c0cd902237cd2a5dba74a92885626ab86e14b5
|
4
|
+
data.tar.gz: 79cd8e7fe23eb7a96b7c7661c045898350314b9239fae5415340d5b1a462f109
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50e8533b28a2d02ab3e445cd6891150c77da736a20fb572989696989fd5214416ef24cd4d90966331376900d325f22843081b11528a91ddfbdd7e3a826fd0e7f
|
7
|
+
data.tar.gz: 461f29e4eb548881f0460f37d580de9b5c5c041bfdf516475625b9d719b58af7d0a476519ae36bf83fc5e62ca9f0c01f0506d8152b31b9b3f435e4a71c8c862f
|
data/lib/lyber_core/robot.rb
CHANGED
@@ -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}), " \
|
data/lib/lyber_core/version.rb
CHANGED
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.
|
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-
|
19
|
+
date: 2024-01-31 00:00:00.000000000 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: activesupport
|
@@ -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.
|
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
|