sidetiq 0.3.3 → 0.3.4

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: d5176aed9abba4157c9913ff2b421ae5c355e1d3
4
- data.tar.gz: 1a6f8f296756a2f8b86d7bd2583e95aedbf3f530
3
+ metadata.gz: a2cb05faf92ad3d0a84aae9979f0779ae4a866b2
4
+ data.tar.gz: 05a520e51d1638fd7cac1c583743f889fe90433e
5
5
  SHA512:
6
- metadata.gz: 52b4e965ffad546335b40203c8fb93be9d45659736b37e207f26a41954fb3db999b5b1bd0cd0f9b3ef06bccca8f24ffe6e772fe1ee22c441cef99697cb3086d6
7
- data.tar.gz: 2dd87568bbda265f76e7bd061e2044b404f08242bee266ff4086fdc994c8c22ce866a4ba969bfcd34f189bd267676004517eac977a8185035d865e4690143656
6
+ metadata.gz: 2a0103918991773d0cebaec5668a1ff594e8ebf712520fa7c3d4eba95adddd0f004af6e11475bb7898dc12015257dba7f0edcacb125f61f22dd0cd5b7b76de35
7
+ data.tar.gz: 3157136ca0f6dda1a7196d46ef98b423dc218909f4671387a4f20c9a13c81d0b637c9c33a96d08ec6919e41ab750f35ac6cee25fa02fc34c5a6f227795b4daa4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ 0.3.4
2
+ -----
3
+
4
+ - More robust #perform arity handling.
5
+
1
6
  0.3.3
2
7
  -----
3
8
 
data/lib/sidetiq/clock.rb CHANGED
@@ -139,10 +139,14 @@ module Sidetiq
139
139
 
140
140
  redis.mset("#{key}:last", next_run, "#{key}:next", time_f)
141
141
 
142
- arity = [worker.instance_method(:perform).arity - 1, -1].max
143
- args = [next_run, time_f][0..arity]
144
-
145
- worker.perform_at(time, *args)
142
+ case worker.instance_method(:perform).arity
143
+ when 0
144
+ worker.perform_at(time)
145
+ when 1
146
+ worker.perform_at(time, next_run)
147
+ else
148
+ worker.perform_at(time, next_run, time_f)
149
+ end
146
150
  end
147
151
  end
148
152
 
@@ -8,7 +8,7 @@ module Sidetiq
8
8
  MINOR = 3
9
9
 
10
10
  # Public: Sidetiq patch level.
11
- PATCH = 3
11
+ PATCH = 4
12
12
 
13
13
  # Public: String representation of the current Sidetiq version.
14
14
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidetiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Svensson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-12 00:00:00.000000000 Z
11
+ date: 2013-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq
@@ -119,4 +119,3 @@ test_files:
119
119
  - test/test_version.rb
120
120
  - test/test_web.rb
121
121
  - test/test_worker.rb
122
- has_rdoc: