sidekiq-cron 1.0.1 → 1.0.2

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: ded0af6d28d26842c24c57d59d6c91b413ee4a72
4
- data.tar.gz: 8602e4d3bb9a992382549dbfbfa3f12b0f9c5170
3
+ metadata.gz: 18d10ca5e18a5ee53447e05e3b9b5975fc4eb58c
4
+ data.tar.gz: 30608e966b3bbb3a0019bc01a933935cc071009a
5
5
  SHA512:
6
- metadata.gz: 9430905a4b17f3186e8b7f6275f14c308e3f9bb308964861b92d78376493c7d445d2218ec1818a514df16f284fed206cf9c4e4ab1330a13eb48b5095b33c6ec7
7
- data.tar.gz: 8d095e03c1568ba9a5231a1a0c6c49e96d1427bf64e54aa2f19c8dc242e76e0aea50eae8bf676be8a01bb281ef0ce560fdfe0f2f2153d5fb675f498e41fc2f61
6
+ metadata.gz: f099f788b57ef3c70e01a246cb6b92ea16526e7b4e5c1542259a45a45781de21bc8f992b52d331032340f77dc752c549f9afe184856912bd7964e64968bfd589
7
+ data.tar.gz: f820648527087f8f6c1f55e2bbf5bcdb8d43c982434ae4aab311f8db2b8cc53c1a30af86b4f5e5aefffd67da76dede106ce5c32123963dfda7fe9d2666722b29
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
@@ -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
@@ -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.1 ruby lib
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.1"
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]
@@ -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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-cron
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondrej Bartas