scheduled_job 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/scheduled_job.rb +1 -1
- data/lib/scheduled_job/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96c5ac99c1e8a50c8462f854dae018ad67d21c36
|
4
|
+
data.tar.gz: 8e07093a37bf2e90c189fc43974743fd2fc3a219
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53e1fb55eacef2a92f1011fa05a4888f0396c18484151786e6a7d9de5916669469df68ed4fde79de444fec6a56563a2a5921302a14f497ae423fc1bb5aa98a17
|
7
|
+
data.tar.gz: 0d7e7a65ec2bf1f015c155856748a4a46987246b165637dc48edf9fa79880427cb286d454606ad2ddf063ada609f50c194d4d61606197a1cfc74b17a4cab3a30
|
data/lib/scheduled_job.rb
CHANGED
@@ -78,7 +78,7 @@ module ScheduledJob
|
|
78
78
|
end
|
79
79
|
|
80
80
|
def job_exists?(job = nil)
|
81
|
-
conditions = ['handler like ? AND failed_at IS NULL', "%:#{self.name} %"]
|
81
|
+
conditions = ['(handler like ? OR handler like ?) AND failed_at IS NULL', "%:#{self.name} %", "%:#{self.name}\n%"]
|
82
82
|
unless job.blank?
|
83
83
|
conditions[0] << " AND id != ?"
|
84
84
|
conditions << job.id
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scheduled_job
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CallumD
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-01-
|
14
|
+
date: 2015-01-29 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: delayed_job
|