rews 0.2.9 → 0.2.10

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.2.9
1
+ 0.2.10
@@ -82,7 +82,7 @@ module Rews
82
82
 
83
83
  errors = all_statuses.map{|s| single_error_check(client, s)}.compact
84
84
  rescue Exception=>e
85
- client.log.warn(e)
85
+ client.log{|logger| logger.warn(e)}
86
86
  tag_exception(e, :savon_response=>response)
87
87
  raise e
88
88
  end
@@ -48,10 +48,14 @@ module Rews
48
48
  }.should raise_error(Rews::Error)
49
49
  end
50
50
 
51
- it "should tag any unexpected exceptions with the savon response" do
51
+ it "should log any unexpected exceptions and tag with the savon response" do
52
52
  client = Object.new
53
53
  exception = RuntimeError.new("boo")
54
- mock(client).log.mock!.warn(exception)
54
+ mock(client).log do |block|
55
+ logger = Object.new
56
+ mock(logger).warn(exception)
57
+ block.call(logger)
58
+ end
55
59
 
56
60
  savon_response = Object.new
57
61
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rews
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 9
10
- version: 0.2.9
9
+ - 10
10
+ version: 0.2.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Trampoline Systems Ltd