savon 2.11.2 → 2.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +112 -73
  3. data/README.md +25 -16
  4. data/lib/savon/block_interface.rb +1 -0
  5. data/lib/savon/builder.rb +100 -30
  6. data/lib/savon/client.rb +1 -0
  7. data/lib/savon/header.rb +2 -6
  8. data/lib/savon/http_error.rb +4 -4
  9. data/lib/savon/log_message.rb +1 -0
  10. data/lib/savon/message.rb +1 -0
  11. data/lib/savon/mock/expectation.rb +1 -0
  12. data/lib/savon/mock/spec_helper.rb +1 -0
  13. data/lib/savon/mock.rb +1 -0
  14. data/lib/savon/model.rb +4 -3
  15. data/lib/savon/operation.rb +20 -18
  16. data/lib/savon/options.rb +71 -2
  17. data/lib/savon/qualified_message.rb +5 -4
  18. data/lib/savon/request.rb +18 -3
  19. data/lib/savon/request_logger.rb +8 -2
  20. data/lib/savon/response.rb +52 -5
  21. data/lib/savon/soap_fault.rb +2 -3
  22. data/lib/savon/string_utils.rb +17 -0
  23. data/lib/savon/version.rb +2 -1
  24. data/lib/savon.rb +2 -0
  25. metadata +62 -97
  26. data/.gitignore +0 -14
  27. data/.travis.yml +0 -19
  28. data/.yardopts +0 -6
  29. data/CONTRIBUTING.md +0 -46
  30. data/Gemfile +0 -13
  31. data/donate.png +0 -0
  32. data/lib/savon/core_ext/string.rb +0 -29
  33. data/savon.gemspec +0 -46
  34. data/spec/fixtures/gzip/message.gz +0 -0
  35. data/spec/fixtures/response/another_soap_fault.xml +0 -14
  36. data/spec/fixtures/response/authentication.xml +0 -14
  37. data/spec/fixtures/response/f5.xml +0 -39
  38. data/spec/fixtures/response/header.xml +0 -13
  39. data/spec/fixtures/response/list.xml +0 -18
  40. data/spec/fixtures/response/multi_ref.xml +0 -39
  41. data/spec/fixtures/response/soap_fault.xml +0 -8
  42. data/spec/fixtures/response/soap_fault12.xml +0 -18
  43. data/spec/fixtures/response/soap_fault_funky.xml +0 -8
  44. data/spec/fixtures/response/taxcloud.xml +0 -1
  45. data/spec/fixtures/ssl/client_cert.pem +0 -16
  46. data/spec/fixtures/ssl/client_encrypted_key.pem +0 -30
  47. data/spec/fixtures/ssl/client_encrypted_key_cert.pem +0 -24
  48. data/spec/fixtures/ssl/client_key.pem +0 -15
  49. data/spec/fixtures/wsdl/authentication.xml +0 -63
  50. data/spec/fixtures/wsdl/betfair.xml +0 -2981
  51. data/spec/fixtures/wsdl/brand.xml +0 -624
  52. data/spec/fixtures/wsdl/edialog.xml +0 -15416
  53. data/spec/fixtures/wsdl/interhome.xml +0 -2137
  54. data/spec/fixtures/wsdl/lower_camel.xml +0 -52
  55. data/spec/fixtures/wsdl/multiple_namespaces.xml +0 -92
  56. data/spec/fixtures/wsdl/multiple_types.xml +0 -60
  57. data/spec/fixtures/wsdl/no_message_tag.xml +0 -1267
  58. data/spec/fixtures/wsdl/taxcloud.xml +0 -934
  59. data/spec/fixtures/wsdl/team_software.xml +0 -1
  60. data/spec/fixtures/wsdl/vies.xml +0 -176
  61. data/spec/fixtures/wsdl/wasmuth.xml +0 -153
  62. data/spec/integration/centra_spec.rb +0 -66
  63. data/spec/integration/email_example_spec.rb +0 -32
  64. data/spec/integration/random_quote_spec.rb +0 -23
  65. data/spec/integration/ratp_example_spec.rb +0 -28
  66. data/spec/integration/stockquote_example_spec.rb +0 -34
  67. data/spec/integration/support/application.rb +0 -82
  68. data/spec/integration/support/server.rb +0 -84
  69. data/spec/integration/temperature_example_spec.rb +0 -46
  70. data/spec/integration/zipcode_example_spec.rb +0 -42
  71. data/spec/savon/builder_spec.rb +0 -137
  72. data/spec/savon/client_spec.rb +0 -271
  73. data/spec/savon/core_ext/string_spec.rb +0 -37
  74. data/spec/savon/features/message_tag_spec.rb +0 -61
  75. data/spec/savon/http_error_spec.rb +0 -49
  76. data/spec/savon/log_message_spec.rb +0 -50
  77. data/spec/savon/message_spec.rb +0 -70
  78. data/spec/savon/mock_spec.rb +0 -174
  79. data/spec/savon/model_spec.rb +0 -182
  80. data/spec/savon/observers_spec.rb +0 -92
  81. data/spec/savon/operation_spec.rb +0 -230
  82. data/spec/savon/options_spec.rb +0 -1075
  83. data/spec/savon/qualified_message_spec.rb +0 -68
  84. data/spec/savon/request_logger_spec.rb +0 -37
  85. data/spec/savon/request_spec.rb +0 -496
  86. data/spec/savon/response_spec.rb +0 -270
  87. data/spec/savon/soap_fault_spec.rb +0 -136
  88. data/spec/savon/softlayer_spec.rb +0 -27
  89. data/spec/spec_helper.rb +0 -30
  90. data/spec/support/adapters.rb +0 -48
  91. data/spec/support/endpoint.rb +0 -25
  92. data/spec/support/fixture.rb +0 -39
  93. data/spec/support/integration.rb +0 -9
  94. data/spec/support/stdout.rb +0 -25
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ee16983ffafe63866c9a55e2f87082982882442b
4
- data.tar.gz: 031a0b620818fa9242fa6df79d716dc2d5fb0795
2
+ SHA256:
3
+ metadata.gz: 06d51f50e77421b9c47f4879bf243ab850fe79c0ef520be98547b4d8ddf7265f
4
+ data.tar.gz: 4054d063de6bb45ba6fac8527ed96a66639ab9c56697c0d5386f80e09f452782
5
5
  SHA512:
6
- metadata.gz: 32d112e59f45ec6b6f1c65f54c33030c99ae2e2c931ce476d0c62cceb7715d62772164b0f7e182ab691a8b47d8cfeb7c83140986743f3e134e91040d099905a6
7
- data.tar.gz: 0d73626cde6c3ccec91b090f0d30cb1f6031b5fdc88834e1874719f0e269ae62c5a4e9402e863a45e7fb64c176b58f6ff8bb5296a2e13d1ddd28bb1133c9af0d
6
+ metadata.gz: d0667f3ffb291ae9d01678539f43eb4fc05bbe593c6ce4f8019890116984befa424c6a1fd9847f1db57edd1b1df2ed2600da465e5f72f09156807f80138be872
7
+ data.tar.gz: 764d2b88bd39f6e552a6a0a6f58c8a19d7b5bd22bdad17fe999fccf9c8f2d5aa2f0d426a10e900a6f0e480f967f1c9cf6faba087777c5e0a674267eae24d20f4
data/CHANGELOG.md CHANGED
@@ -1,4 +1,43 @@
1
- # 2.11.2 (2017-08-03)
1
+ # Savon changelog
2
+
3
+ ## Unreleased
4
+ * Add your PR changelog line here
5
+
6
+ ## 2.14.0 (2022-12-16)
7
+
8
+ * BC BREAKING Fix: [#985](https://github.com/savonrb/savon/pull/985) Renamed `Savon::Response#hash` to `Savon::Response#full_hash`
9
+ * BC BREAKING Fix: [#988](https://github.com/savonrb/savon/pull/988) Savon no longer monkeypatches `String#snakecase`
10
+ * Fix: [#989](https://github.com/savonrb/savon/pull/989) Do not include xmlns from WSDL, which breaks some servers
11
+
12
+ ## 2.13.1 (2022-09-04)
13
+
14
+ * Fix: [#977](https://github.com/savonrb/savon/pull/977) Prevent "xmlns:xmlns" namespace but allow "xmlns" namespace.
15
+
16
+ ## 2.13.0 (2022-08-03)
17
+
18
+ * Drop support for ruby 2.6 and below. Added Ruby 3.0 and 3.1 to test matrix.
19
+ * Fix: [#868](https://github.com/savonrb/savon/pull/868) Remove `xmlns:wsa`'s already added elsewhere; select Content-Type HTTP header based on SOAP version.
20
+ * Fix: [#943](https://github.com/savonrb/savon/pull/943) Read all namespaces from wsdl definition if document exists
21
+ * Feature: [#920](https://github.com/savonrb/savon/pull/920) Add a `write_timeout` setter for HTTP requests
22
+ * Feature: [#930](https://github.com/savonrb/savon/pull/930) Add options for SSL min_version/max_version support
23
+ * Feature: [#931](https://github.com/savonrb/savon/pull/931) Add `log_headers` option
24
+
25
+ ## 2.12.1 (2020-07-05)
26
+
27
+ * Fix: [#917](https://github.com/savonrb/savon/pull/917) elementFormDefault="qualified" regression
28
+ * Fix: [#875](https://github.com/savonrb/savon/pull/875) Fix detecting Soap 1.1 Fault when faultcode and faultstring are empty
29
+
30
+ ## 2.12.0 (2018-01-16)
31
+
32
+ * Drop support for ruby 2.1 and below.
33
+ * Fix: [#822](https://github.com/savonrb/savon/pull/822) Raise correct error when SOAP envelope only contains a string
34
+ * Fix: [#833](https://github.com/savonrb/savon/pull/833) Fixes boolean handling regression introduced in 2.11.2
35
+ * Feature: [#794](https://github.com/savonrb/savon/pull/794), add global option ssl_ciphers.
36
+ * Feature: [#753](https://github.com/savonrb/savon/pull/753) Add headers configuration to WSDLRequest#build
37
+ * Feature: [#812](https://github.com/savonrb/savon/pull/812) Allow `proxy` option to be `nil`.
38
+ * Feature: [#838](https://github.com/savonrb/savon/pull/838) Added ssl_ca_path and ssl_cert_store to globals
39
+
40
+ ## 2.11.2 (2017-08-03)
2
41
  * Fix: [#676](https://github.com/savonrb/savon/pull/676) Fixes handling of `content!` and `attributes!`
3
42
  * Fix: [#800](https://github.com/savonrb/savon/pull/800) Fix exception calling `SOAPFault#to_s` when http.body is empty
4
43
  * Fix: [#757](https://github.com/savonrb/savon/pull/757) Logging: Use filter without automatic pretty printing
@@ -7,43 +46,43 @@
7
46
  * Feature: [#742](https://github.com/savonrb/savon/pull/742) Add support for local request headers
8
47
  * Feature: [#704](https://github.com/savonrb/savon/pull/704) Add possibility to pass attribute delete_namespace_attributes to Nori
9
48
 
10
- # 2.11.1 (2015-05-27)
49
+ ## 2.11.1 (2015-05-27)
11
50
 
12
51
  * Replace dependency on [uuid](https://rubygems.org/gems/uuid), using SecureRandom.uuid instead.
13
52
 
14
- # 2.11.0 (2015-03-31)
53
+ ## 2.11.0 (2015-03-31)
15
54
 
16
- * Formally drop support for 1.8.7.
55
+ * Formally drop support for 1.8.7.
17
56
 
18
- # 2.10.1 (2015-03-15)
57
+ ## 2.10.1 (2015-03-15)
19
58
 
20
59
  * Feature: [#673](https://github.com/savonrb/savon/pull/673) Adds an :unwrap option that is passed to Gyoku.
21
60
 
22
- # 2.10.0 (2015-03-02)
61
+ ## 2.10.0 (2015-03-02)
23
62
 
24
63
  * Fix: This reverts a purported "fix" to operation names.
25
64
 
26
- # 2.9.0 (2015-01-29)
65
+ ## 2.9.0 (2015-01-29)
27
66
 
28
67
  * Feature: [#655] Wasabi exceptions should be rethrown as Savon errors. This should make it easier to catch errors thrown by Savon::Client.
29
68
  * Feature: [#630] ServiceFaults are correctly identified as Soap Faults.
30
69
 
31
- # 2.8.0 (2014-11-12)
70
+ ## 2.8.0 (2014-11-12)
32
71
 
33
72
  * Feature : [#620](https://github.com/savonrb/savon/pull/620) add #build_request method that builds the actual XML request body, but does not submit it. Useful for debugging, possibly.
34
73
  * Fix : Loosened dependencies on Gyoku, Nori, Akami, and other Savon-dependency gems
35
74
  * Feature: [#636](https://github.com/savonrb/savon/pull/636) Set HTTPI.logger when Savon's logger is configured.
36
75
  * Feature: [#639](https://github.com/savonrb/savon/issues/639) Allow setting any SSL version that OpenSSL provides. See [the relevant HTTPI issue](https://github.com/savonrb/httpi/pull/136) for more information.
37
76
 
38
- # 2.7.2 (2014-09-23)
77
+ ## 2.7.2 (2014-09-23)
39
78
 
40
79
  Fix : Preserve false values (https://github.com/savonrb/savon/issues/321)
41
80
 
42
- # 2.7.1 (2014-09-23)
81
+ ## 2.7.1 (2014-09-23)
43
82
 
44
83
  * Fix : Fix a crash in builder when request headers do not contain WSA headers
45
84
 
46
- # 2.7.0 (2014-09-23)
85
+ ## 2.7.0 (2014-09-23)
47
86
 
48
87
  * Feature: Signing requests. Added wsse_signature.
49
88
  ```ruby
@@ -52,7 +91,7 @@ Fix : Preserve false values (https://github.com/savonrb/savon/issues/321)
52
91
  end
53
92
  ```
54
93
 
55
- # 2.5.0 (2014-05-03)
94
+ ## 2.5.0 (2014-05-03)
56
95
 
57
96
  * Feature: [#573](https://github.com/savonrb/savon/pull/573) Add an `all_operations` method to `Savon::Model` that automatically adds all available operations to the model.
58
97
 
@@ -72,16 +111,16 @@ Fix : Preserve false values (https://github.com/savonrb/savon/issues/321)
72
111
  client = Savon.client(wsdl: "http://example.com/service.wsdl", log: true)
73
112
  ```
74
113
 
75
- ### 2.3.2 (2013-12-09)
114
+ ## 2.3.2 (2013-12-09)
76
115
 
77
116
  * Fix: [#520](https://github.com/savonrb/savon/issues/520) Fixes a regression in message tags in requests and responses.
78
117
 
79
- ### 2.3.1 (2013-12-05)
118
+ ## 2.3.1 (2013-12-05)
80
119
 
81
120
  * Removed dependency on Nokogiri <= 1.4 -- This improves support for ruby 1.9.3 and 2.0.0 and officially begins the end of support for ruby 1.8.7
82
121
  See [issue #487](https://github.com/savonrb/savon/issues/487)
83
122
 
84
- ### 2.3.0 (2013-07-27)
123
+ ## 2.3.0 (2013-07-27)
85
124
 
86
125
  Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
87
126
 
@@ -129,7 +168,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
129
168
  * Fix: [#468](https://github.com/savonrb/savon/issues/468) Changed the dependency on Nokogiri
130
169
  to < 1.6, because Nokogiri 1.6 dropped support for Ruby 1.8.
131
170
 
132
- ### 2.2.0 (2013-04-21)
171
+ ## 2.2.0 (2013-04-21)
133
172
 
134
173
  * Feature: [#416](https://github.com/savonrb/savon/pull/416) The global `namespace_identifier`
135
174
  option can now be set to `nil` to not add a namespace identifier to the message tag.
@@ -167,7 +206,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
167
206
  * Fix: [#423](https://github.com/savonrb/savon/issues/423) fixes a problem where Wasabi was
168
207
  not able to find extension base elements defined in imports it didn't follow.
169
208
 
170
- ### 2.1.0 (2013-02-03)
209
+ ## 2.1.0 (2013-02-03)
171
210
 
172
211
  * Feature: [#372](https://github.com/savonrb/savon/pull/372) added global `ssl_cert_key_password` option.
173
212
 
@@ -199,12 +238,12 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
199
238
  * Fix: [#376](https://github.com/savonrb/savon/issues/376) added a global `namespaces` option
200
239
  for adding namespaces to the SOAP envelope.
201
240
 
202
- ### 2.0.3 (2013-01-19)
241
+ ## 2.0.3 (2013-01-19)
203
242
 
204
243
  * Upgraded Nori dependency to prevent people from using a version that is vulnerable to
205
244
  the recent [remote code execution bug](https://gist.github.com/4532291).
206
245
 
207
- ### 2.0.2 (2012-12-20)
246
+ ## 2.0.2 (2012-12-20)
208
247
 
209
248
  * Fix: [#297](https://github.com/savonrb/savon/issues/297#issuecomment-11536517) added the global
210
249
  `:ssl_verify_mode` and `:ssl_version` options which were missing.
@@ -212,13 +251,13 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
212
251
  * Fix: [#344](https://github.com/savonrb/savon/issues/344) added missing global ssl cert options
213
252
  `:ssl_cert_file`, `:ssl_cert_key_file` and `:ssl_ca_cert_file`.
214
253
 
215
- ### 2.0.1 (2012-12-19)
254
+ ## 2.0.1 (2012-12-19)
216
255
 
217
256
  * Fix [#342](https://github.com/savonrb/savon/issues/342) fixes an issue where namespaces could
218
257
  not be resolved if the actual operation name to call did not match the operation name passed
219
258
  to the client's `#call` method. For example: `:get_stations` for a `getStations` operation.
220
259
 
221
- ### 2.0.0 (2012-12-18)
260
+ ## 2.0.0 (2012-12-18)
222
261
 
223
262
  * Read about all the changes in the [updated documentation](http://savonrb.com/version2.html).
224
263
 
@@ -233,7 +272,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
233
272
 
234
273
  * Fix: [321](https://github.com/savonrb/savon/issues/321) preserve `[false]` values in Hashes.
235
274
 
236
- ### 1.2.0 (2012-09-15)
275
+ ## 1.2.0 (2012-09-15)
237
276
 
238
277
  * Fix: [#312](https://github.com/savonrb/savon/pull/312) recursively determines the proper namespaces
239
278
  for SOAP body Hashes with nested Arrays of Hashes.
@@ -243,7 +282,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
243
282
 
244
283
  * Refactoring: Use the `Wasabi::Document` with resolver instead of the custom `Savon::Wasabi::Document`.
245
284
 
246
- ### 1.1.0 (2012-06-28)
285
+ ## 1.1.0 (2012-06-28)
247
286
 
248
287
  * Improvement: Changed Savon's core dependencies to be more strict and only allow bug fix changes.
249
288
  Major or minor releases of these dependencies now need a release of Savon so they can be used.
@@ -270,7 +309,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
270
309
  * Refactoring: Moved code that sets the cookies from the last response for the
271
310
  next request to `HTTPI::Request#set_cookies`.
272
311
 
273
- ### 1.0.0 (2012-06-09)
312
+ ## 1.0.0 (2012-06-09)
274
313
 
275
314
  * Fix: `Savon.client` didn't pass the optional block.
276
315
 
@@ -281,15 +320,15 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
281
320
 
282
321
  As this change affects `savon_spec`, you need to update `savon_spec` to v1.3.0.
283
322
 
284
- ### 0.9.14 (2012-06-07)
323
+ ## 0.9.14 (2012-06-07)
285
324
 
286
325
  * Fix: [#292](https://github.com/savonrb/savon/issues/292) again
287
326
 
288
- ### 0.9.13 (2012-06-07)
327
+ ## 0.9.13 (2012-06-07)
289
328
 
290
329
  * Fix: [#292](https://github.com/savonrb/savon/issues/292)
291
330
 
292
- ### 0.9.12 (2012-06-07)
331
+ ## 0.9.12 (2012-06-07)
293
332
 
294
333
  * Re-added the log method setters to the new config object for backwards compatibility.
295
334
  You should be able to configure the logger as you used to do.
@@ -302,7 +341,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
302
341
  end
303
342
  ```
304
343
 
305
- ### 0.9.11 (2012-06-06)
344
+ ## 0.9.11 (2012-06-06)
306
345
 
307
346
  * Feature: [#264](https://github.com/savonrb/savon/pull/264) - Thanks to @hoverlover, Savon and Akami now support
308
347
  signed messages through WSSE.
@@ -336,7 +375,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
336
375
  </env:Envelope>
337
376
  ```
338
377
 
339
- ### 0.9.10 (2012-06-06)
378
+ ## 0.9.10 (2012-06-06)
340
379
 
341
380
  * Feature: [#289](https://github.com/savonrb/savon/pull/289) - Allow the SOAP envelope header to be set as a String.
342
381
 
@@ -366,7 +405,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
366
405
  * Moved logging to the new `Savon::Logger` object.
367
406
  * Removed the `blank?` extension from `Object`.
368
407
 
369
- ### 0.9.9 (2012-02-17)
408
+ ## 0.9.9 (2012-02-17)
370
409
 
371
410
  * Improvement: [pull request 255](https://github.com/savonrb/savon/pull/255) - Raise an error if fetching
372
411
  a remote WSDL fails. Possible fix for [issue 236](https://github.com/savonrb/savon/issues/236).
@@ -390,7 +429,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
390
429
  * Fix: [pull request 265](https://github.com/savonrb/savon/pull/265) - Fixes gemspec problems when bundling
391
430
  under JRuby 1.6.5. Also fixes [issue 267](https://github.com/savonrb/savon/issues/267).
392
431
 
393
- ### 0.9.8 (2012-02-15)
432
+ ## 0.9.8 (2012-02-15)
394
433
 
395
434
  * Feature: Savon now ships with [Savon::Model](http://rubygems.org/gems/savon_model).
396
435
  Savon::Model is a lightweight DSL to be used inside your domain models. It's been refactored
@@ -424,7 +463,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
424
463
  * Fix: [pull request 250](https://github.com/savonrb/savon/pull/250) - The Content-Length header should
425
464
  be the size in bytes.
426
465
 
427
- ### 0.9.7 (2011-08-25)
466
+ ## 0.9.7 (2011-08-25)
428
467
 
429
468
  * Feature: Merged [pull request 210](https://github.com/savonrb/savon/pull/210) by
430
469
  [mboeh](https://github.com/mboeh) to add `Savon::SOAP::Response#doc` and
@@ -453,7 +492,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
453
492
 
454
493
  * Improvement: [issue 222](https://github.com/savonrb/savon/issues/222) - Set the Content-Length header.
455
494
 
456
- ### 0.9.6 (2011-07-07)
495
+ ## 0.9.6 (2011-07-07)
457
496
 
458
497
  * Improvement/Fix: Updated Savon to use the latest version of [Wasabi](http://rubygems.org/gems/wasabi).
459
498
  This should fix [issue 155](https://github.com/savonrb/savon/issues/155) - Savon can automatically add namespaces
@@ -464,16 +503,16 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
464
503
 
465
504
  * Fix: [issue 143](https://github.com/savonrb/savon/issues/143) - Updating Wasabi should solve this issue.
466
505
 
467
- ### 0.9.5 (2011-07-03)
506
+ ## 0.9.5 (2011-07-03)
468
507
 
469
508
  * Refactoring: Extracted WSSE authentication out into the [akami](http://rubygems.org/gems/akami) gem.
470
509
 
471
- ### 0.9.4 (2011-07-03)
510
+ ## 0.9.4 (2011-07-03)
472
511
 
473
512
  * Refactoring: Extracted the WSDL parser out into the [wasabi](http://rubygems.org/gems/wasabi) gem.
474
513
  This should isolate upcoming improvements to the parser.
475
514
 
476
- ### 0.9.3 (2011-06-30)
515
+ ## 0.9.3 (2011-06-30)
477
516
 
478
517
  * Fix: [issue 138](https://github.com/savonrb/savon/issues/138) -
479
518
  Savon now supports setting a global SOAP header via `Savon.soap_header=`.
@@ -508,7 +547,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
508
547
 
509
548
  * `Savon::SOAP::Response#basic_hash` is now `Savon::SOAP::Response#hash`.
510
549
 
511
- ### 0.9.2 (2011-04-30)
550
+ ## 0.9.2 (2011-04-30)
512
551
 
513
552
  * Fix: [issue 154](https://github.com/savonrb/savon/pull/154) -
514
553
  Timezone format used by Savon now matches the XML schema spec.
@@ -526,7 +565,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
526
565
 
527
566
  * Improvement: WSDL parsing now uses Nokogiri instead of REXML.
528
567
 
529
- ### 0.9.1 (2011-04-06)
568
+ ## 0.9.1 (2011-04-06)
530
569
 
531
570
  * Improvement: if you're only setting the local or remote address of your wsdl document, you can
532
571
  now pass an (optional) String to `Savon::Client.new` to set `wsdl.document`.
@@ -542,7 +581,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
542
581
  response[:authenticate_response][:return]
543
582
  ```
544
583
 
545
- ### 0.9.0 (2011-04-05)
584
+ ## 0.9.0 (2011-04-05)
546
585
 
547
586
  * Feature: issues [#158](https://github.com/savonrb/savon/issues/158),
548
587
  [#169](https://github.com/savonrb/savon/issues/169) and [#172](https://github.com/savonrb/savon/issues/172)
@@ -594,18 +633,18 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
594
633
 
595
634
  * And if you haven't already seen the new documentation: [savonrb.com](http://savonrb.com)
596
635
 
597
- ### 0.8.6 (2011-02-15)
636
+ ## 0.8.6 (2011-02-15)
598
637
 
599
638
  * Fix for issues [issue #147](https://github.com/savonrb/savon/issues/147) and [#151](https://github.com/savonrb/savon/issues/151)
600
639
  ([771194](https://github.com/savonrb/savon/commit/771194)).
601
640
 
602
- ### 0.8.5 (2011-01-28)
641
+ ## 0.8.5 (2011-01-28)
603
642
 
604
643
  * Fix for [issue #146](https://github.com/savonrb/savon/issues/146) ([98655c](https://github.com/savonrb/savon/commit/98655c)).
605
644
 
606
645
  * Fix for [issue #147](https://github.com/savonrb/savon/issues/147) ([252670](https://github.com/savonrb/savon/commit/252670)).
607
646
 
608
- ### 0.8.4 (2011-01-26)
647
+ ## 0.8.4 (2011-01-26)
609
648
 
610
649
  * Fix for issues [issue #130](https://github.com/savonrb/savon/issues/130) and [#134](https://github.com/savonrb/savon/issues/134)
611
650
  ([4f9847](https://github.com/savonrb/savon/commit/4f9847)).
@@ -614,14 +653,14 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
614
653
 
615
654
  * Fix for [issue #135](https://github.com/savonrb/savon/issues/135) ([c9261d](https://github.com/savonrb/savon/commit/c9261d)).
616
655
 
617
- ### 0.8.3 (2011-01-11)
656
+ ## 0.8.3 (2011-01-11)
618
657
 
619
658
  * Moved implementation of `Savon::SOAP::Response#to_array` to a class method at `Savon::SOAP::XML.to_array`
620
659
  ([05a7d3](https://github.com/savonrb/savon/commit/05a7d3)).
621
660
 
622
661
  * Fix for [issue #131](https://github.com/savonrb/savon/issues/131) ([4e57b3](https://github.com/savonrb/savon/commit/4e57b3)).
623
662
 
624
- ### 0.8.2 (2011-01-04)
663
+ ## 0.8.2 (2011-01-04)
625
664
 
626
665
  * Fix for [issue #127](https://github.com/savonrb/savon/issues/127) ([0eb3da](https://github.com/savonrb/savon/commit/0eb3da4)).
627
666
 
@@ -653,7 +692,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
653
692
  end
654
693
  ```
655
694
 
656
- ### 0.8.1 (2010-12-22)
695
+ ## 0.8.1 (2010-12-22)
657
696
 
658
697
  * Update to depend on HTTPI v0.7.5 which comes with a fallback to use Net::HTTP when no other adapter could be required.
659
698
 
@@ -661,7 +700,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
661
700
 
662
701
  * Loosen dependency on builder. Should be quite stable.
663
702
 
664
- ### 0.8.0 (2010-12-20)
703
+ ## 0.8.0 (2010-12-20)
665
704
 
666
705
  * Added `Savon::SOAP::XML#env_namespace` ([51fa0e](https://github.com/savonrb/savon/commit/51fa0e)) to configure
667
706
  the SOAP envelope namespace. It defaults to :env but can also be set to an empty String for SOAP envelope
@@ -670,7 +709,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
670
709
  * Replaced quite a lot of core extensions by moving the Hash to XML translation into a new gem called
671
710
  [Gyoku](http://rubygems.org/gems/gyoku) ([bac4b4](https://github.com/savonrb/savon/commit/bac4b4)).
672
711
 
673
- ### 0.8.0.beta.4 (2010-11-20)
712
+ ## 0.8.0.beta.4 (2010-11-20)
674
713
 
675
714
  * Fix for [issue #107](https://github.com/savonrb/savon/issues/107) ([1d6eda](https://github.com/savonrb/savon/commit/1d6eda)).
676
715
 
@@ -686,12 +725,12 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
686
725
  # => [{ :id => 1, :name => "foo"}, { :id => 2, :name => "bar"}]
687
726
  ```
688
727
 
689
- ### 0.8.0.beta.3 (2010-11-06)
728
+ ## 0.8.0.beta.3 (2010-11-06)
690
729
 
691
730
  * Fix for [savon_spec](http://rubygems.org/gems/savon_spec) to not send nil to `Savon::SOAP::XML#body`
692
731
  ([c34b42](https://github.com/savonrb/savon/commit/c34b42)).
693
732
 
694
- ### 0.8.0.beta.2 (2010-11-05)
733
+ ## 0.8.0.beta.2 (2010-11-05)
695
734
 
696
735
  * Added `Savon.response_pattern` ([0a12fb](https://github.com/savonrb/savon/commit/0a12fb)) to automatically walk deeper into
697
736
  the SOAP response Hash when a pattern (specified as an Array of Regexps and Symbols) matches the response. If for example
@@ -734,7 +773,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
734
773
 
735
774
  * Added `Savon::SOAP::Response#to_array` (which also uses the response pattern).
736
775
 
737
- ### 0.8.0.beta.1 (2010-10-29)
776
+ ## 0.8.0.beta.1 (2010-10-29)
738
777
 
739
778
  * Changed `Savon::Client.new` to accept a block instead of multiple Hash arguments. You can access the
740
779
  wsdl, http and wsse objects inside the block to configure your client for a particular service.
@@ -827,15 +866,15 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
827
866
 
828
867
  * Started to remove quite a few core extensions.
829
868
 
830
- ### 0.7.9 (2010-06-14)
869
+ ## 0.7.9 (2010-06-14)
831
870
 
832
871
  * Fix for [issue #53](https://github.com/savonrb/savon/issues/53).
833
872
 
834
- ### 0.7.8 (2010-05-09)
873
+ ## 0.7.8 (2010-05-09)
835
874
 
836
875
  * Fixed gemspec to include missing files in the gem.
837
876
 
838
- ### 0.7.7 (2010-05-09)
877
+ ## 0.7.7 (2010-05-09)
839
878
 
840
879
  * SOAP requests now start with a proper XML declaration.
841
880
 
@@ -858,7 +897,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
858
897
  in SOAP request Hash values, but you can now append an exclamation mark to Hash keys specifying that
859
898
  it's value should not be escaped.
860
899
 
861
- ### 0.7.6 (2010-03-21)
900
+ ## 0.7.6 (2010-03-21)
862
901
 
863
902
  * Moved documentation from the Github Wiki to the actual class files and established a much nicer
864
903
  documentation combining examples and implementation (using Hanna) at: http://savon.rubiii.com
@@ -874,7 +913,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
874
913
  * Fix for issues [#39](https://github.com/savonrb/savon/issues/39) and [#49](https://github.com/savonrb/savon/issues/49).
875
914
  Added `Savon::SOAP#xml` which let's you specify completely custom SOAP request XML.
876
915
 
877
- ### 0.7.5 (2010-02-19)
916
+ ## 0.7.5 (2010-02-19)
878
917
 
879
918
  * Fix for [issue #34](https://github.com/savonrb/savon/issues/34).
880
919
 
@@ -884,11 +923,11 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
884
923
 
885
924
  * Changed the key for specifying the order of tags from :@inorder to :order!
886
925
 
887
- ### 0.7.4 (2010-02-02)
926
+ ## 0.7.4 (2010-02-02)
888
927
 
889
928
  * Fix for [issue #33](https://github.com/savonrb/savon/issues/33).
890
929
 
891
- ### 0.7.3 (2010-01-31)
930
+ ## 0.7.3 (2010-01-31)
892
931
 
893
932
  * Added support for Geotrust-style WSDL documents (Julian Kornberger <github.corny@digineo.de>).
894
933
 
@@ -909,7 +948,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
909
948
 
910
949
  * Fix for [issue #25](https://github.com/savonrb/savon/issues/25).
911
950
 
912
- ### 0.7.2 (2010-01-17)
951
+ ## 0.7.2 (2010-01-17)
913
952
 
914
953
  * Exposed the `Net::HTTP` response (added by Kevin Ingolfsland). Use the `http` accessor (`response.http`)
915
954
  on your `Savon::Response` to access the `Net::HTTP` response object.
@@ -922,12 +961,12 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
922
961
 
923
962
  * Added support for global header and namespaces. See [issue #9](https://github.com/savonrb/savon/issues/9).
924
963
 
925
- ### 0.7.1 (2010-01-10)
964
+ ## 0.7.1 (2010-01-10)
926
965
 
927
966
  * The Hash of HTTP headers for SOAP calls is now public via `Savon::Request#headers`.
928
967
  Patch for [issue #8](https://github.com/savonrb/savon/issues/8).
929
968
 
930
- ### 0.7.0 (2010-01-09)
969
+ ## 0.7.0 (2010-01-09)
931
970
 
932
971
  This version comes with several changes to the public API!
933
972
  Pay attention to the following list and read the updated Wiki: http://wiki.github.com/savonrb/savon
@@ -985,7 +1024,7 @@ Pay attention to the following list and read the updated Wiki: http://wiki.githu
985
1024
  soap.namespace = "http://example.com"
986
1025
  ```
987
1026
 
988
- ### 0.6.8 (2010-01-01)
1027
+ ## 0.6.8 (2010-01-01)
989
1028
 
990
1029
  * Improved specifications for various kinds of WSDL documents.
991
1030
 
@@ -1002,7 +1041,7 @@ Pay attention to the following list and read the updated Wiki: http://wiki.githu
1002
1041
  client.get_api_key { |soap| soap.input = "User.GetApiKey" }
1003
1042
  ```
1004
1043
 
1005
- ### 0.6.7 (2009-12-18)
1044
+ ## 0.6.7 (2009-12-18)
1006
1045
 
1007
1046
  * Implemented support for a proxy server. The proxy URI can be set through an optional Hash of options passed
1008
1047
  to instantiating `Savon::Client` (Dave Woodward <dave@futuremint.com>)
@@ -1012,17 +1051,17 @@ Pay attention to the following list and read the updated Wiki: http://wiki.githu
1012
1051
 
1013
1052
  * Patch for [issue #10](https://github.com/savonrb/savon/issues/10).
1014
1053
 
1015
- ### 0.6.6 (2009-12-14)
1054
+ ## 0.6.6 (2009-12-14)
1016
1055
 
1017
1056
  * Default to use the name of the SOAP action (the method called in a client) in lowerCamelCase for SOAP action
1018
1057
  and input when Savon::WSDL is disabled. You still need to specify soap.action and maybe soap.input in case
1019
1058
  your SOAP actions are named any different.
1020
1059
 
1021
- ### 0.6.5 (2009-12-13)
1060
+ ## 0.6.5 (2009-12-13)
1022
1061
 
1023
1062
  * Added an `open_timeout` method to `Savon::Request`.
1024
1063
 
1025
- ### 0.6.4 (2009-12-13)
1064
+ ## 0.6.4 (2009-12-13)
1026
1065
 
1027
1066
  * Refactored specs to be less unit-like.
1028
1067
 
@@ -1040,7 +1079,7 @@ Pay attention to the following list and read the updated Wiki: http://wiki.githu
1040
1079
  0.6.3 192.900000 19.630000 212.530000 (914.031865)
1041
1080
  ```
1042
1081
 
1043
- ### 0.6.3 (2009-12-11)
1082
+ ## 0.6.3 (2009-12-11)
1044
1083
 
1045
1084
  * Removing 2 ruby deprecation warnings for parenthesized arguments. (Dave Woodward <dave@futuremint.com>)
1046
1085
 
@@ -1064,17 +1103,17 @@ Pay attention to the following list and read the updated Wiki: http://wiki.githu
1064
1103
  0.6.2 574.720000 78.380000 653.100000 (1387.778539)
1065
1104
  ```
1066
1105
 
1067
- ### 0.6.2 (2009-12-06)
1106
+ ## 0.6.2 (2009-12-06)
1068
1107
 
1069
1108
  * Added support for changing the name of the SOAP input node.
1070
1109
 
1071
1110
  * Added a CHANGELOG.
1072
1111
 
1073
- ### 0.6.1 (2009-12-06)
1112
+ ## 0.6.1 (2009-12-06)
1074
1113
 
1075
1114
  * Fixed a problem with WSSE credentials, where every request contained a WSSE authentication header.
1076
1115
 
1077
- ### 0.6.0 (2009-12-06)
1116
+ ## 0.6.0 (2009-12-06)
1078
1117
 
1079
1118
  * `method_missing` now yields the SOAP and WSSE objects to a given block.
1080
1119
 
@@ -1082,15 +1121,15 @@ Pay attention to the following list and read the updated Wiki: http://wiki.githu
1082
1121
 
1083
1122
  * Improved SOAP action handling (another problem that came up with issue #1).
1084
1123
 
1085
- ### 0.5.3 (2009-11-30)
1124
+ ## 0.5.3 (2009-11-30)
1086
1125
 
1087
1126
  * Patch for [issue #2](https://github.com/savonrb/savon/issues/2).
1088
1127
 
1089
- ### 0.5.2 (2009-11-30)
1128
+ ## 0.5.2 (2009-11-30)
1090
1129
 
1091
1130
  * Patch for [issue #1](https://github.com/savonrb/savon/issues/1).
1092
1131
 
1093
- ### 0.5.1 (2009-11-29)
1132
+ ## 0.5.1 (2009-11-29)
1094
1133
 
1095
1134
  * Optimized default response process.
1096
1135
 
@@ -1102,6 +1141,6 @@ Pay attention to the following list and read the updated Wiki: http://wiki.githu
1102
1141
 
1103
1142
  * Added specs
1104
1143
 
1105
- ### 0.5.0 (2009-11-29)
1144
+ ## 0.5.0 (2009-11-29)
1106
1145
 
1107
1146
  * Complete rewrite and public release.
data/README.md CHANGED
@@ -2,13 +2,13 @@
2
2
 
3
3
  Heavy metal SOAP client
4
4
 
5
- [Documentation](http://savonrb.com) | [RDoc](http://rubydoc.info/gems/savon) |
5
+ [Documentation](https://www.rubydoc.info/gems/savon/) | [Support](https://stackoverflow.com/questions/tagged/savon) |
6
6
  [Mailing list](https://groups.google.com/forum/#!forum/savonrb) | [Twitter](http://twitter.com/savonrb)
7
7
 
8
- [![Build Status](https://secure.travis-ci.org/savonrb/savon.svg?branch=master)](http://travis-ci.org/savonrb/savon)
8
+ [![Ruby](https://github.com/savonrb/savon/actions/workflows/ci.yml/badge.svg)](https://github.com/savonrb/savon/actions/workflows/ci.yml)
9
9
  [![Gem Version](https://badge.fury.io/rb/savon.svg)](http://badge.fury.io/rb/savon)
10
10
  [![Code Climate](https://codeclimate.com/github/savonrb/savon.svg)](https://codeclimate.com/github/savonrb/savon)
11
- [![Coverage Status](https://coveralls.io/repos/savonrb/savon/badge.svg?branch=version2)](https://coveralls.io/r/savonrb/savon)
11
+ [![Coverage Status](https://coveralls.io/repos/savonrb/savon/badge.svg)](https://coveralls.io/r/savonrb/savon)
12
12
 
13
13
 
14
14
  ## Version 2
@@ -22,7 +22,7 @@ $ gem install savon
22
22
  or add it to your Gemfile like this:
23
23
 
24
24
  ```
25
- gem 'savon', '~> 2.11.1'
25
+ gem 'savon', '~> 2.13.0'
26
26
  ```
27
27
 
28
28
  ## Usage example
@@ -33,6 +33,12 @@ require 'savon'
33
33
  # create a client for the service
34
34
  client = Savon.client(wsdl: 'http://service.example.com?wsdl')
35
35
 
36
+ # or: create a client with a wsdl provided as a string
37
+ client = Savon.client do |config|
38
+ wsdl_content = File.read("/path/to/wsdl")
39
+ config.wsdl wsdl_content
40
+ end
41
+
36
42
  client.operations
37
43
  # => [:find_user, :list_users]
38
44
 
@@ -46,24 +52,27 @@ response.body
46
52
  For more examples, you should check out the
47
53
  [integration tests](https://github.com/savonrb/savon/tree/version2/spec/integration).
48
54
 
49
- ## FAQ
55
+ ## Ruby version support
50
56
 
51
- * URI::InvalidURIError -- if you see this error, then it is likely that the http client you are using cannot parse the URI for your WSDL. Try `gem install httpclient` or add it to your `Gemfile`.
52
- - See https://github.com/savonrb/savon/issues/488 for more info
57
+ * `master` - MRI 2.7, 3.0, 3.1 (same support as Ruby)
58
+ * 2.12.x - MRI 2.2, 2.3, 2.4, 2.5
59
+ * 2.11.x - MRI 2.0, 2.1, 2.2, and 2.3
53
60
 
54
- ## Give back
61
+ If you are running MRI 1.8.7, try a 2.6.x release.
55
62
 
56
- If you're using Savon and you or your company is making money from it, then please consider
57
- donating via [Gittip](https://www.gittip.com/tjarratt/) so that I can continue to improve it.
63
+ ## Running tests
58
64
 
59
- [![donate](donate.png)](https://www.gittip.com/tjarratt/)
65
+ ```bash
66
+ $ bundle install
67
+ $ bundle exec rspec
68
+ ```
60
69
 
70
+ ## FAQ
61
71
 
62
- ## Documentation
72
+ * URI::InvalidURIError -- if you see this error, then it is likely that the http client you are using cannot parse the URI for your WSDL. Try `gem install httpclient` or add it to your `Gemfile`.
73
+ - See https://github.com/savonrb/savon/issues/488 for more info
63
74
 
64
- Please make sure to [read the documentation](http://savonrb.com/version2/).
65
75
 
66
- And if you find any problems with it or if you think something's missing,
67
- feel free to [help out and improve the documentation](https://github.com/savonrb/savonrb.com).
76
+ ## Documentation
68
77
 
69
- Donate icon from the [Noun Project](http://thenounproject.com/noun/donate/#icon-No285).
78
+ Please be sure to [read the documentation](https://www.rubydoc.info/github/savonrb/savon/).