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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c8ea6abcb1b9b801216f8a3e27a91dae479d9377
4
- data.tar.gz: 32fb82a6c7ffa8c36a4be849b7740b5137f4b88f
3
+ metadata.gz: 96c5ac99c1e8a50c8462f854dae018ad67d21c36
4
+ data.tar.gz: 8e07093a37bf2e90c189fc43974743fd2fc3a219
5
5
  SHA512:
6
- metadata.gz: 412e75f034b7ebf325bd2b85dd5b4930f0f6487f50b19ff41f96a71d127f2cd84ca2b0ceb0d4cdccb959630450eaa3518faf7d44efe9d364badbd259fbd1ebcc
7
- data.tar.gz: a864639f37994c9d72f2d952ffd6da4e7fdbb91876281779a8ed7f80d78fbb9cbb7e6a86e4e45637368960b33536fee2811c361f92ca35535556f8a9fc3fc27a
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
@@ -1,3 +1,3 @@
1
1
  module ScheduledJob
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
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.7
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-28 00:00:00.000000000 Z
14
+ date: 2015-01-29 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: delayed_job