canvas-jobs 0.9.12 → 0.9.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/delayed/periodic.rb +3 -3
- data/lib/delayed/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 145b66e2c267b807d327df23ac5c0511a2ddd173
|
4
|
+
data.tar.gz: 25187fc7c1e9c13e7a50e676c2162e7cd594bfe5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bd66fddb3dd3d6baebc607aa6822bfb139ace0300734855d34ee742c52e283ff937aed054e1125361afdedc202f66022be0e7092b30014ccdc34c48d8bc9729
|
7
|
+
data.tar.gz: 2759d931447d3254756e033c94d524230b3af4c231386c028dbdb93a96a0adc251986d61211e3cc790357828b84b94ddb1b40a1331332a084ff1da10d445a5c1
|
data/lib/delayed/periodic.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'rufus
|
1
|
+
require 'rufus/scheduler'
|
2
2
|
|
3
3
|
module Delayed
|
4
4
|
class Periodic
|
@@ -21,7 +21,7 @@ class Periodic
|
|
21
21
|
def self.add_overrides(overrides)
|
22
22
|
overrides.each do |name, cron_line|
|
23
23
|
# throws error if the line is malformed
|
24
|
-
Rufus::CronLine.new(cron_line)
|
24
|
+
Rufus::Scheduler::CronLine.new(cron_line)
|
25
25
|
end
|
26
26
|
self.overrides.merge!(overrides)
|
27
27
|
end
|
@@ -49,7 +49,7 @@ class Periodic
|
|
49
49
|
|
50
50
|
def initialize(name, cron_line, job_args, block)
|
51
51
|
@name = name
|
52
|
-
@cron = Rufus::CronLine.new(cron_line)
|
52
|
+
@cron = Rufus::Scheduler::CronLine.new(cron_line)
|
53
53
|
@job_args = { :priority => Delayed::LOW_PRIORITY }.merge(job_args.symbolize_keys)
|
54
54
|
@block = block
|
55
55
|
end
|
data/lib/delayed/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: canvas-jobs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Luetke
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-05-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: after_transaction_commit
|
@@ -43,16 +43,16 @@ dependencies:
|
|
43
43
|
name: rufus-scheduler
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
48
|
+
version: 3.1.2
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
55
|
+
version: 3.1.2
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: redis
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -71,14 +71,14 @@ dependencies:
|
|
71
71
|
name: redis-scripting
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: 1.0.1
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- -
|
81
|
+
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: 1.0.1
|
84
84
|
- !ruby/object:Gem::Dependency
|