delayed_cron_job 0.7.3 → 0.7.4
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: 853453d17f852e33afef72373ceec5a6fe462679272e5aa8a2cee37bccf26f3b
|
4
|
+
data.tar.gz: e88869f8b206ad9acd3214eb63ee4366e61c8113fc29084e8d8edaf1fd85db22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7bdef74835bd41fe795bc61889361bea65521b7c1771c6e2c29ef693fe15afeeafe74fecb0152a2be7aa40483578866ceec03711e24b71eafa7c66e454c05ad
|
7
|
+
data.tar.gz: 991d3d78e52d7932e96d99dacb0bd869bf5ac314fb0a2e89fa5b9d2c0063a63f595b22fad950bf72397003d3621bfabbe79e4e2863b41fee9bac410cb1043286
|
data/lib/delayed_cron_job.rb
CHANGED
@@ -24,9 +24,15 @@ if defined?(Delayed::Backend::Mongoid)
|
|
24
24
|
end
|
25
25
|
|
26
26
|
if defined?(Delayed::Backend::ActiveRecord)
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
if defined?(Rails::Railtie)
|
28
|
+
# Postpone initialization to railtie for correct order
|
29
|
+
require 'delayed_cron_job/backend/active_record/railtie'
|
30
|
+
else
|
31
|
+
# Do the same as in the railtie
|
32
|
+
Delayed::Backend::ActiveRecord::Job.send(:include, DelayedCronJob::Backend::UpdatableCron)
|
33
|
+
if Delayed::Backend::ActiveRecord::Job.respond_to?(:attr_accessible)
|
34
|
+
Delayed::Backend::ActiveRecord::Job.attr_accessible(:cron)
|
35
|
+
end
|
30
36
|
end
|
31
37
|
end
|
32
38
|
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module DelayedCronJob
|
2
|
+
module Backend
|
3
|
+
module ActiveRecord
|
4
|
+
class Railtie < ::Rails::Railtie
|
5
|
+
config.after_initialize do
|
6
|
+
Delayed::Backend::ActiveRecord::Job.send(:include, DelayedCronJob::Backend::UpdatableCron)
|
7
|
+
if Delayed::Backend::ActiveRecord::Job.respond_to?(:attr_accessible)
|
8
|
+
Delayed::Backend::ActiveRecord::Job.attr_accessible(:cron)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: delayed_cron_job
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pascal Zumkehr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: delayed_job
|
@@ -129,6 +129,7 @@ files:
|
|
129
129
|
- lib/delayed_cron_job.rb
|
130
130
|
- lib/delayed_cron_job/active_job/enqueuing.rb
|
131
131
|
- lib/delayed_cron_job/active_job/queue_adapter.rb
|
132
|
+
- lib/delayed_cron_job/backend/active_record/railtie.rb
|
132
133
|
- lib/delayed_cron_job/backend/updatable_cron.rb
|
133
134
|
- lib/delayed_cron_job/cronline.rb
|
134
135
|
- lib/delayed_cron_job/plugin.rb
|
@@ -157,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
158
|
- !ruby/object:Gem::Version
|
158
159
|
version: '0'
|
159
160
|
requirements: []
|
160
|
-
rubygems_version: 3.
|
161
|
+
rubygems_version: 3.0.6
|
161
162
|
signing_key:
|
162
163
|
specification_version: 4
|
163
164
|
summary: An extension to Delayed::Job that allows you to set cron expressions for
|