solid_queue 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/solid_queue/engine.rb +2 -2
- data/lib/solid_queue/version.rb +1 -1
- data/lib/solid_queue.rb +5 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b3a20c6db61dce133b76763ea92b6a5b47f99b0b42d42a3e7360a616b148242
|
4
|
+
data.tar.gz: 5cfbd1488c274f304ab92d989703b395ceb5d7b6f277b20d053e84de0f3dd649
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07dbf7e8bb7ac1e7082104ee1d22dcd409b6a6a1d6f899b8c39b1690e1128e40e1e3dbc998d78caa634f464d8b9ce873ba6d519bef004e9cf7e11db9e90d098d
|
7
|
+
data.tar.gz: 5c97353fa00bb68b561cffbb50af26b7229083afc51951a749471d1871932d13a4fb2d89a54bdac8dadbc6704ff09eab17e5ae1bf9d013f66ca8c08a9182c8e8
|
data/lib/solid_queue/engine.rb
CHANGED
@@ -24,9 +24,9 @@ module SolidQueue
|
|
24
24
|
SolidQueue.on_thread_error = config.solid_queue.on_thread_error
|
25
25
|
end
|
26
26
|
|
27
|
-
initializer "solid_queue.logger" do
|
27
|
+
initializer "solid_queue.logger" do
|
28
28
|
ActiveSupport.on_load(:solid_queue) do
|
29
|
-
self.logger
|
29
|
+
self.logger = ::Rails.logger if logger == SolidQueue::DEFAULT_LOGGER
|
30
30
|
end
|
31
31
|
|
32
32
|
SolidQueue::LogSubscriber.attach_to :solid_queue
|
data/lib/solid_queue/version.rb
CHANGED
data/lib/solid_queue.rb
CHANGED
@@ -20,7 +20,9 @@ loader.setup
|
|
20
20
|
module SolidQueue
|
21
21
|
extend self
|
22
22
|
|
23
|
-
|
23
|
+
DEFAULT_LOGGER = ActiveSupport::Logger.new($stdout)
|
24
|
+
|
25
|
+
mattr_accessor :logger, default: DEFAULT_LOGGER
|
24
26
|
mattr_accessor :app_executor, :on_thread_error, :connects_to
|
25
27
|
|
26
28
|
mattr_accessor :use_skip_locked, default: true
|
@@ -56,4 +58,6 @@ module SolidQueue
|
|
56
58
|
def instrument(channel, **options, &block)
|
57
59
|
ActiveSupport::Notifications.instrument("#{channel}.solid_queue", **options, &block)
|
58
60
|
end
|
61
|
+
|
62
|
+
ActiveSupport.run_load_hooks(:solid_queue, self)
|
59
63
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solid_queue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rosa Gutierrez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -56,30 +56,30 @@ dependencies:
|
|
56
56
|
name: concurrent-ruby
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.
|
61
|
+
version: 1.3.1
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.
|
68
|
+
version: 1.3.1
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: fugit
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 1.
|
75
|
+
version: 1.11.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 1.
|
82
|
+
version: 1.11.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: debug
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|