sidekiq-cron 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/sidekiq/cron/job.rb +1 -1
- data/sidekiq-cron.gemspec +2 -2
- data/test/unit/job_test.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 18d10ca5e18a5ee53447e05e3b9b5975fc4eb58c
|
|
4
|
+
data.tar.gz: 30608e966b3bbb3a0019bc01a933935cc071009a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f099f788b57ef3c70e01a246cb6b92ea16526e7b4e5c1542259a45a45781de21bc8f992b52d331032340f77dc752c549f9afe184856912bd7964e64968bfd589
|
|
7
|
+
data.tar.gz: f820648527087f8f6c1f55e2bbf5bcdb8d43c982434ae4aab311f8db2b8cc53c1a30af86b4f5e5aefffd67da76dede106ce5c32123963dfda7fe9d2666722b29
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.2
|
data/lib/sidekiq/cron/job.rb
CHANGED
|
@@ -12,7 +12,7 @@ module Sidekiq
|
|
|
12
12
|
|
|
13
13
|
#how long we would like to store informations about previous enqueues
|
|
14
14
|
REMEMBER_THRESHOLD = 24 * 60 * 60
|
|
15
|
-
LAST_ENQUEUE_TIME_FORMAT = '%Y-%m-%d %H:%M:%S'
|
|
15
|
+
LAST_ENQUEUE_TIME_FORMAT = '%Y-%m-%d %H:%M:%S %z'
|
|
16
16
|
|
|
17
17
|
#crucial part of whole enquing job
|
|
18
18
|
def should_enque? time
|
data/sidekiq-cron.gemspec
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: sidekiq-cron 1.0.
|
|
5
|
+
# stub: sidekiq-cron 1.0.2 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "sidekiq-cron".freeze
|
|
9
|
-
s.version = "1.0.
|
|
9
|
+
s.version = "1.0.2"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib".freeze]
|
data/test/unit/job_test.rb
CHANGED
|
@@ -600,7 +600,7 @@ describe "Cron Job" do
|
|
|
600
600
|
|
|
601
601
|
it "last_enqueue_time shouldn't be rewritten after save" do
|
|
602
602
|
#adding last_enqueue_time to initialize is only for test purpose
|
|
603
|
-
last_enqueue_time = '2013-01-01 23:59:59'
|
|
603
|
+
last_enqueue_time = '2013-01-01 23:59:59 +0000'
|
|
604
604
|
expected_enqueue_time = DateTime.parse(last_enqueue_time).to_time.utc
|
|
605
605
|
Sidekiq::Cron::Job.create(@args.merge('last_enqueue_time' => last_enqueue_time))
|
|
606
606
|
job = Sidekiq::Cron::Job.find(@args)
|