lyber-core 8.0.0 → 8.1.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 +4 -4
- data/lib/lyber_core/robot.rb +2 -2
- data/lib/lyber_core/version.rb +1 -1
- data/lib/lyber_core/workflow.rb +5 -17
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f820523246e847e8f5d2d8d48688c4ebc4b8b4ef0071aa675f304ff31c1f690
|
4
|
+
data.tar.gz: 61d464bd24aff39b8fc4faebbecdd0332efd5cda3290dec3eaf183b8359ad13e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e37303224b4c243f696f8cfaf8e54da38157b63a811fe87146314d7d170cd4eeb1e8a0ae52dba4dce61145c37c0eacd5babe035f6bca87364851b6b03b5dbdd7
|
7
|
+
data.tar.gz: c868dcb90c21a0a94368affc1daca60d889c04f46329e146cd0b32df8a93164cf6cb2dfb5c153385a9503906ab8e3b43a74d8f745d42a3ab04d6111144f8283f
|
data/lib/lyber_core/robot.rb
CHANGED
@@ -118,7 +118,7 @@ module LyberCore
|
|
118
118
|
@workflow ||= Workflow.new(object_client:, workflow_name:, process:)
|
119
119
|
end
|
120
120
|
|
121
|
-
def check_item_queued_or_retry?
|
121
|
+
def check_item_queued_or_retry? # rubocop:disable Metrics/AbcSize
|
122
122
|
return true unless check_queued_status
|
123
123
|
|
124
124
|
return true if /queued/i.match?(workflow.status)
|
@@ -126,7 +126,7 @@ module LyberCore
|
|
126
126
|
|
127
127
|
msg = "Item #{druid} is not queued for #{process} (#{workflow_name}), " \
|
128
128
|
"but has status of '#{workflow.status}'. Will skip processing"
|
129
|
-
Honeybadger.notify(msg)
|
129
|
+
Honeybadger.notify(msg, context: { workflow: workflow.workflow_response.xml })
|
130
130
|
logger.warn(msg)
|
131
131
|
false
|
132
132
|
end
|
data/lib/lyber_core/version.rb
CHANGED
data/lib/lyber_core/workflow.rb
CHANGED
@@ -11,22 +11,22 @@ module LyberCore
|
|
11
11
|
|
12
12
|
# @return [Dor::Services::Client::ObjectWorkflow] for druid/workflow/step on which this instance was initialized
|
13
13
|
def object_workflow
|
14
|
-
object_client.workflow(workflow_name)
|
14
|
+
@object_workflow ||= object_client.workflow(workflow_name)
|
15
15
|
end
|
16
16
|
|
17
17
|
# @return [Dor::Services::Client::Process] for druid/workflow/step on which this instance was initialized
|
18
18
|
def workflow_process
|
19
|
-
object_workflow.process(process)
|
19
|
+
@workflow_process ||= object_workflow.process(process)
|
20
20
|
end
|
21
21
|
|
22
22
|
# @return [Dor::Services::Response::Workflow] for druid/workflow/step on which this instance was initialized
|
23
23
|
def workflow_response
|
24
|
-
object_workflow.find
|
24
|
+
@workflow_response ||= object_workflow.find
|
25
25
|
end
|
26
26
|
|
27
27
|
# @return [Dor::Services::Response::Process] for druid/workflow/step on which this instance was initialized
|
28
28
|
def process_response
|
29
|
-
workflow_response.process_for_recent_version(name: process)
|
29
|
+
@process_response ||= workflow_response.process_for_recent_version(name: process)
|
30
30
|
end
|
31
31
|
|
32
32
|
def start!(note)
|
@@ -45,19 +45,7 @@ module LyberCore
|
|
45
45
|
workflow_process.update_error(error_msg:, error_text:)
|
46
46
|
end
|
47
47
|
|
48
|
-
|
49
|
-
def context
|
50
|
-
@context ||= process_response.context
|
51
|
-
end
|
52
|
-
|
53
|
-
def status
|
54
|
-
@status ||= workflow_process.status
|
55
|
-
end
|
56
|
-
|
57
|
-
# @return [String,nil]
|
58
|
-
def lane_id
|
59
|
-
@lane_id ||= process_response.lane_id
|
60
|
-
end
|
48
|
+
delegate :context, :status, :lane_id, to: :process_response
|
61
49
|
|
62
50
|
attr_reader :object_client, :workflow_name, :process
|
63
51
|
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: 8.
|
4
|
+
version: 8.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alpana Pande
|
@@ -15,7 +15,7 @@ authors:
|
|
15
15
|
- Peter Mangiafico
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
|
-
date:
|
18
|
+
date: 2025-10-03 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: activesupport
|
@@ -91,16 +91,16 @@ dependencies:
|
|
91
91
|
name: sidekiq
|
92
92
|
requirement: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '0'
|
97
97
|
type: :runtime
|
98
98
|
prerelease: false
|
99
99
|
version_requirements: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '0'
|
104
104
|
- !ruby/object:Gem::Dependency
|
105
105
|
name: zeitwerk
|
106
106
|
requirement: !ruby/object:Gem::Requirement
|
@@ -265,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
265
265
|
- !ruby/object:Gem::Version
|
266
266
|
version: 1.3.6
|
267
267
|
requirements: []
|
268
|
-
rubygems_version: 3.6.
|
268
|
+
rubygems_version: 3.6.2
|
269
269
|
specification_version: 4
|
270
270
|
summary: Core services used by the SUL Digital Library
|
271
271
|
test_files: []
|