faktory_worker_ruby 2.1.2 → 2.2.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/Changes.md +5 -0
- data/Gemfile.lock +18 -19
- data/faktory_worker_ruby.gemspec +2 -3
- data/lib/active_job/queue_adapters/faktory_adapter.rb +11 -0
- data/lib/faktory/version.rb +1 -1
- metadata +6 -20
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 61cfbc8aa05f1700b58f7ba4f9a5899c8c2f08a092e579d278543e4067bdf789
|
|
4
|
+
data.tar.gz: 6a1c3012207e5e9079333e37cefe6452a05fde915d920bf580b080795bef69bd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4408d26363ee756e2f74688004d72b587528340289a1ccca05689fe671986e5311d45ac90266802d514ab3f690d3af80aec8e3b755019750e5e0c68eca0300f3
|
|
7
|
+
data.tar.gz: e02f8ea49cd856e0d1876b3e3e584d3e47b550c9fc54f812742921e352176c75b01f88e866318e2a69323844a0d5d9a80bba1a10af4c4c99d6bef5a231d5213a
|
data/Changes.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
faktory_worker_ruby (2.
|
|
5
|
-
connection_pool (
|
|
4
|
+
faktory_worker_ruby (2.2.0)
|
|
5
|
+
connection_pool (< 4)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
activejob (8.1.
|
|
11
|
-
activesupport (= 8.1.
|
|
10
|
+
activejob (8.1.3)
|
|
11
|
+
activesupport (= 8.1.3)
|
|
12
12
|
globalid (>= 0.3.6)
|
|
13
|
-
activesupport (8.1.
|
|
13
|
+
activesupport (8.1.3)
|
|
14
14
|
base64
|
|
15
15
|
bigdecimal
|
|
16
16
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
@@ -27,30 +27,30 @@ GEM
|
|
|
27
27
|
base64 (0.3.0)
|
|
28
28
|
bigdecimal (4.0.1)
|
|
29
29
|
concurrent-ruby (1.3.6)
|
|
30
|
-
connection_pool (
|
|
30
|
+
connection_pool (3.0.2)
|
|
31
31
|
docile (1.4.1)
|
|
32
32
|
drb (2.2.3)
|
|
33
33
|
globalid (1.3.0)
|
|
34
34
|
activesupport (>= 6.1)
|
|
35
35
|
i18n (1.14.8)
|
|
36
36
|
concurrent-ruby (~> 1.0)
|
|
37
|
-
json (2.
|
|
37
|
+
json (2.19.3)
|
|
38
38
|
language_server-protocol (3.17.0.5)
|
|
39
39
|
lint_roller (1.1.0)
|
|
40
40
|
logger (1.7.0)
|
|
41
|
-
minitest (
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
minitest (6.0.2)
|
|
42
|
+
drb (~> 2.0)
|
|
43
|
+
prism (~> 1.5)
|
|
44
44
|
parallel (1.27.0)
|
|
45
|
-
parser (3.3.
|
|
45
|
+
parser (3.3.11.1)
|
|
46
46
|
ast (~> 2.4.1)
|
|
47
47
|
racc
|
|
48
|
-
prism (1.
|
|
48
|
+
prism (1.9.0)
|
|
49
49
|
racc (1.8.1)
|
|
50
50
|
rainbow (3.1.1)
|
|
51
51
|
rake (13.3.1)
|
|
52
52
|
regexp_parser (2.11.3)
|
|
53
|
-
rubocop (1.
|
|
53
|
+
rubocop (1.84.2)
|
|
54
54
|
json (~> 2.3)
|
|
55
55
|
language_server-protocol (~> 3.17.0.2)
|
|
56
56
|
lint_roller (~> 1.1.0)
|
|
@@ -58,10 +58,10 @@ GEM
|
|
|
58
58
|
parser (>= 3.3.0.2)
|
|
59
59
|
rainbow (>= 2.2.2, < 4.0)
|
|
60
60
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
61
|
-
rubocop-ast (>= 1.
|
|
61
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
62
62
|
ruby-progressbar (~> 1.7)
|
|
63
63
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
64
|
-
rubocop-ast (1.49.
|
|
64
|
+
rubocop-ast (1.49.1)
|
|
65
65
|
parser (>= 3.3.7.2)
|
|
66
66
|
prism (~> 1.7)
|
|
67
67
|
rubocop-performance (1.26.1)
|
|
@@ -76,10 +76,10 @@ GEM
|
|
|
76
76
|
simplecov_json_formatter (~> 0.1)
|
|
77
77
|
simplecov-html (0.13.2)
|
|
78
78
|
simplecov_json_formatter (0.1.4)
|
|
79
|
-
standard (1.
|
|
79
|
+
standard (1.54.0)
|
|
80
80
|
language_server-protocol (~> 3.17.0.2)
|
|
81
81
|
lint_roller (~> 1.0)
|
|
82
|
-
rubocop (~> 1.
|
|
82
|
+
rubocop (~> 1.84.0)
|
|
83
83
|
standard-custom (~> 1.0.0)
|
|
84
84
|
standard-performance (~> 1.8)
|
|
85
85
|
standard-custom (1.0.2)
|
|
@@ -101,8 +101,7 @@ PLATFORMS
|
|
|
101
101
|
DEPENDENCIES
|
|
102
102
|
activejob (>= 7.0.0, >= 0)
|
|
103
103
|
faktory_worker_ruby!
|
|
104
|
-
minitest
|
|
105
|
-
minitest-hooks
|
|
104
|
+
minitest
|
|
106
105
|
rake
|
|
107
106
|
simplecov
|
|
108
107
|
standard
|
data/faktory_worker_ruby.gemspec
CHANGED
|
@@ -22,9 +22,8 @@ Gem::Specification.new do |gem|
|
|
|
22
22
|
"source_code_uri" => "https://github.com/contribsys/faktory_worker_ruby"
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
gem.add_dependency "connection_pool", "
|
|
25
|
+
gem.add_dependency "connection_pool", "<4"
|
|
26
26
|
gem.add_development_dependency "activejob", ">= 7.0.0"
|
|
27
|
-
gem.add_development_dependency "minitest"
|
|
28
|
-
gem.add_development_dependency "minitest-hooks"
|
|
27
|
+
gem.add_development_dependency "minitest"
|
|
29
28
|
gem.add_development_dependency "rake"
|
|
30
29
|
end
|
|
@@ -10,6 +10,17 @@ module ActiveJob
|
|
|
10
10
|
#
|
|
11
11
|
# Rails.application.config.active_job.queue_adapter = :faktory
|
|
12
12
|
class FaktoryAdapter
|
|
13
|
+
@@stopping = false
|
|
14
|
+
Faktory.configure_worker { |config| config.on(:quiet) { @@stopping = true } }
|
|
15
|
+
|
|
16
|
+
def stopping?
|
|
17
|
+
@@stopping
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def enqueue_after_transaction_commit?(job) # :nodoc:
|
|
21
|
+
true
|
|
22
|
+
end
|
|
23
|
+
|
|
13
24
|
def enqueue(job) # :nodoc:
|
|
14
25
|
enqueue_at(job, nil)
|
|
15
26
|
end
|
data/lib/faktory/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: faktory_worker_ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mike Perham
|
|
@@ -13,16 +13,16 @@ dependencies:
|
|
|
13
13
|
name: connection_pool
|
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
|
15
15
|
requirements:
|
|
16
|
-
- - "
|
|
16
|
+
- - "<"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: '
|
|
18
|
+
version: '4'
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
|
-
- - "
|
|
23
|
+
- - "<"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: '
|
|
25
|
+
version: '4'
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: activejob
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -39,20 +39,6 @@ dependencies:
|
|
|
39
39
|
version: 7.0.0
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: minitest
|
|
42
|
-
requirement: !ruby/object:Gem::Requirement
|
|
43
|
-
requirements:
|
|
44
|
-
- - "~>"
|
|
45
|
-
- !ruby/object:Gem::Version
|
|
46
|
-
version: '5'
|
|
47
|
-
type: :development
|
|
48
|
-
prerelease: false
|
|
49
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
-
requirements:
|
|
51
|
-
- - "~>"
|
|
52
|
-
- !ruby/object:Gem::Version
|
|
53
|
-
version: '5'
|
|
54
|
-
- !ruby/object:Gem::Dependency
|
|
55
|
-
name: minitest-hooks
|
|
56
42
|
requirement: !ruby/object:Gem::Requirement
|
|
57
43
|
requirements:
|
|
58
44
|
- - ">="
|
|
@@ -146,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
146
132
|
- !ruby/object:Gem::Version
|
|
147
133
|
version: '0'
|
|
148
134
|
requirements: []
|
|
149
|
-
rubygems_version: 4.0.
|
|
135
|
+
rubygems_version: 4.0.6
|
|
150
136
|
specification_version: 4
|
|
151
137
|
summary: Ruby worker for Faktory
|
|
152
138
|
test_files: []
|