beanstalker 0.4.3 → 0.4.4

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.3
1
+ 0.4.4
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{beanstalker}
8
- s.version = "0.4.3"
8
+ s.version = "0.4.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Gleb Pomykalov"]
@@ -43,11 +43,11 @@ module Beanstalker::Extensions
43
43
  end
44
44
  end
45
45
 
46
- def interpolate_async_options(options, object)
46
+ def interpolate_async_options(options, object, *args)
47
47
  result = {}
48
48
  options.each do |k,v|
49
49
  result[k] = if v.is_a?(Proc)
50
- v.call(object)
50
+ v.call(object, *args)
51
51
  else
52
52
  v
53
53
  end
@@ -60,7 +60,7 @@ module Beanstalker::Extensions
60
60
  end
61
61
 
62
62
  def async_send_opts(selector, opts, *args)
63
- interpolated_options = interpolate_async_options(opts, self)
63
+ interpolated_options = interpolate_async_options(opts, self, *args)
64
64
  Beanstalker::Queue.put_call!(self, selector, interpolated_options, args)
65
65
  end
66
66
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beanstalker
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 3
10
- version: 0.4.3
9
+ - 4
10
+ version: 0.4.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gleb Pomykalov