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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a6235a3ac867ec3442859c157a359fe0b70456df20395331a1ef37c7a09bb64
4
- data.tar.gz: 9985e87113e78f47f359568320eb66b4c7fb5fe052972e6b9e1d87248bab3dc9
3
+ metadata.gz: bc18c830beb558a54a5c5186428bd29b46a7c7f2472caf2b4e901d9d7df30a4d
4
+ data.tar.gz: 1043076f43c92c4e3a17e06aebde5bfd08570fab7e5d1007ad897fc29dff8ea6
5
5
  SHA512:
6
- metadata.gz: e0cf47f9c530cbae06937a55c789c32e49c181ef4aefa69a11b30931dcf69bcfd379649f0f0e35695874644a0b7a84d516d419ced310df5949ce7877d025be5e
7
- data.tar.gz: ce6702bfd7041bd20139cf2e6468058b4d04fe3d87b81bbd3f125b462b7989696ecc2ee04ebbe2567d47d22d89d0a85b04977ac1daeadbfd625377edf7101a80
6
+ metadata.gz: e6e609d9f243f13b3ca1a420a175bbd2d65cbf7f4e40dcfb04689dad0cbfefcaba2e5923ddb0c62cc82e60f56399ab289a833d3f24cb9ff0e5de31c1d4655dad
7
+ data.tar.gz: cbf5ec1fb917e2de0886b2d456d829fc63c11fc2b7a23ea65ac5080f1bbcef859967a29f3f193d01b1524a8fabc7d64e02217e06f8ea894925afaf95f7fb1dde
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LyberCore
4
- VERSION = '8.0.0'
4
+ VERSION = '8.0.1'
5
5
  end
@@ -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
- # @return [Hash] any workflow context associated with the workflow
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.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: 1980-01-02 00:00:00.000000000 Z
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.6.9
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: []