sidekiq-web_custom 0.5.0 → 0.6.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/Gemfile.lock +12 -10
- data/lib/sidekiq/web_custom/processor.rb +5 -7
- data/lib/sidekiq/web_custom/version.rb +1 -1
- data/sidekiq-web_custom.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 427d9471114bcf5d95d6fb58e9311be0f64cdea22509f9c221a0723b15576d6d
|
4
|
+
data.tar.gz: ec73717a0c1e8e99d0a4dde681d3d864c665702d5a434f47670a48fd7ccc945b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ef0e033694e373a458fb18b022406efde9e36c518d657a3b3dfc7965fc3ba15f53fd1dbc3414b87c09448227e66a1ec4d235a5602f5ff143381a2f6b04010b7
|
7
|
+
data.tar.gz: 47fca45fecccb9d523eeef11946d3c403d79d4c7a1f8b01a3495d7b8f5ba9edde68a3277e39c7983d301a84acfae761ea332b3d300bfa7a30eeed8a6227e4cdd
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
sidekiq-web_custom (0.
|
5
|
-
sidekiq (~>
|
4
|
+
sidekiq-web_custom (0.6.0)
|
5
|
+
sidekiq (~> 7)
|
6
6
|
timeoutable (>= 1.0)
|
7
7
|
|
8
8
|
GEM
|
@@ -76,7 +76,7 @@ GEM
|
|
76
76
|
builder (3.2.4)
|
77
77
|
coderay (1.1.3)
|
78
78
|
concurrent-ruby (1.1.10)
|
79
|
-
connection_pool (2.
|
79
|
+
connection_pool (2.4.1)
|
80
80
|
crass (1.0.6)
|
81
81
|
diff-lcs (1.5.0)
|
82
82
|
digest (3.1.0)
|
@@ -116,7 +116,7 @@ GEM
|
|
116
116
|
coderay (~> 1.1)
|
117
117
|
method_source (~> 1.0)
|
118
118
|
racc (1.6.0)
|
119
|
-
rack (2.2.
|
119
|
+
rack (2.2.8)
|
120
120
|
rack-test (2.0.2)
|
121
121
|
rack (>= 1.3)
|
122
122
|
rails (7.0.3.1)
|
@@ -146,7 +146,8 @@ GEM
|
|
146
146
|
thor (~> 1.0)
|
147
147
|
zeitwerk (~> 2.5)
|
148
148
|
rake (13.0.6)
|
149
|
-
redis (
|
149
|
+
redis-client (0.15.0)
|
150
|
+
connection_pool
|
150
151
|
rspec (3.11.0)
|
151
152
|
rspec-core (~> 3.11.0)
|
152
153
|
rspec-expectations (~> 3.11.0)
|
@@ -162,10 +163,11 @@ GEM
|
|
162
163
|
rspec-support (3.11.0)
|
163
164
|
rspec_junit_formatter (0.5.1)
|
164
165
|
rspec-core (>= 2, < 4, != 2.12.0)
|
165
|
-
sidekiq (
|
166
|
-
|
167
|
-
|
168
|
-
|
166
|
+
sidekiq (7.1.2)
|
167
|
+
concurrent-ruby (< 2)
|
168
|
+
connection_pool (>= 2.3.0)
|
169
|
+
rack (>= 2.2.4)
|
170
|
+
redis-client (>= 0.14.0)
|
169
171
|
simplecov (0.21.2)
|
170
172
|
docile (~> 1.1)
|
171
173
|
simplecov-html (~> 0.11)
|
@@ -197,4 +199,4 @@ DEPENDENCIES
|
|
197
199
|
simplecov
|
198
200
|
|
199
201
|
BUNDLED WITH
|
200
|
-
2.
|
202
|
+
2.4.18
|
@@ -4,30 +4,28 @@ module Sidekiq
|
|
4
4
|
module WebCustom
|
5
5
|
class Processor < ::Sidekiq::Processor
|
6
6
|
|
7
|
-
def self.execute(max:, queue:, options: Sidekiq)
|
7
|
+
def self.execute(max:, queue:, options: Sidekiq.default_configuration.default_capsule)
|
8
8
|
__processor__(queue: queue, options: options).__execute(max: max)
|
9
9
|
end
|
10
10
|
|
11
|
-
def self.execute_job(job:, options: Sidekiq)
|
11
|
+
def self.execute_job(job:, options: Sidekiq.default_configuration.default_capsule)
|
12
12
|
__processor__(queue: job.queue, options: options).__execute_job(job: job)
|
13
13
|
rescue StandardError => _
|
14
14
|
false # error gets loggged downstream
|
15
15
|
end
|
16
16
|
|
17
|
-
def self.__processor__(queue:, options: Sidekiq)
|
17
|
+
def self.__processor__(queue:, options: Sidekiq.default_configuration.default_capsule)
|
18
18
|
options_temp = options.dup
|
19
19
|
queue = queue.is_a?(String) ? Sidekiq::Queue.new(queue) : queue
|
20
20
|
|
21
|
-
options_temp
|
22
|
-
klass = options_temp[:fetch]&.class || BasicFetch
|
23
|
-
options_temp[:fetch] = klass.new(options_temp)
|
21
|
+
options_temp.queues = [queue.name]
|
24
22
|
|
25
23
|
new(options: options_temp, queue: queue)
|
26
24
|
end
|
27
25
|
|
28
26
|
def initialize(options:, queue:)
|
29
27
|
@__queue = queue
|
30
|
-
@__basic_fetch = options
|
28
|
+
@__basic_fetch = options.fetcher.class == BasicFetch
|
31
29
|
|
32
30
|
super(options)
|
33
31
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Sidekiq
|
4
4
|
module WebCustom
|
5
5
|
MAJOR = 0 # With backwards incompatability. Requires annoucment and update documentation
|
6
|
-
MINOR =
|
6
|
+
MINOR = 6 # With feature launch. Documentation of upgrade is useful via a changelog
|
7
7
|
PATCH = 0 # With minor upgrades or patcing a small bug. No changelog necessary
|
8
8
|
VERSION = [MAJOR,MINOR,PATCH].join('.')
|
9
9
|
|
data/sidekiq-web_custom.gemspec
CHANGED
@@ -33,6 +33,6 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
34
34
|
spec.require_paths = ["lib"]
|
35
35
|
|
36
|
-
spec.add_dependency 'sidekiq', '~>
|
36
|
+
spec.add_dependency 'sidekiq', '~> 7'
|
37
37
|
spec.add_dependency 'timeoutable', '>= 1.0'
|
38
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-web_custom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Taylor
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sidekiq
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '7'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '7'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: timeoutable
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
146
|
- !ruby/object:Gem::Version
|
147
147
|
version: '0'
|
148
148
|
requirements: []
|
149
|
-
rubygems_version: 3.
|
149
|
+
rubygems_version: 3.4.10
|
150
150
|
signing_key:
|
151
151
|
specification_version: 4
|
152
152
|
summary: This gem adds on custom capabilities to the Sidekiq Web UI
|