lyber-core 8.0.0 → 8.0.1
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 +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc18c830beb558a54a5c5186428bd29b46a7c7f2472caf2b4e901d9d7df30a4d
|
4
|
+
data.tar.gz: 1043076f43c92c4e3a17e06aebde5bfd08570fab7e5d1007ad897fc29dff8ea6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6e609d9f243f13b3ca1a420a175bbd2d65cbf7f4e40dcfb04689dad0cbfefcaba2e5923ddb0c62cc82e60f56399ab289a833d3f24cb9ff0e5de31c1d4655dad
|
7
|
+
data.tar.gz: cbf5ec1fb917e2de0886b2d456d829fc63c11fc2b7a23ea65ac5080f1bbcef859967a29f3f193d01b1524a8fabc7d64e02217e06f8ea894925afaf95f7fb1dde
|
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.0.
|
4
|
+
version: 8.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alpana Pande
|
@@ -13,9 +13,10 @@ authors:
|
|
13
13
|
- Michael Klein
|
14
14
|
- Darren Weber
|
15
15
|
- Peter Mangiafico
|
16
|
+
autorequire:
|
16
17
|
bindir: bin
|
17
18
|
cert_chain: []
|
18
|
-
date:
|
19
|
+
date: 2025-07-21 00:00:00.000000000 Z
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: activesupport
|
@@ -251,6 +252,7 @@ licenses:
|
|
251
252
|
- Apache-2.0
|
252
253
|
metadata:
|
253
254
|
rubygems_mfa_required: 'true'
|
255
|
+
post_install_message:
|
254
256
|
rdoc_options: []
|
255
257
|
require_paths:
|
256
258
|
- lib
|
@@ -265,7 +267,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
265
267
|
- !ruby/object:Gem::Version
|
266
268
|
version: 1.3.6
|
267
269
|
requirements: []
|
268
|
-
rubygems_version: 3.
|
270
|
+
rubygems_version: 3.5.11
|
271
|
+
signing_key:
|
269
272
|
specification_version: 4
|
270
273
|
summary: Core services used by the SUL Digital Library
|
271
274
|
test_files: []
|