savon 0.9.9 → 0.9.10
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +1 -0
- data/.yardopts +1 -0
- data/CHANGELOG.md +30 -0
- data/Rakefile +14 -1
- data/lib/savon.rb +13 -5
- data/lib/savon/client.rb +7 -2
- data/lib/savon/config.rb +13 -89
- data/lib/savon/log_message.rb +47 -0
- data/lib/savon/logger.rb +37 -0
- data/lib/savon/model.rb +6 -1
- data/lib/savon/soap/request.rb +16 -13
- data/lib/savon/soap/response.rb +4 -3
- data/lib/savon/soap/xml.rb +17 -10
- data/lib/savon/version.rb +1 -1
- data/savon.gemspec +4 -7
- data/spec/integration/stockquote_spec.rb +14 -0
- data/spec/savon/config_spec.rb +20 -0
- data/spec/savon/logger_spec.rb +51 -0
- data/spec/savon/model_spec.rb +11 -2
- data/spec/savon/savon_spec.rb +17 -91
- data/spec/savon/soap/request_spec.rb +8 -16
- data/spec/savon/soap/response_spec.rb +14 -32
- data/spec/savon/soap/xml_spec.rb +25 -24
- data/spec/spec_helper.rb +3 -2
- metadata +63 -94
- data/lib/savon/core_ext/object.rb +0 -14
- data/spec/savon/core_ext/object_spec.rb +0 -19
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: savon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 47
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 10
|
10
|
+
version: 0.9.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Daniel Harrington
|
@@ -15,12 +15,10 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-06-06 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
|
22
|
-
type: :runtime
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
21
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
22
|
none: false
|
25
23
|
requirements:
|
26
24
|
- - ">="
|
@@ -31,12 +29,12 @@ dependencies:
|
|
31
29
|
- 1
|
32
30
|
- 2
|
33
31
|
version: 2.1.2
|
34
|
-
version_requirements: *id001
|
35
32
|
name: builder
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
prerelease: false
|
38
33
|
type: :runtime
|
39
|
-
|
34
|
+
prerelease: false
|
35
|
+
requirement: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
40
38
|
none: false
|
41
39
|
requirements:
|
42
40
|
- - ~>
|
@@ -46,12 +44,12 @@ dependencies:
|
|
46
44
|
- 1
|
47
45
|
- 1
|
48
46
|
version: "1.1"
|
49
|
-
version_requirements: *id002
|
50
47
|
name: nori
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
|
-
prerelease: false
|
53
48
|
type: :runtime
|
54
|
-
|
49
|
+
prerelease: false
|
50
|
+
requirement: *id002
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
55
53
|
none: false
|
56
54
|
requirements:
|
57
55
|
- - ~>
|
@@ -61,12 +59,12 @@ dependencies:
|
|
61
59
|
- 0
|
62
60
|
- 9
|
63
61
|
version: "0.9"
|
64
|
-
version_requirements: *id003
|
65
62
|
name: httpi
|
66
|
-
- !ruby/object:Gem::Dependency
|
67
|
-
prerelease: false
|
68
63
|
type: :runtime
|
69
|
-
|
64
|
+
prerelease: false
|
65
|
+
requirement: *id003
|
66
|
+
- !ruby/object:Gem::Dependency
|
67
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
70
68
|
none: false
|
71
69
|
requirements:
|
72
70
|
- - ~>
|
@@ -76,12 +74,12 @@ dependencies:
|
|
76
74
|
- 2
|
77
75
|
- 1
|
78
76
|
version: "2.1"
|
79
|
-
version_requirements: *id004
|
80
77
|
name: wasabi
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
|
-
prerelease: false
|
83
78
|
type: :runtime
|
84
|
-
|
79
|
+
prerelease: false
|
80
|
+
requirement: *id004
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
85
83
|
none: false
|
86
84
|
requirements:
|
87
85
|
- - ~>
|
@@ -91,12 +89,12 @@ dependencies:
|
|
91
89
|
- 1
|
92
90
|
- 0
|
93
91
|
version: "1.0"
|
94
|
-
version_requirements: *id005
|
95
92
|
name: akami
|
96
|
-
- !ruby/object:Gem::Dependency
|
97
|
-
prerelease: false
|
98
93
|
type: :runtime
|
99
|
-
|
94
|
+
prerelease: false
|
95
|
+
requirement: *id005
|
96
|
+
- !ruby/object:Gem::Dependency
|
97
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
100
98
|
none: false
|
101
99
|
requirements:
|
102
100
|
- - ">="
|
@@ -107,12 +105,12 @@ dependencies:
|
|
107
105
|
- 4
|
108
106
|
- 0
|
109
107
|
version: 0.4.0
|
110
|
-
version_requirements: *id006
|
111
108
|
name: gyoku
|
112
|
-
- !ruby/object:Gem::Dependency
|
113
|
-
prerelease: false
|
114
109
|
type: :runtime
|
115
|
-
|
110
|
+
prerelease: false
|
111
|
+
requirement: *id006
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
116
114
|
none: false
|
117
115
|
requirements:
|
118
116
|
- - ">="
|
@@ -123,102 +121,70 @@ dependencies:
|
|
123
121
|
- 4
|
124
122
|
- 0
|
125
123
|
version: 1.4.0
|
126
|
-
version_requirements: *id007
|
127
124
|
name: nokogiri
|
128
|
-
|
125
|
+
type: :runtime
|
129
126
|
prerelease: false
|
130
|
-
|
131
|
-
|
127
|
+
requirement: *id007
|
128
|
+
- !ruby/object:Gem::Dependency
|
129
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
132
130
|
none: false
|
133
131
|
requirements:
|
134
132
|
- - ~>
|
135
133
|
- !ruby/object:Gem::Version
|
136
|
-
hash:
|
134
|
+
hash: 25
|
137
135
|
segments:
|
138
136
|
- 0
|
139
|
-
-
|
140
|
-
|
141
|
-
version: 0.8.7
|
142
|
-
version_requirements: *id008
|
137
|
+
- 9
|
138
|
+
version: "0.9"
|
143
139
|
name: rake
|
144
|
-
- !ruby/object:Gem::Dependency
|
145
|
-
prerelease: false
|
146
140
|
type: :development
|
147
|
-
|
141
|
+
prerelease: false
|
142
|
+
requirement: *id008
|
143
|
+
- !ruby/object:Gem::Dependency
|
144
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
148
145
|
none: false
|
149
146
|
requirements:
|
150
147
|
- - ~>
|
151
148
|
- !ruby/object:Gem::Version
|
152
|
-
hash:
|
149
|
+
hash: 23
|
153
150
|
segments:
|
154
151
|
- 2
|
155
|
-
-
|
156
|
-
|
157
|
-
version: 2.5.0
|
158
|
-
version_requirements: *id009
|
152
|
+
- 10
|
153
|
+
version: "2.10"
|
159
154
|
name: rspec
|
160
|
-
- !ruby/object:Gem::Dependency
|
161
|
-
prerelease: false
|
162
155
|
type: :development
|
163
|
-
|
156
|
+
prerelease: false
|
157
|
+
requirement: *id009
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
version_requirements: &id010 !ruby/object:Gem::Requirement
|
164
160
|
none: false
|
165
161
|
requirements:
|
166
162
|
- - ~>
|
167
163
|
- !ruby/object:Gem::Version
|
168
|
-
hash:
|
164
|
+
hash: 29
|
169
165
|
segments:
|
170
166
|
- 0
|
171
|
-
-
|
172
|
-
|
173
|
-
version: 0.9.8
|
174
|
-
version_requirements: *id010
|
167
|
+
- 11
|
168
|
+
version: "0.11"
|
175
169
|
name: mocha
|
176
|
-
- !ruby/object:Gem::Dependency
|
177
|
-
prerelease: false
|
178
170
|
type: :development
|
179
|
-
|
171
|
+
prerelease: false
|
172
|
+
requirement: *id010
|
173
|
+
- !ruby/object:Gem::Dependency
|
174
|
+
version_requirements: &id011 !ruby/object:Gem::Requirement
|
180
175
|
none: false
|
181
176
|
requirements:
|
182
177
|
- - ~>
|
183
178
|
- !ruby/object:Gem::Version
|
184
|
-
hash:
|
179
|
+
hash: 13
|
185
180
|
segments:
|
186
181
|
- 0
|
187
182
|
- 3
|
188
|
-
|
189
|
-
version: 0.3.5
|
190
|
-
version_requirements: *id011
|
183
|
+
version: "0.3"
|
191
184
|
name: timecop
|
192
|
-
- !ruby/object:Gem::Dependency
|
193
|
-
prerelease: false
|
194
185
|
type: :development
|
195
|
-
requirement: &id012 !ruby/object:Gem::Requirement
|
196
|
-
none: false
|
197
|
-
requirements:
|
198
|
-
- - ">="
|
199
|
-
- !ruby/object:Gem::Version
|
200
|
-
hash: 3
|
201
|
-
segments:
|
202
|
-
- 0
|
203
|
-
version: "0"
|
204
|
-
version_requirements: *id012
|
205
|
-
name: autotest
|
206
|
-
- !ruby/object:Gem::Dependency
|
207
186
|
prerelease: false
|
208
|
-
|
209
|
-
requirement: &id013 !ruby/object:Gem::Requirement
|
210
|
-
none: false
|
211
|
-
requirements:
|
212
|
-
- - "="
|
213
|
-
- !ruby/object:Gem::Version
|
214
|
-
hash: 43
|
215
|
-
segments:
|
216
|
-
- 4
|
217
|
-
- 5
|
218
|
-
- 0
|
219
|
-
version: 4.5.0
|
220
|
-
version_requirements: *id013
|
221
|
-
name: ZenTest
|
187
|
+
requirement: *id011
|
222
188
|
description: Ruby's heavy metal SOAP client
|
223
189
|
email: me@rubiii.com
|
224
190
|
executables: []
|
@@ -240,12 +206,13 @@ files:
|
|
240
206
|
- lib/savon.rb
|
241
207
|
- lib/savon/client.rb
|
242
208
|
- lib/savon/config.rb
|
243
|
-
- lib/savon/core_ext/object.rb
|
244
209
|
- lib/savon/core_ext/string.rb
|
245
210
|
- lib/savon/error.rb
|
246
211
|
- lib/savon/hooks/group.rb
|
247
212
|
- lib/savon/hooks/hook.rb
|
248
213
|
- lib/savon/http/error.rb
|
214
|
+
- lib/savon/log_message.rb
|
215
|
+
- lib/savon/logger.rb
|
249
216
|
- lib/savon/model.rb
|
250
217
|
- lib/savon/soap.rb
|
251
218
|
- lib/savon/soap/fault.rb
|
@@ -270,10 +237,12 @@ files:
|
|
270
237
|
- spec/fixtures/wsdl/multiple_namespaces.xml
|
271
238
|
- spec/fixtures/wsdl/multiple_types.xml
|
272
239
|
- spec/fixtures/wsdl/taxcloud.xml
|
240
|
+
- spec/integration/stockquote_spec.rb
|
273
241
|
- spec/savon/client_spec.rb
|
274
|
-
- spec/savon/
|
242
|
+
- spec/savon/config_spec.rb
|
275
243
|
- spec/savon/core_ext/string_spec.rb
|
276
244
|
- spec/savon/http/error_spec.rb
|
245
|
+
- spec/savon/logger_spec.rb
|
277
246
|
- spec/savon/model_spec.rb
|
278
247
|
- spec/savon/savon_spec.rb
|
279
248
|
- spec/savon/soap/fault_spec.rb
|
@@ -314,7 +283,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
314
283
|
requirements: []
|
315
284
|
|
316
285
|
rubyforge_project: savon
|
317
|
-
rubygems_version: 1.8.
|
286
|
+
rubygems_version: 1.8.21
|
318
287
|
signing_key:
|
319
288
|
specification_version: 3
|
320
289
|
summary: Heavy metal Ruby SOAP client
|
@@ -1,14 +0,0 @@
|
|
1
|
-
module Savon
|
2
|
-
module CoreExt
|
3
|
-
module Object
|
4
|
-
|
5
|
-
# Returns +true+ if the Object is nil, false or empty. Implementation from ActiveSupport.
|
6
|
-
def blank?
|
7
|
-
respond_to?(:empty?) ? empty? : !self
|
8
|
-
end unless method_defined?(:blank?)
|
9
|
-
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
Object.send :include, Savon::CoreExt::Object
|
@@ -1,19 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
describe Object do
|
4
|
-
|
5
|
-
describe "blank?" do
|
6
|
-
it "returns true for Objects perceived to be blank" do
|
7
|
-
["", false, nil, [], {}].each do |object|
|
8
|
-
object.should be_blank
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
it "returns false for every other Object" do
|
13
|
-
["!blank", true, [:a], {:a => "b"}].each do |object|
|
14
|
-
object.should_not be_blank
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
end
|