timed_rest_for_chef 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,10 +12,10 @@ if(Gem::Version.new(Chef::VERSION) < Gem::Version.new('10.14.0'))
12
12
  end
13
13
 
14
14
  module TimedRestForChef
15
- def timed_call
15
+ def timed_call(*args, &block)
16
16
  begin
17
17
  Timeout::timeout(config[:rest_timeout], RESTTimeout) do
18
- original_call
18
+ original_call(*args, &block)
19
19
  end
20
20
  rescue => e
21
21
  if(e.is_a?(WrapperTimeout))
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'timed_rest_for_chef'
3
- s.version = '0.0.3'
3
+ s.version = '0.0.4'
4
4
  s.summary = 'Timed REST for Chef'
5
5
  s.author = 'Chris Roberts'
6
6
  s.email = 'chrisroberts.code@gmail.com'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timed_rest_for_chef
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: