dor-event-client 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +3 -1
- data/.rubocop.yml +112 -3
- data/Gemfile +1 -1
- data/Gemfile.lock +78 -46
- data/README.md +4 -5
- data/dor-event-client.gemspec +1 -1
- data/lib/dor/event/client/version.rb +1 -1
- data/lib/dor/event/client.rb +2 -1
- metadata +3 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be38297a56671258945b802da67fdbe1c3375c74635754c3fcf4f1c515151bc5
|
4
|
+
data.tar.gz: 2f9d11035ed3e59eead325f57486d10c15369b614d7a59647d0b2ca5106cd7ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edae6066126c2af52a2fd158eb1206a1010a2f5f389d721c4c55c1525630f6eca76b00b63fa5383b73b762ddde9c2578e387377b524337439d83096abbe234a8
|
7
|
+
data.tar.gz: bb3f77e9ba825101a42c5d910c2a0bb081d9d482b0e336663faf072e3108eeec30013718f96a4885a8e32e05d203127794dd0d709da928e387b4865f0fe1d2ad
|
data/.circleci/config.yml
CHANGED
data/.rubocop.yml
CHANGED
@@ -128,7 +128,7 @@ RSpec/IdenticalEqualityAssertion: # new in 2.4
|
|
128
128
|
Enabled: true
|
129
129
|
RSpec/SubjectDeclaration: # new in 2.5
|
130
130
|
Enabled: true
|
131
|
-
|
131
|
+
FactoryBot/SyntaxMethods: # new in 2.7
|
132
132
|
Enabled: true
|
133
133
|
RSpec/Rails/AvoidSetupHook: # new in 2.4
|
134
134
|
Enabled: true
|
@@ -152,8 +152,6 @@ RSpec/BeNil: # new in 2.9.0
|
|
152
152
|
RSpec/VerifiedDoubleReference: # new in 2.10.0
|
153
153
|
Enabled: true
|
154
154
|
|
155
|
-
Gemspec/DateAssignment: # new in 1.10
|
156
|
-
Enabled: true
|
157
155
|
Gemspec/DeprecatedAttributeAssignment: # new in 1.30
|
158
156
|
Enabled: true
|
159
157
|
Style/EnvHome: # new in 1.29
|
@@ -161,4 +159,115 @@ Style/EnvHome: # new in 1.29
|
|
161
159
|
Style/MapCompactWithConditionalBlock: # new in 1.30
|
162
160
|
Enabled: true
|
163
161
|
RSpec/ChangeByZero: # new in 2.11.0
|
162
|
+
Enabled: true
|
163
|
+
Layout/LineContinuationLeadingSpace: # new in 1.31
|
164
|
+
Enabled: true
|
165
|
+
Layout/LineContinuationSpacing: # new in 1.31
|
166
|
+
Enabled: true
|
167
|
+
Lint/ConstantOverwrittenInRescue: # new in 1.31
|
168
|
+
Enabled: true
|
169
|
+
Lint/NonAtomicFileOperation: # new in 1.31
|
170
|
+
Enabled: true
|
171
|
+
Capybara/SpecificMatcher: # new in 2.12
|
172
|
+
Enabled: true
|
173
|
+
RSpec/Rails/HaveHttpStatus: # new in 2.12
|
174
|
+
Enabled: true
|
175
|
+
|
176
|
+
Gemspec/DevelopmentDependencies: # new in 1.44
|
177
|
+
Enabled: false
|
178
|
+
Lint/DuplicateMagicComment: # new in 1.37
|
179
|
+
Enabled: true
|
180
|
+
Lint/DuplicateMatchPattern: # new in 1.50
|
181
|
+
Enabled: true
|
182
|
+
Lint/RequireRangeParentheses: # new in 1.32
|
183
|
+
Enabled: true
|
184
|
+
Lint/UselessRescue: # new in 1.43
|
185
|
+
Enabled: true
|
186
|
+
Metrics/CollectionLiteralLength: # new in 1.47
|
187
|
+
Enabled: true
|
188
|
+
Style/ArrayIntersect: # new in 1.40
|
189
|
+
Enabled: true
|
190
|
+
Style/ComparableClamp: # new in 1.44
|
191
|
+
Enabled: true
|
192
|
+
Style/ConcatArrayLiterals: # new in 1.41
|
193
|
+
Enabled: true
|
194
|
+
Style/DataInheritance: # new in 1.49
|
195
|
+
Enabled: true
|
196
|
+
Style/DirEmpty: # new in 1.48
|
197
|
+
Enabled: true
|
198
|
+
Style/EmptyHeredoc: # new in 1.32
|
199
|
+
Enabled: true
|
200
|
+
Style/ExactRegexpMatch: # new in 1.51
|
201
|
+
Enabled: true
|
202
|
+
Style/FileEmpty: # new in 1.48
|
203
|
+
Enabled: true
|
204
|
+
Style/MagicCommentFormat: # new in 1.35
|
205
|
+
Enabled: true
|
206
|
+
Style/MapToSet: # new in 1.42
|
207
|
+
Enabled: true
|
208
|
+
Style/MinMaxComparison: # new in 1.42
|
209
|
+
Enabled: true
|
210
|
+
Style/OperatorMethodCall: # new in 1.37
|
211
|
+
Enabled: true
|
212
|
+
Style/RedundantArrayConstructor: # new in 1.52
|
213
|
+
Enabled: true
|
214
|
+
Style/RedundantConstantBase: # new in 1.40
|
215
|
+
Enabled: true
|
216
|
+
Style/RedundantDoubleSplatHashBraces: # new in 1.41
|
217
|
+
Enabled: true
|
218
|
+
Style/RedundantEach: # new in 1.38
|
219
|
+
Enabled: true
|
220
|
+
Style/RedundantFilterChain: # new in 1.52
|
221
|
+
Enabled: true
|
222
|
+
Style/RedundantHeredocDelimiterQuotes: # new in 1.45
|
223
|
+
Enabled: true
|
224
|
+
Style/RedundantLineContinuation: # new in 1.49
|
225
|
+
Enabled: true
|
226
|
+
Style/RedundantRegexpConstructor: # new in 1.52
|
227
|
+
Enabled: true
|
228
|
+
Style/RedundantStringEscape: # new in 1.37
|
229
|
+
Enabled: true
|
230
|
+
Capybara/MatchStyle: # new in 2.17
|
231
|
+
Enabled: true
|
232
|
+
Capybara/NegationMatcher: # new in 2.14
|
233
|
+
Enabled: true
|
234
|
+
Capybara/SpecificActions: # new in 2.14
|
235
|
+
Enabled: true
|
236
|
+
Capybara/SpecificFinders: # new in 2.13
|
237
|
+
Enabled: true
|
238
|
+
FactoryBot/AssociationStyle: # new in 2.23
|
239
|
+
Enabled: true
|
240
|
+
FactoryBot/ConsistentParenthesesStyle: # new in 2.14
|
241
|
+
Enabled: true
|
242
|
+
FactoryBot/FactoryAssociationWithStrategy: # new in 2.23
|
243
|
+
Enabled: true
|
244
|
+
FactoryBot/FactoryNameStyle: # new in 2.16
|
245
|
+
Enabled: true
|
246
|
+
FactoryBot/RedundantFactoryOption: # new in 2.23
|
247
|
+
Enabled: true
|
248
|
+
RSpec/BeEmpty: # new in 2.20
|
249
|
+
Enabled: true
|
250
|
+
RSpec/ContainExactly: # new in 2.19
|
251
|
+
Enabled: true
|
252
|
+
RSpec/DuplicatedMetadata: # new in 2.16
|
253
|
+
Enabled: true
|
254
|
+
RSpec/IndexedLet: # new in 2.20
|
255
|
+
Enabled: true
|
256
|
+
RSpec/MatchArray: # new in 2.19
|
257
|
+
Enabled: true
|
258
|
+
RSpec/NoExpectationExample: # new in 2.13
|
259
|
+
Enabled: true
|
260
|
+
RSpec/PendingWithoutReason: # new in 2.16
|
261
|
+
Enabled: true
|
262
|
+
RSpec/RedundantAround: # new in 2.19
|
263
|
+
Enabled: true
|
264
|
+
RSpec/SkipBlockInsideExample: # new in 2.19
|
265
|
+
Enabled: true
|
266
|
+
RSpec/SortMetadata: # new in 2.14
|
267
|
+
Enabled: true
|
268
|
+
RSpec/Rails/InferredSpecType: # new in 2.14
|
269
|
+
Enabled: true
|
270
|
+
RSpec/Rails/MinitestAssertions: # new in 2.17
|
271
|
+
Enabled: true
|
272
|
+
RSpec/Rails/TravelAround: # new in 2.19
|
164
273
|
Enabled: true
|
data/Gemfile
CHANGED
@@ -6,5 +6,5 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
|
6
6
|
|
7
7
|
gem 'activesupport', ENV.fetch('RAILS_VERSION', nil) if ENV['RAILS_VERSION']
|
8
8
|
|
9
|
-
# Specify your gem's dependencies in dor-
|
9
|
+
# Specify your gem's dependencies in dor-event-client.gemspec
|
10
10
|
gemspec
|
data/Gemfile.lock
CHANGED
@@ -1,83 +1,115 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
dor-event-client (1.
|
5
|
-
activesupport (>= 4.2
|
4
|
+
dor-event-client (1.1.0)
|
5
|
+
activesupport (>= 4.2)
|
6
6
|
bunny (~> 2.17)
|
7
7
|
zeitwerk (~> 2.1)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
activesupport (
|
13
|
-
|
12
|
+
activesupport (8.0.1)
|
13
|
+
base64
|
14
|
+
benchmark (>= 0.3)
|
15
|
+
bigdecimal
|
16
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
17
|
+
connection_pool (>= 2.2.5)
|
18
|
+
drb
|
14
19
|
i18n (>= 1.6, < 2)
|
20
|
+
logger (>= 1.4.2)
|
15
21
|
minitest (>= 5.1)
|
16
|
-
|
22
|
+
securerandom (>= 0.3)
|
23
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
24
|
+
uri (>= 0.13.1)
|
17
25
|
amq-protocol (2.3.2)
|
18
26
|
ast (2.4.2)
|
19
|
-
|
27
|
+
base64 (0.2.0)
|
28
|
+
benchmark (0.4.0)
|
29
|
+
bigdecimal (3.1.9)
|
30
|
+
bunny (2.23.0)
|
20
31
|
amq-protocol (~> 2.3, >= 2.3.1)
|
21
32
|
sorted_set (~> 1, >= 1.0.2)
|
22
33
|
byebug (11.1.3)
|
23
|
-
concurrent-ruby (1.
|
24
|
-
|
25
|
-
|
26
|
-
|
34
|
+
concurrent-ruby (1.3.5)
|
35
|
+
connection_pool (2.5.0)
|
36
|
+
diff-lcs (1.5.1)
|
37
|
+
docile (1.4.1)
|
38
|
+
drb (2.2.1)
|
39
|
+
i18n (1.14.7)
|
27
40
|
concurrent-ruby (~> 1.0)
|
28
|
-
|
29
|
-
|
30
|
-
|
41
|
+
json (2.9.1)
|
42
|
+
language_server-protocol (3.17.0.4)
|
43
|
+
logger (1.6.6)
|
44
|
+
minitest (5.25.4)
|
45
|
+
parallel (1.26.3)
|
46
|
+
parser (3.3.7.1)
|
31
47
|
ast (~> 2.4.1)
|
48
|
+
racc
|
49
|
+
racc (1.8.1)
|
32
50
|
rainbow (3.1.1)
|
33
|
-
rake (13.
|
34
|
-
rbtree (0.4.
|
35
|
-
regexp_parser (2.
|
36
|
-
|
37
|
-
|
38
|
-
rspec-
|
39
|
-
rspec-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
rspec-expectations (3.11.0)
|
51
|
+
rake (13.2.1)
|
52
|
+
rbtree (0.4.6)
|
53
|
+
regexp_parser (2.10.0)
|
54
|
+
rspec (3.13.0)
|
55
|
+
rspec-core (~> 3.13.0)
|
56
|
+
rspec-expectations (~> 3.13.0)
|
57
|
+
rspec-mocks (~> 3.13.0)
|
58
|
+
rspec-core (3.13.3)
|
59
|
+
rspec-support (~> 3.13.0)
|
60
|
+
rspec-expectations (3.13.3)
|
44
61
|
diff-lcs (>= 1.2.0, < 2.0)
|
45
|
-
rspec-support (~> 3.
|
46
|
-
rspec-mocks (3.
|
62
|
+
rspec-support (~> 3.13.0)
|
63
|
+
rspec-mocks (3.13.2)
|
47
64
|
diff-lcs (>= 1.2.0, < 2.0)
|
48
|
-
rspec-support (~> 3.
|
49
|
-
rspec-support (3.
|
50
|
-
rubocop (1.
|
65
|
+
rspec-support (~> 3.13.0)
|
66
|
+
rspec-support (3.13.2)
|
67
|
+
rubocop (1.71.2)
|
68
|
+
json (~> 2.3)
|
69
|
+
language_server-protocol (>= 3.17.0)
|
51
70
|
parallel (~> 1.10)
|
52
|
-
parser (>= 3.
|
71
|
+
parser (>= 3.3.0.2)
|
53
72
|
rainbow (>= 2.2.2, < 4.0)
|
54
|
-
regexp_parser (>=
|
55
|
-
|
56
|
-
rubocop-ast (>= 1.18.0, < 2.0)
|
73
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
74
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
57
75
|
ruby-progressbar (~> 1.7)
|
58
|
-
unicode-display_width (>=
|
59
|
-
rubocop-ast (1.
|
60
|
-
parser (>= 3.
|
61
|
-
rubocop-
|
62
|
-
rubocop (~> 1.
|
63
|
-
|
64
|
-
|
65
|
-
|
76
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
77
|
+
rubocop-ast (1.38.0)
|
78
|
+
parser (>= 3.3.1.0)
|
79
|
+
rubocop-capybara (2.21.0)
|
80
|
+
rubocop (~> 1.41)
|
81
|
+
rubocop-factory_bot (2.26.1)
|
82
|
+
rubocop (~> 1.61)
|
83
|
+
rubocop-rspec (2.31.0)
|
84
|
+
rubocop (~> 1.40)
|
85
|
+
rubocop-capybara (~> 2.17)
|
86
|
+
rubocop-factory_bot (~> 2.22)
|
87
|
+
rubocop-rspec_rails (~> 2.28)
|
88
|
+
rubocop-rspec_rails (2.29.1)
|
89
|
+
rubocop (~> 1.61)
|
90
|
+
ruby-progressbar (1.13.0)
|
91
|
+
securerandom (0.4.1)
|
92
|
+
set (1.1.1)
|
93
|
+
simplecov (0.22.0)
|
66
94
|
docile (~> 1.1)
|
67
95
|
simplecov-html (~> 0.11)
|
68
96
|
simplecov_json_formatter (~> 0.1)
|
69
|
-
simplecov-html (0.
|
97
|
+
simplecov-html (0.13.1)
|
70
98
|
simplecov_json_formatter (0.1.4)
|
71
99
|
sorted_set (1.0.3)
|
72
100
|
rbtree
|
73
101
|
set (~> 1.0)
|
74
|
-
tzinfo (2.0.
|
102
|
+
tzinfo (2.0.6)
|
75
103
|
concurrent-ruby (~> 1.0)
|
76
|
-
unicode-display_width (
|
77
|
-
|
104
|
+
unicode-display_width (3.1.4)
|
105
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
106
|
+
unicode-emoji (4.0.4)
|
107
|
+
uri (1.0.2)
|
108
|
+
zeitwerk (2.7.1)
|
78
109
|
|
79
110
|
PLATFORMS
|
80
111
|
x86_64-darwin-20
|
112
|
+
x86_64-darwin-22
|
81
113
|
x86_64-linux
|
82
114
|
|
83
115
|
DEPENDENCIES
|
@@ -91,4 +123,4 @@ DEPENDENCIES
|
|
91
123
|
simplecov
|
92
124
|
|
93
125
|
BUNDLED WITH
|
94
|
-
2.
|
126
|
+
2.4.13
|
data/README.md
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
[](https://badge.fury.io/rb/dor-event-client)
|
2
2
|
[](https://circleci.com/gh/sul-dlss/dor-event-client)
|
3
|
-
[](https://codeclimate.com/github/sul-dlss/dorevent-client/coverage)
|
3
|
+
[](https://codecov.io/github/sul-dlss/dor-event-client)
|
5
4
|
|
6
5
|
# Dor::Event::Client
|
7
6
|
|
8
7
|
Dor::Event::Client is a Ruby gem that acts as a client for the event services provided by [dor-services-app](https://github.com/sul-dlss/dor-services-app).
|
9
8
|
|
10
|
-
Currently, the client only supports the asynchronous creation of events (via RabbitMQ). In the future, other operations
|
9
|
+
Currently, the client only supports the asynchronous creation of events (via RabbitMQ). In the future, other operations
|
11
10
|
(including synchronous operations via HTTP) may be supported. At present, additional event operations are supported by
|
12
11
|
[dor-services-client](https://github.com/sul-dlss/dor-services-client).
|
13
12
|
|
@@ -49,8 +48,8 @@ Dor::Event::Client.create(druid:, type:, data:)
|
|
49
48
|
|
50
49
|
# For example:
|
51
50
|
Dor::Event::Client.create(
|
52
|
-
druid: 'druid:bb408qn5061',
|
53
|
-
type: 'druid_version_replicated',
|
51
|
+
druid: 'druid:bb408qn5061',
|
52
|
+
type: 'druid_version_replicated',
|
54
53
|
data {
|
55
54
|
host: 'preservation-catalog-qa-02.stanford.edu',
|
56
55
|
version: 19,
|
data/dor-event-client.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.require_paths = ['lib']
|
24
24
|
spec.required_ruby_version = '>= 3.0', '< 4'
|
25
25
|
|
26
|
-
spec.add_dependency 'activesupport', '>= 4.2'
|
26
|
+
spec.add_dependency 'activesupport', '>= 4.2'
|
27
27
|
spec.add_dependency 'bunny', '~> 2.17' # Send messages to RabbitMQ
|
28
28
|
spec.add_dependency 'zeitwerk', '~> 2.1'
|
29
29
|
|
data/lib/dor/event/client.rb
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'active_support'
|
3
4
|
require 'active_support/core_ext/module/delegation'
|
4
|
-
require 'active_support/json'
|
5
5
|
require 'active_support/core_ext/object/json'
|
6
|
+
require 'active_support/json'
|
6
7
|
require 'bunny'
|
7
8
|
require 'singleton'
|
8
9
|
require 'zeitwerk'
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dor-event-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
8
8
|
- Michael Giarlo
|
9
|
-
autorequire:
|
10
9
|
bindir: exe
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2025-02-18 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: activesupport
|
@@ -18,9 +17,6 @@ dependencies:
|
|
18
17
|
- - ">="
|
19
18
|
- !ruby/object:Gem::Version
|
20
19
|
version: '4.2'
|
21
|
-
- - "<"
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: '8'
|
24
20
|
type: :runtime
|
25
21
|
prerelease: false
|
26
22
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -28,9 +24,6 @@ dependencies:
|
|
28
24
|
- - ">="
|
29
25
|
- !ruby/object:Gem::Version
|
30
26
|
version: '4.2'
|
31
|
-
- - "<"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '8'
|
34
27
|
- !ruby/object:Gem::Dependency
|
35
28
|
name: bunny
|
36
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -157,7 +150,6 @@ dependencies:
|
|
157
150
|
- - ">="
|
158
151
|
- !ruby/object:Gem::Version
|
159
152
|
version: '0'
|
160
|
-
description:
|
161
153
|
email:
|
162
154
|
- jcoyne@justincoyne.com
|
163
155
|
- leftwing@alumni.rutgers.edu
|
@@ -185,7 +177,6 @@ homepage: https://github.com/sul-dlss/event-client
|
|
185
177
|
licenses: []
|
186
178
|
metadata:
|
187
179
|
rubygems_mfa_required: 'true'
|
188
|
-
post_install_message:
|
189
180
|
rdoc_options: []
|
190
181
|
require_paths:
|
191
182
|
- lib
|
@@ -203,8 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
203
194
|
- !ruby/object:Gem::Version
|
204
195
|
version: '0'
|
205
196
|
requirements: []
|
206
|
-
rubygems_version: 3.3
|
207
|
-
signing_key:
|
197
|
+
rubygems_version: 3.6.3
|
208
198
|
specification_version: 4
|
209
199
|
summary: A client for event services provided by DOR Services App
|
210
200
|
test_files: []
|