delayed_job_active_record 4.1.9 → 4.1.11

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: f6046ece47a2c4aa29a266779efaedac997992b9172730d773170adc6db546aa
4
- data.tar.gz: 4be7b12bce35574cf048a5fd68cfc7b4ba18d4a2c4d15985b4f6f3c91d080bd9
3
+ metadata.gz: dd5723273f3b1453151e1f9e19f75b24a5c2bbe004684fe6572af9f07638475d
4
+ data.tar.gz: fc58cf8535d8f50f854501983b64e42f6976faa56e83ebdfbbbe586a161cbfa3
5
5
  SHA512:
6
- metadata.gz: f0c5be68c20be69bcfcf118ca1ceec6a1b19b31de210b34c6323b5829f991e81fce06de3da6d366f94c3de904a4e984c1b19ad04d4d899eb7372dd091c4fc3f3
7
- data.tar.gz: 46dc494917d07108c594dd6fc339d416ffeae82daa75d1298df3b79859e6a03874d56b215afec7e6e11ffd0f371cbef26f85265c28bfe38e2fb9545151e01b75
6
+ metadata.gz: 430e92cfb9dcf7e53060b80d810b17bbc0d326c53f4c548b11ce55ddc800c6d6688ebf6a457f1ede4c902cb18cfe5126575c619f0b8babc2007ab6c336233898
7
+ data.tar.gz: 813f35b0e6a091f3da1df84d79a34af32258b9ef050c67c639370bb169171e5cf49e92a89c1133d59380a0e46d6fa65427a2c27927dd244dfc95cbe23aaef565
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  **If you're viewing this at https://github.com/collectiveidea/delayed_job_active_record,
2
2
  you're reading the documentation for the master branch.
3
3
  [View documentation for the latest release
4
- (4.1.9).](https://github.com/collectiveidea/delayed_job_active_record/tree/v4.1.9)**
4
+ (4.1.11).](https://github.com/collectiveidea/delayed_job_active_record/tree/v4.1.11)**
5
5
 
6
6
  # DelayedJob ActiveRecord Backend
7
7
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "delayed_job_active_record"
5
- spec.version = "4.1.9"
5
+ spec.version = "4.1.11"
6
6
  spec.summary = "ActiveRecord backend for DelayedJob"
7
7
  spec.description = "ActiveRecord backend for Delayed::Job, originally authored by Tobias Lütke"
8
8
 
@@ -17,6 +17,6 @@ Gem::Specification.new do |spec|
17
17
 
18
18
  spec.metadata = { "rubygems_mfa_required" => "true" }
19
19
 
20
- spec.add_dependency "activerecord", [">= 3.0", "< 8.0"]
20
+ spec.add_dependency "activerecord", [">= 3.0", "< 9.0"]
21
21
  spec.add_dependency "delayed_job", [">= 3.0", "< 5"]
22
22
  end
@@ -63,9 +63,9 @@ module Delayed
63
63
 
64
64
  def self.before_fork
65
65
  if Gem::Version.new("7.1.0") <= Gem::Version.new(::ActiveRecord::VERSION::STRING)
66
- ::ActiveRecord::Base.clear_all_connections!(:all)
66
+ ::ActiveRecord::Base.connection_handler.clear_all_connections!(:all)
67
67
  else
68
- ::ActiveRecord::Base.clear_all_connections!
68
+ ::ActiveRecord::Base.connection_handler.clear_all_connections!
69
69
  end
70
70
  end
71
71
 
@@ -119,7 +119,7 @@ module Delayed
119
119
  # This is our old fashion, tried and true, but possibly slower lookup
120
120
  # Instead of reading the entire job record for our detect loop, we select only the id,
121
121
  # and only read the full job record after we've successfully locked the job.
122
- # This can have a noticable impact on large read_ahead configurations and large payload jobs.
122
+ # This can have a noticeable impact on large read_ahead configurations and large payload jobs.
123
123
  ready_scope.limit(worker.read_ahead).select(:id).detect do |job|
124
124
  count = ready_scope.where(id: job.id).update_all(locked_at: now, locked_by: worker.name)
125
125
  count == 1 && job.reload
@@ -184,7 +184,7 @@ module Delayed
184
184
 
185
185
  # Get the current time (GMT or local depending on DB)
186
186
  # Note: This does not ping the DB to get the time, so all your clients
187
- # must have syncronized clocks.
187
+ # must have synchronized clocks.
188
188
  def self.db_time_now
189
189
  if Time.zone
190
190
  Time.zone.now
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delayed_job_active_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.9
4
+ version: 4.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Genord II
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2024-08-15 00:00:00.000000000 Z
14
+ date: 2024-11-09 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activerecord
@@ -22,7 +22,7 @@ dependencies:
22
22
  version: '3.0'
23
23
  - - "<"
24
24
  - !ruby/object:Gem::Version
25
- version: '8.0'
25
+ version: '9.0'
26
26
  type: :runtime
27
27
  prerelease: false
28
28
  version_requirements: !ruby/object:Gem::Requirement
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '3.0'
33
33
  - - "<"
34
34
  - !ruby/object:Gem::Version
35
- version: '8.0'
35
+ version: '9.0'
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: delayed_job
38
38
  requirement: !ruby/object:Gem::Requirement
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  requirements: []
98
- rubygems_version: 3.5.11
98
+ rubygems_version: 3.5.22
99
99
  signing_key:
100
100
  specification_version: 4
101
101
  summary: ActiveRecord backend for DelayedJob