lyber-core 7.6.0 → 8.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9ed0c812c1f67354df3b5a866533d133505b97a009fd564a28bd7b66fda7e4f
4
- data.tar.gz: 2fd1a9458a2cb649c28ec0b9c7fe3f32486aa9ad55212be9dbd470fd06096f8c
3
+ metadata.gz: 3a6235a3ac867ec3442859c157a359fe0b70456df20395331a1ef37c7a09bb64
4
+ data.tar.gz: 9985e87113e78f47f359568320eb66b4c7fb5fe052972e6b9e1d87248bab3dc9
5
5
  SHA512:
6
- metadata.gz: a18f87bf3bdd09a609698b64e27f3e1093d90c0f8d1bb81ae94a4576002c0a14cc669c606c841a32061796a309610c0242f07173c58c50518565477c9af2959d
7
- data.tar.gz: 10e08bd6f4804d7caa15fdf24adbc2fe73b6752f626458bebaeb42a5c2258e3205cf6a2038e2b6ffaaafd43c93f10cd1ee2af094f139785573d881d9a70c7c7e
6
+ metadata.gz: e0cf47f9c530cbae06937a55c789c32e49c181ef4aefa69a11b30931dcf69bcfd379649f0f0e35695874644a0b7a84d516d419ced310df5949ce7877d025be5e
7
+ data.tar.gz: ce6702bfd7041bd20139cf2e6468058b4d04fe3d87b81bbd3f125b462b7989696ecc2ee04ebbe2567d47d22d89d0a85b04977ac1daeadbfd625377edf7101a80
data/LICENSE CHANGED
@@ -1,20 +1,174 @@
1
- Copyright (c) 2014 Stanford University Library
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
data/README.md CHANGED
@@ -1,6 +1,5 @@
1
1
  [![CircleCI](https://circleci.com/gh/sul-dlss/lyber-core/tree/main.svg?style=svg)](https://circleci.com/gh/sul-dlss/lyber-core/tree/main)
2
- [![Test Coverage](https://api.codeclimate.com/v1/badges/472f67659e513e3d8ffa/test_coverage)](https://codeclimate.com/github/sul-dlss/lyber-core/test_coverage)
3
- [![Maintainability](https://api.codeclimate.com/v1/badges/472f67659e513e3d8ffa/maintainability)](https://codeclimate.com/github/sul-dlss/lyber-core/maintainability)
2
+ [![codecov](https://codecov.io/github/sul-dlss/lyber-core/graph/badge.svg?token=FxCjczsxpG)](https://codecov.io/github/sul-dlss/lyber-core)
4
3
  [![Gem Version](https://badge.fury.io/rb/lyber-core.svg)](https://badge.fury.io/rb/lyber-core)
5
4
 
6
5
  # lyber_core
@@ -26,9 +25,7 @@ module Robots
26
25
  def perform_work
27
26
  cocina_object.shelve
28
27
  end
29
-
30
28
  end
31
-
32
29
  end
33
30
  end
34
31
  end
@@ -59,9 +56,27 @@ module Robots
59
56
  # return LyberCore::ReturnState.new(status: 'skipped', note: 'some custom note to pass back to workflow') # set the final state to skipped with a custom note
60
57
  end
61
58
  end
62
-
63
59
  end
60
+ end
61
+ end
62
+ end
63
+ ```
64
+
65
+ By default, a robot will not retry. To enable retries for specific errors:
66
+ ```ruby
67
+ module Robots
68
+ module DorRepo
69
+ module Accession
70
+
71
+ class Shelve < LyberCore::Robot
72
+ def initialize
73
+ super('accessionWF', 'shelve', retriable_exceptions: [Dor::Services::Client::Error])
74
+ end
64
75
 
76
+ def perform_work
77
+ cocina_object.shelve
78
+ end
79
+ end
65
80
  end
66
81
  end
67
82
  end
@@ -123,4 +138,4 @@ Robots can be invoked with:
123
138
  ```
124
139
  test_perform(robot, druid)
125
140
  ```
126
- to avoid the workflow updates in `perform()`.
141
+ to avoid the workflow updates in `perform()`.
@@ -3,23 +3,36 @@
3
3
  module LyberCore
4
4
  # Base class for all robots.
5
5
  # Subclasses should implement the #perform_work method.
6
+ # To enable retries provide the retriable exceptions in the initializer.
6
7
  class Robot
7
8
  include Sidekiq::Job
8
- sidekiq_options retry: 0
9
+ # Setting sidekiq_options here won't work.
10
+ # Instead pass options when enqueueing the job with Sidekiq::Client.push. (Currently in Workflow's QueueService.)
11
+
12
+ sidekiq_retries_exhausted do |job, ex|
13
+ # When all the retries are exhausted, update the workflow to error.
14
+ robot = job['class'].constantize.new
15
+ druid = job['args'].first
16
+ workflow = Workflow.new(object_client: Dor::Services::Client.object(druid),
17
+ workflow_name: robot.workflow_name,
18
+ process: robot.process)
19
+ workflow.error!(ex.message, Socket.gethostname)
20
+ end
9
21
 
10
- attr_reader :workflow_name, :process, :druid
22
+ attr_reader :workflow_name, :process, :druid, :retriable_exceptions
11
23
  attr_accessor :check_queued_status
12
24
 
13
- delegate :lane_id, to: :workflow
25
+ # These methods are delegated to the workflow ivar as a convenient way for child classes to interact
26
+ # with the workflow service (to e.g. to create workflows, update status, set error status, etc). See
27
+ # dor-services-client readme and code (or robot subclass implementations) for suggestions on specific
28
+ # usages.
29
+ delegate :lane_id, :object_workflow, :workflow_process, :workflow_response, :process_response, to: :workflow
14
30
 
15
- def initialize(workflow_name, process, check_queued_status: true)
31
+ def initialize(workflow_name, process, check_queued_status: true, retriable_exceptions: [])
16
32
  @workflow_name = workflow_name
17
33
  @process = process
18
34
  @check_queued_status = check_queued_status
19
- end
20
-
21
- def workflow_service
22
- @workflow_service ||= WorkflowClientFactory.build(logger:)
35
+ @retriable_exceptions = retriable_exceptions
23
36
  end
24
37
 
25
38
  def object_client
@@ -43,7 +56,7 @@ module LyberCore
43
56
  Honeybadger.context(druid:, process:, workflow_name:)
44
57
 
45
58
  logger.info "#{druid} processing #{process} (#{workflow_name})"
46
- return unless check_item_queued?
59
+ return unless check_item_queued_or_retry?
47
60
 
48
61
  # this is the default note to pass back to workflow service,
49
62
  # but it can be overriden by a robot that uses the Robots::ReturnState
@@ -73,8 +86,13 @@ module LyberCore
73
86
  workflow.complete!(workflow_state, elapsed, note) unless workflow_state == 'noop'
74
87
 
75
88
  logger.info "Finished #{druid} in #{format('%0.4f', elapsed)}s"
89
+ rescue *retriable_exceptions => e
90
+ handle_error(e)
91
+ workflow.retrying!
92
+ raise
76
93
  rescue StandardError => e
77
94
  handle_error(e)
95
+ workflow.error!(e.message, Socket.gethostname)
78
96
  end
79
97
  # rubocop:enable Metrics/AbcSize
80
98
  # rubocop:enable Metrics/MethodLength
@@ -91,28 +109,20 @@ module LyberCore
91
109
 
92
110
  private
93
111
 
94
- # rubocop:disable Metrics/AbcSize
95
112
  def handle_error(error)
96
113
  Honeybadger.notify(error)
97
114
  logger.error "#{error.message}\n#{error.backtrace.join("\n")}"
98
- workflow.error!(error.message, Socket.gethostname)
99
- rescue StandardError => e
100
- logger.error "Cannot set #{druid} to status='error'\n#{e.message}\n#{e.backtrace.join("\n")}"
101
- raise e # send exception to Sidekiq failed queue
102
115
  end
103
- # rubocop:enable Metrics/AbcSize
104
116
 
105
117
  def workflow
106
- @workflow ||= Workflow.new(workflow_service:,
107
- druid:,
108
- workflow_name:,
109
- process:)
118
+ @workflow ||= Workflow.new(object_client:, workflow_name:, process:)
110
119
  end
111
120
 
112
- def check_item_queued?
121
+ def check_item_queued_or_retry?
113
122
  return true unless check_queued_status
114
123
 
115
124
  return true if /queued/i.match?(workflow.status)
125
+ return true if /retrying/i.match?(workflow.status)
116
126
 
117
127
  msg = "Item #{druid} is not queued for #{process} (#{workflow_name}), " \
118
128
  "but has status of '#{workflow.status}'. Will skip processing"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LyberCore
4
- VERSION = '7.6.0'
4
+ VERSION = '8.0.0'
5
5
  end
@@ -3,58 +3,62 @@
3
3
  module LyberCore
4
4
  # This encapsulates the workflow operations that lyber-core does
5
5
  class Workflow
6
- def initialize(workflow_service:, druid:, workflow_name:, process:)
7
- @workflow_service = workflow_service
8
- @druid = druid
6
+ def initialize(object_client:, workflow_name:, process:)
7
+ @object_client = object_client
9
8
  @workflow_name = workflow_name
10
9
  @process = process
11
10
  end
12
11
 
12
+ # @return [Dor::Services::Client::ObjectWorkflow] for druid/workflow/step on which this instance was initialized
13
+ def object_workflow
14
+ object_client.workflow(workflow_name)
15
+ end
16
+
17
+ # @return [Dor::Services::Client::Process] for druid/workflow/step on which this instance was initialized
18
+ def workflow_process
19
+ object_workflow.process(process)
20
+ end
21
+
22
+ # @return [Dor::Services::Response::Workflow] for druid/workflow/step on which this instance was initialized
23
+ def workflow_response
24
+ object_workflow.find
25
+ end
26
+
27
+ # @return [Dor::Services::Response::Process] for druid/workflow/step on which this instance was initialized
28
+ def process_response
29
+ workflow_response.process_for_recent_version(name: process)
30
+ end
31
+
13
32
  def start!(note)
14
- workflow_service.update_status(druid:,
15
- workflow: workflow_name,
16
- process:,
17
- status: 'started',
18
- elapsed: 1.0,
19
- note:)
33
+ workflow_process.update(status: 'started', elapsed: 1.0, note:)
20
34
  end
21
35
 
22
36
  def complete!(status, elapsed, note)
23
- workflow_service.update_status(druid:,
24
- workflow: workflow_name,
25
- process:,
26
- status:,
27
- elapsed:,
28
- note:)
37
+ workflow_process.update(status:, elapsed:, note:)
38
+ end
39
+
40
+ def retrying!
41
+ workflow_process.update(status: 'retrying', elapsed: 1.0, note: nil)
29
42
  end
30
43
 
31
44
  def error!(error_msg, error_text)
32
- workflow_service.update_error_status(druid:,
33
- workflow: workflow_name,
34
- process:,
35
- error_msg:,
36
- error_text:)
45
+ workflow_process.update_error(error_msg:, error_text:)
37
46
  end
38
47
 
39
48
  # @return [Hash] any workflow context associated with the workflow
40
49
  def context
41
- @context ||= workflow_service.process(pid: druid,
42
- workflow_name:,
43
- process:).context
50
+ @context ||= process_response.context
44
51
  end
45
52
 
46
53
  def status
47
- @status ||= workflow_service.workflow_status(druid:,
48
- workflow: workflow_name,
49
- process:)
54
+ @status ||= workflow_process.status
50
55
  end
51
56
 
57
+ # @return [String,nil]
52
58
  def lane_id
53
- @lane_id ||= workflow_service.process(pid: druid, workflow_name:, process:).lane_id
59
+ @lane_id ||= process_response.lane_id
54
60
  end
55
61
 
56
- private
57
-
58
- attr_reader :workflow_service, :druid, :workflow_name, :process
62
+ attr_reader :object_client, :workflow_name, :process
59
63
  end
60
64
  end
data/lib/lyber_core.rb CHANGED
@@ -7,7 +7,6 @@ require 'active_support/core_ext/object/blank' # String#blank?
7
7
  require 'active_support/core_ext/module/delegation'
8
8
  require 'sidekiq'
9
9
  require 'honeybadger'
10
- require 'dor/workflow/client'
11
10
  require 'dor/services/client'
12
11
  require 'druid-tools'
13
12
  require 'zeitwerk'
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.6.0
4
+ version: 8.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alpana Pande
@@ -13,10 +13,9 @@ authors:
13
13
  - Michael Klein
14
14
  - Darren Weber
15
15
  - Peter Mangiafico
16
- autorequire:
17
16
  bindir: bin
18
17
  cert_chain: []
19
- date: 2024-10-07 00:00:00.000000000 Z
18
+ date: 1980-01-02 00:00:00.000000000 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: activesupport
@@ -48,32 +47,18 @@ dependencies:
48
47
  version: '0'
49
48
  - !ruby/object:Gem::Dependency
50
49
  name: dor-services-client
51
- requirement: !ruby/object:Gem::Requirement
52
- requirements:
53
- - - "~>"
54
- - !ruby/object:Gem::Version
55
- version: '15.0'
56
- type: :runtime
57
- prerelease: false
58
- version_requirements: !ruby/object:Gem::Requirement
59
- requirements:
60
- - - "~>"
61
- - !ruby/object:Gem::Version
62
- version: '15.0'
63
- - !ruby/object:Gem::Dependency
64
- name: dor-workflow-client
65
50
  requirement: !ruby/object:Gem::Requirement
66
51
  requirements:
67
52
  - - ">="
68
53
  - !ruby/object:Gem::Version
69
- version: '7.4'
54
+ version: '0'
70
55
  type: :runtime
71
56
  prerelease: false
72
57
  version_requirements: !ruby/object:Gem::Requirement
73
58
  requirements:
74
59
  - - ">="
75
60
  - !ruby/object:Gem::Version
76
- version: '7.4'
61
+ version: '0'
77
62
  - !ruby/object:Gem::Dependency
78
63
  name: druid-tools
79
64
  requirement: !ruby/object:Gem::Requirement
@@ -261,12 +246,11 @@ files:
261
246
  - lib/lyber_core/rspec.rb
262
247
  - lib/lyber_core/version.rb
263
248
  - lib/lyber_core/workflow.rb
264
- - lib/lyber_core/workflow_client_factory.rb
265
249
  homepage: http://github.com/sul-dlss/lyber-core
266
250
  licenses:
267
251
  - Apache-2.0
268
- metadata: {}
269
- post_install_message:
252
+ metadata:
253
+ rubygems_mfa_required: 'true'
270
254
  rdoc_options: []
271
255
  require_paths:
272
256
  - lib
@@ -281,8 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
281
265
  - !ruby/object:Gem::Version
282
266
  version: 1.3.6
283
267
  requirements: []
284
- rubygems_version: 3.5.15
285
- signing_key:
268
+ rubygems_version: 3.6.9
286
269
  specification_version: 4
287
270
  summary: Core services used by the SUL Digital Library
288
271
  test_files: []
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module LyberCore
4
- # Factory for creating a workflow client
5
- class WorkflowClientFactory
6
- def self.build(logger:)
7
- Dor::Workflow::Client.new(url: Settings.workflow.url, logger:, timeout: Settings.workflow.timeout)
8
- end
9
- end
10
- end