sidekiq-middleware 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.md CHANGED
@@ -1,3 +1,8 @@
1
+ 0.0.5
2
+ -----------
3
+
4
+ - Fixed arguments passed to Hash#slice to be compatible with ActiveSupport slice
5
+
1
6
  0.0.4
2
7
  -----------
3
8
 
@@ -9,7 +9,7 @@ module Sidekiq
9
9
  (worker_class.get_sidekiq_options['expiration'] || HASH_KEY_EXPIRATION)
10
10
 
11
11
  if enabled
12
- unique, payload = false, item.clone.slice(%w(class queue args at))
12
+ unique, payload = false, item.clone.slice(*%w(class queue args at))
13
13
 
14
14
  # Enabled unique scheduled
15
15
  if enabled == :all && payload.has_key?('at')
@@ -21,7 +21,7 @@ module Sidekiq
21
21
  # Only enforce uniqueness across class, queue, args, and at.
22
22
  # Useful when middleware uses the payload to store metadata.
23
23
  enabled, payload = worker_instance.class.get_sidekiq_options['unique'],
24
- item.clone.slice(%w(class queue args at))
24
+ item.clone.slice(*%w(class queue args at))
25
25
 
26
26
  # Enabled unique scheduled
27
27
  if enabled == :all && payload.has_key?('at')
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  module Middleware
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-middleware
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -97,7 +97,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
97
97
  version: '0'
98
98
  segments:
99
99
  - 0
100
- hash: 4591254816435035913
100
+ hash: -66154321417516575
101
101
  required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  none: false
103
103
  requirements:
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  segments:
108
108
  - 0
109
- hash: 4591254816435035913
109
+ hash: -66154321417516575
110
110
  requirements: []
111
111
  rubyforge_project:
112
112
  rubygems_version: 1.8.24