timed_rest_for_chef 0.0.3 → 0.0.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.
@@ -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: