delayed_job_active_record 4.1.7 → 4.1.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f3787467e904817090ad112e500a855194661f9295623517cc73c0bbb930c57
|
4
|
+
data.tar.gz: 200346cb19ab7030a82e86c41499220a6aab7e76bec940b14a17b39a96f13490
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96b163e6ddbd7dd28c1b8bfd33fcbc7c39ee3b7c66af76774e45f7cf60f88946b26c8afa994af786ce7b4960f33c41209bcc75a99c4c0fd8b023ad83bd737c52
|
7
|
+
data.tar.gz: f149d6efdc7b06935639ea8f57d39f32710f1961f285b9a1baf0afd95c8bd30553d2a2c7e59e9ced337d323008a173832c6724af12d4788976808bb9bfae6f60
|
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.7).](https://github.com/collectiveidea/delayed_job_active_record/tree/v4.1.
|
4
|
+
(4.1.7).](https://github.com/collectiveidea/delayed_job_active_record/tree/v4.1.8)**
|
5
5
|
|
6
6
|
# DelayedJob ActiveRecord Backend
|
7
7
|
|
@@ -3,9 +3,9 @@
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.add_dependency "activerecord", [">= 3.0", "< 8.0"]
|
5
5
|
spec.add_dependency "delayed_job", [">= 3.0", "< 5"]
|
6
|
-
spec.authors = ["Brian Ryckbost", "Matt Griffin", "Erik Michaels-Ober"]
|
6
|
+
spec.authors = ["David Genord II", "Brian Ryckbost", "Matt Griffin", "Erik Michaels-Ober"]
|
7
7
|
spec.description = "ActiveRecord backend for Delayed::Job, originally authored by Tobias Lütke"
|
8
|
-
spec.email = ["bryckbost@gmail.com", "matt@griffinonline.org", "sferik@gmail.com"]
|
8
|
+
spec.email = ["david@collectiveidea.com", "bryckbost@gmail.com", "matt@griffinonline.org", "sferik@gmail.com"]
|
9
9
|
spec.files = %w[CONTRIBUTING.md LICENSE.md README.md delayed_job_active_record.gemspec] + Dir["lib/**/*.rb"]
|
10
10
|
spec.homepage = "http://github.com/collectiveidea/delayed_job_active_record"
|
11
11
|
spec.licenses = ["MIT"]
|
@@ -13,5 +13,5 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.name = "delayed_job_active_record"
|
14
14
|
spec.require_paths = ["lib"]
|
15
15
|
spec.summary = "ActiveRecord backend for DelayedJob"
|
16
|
-
spec.version = "4.1.
|
16
|
+
spec.version = "4.1.8"
|
17
17
|
end
|
@@ -62,7 +62,7 @@ module Delayed
|
|
62
62
|
end
|
63
63
|
|
64
64
|
def self.before_fork
|
65
|
-
::ActiveRecord::Base.clear_all_connections!
|
65
|
+
::ActiveRecord::Base.connection_handler.clear_all_connections!
|
66
66
|
end
|
67
67
|
|
68
68
|
def self.after_fork
|
@@ -172,13 +172,21 @@ module Delayed
|
|
172
172
|
def self.db_time_now
|
173
173
|
if Time.zone
|
174
174
|
Time.zone.now
|
175
|
-
elsif
|
175
|
+
elsif default_timezone == :utc
|
176
176
|
Time.now.utc
|
177
177
|
else
|
178
178
|
Time.now # rubocop:disable Rails/TimeZone
|
179
179
|
end
|
180
180
|
end
|
181
181
|
|
182
|
+
def self.default_timezone
|
183
|
+
if ::ActiveRecord.respond_to?(:default_timezone)
|
184
|
+
::ActiveRecord.default_timezone
|
185
|
+
else
|
186
|
+
::ActiveRecord::Base.default_timezone
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
182
190
|
def reload(*args)
|
183
191
|
reset
|
184
192
|
super
|
@@ -6,7 +6,14 @@ module DelayedJob
|
|
6
6
|
# since ActiveRecord 3.0
|
7
7
|
def next_migration_number(dirname)
|
8
8
|
next_migration_number = current_migration_number(dirname) + 1
|
9
|
-
|
9
|
+
timestamped_migrations =
|
10
|
+
if ActiveRecord.respond_to?(:timestamped_migrations)
|
11
|
+
ActiveRecord.timestamped_migrations
|
12
|
+
else
|
13
|
+
ActiveRecord::Base.timestamped_migrations
|
14
|
+
end
|
15
|
+
|
16
|
+
if timestamped_migrations
|
10
17
|
[Time.now.utc.strftime("%Y%m%d%H%M%S"), format("%.14d", next_migration_number)].max
|
11
18
|
else
|
12
19
|
format("%.3d", next_migration_number)
|
metadata
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: delayed_job_active_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
+
- David Genord II
|
7
8
|
- Brian Ryckbost
|
8
9
|
- Matt Griffin
|
9
10
|
- Erik Michaels-Ober
|
10
|
-
autorequire:
|
11
|
+
autorequire:
|
11
12
|
bindir: bin
|
12
13
|
cert_chain: []
|
13
|
-
date:
|
14
|
+
date: 2023-10-13 00:00:00.000000000 Z
|
14
15
|
dependencies:
|
15
16
|
- !ruby/object:Gem::Dependency
|
16
17
|
name: activerecord
|
@@ -55,6 +56,7 @@ dependencies:
|
|
55
56
|
description: ActiveRecord backend for Delayed::Job, originally authored by Tobias
|
56
57
|
Lütke
|
57
58
|
email:
|
59
|
+
- david@collectiveidea.com
|
58
60
|
- bryckbost@gmail.com
|
59
61
|
- matt@griffinonline.org
|
60
62
|
- sferik@gmail.com
|
@@ -78,7 +80,7 @@ licenses:
|
|
78
80
|
- MIT
|
79
81
|
metadata:
|
80
82
|
rubygems_mfa_required: 'true'
|
81
|
-
post_install_message:
|
83
|
+
post_install_message:
|
82
84
|
rdoc_options: []
|
83
85
|
require_paths:
|
84
86
|
- lib
|
@@ -93,8 +95,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
95
|
- !ruby/object:Gem::Version
|
94
96
|
version: '0'
|
95
97
|
requirements: []
|
96
|
-
rubygems_version: 3.
|
97
|
-
signing_key:
|
98
|
+
rubygems_version: 3.4.20
|
99
|
+
signing_key:
|
98
100
|
specification_version: 4
|
99
101
|
summary: ActiveRecord backend for DelayedJob
|
100
102
|
test_files: []
|