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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 490264bacfa32881edc69e3fa349081bfa1666785db38c7df55824ab6bd538b4
4
- data.tar.gz: b12570f172afad018ac4709c7203276c0ba737ff90654cae02cadc3197be0357
3
+ metadata.gz: 0b3a20c6db61dce133b76763ea92b6a5b47f99b0b42d42a3e7360a616b148242
4
+ data.tar.gz: 5cfbd1488c274f304ab92d989703b395ceb5d7b6f277b20d053e84de0f3dd649
5
5
  SHA512:
6
- metadata.gz: b5909c1a726457b029d0de62bd22bf6929d84ebcddf35a56a8a0af10a0be7108ca1eb60ed48294ef77013f03d9e3c0f9b87a34d1e54ec966742abf79f5edd41f
7
- data.tar.gz: daec7288a9652399f5dd75c0c6d8a5d5def60f9772a122a8b6212a675bb2d5e6ccee831156afd59b624204c694276f5011df64a122df7d44b578e848798cb5fe
6
+ metadata.gz: 07dbf7e8bb7ac1e7082104ee1d22dcd409b6a6a1d6f899b8c39b1690e1128e40e1e3dbc998d78caa634f464d8b9ce873ba6d519bef004e9cf7e11db9e90d098d
7
+ data.tar.gz: 5c97353fa00bb68b561cffbb50af26b7229083afc51951a749471d1871932d13a4fb2d89a54bdac8dadbc6704ff09eab17e5ae1bf9d013f66ca8c08a9182c8e8
@@ -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 |app|
27
+ initializer "solid_queue.logger" do
28
28
  ActiveSupport.on_load(:solid_queue) do
29
- self.logger ||= app.logger
29
+ self.logger = ::Rails.logger if logger == SolidQueue::DEFAULT_LOGGER
30
30
  end
31
31
 
32
32
  SolidQueue::LogSubscriber.attach_to :solid_queue
@@ -1,3 +1,3 @@
1
1
  module SolidQueue
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
data/lib/solid_queue.rb CHANGED
@@ -20,7 +20,9 @@ loader.setup
20
20
  module SolidQueue
21
21
  extend self
22
22
 
23
- mattr_accessor :logger, default: ActiveSupport::Logger.new($stdout)
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.1
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-20 00:00:00.000000000 Z
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.2.2
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.2.2
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.10.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.10.1
82
+ version: 1.11.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: debug
85
85
  requirement: !ruby/object:Gem::Requirement