savon 2.11.2 → 2.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +2 -0
  3. data/CHANGELOG.md +103 -73
  4. data/CONTRIBUTING.md +15 -19
  5. data/Gemfile +2 -7
  6. data/README.md +26 -15
  7. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_asc.png +0 -0
  8. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_asc_disabled.png +0 -0
  9. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_both.png +0 -0
  10. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_desc.png +0 -0
  11. data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_desc_disabled.png +0 -0
  12. data/coverage/assets/0.12.3/application.css +1 -0
  13. data/coverage/assets/0.12.3/application.js +7 -0
  14. data/coverage/assets/0.12.3/colorbox/border.png +0 -0
  15. data/coverage/assets/0.12.3/colorbox/controls.png +0 -0
  16. data/coverage/assets/0.12.3/colorbox/loading.gif +0 -0
  17. data/coverage/assets/0.12.3/colorbox/loading_background.png +0 -0
  18. data/coverage/assets/0.12.3/favicon_green.png +0 -0
  19. data/coverage/assets/0.12.3/favicon_red.png +0 -0
  20. data/coverage/assets/0.12.3/favicon_yellow.png +0 -0
  21. data/coverage/assets/0.12.3/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  22. data/coverage/assets/0.12.3/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  23. data/coverage/assets/0.12.3/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  24. data/coverage/assets/0.12.3/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  25. data/coverage/assets/0.12.3/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  26. data/coverage/assets/0.12.3/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  27. data/coverage/assets/0.12.3/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  28. data/coverage/assets/0.12.3/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  29. data/coverage/assets/0.12.3/images/ui-icons_222222_256x240.png +0 -0
  30. data/coverage/assets/0.12.3/images/ui-icons_2e83ff_256x240.png +0 -0
  31. data/coverage/assets/0.12.3/images/ui-icons_454545_256x240.png +0 -0
  32. data/coverage/assets/0.12.3/images/ui-icons_888888_256x240.png +0 -0
  33. data/coverage/assets/0.12.3/images/ui-icons_cd0a0a_256x240.png +0 -0
  34. data/coverage/assets/0.12.3/loading.gif +0 -0
  35. data/coverage/assets/0.12.3/magnify.png +0 -0
  36. data/coverage/index.html +21518 -0
  37. data/lib/savon/block_interface.rb +1 -0
  38. data/lib/savon/builder.rb +95 -29
  39. data/lib/savon/client.rb +1 -0
  40. data/lib/savon/core_ext/string.rb +1 -0
  41. data/lib/savon/header.rb +2 -6
  42. data/lib/savon/http_error.rb +4 -4
  43. data/lib/savon/log_message.rb +1 -0
  44. data/lib/savon/message.rb +1 -0
  45. data/lib/savon/mock/expectation.rb +1 -0
  46. data/lib/savon/mock/spec_helper.rb +1 -0
  47. data/lib/savon/mock.rb +1 -0
  48. data/lib/savon/model.rb +1 -0
  49. data/lib/savon/operation.rb +20 -18
  50. data/lib/savon/options.rb +70 -1
  51. data/lib/savon/qualified_message.rb +5 -4
  52. data/lib/savon/request.rb +18 -3
  53. data/lib/savon/request_logger.rb +8 -2
  54. data/lib/savon/response.rb +49 -2
  55. data/lib/savon/soap_fault.rb +2 -3
  56. data/lib/savon/version.rb +2 -1
  57. data/lib/savon.rb +1 -0
  58. data/savon.gemspec +10 -9
  59. data/spec/fixtures/response/empty_soap_fault.xml +13 -0
  60. data/spec/fixtures/response/no_body.xml +1 -0
  61. data/spec/fixtures/wsdl/elements_in_types.xml +43 -0
  62. data/spec/integration/support/application.rb +34 -2
  63. data/spec/integration/support/server.rb +1 -0
  64. data/spec/integration/zipcode_example_spec.rb +5 -8
  65. data/spec/savon/builder_spec.rb +2 -1
  66. data/spec/savon/client_spec.rb +5 -4
  67. data/spec/savon/core_ext/string_spec.rb +2 -1
  68. data/spec/savon/features/message_tag_spec.rb +2 -1
  69. data/spec/savon/http_error_spec.rb +9 -1
  70. data/spec/savon/log_message_spec.rb +2 -1
  71. data/spec/savon/message_spec.rb +2 -11
  72. data/spec/savon/mock_spec.rb +2 -1
  73. data/spec/savon/model_spec.rb +2 -1
  74. data/spec/savon/multipart_request_spec.rb +46 -0
  75. data/spec/savon/observers_spec.rb +2 -1
  76. data/spec/savon/operation_spec.rb +20 -43
  77. data/spec/savon/options_spec.rb +84 -5
  78. data/spec/savon/qualified_message_spec.rb +35 -1
  79. data/spec/savon/request_logger_spec.rb +2 -1
  80. data/spec/savon/request_spec.rb +99 -14
  81. data/spec/savon/response_spec.rb +7 -1
  82. data/spec/savon/soap_fault_spec.rb +12 -1
  83. data/spec/savon/softlayer_spec.rb +3 -2
  84. data/spec/spec_helper.rb +5 -4
  85. data/spec/support/adapters.rb +1 -0
  86. data/spec/support/endpoint.rb +1 -0
  87. data/spec/support/fixture.rb +1 -0
  88. data/spec/support/integration.rb +2 -1
  89. data/spec/support/stdout.rb +1 -0
  90. metadata +86 -33
  91. data/.travis.yml +0 -19
  92. data/donate.png +0 -0
  93. data/spec/integration/centra_spec.rb +0 -66
  94. data/spec/integration/email_example_spec.rb +0 -32
  95. data/spec/integration/random_quote_spec.rb +0 -23
  96. data/spec/integration/ratp_example_spec.rb +0 -28
  97. data/spec/integration/stockquote_example_spec.rb +0 -34
  98. data/spec/integration/temperature_example_spec.rb +0 -46
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: 499960aa27dbd47ffb67df57d2a3f018bb82be1ae2a8fa363a35135067e1daf6
4
+ data.tar.gz: 0e1ee1edde0ed096b91995b47a71c96b2d6dc46a073675075759bd2bffac16fe
5
5
  SHA512:
6
- metadata.gz: 32d112e59f45ec6b6f1c65f54c33030c99ae2e2c931ce476d0c62cceb7715d62772164b0f7e182ab691a8b47d8cfeb7c83140986743f3e134e91040d099905a6
7
- data.tar.gz: 0d73626cde6c3ccec91b090f0d30cb1f6031b5fdc88834e1874719f0e269ae62c5a4e9402e863a45e7fb64c176b58f6ff8bb5296a2e13d1ddd28bb1133c9af0d
6
+ metadata.gz: 783a1d396caa43ab986d31791e7547b1d4a0f064b6f879de62f9945e754dffd5e73490a2c649089c0f15ce08bd144fba8f6ad6a6bbf812814d3d6e29357c6373
7
+ data.tar.gz: 9cd06cd633717fa2174f6bca31ec881f22045585dc9d6c207772bf4c4a0ec4ab6ccf0fff596445cb7e8b90eb55ef5cd0089cfaabb74d912434f5e705cc8fba85
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  .rvmrc
2
+ .byebug_history
2
3
  .DS_Store
3
4
  .yardoc
4
5
  doc
@@ -12,3 +13,4 @@ tmp
12
13
  .rspec
13
14
  Gemfile.lock
14
15
  bin/
16
+ .rspec_status
data/CHANGELOG.md CHANGED
@@ -1,4 +1,34 @@
1
- # 2.11.2 (2017-08-03)
1
+ # Savon changelog
2
+
3
+ ## Unreleased
4
+
5
+ * Add your PR changelog line here
6
+
7
+ ## 2.13.0 (2022-08-03)
8
+
9
+ * Drop support for ruby 2.6 and below. Added Ruby 3.0 and 3.1 to test matrix.
10
+ * 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.
11
+ * Fix: [#943](https://github.com/savonrb/savon/pull/943) Read all namespaces from wsdl definition if document exists
12
+ * Feature: [#920](https://github.com/savonrb/savon/pull/920) Add a `write_timeout` setter for HTTP requests
13
+ * Feature: [#930](https://github.com/savonrb/savon/pull/930) Add options for SSL min_version/max_version support
14
+ * Feature: [#931](https://github.com/savonrb/savon/pull/931) Add `log_headers` option
15
+
16
+ ## 2.12.1 (2020-07-05)
17
+
18
+ * Fix: [#917](https://github.com/savonrb/savon/pull/917) elementFormDefault="qualified" regression
19
+ * Fix: [#875](https://github.com/savonrb/savon/pull/875) Fix detecting Soap 1.1 Fault when faultcode and faultstring are empty
20
+
21
+ ## 2.12.0 (2018-01-16)
22
+
23
+ * Drop support for ruby 2.1 and below.
24
+ * Fix: [#822](https://github.com/savonrb/savon/pull/822) Raise correct error when SOAP envelope only contains a string
25
+ * Fix: [#833](https://github.com/savonrb/savon/pull/833) Fixes boolean handling regression introduced in 2.11.2
26
+ * Feature: [#794](https://github.com/savonrb/savon/pull/794), add global option ssl_ciphers.
27
+ * Feature: [#753](https://github.com/savonrb/savon/pull/753) Add headers configuration to WSDLRequest#build
28
+ * Feature: [#812](https://github.com/savonrb/savon/pull/812) Allow `proxy` option to be `nil`.
29
+ * Feature: [#838](https://github.com/savonrb/savon/pull/838) Added ssl_ca_path and ssl_cert_store to globals
30
+
31
+ ## 2.11.2 (2017-08-03)
2
32
  * Fix: [#676](https://github.com/savonrb/savon/pull/676) Fixes handling of `content!` and `attributes!`
3
33
  * Fix: [#800](https://github.com/savonrb/savon/pull/800) Fix exception calling `SOAPFault#to_s` when http.body is empty
4
34
  * Fix: [#757](https://github.com/savonrb/savon/pull/757) Logging: Use filter without automatic pretty printing
@@ -7,43 +37,43 @@
7
37
  * Feature: [#742](https://github.com/savonrb/savon/pull/742) Add support for local request headers
8
38
  * Feature: [#704](https://github.com/savonrb/savon/pull/704) Add possibility to pass attribute delete_namespace_attributes to Nori
9
39
 
10
- # 2.11.1 (2015-05-27)
40
+ ## 2.11.1 (2015-05-27)
11
41
 
12
42
  * Replace dependency on [uuid](https://rubygems.org/gems/uuid), using SecureRandom.uuid instead.
13
43
 
14
- # 2.11.0 (2015-03-31)
44
+ ## 2.11.0 (2015-03-31)
15
45
 
16
- * Formally drop support for 1.8.7.
46
+ * Formally drop support for 1.8.7.
17
47
 
18
- # 2.10.1 (2015-03-15)
48
+ ## 2.10.1 (2015-03-15)
19
49
 
20
50
  * Feature: [#673](https://github.com/savonrb/savon/pull/673) Adds an :unwrap option that is passed to Gyoku.
21
51
 
22
- # 2.10.0 (2015-03-02)
52
+ ## 2.10.0 (2015-03-02)
23
53
 
24
54
  * Fix: This reverts a purported "fix" to operation names.
25
55
 
26
- # 2.9.0 (2015-01-29)
56
+ ## 2.9.0 (2015-01-29)
27
57
 
28
58
  * Feature: [#655] Wasabi exceptions should be rethrown as Savon errors. This should make it easier to catch errors thrown by Savon::Client.
29
59
  * Feature: [#630] ServiceFaults are correctly identified as Soap Faults.
30
60
 
31
- # 2.8.0 (2014-11-12)
61
+ ## 2.8.0 (2014-11-12)
32
62
 
33
63
  * 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
64
  * Fix : Loosened dependencies on Gyoku, Nori, Akami, and other Savon-dependency gems
35
65
  * Feature: [#636](https://github.com/savonrb/savon/pull/636) Set HTTPI.logger when Savon's logger is configured.
36
66
  * 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
67
 
38
- # 2.7.2 (2014-09-23)
68
+ ## 2.7.2 (2014-09-23)
39
69
 
40
70
  Fix : Preserve false values (https://github.com/savonrb/savon/issues/321)
41
71
 
42
- # 2.7.1 (2014-09-23)
72
+ ## 2.7.1 (2014-09-23)
43
73
 
44
74
  * Fix : Fix a crash in builder when request headers do not contain WSA headers
45
75
 
46
- # 2.7.0 (2014-09-23)
76
+ ## 2.7.0 (2014-09-23)
47
77
 
48
78
  * Feature: Signing requests. Added wsse_signature.
49
79
  ```ruby
@@ -52,7 +82,7 @@ Fix : Preserve false values (https://github.com/savonrb/savon/issues/321)
52
82
  end
53
83
  ```
54
84
 
55
- # 2.5.0 (2014-05-03)
85
+ ## 2.5.0 (2014-05-03)
56
86
 
57
87
  * 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
88
 
@@ -72,16 +102,16 @@ Fix : Preserve false values (https://github.com/savonrb/savon/issues/321)
72
102
  client = Savon.client(wsdl: "http://example.com/service.wsdl", log: true)
73
103
  ```
74
104
 
75
- ### 2.3.2 (2013-12-09)
105
+ ## 2.3.2 (2013-12-09)
76
106
 
77
107
  * Fix: [#520](https://github.com/savonrb/savon/issues/520) Fixes a regression in message tags in requests and responses.
78
108
 
79
- ### 2.3.1 (2013-12-05)
109
+ ## 2.3.1 (2013-12-05)
80
110
 
81
111
  * 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
112
  See [issue #487](https://github.com/savonrb/savon/issues/487)
83
113
 
84
- ### 2.3.0 (2013-07-27)
114
+ ## 2.3.0 (2013-07-27)
85
115
 
86
116
  Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
87
117
 
@@ -129,7 +159,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
129
159
  * Fix: [#468](https://github.com/savonrb/savon/issues/468) Changed the dependency on Nokogiri
130
160
  to < 1.6, because Nokogiri 1.6 dropped support for Ruby 1.8.
131
161
 
132
- ### 2.2.0 (2013-04-21)
162
+ ## 2.2.0 (2013-04-21)
133
163
 
134
164
  * Feature: [#416](https://github.com/savonrb/savon/pull/416) The global `namespace_identifier`
135
165
  option can now be set to `nil` to not add a namespace identifier to the message tag.
@@ -167,7 +197,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
167
197
  * Fix: [#423](https://github.com/savonrb/savon/issues/423) fixes a problem where Wasabi was
168
198
  not able to find extension base elements defined in imports it didn't follow.
169
199
 
170
- ### 2.1.0 (2013-02-03)
200
+ ## 2.1.0 (2013-02-03)
171
201
 
172
202
  * Feature: [#372](https://github.com/savonrb/savon/pull/372) added global `ssl_cert_key_password` option.
173
203
 
@@ -199,12 +229,12 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
199
229
  * Fix: [#376](https://github.com/savonrb/savon/issues/376) added a global `namespaces` option
200
230
  for adding namespaces to the SOAP envelope.
201
231
 
202
- ### 2.0.3 (2013-01-19)
232
+ ## 2.0.3 (2013-01-19)
203
233
 
204
234
  * Upgraded Nori dependency to prevent people from using a version that is vulnerable to
205
235
  the recent [remote code execution bug](https://gist.github.com/4532291).
206
236
 
207
- ### 2.0.2 (2012-12-20)
237
+ ## 2.0.2 (2012-12-20)
208
238
 
209
239
  * Fix: [#297](https://github.com/savonrb/savon/issues/297#issuecomment-11536517) added the global
210
240
  `:ssl_verify_mode` and `:ssl_version` options which were missing.
@@ -212,13 +242,13 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
212
242
  * Fix: [#344](https://github.com/savonrb/savon/issues/344) added missing global ssl cert options
213
243
  `:ssl_cert_file`, `:ssl_cert_key_file` and `:ssl_ca_cert_file`.
214
244
 
215
- ### 2.0.1 (2012-12-19)
245
+ ## 2.0.1 (2012-12-19)
216
246
 
217
247
  * Fix [#342](https://github.com/savonrb/savon/issues/342) fixes an issue where namespaces could
218
248
  not be resolved if the actual operation name to call did not match the operation name passed
219
249
  to the client's `#call` method. For example: `:get_stations` for a `getStations` operation.
220
250
 
221
- ### 2.0.0 (2012-12-18)
251
+ ## 2.0.0 (2012-12-18)
222
252
 
223
253
  * Read about all the changes in the [updated documentation](http://savonrb.com/version2.html).
224
254
 
@@ -233,7 +263,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
233
263
 
234
264
  * Fix: [321](https://github.com/savonrb/savon/issues/321) preserve `[false]` values in Hashes.
235
265
 
236
- ### 1.2.0 (2012-09-15)
266
+ ## 1.2.0 (2012-09-15)
237
267
 
238
268
  * Fix: [#312](https://github.com/savonrb/savon/pull/312) recursively determines the proper namespaces
239
269
  for SOAP body Hashes with nested Arrays of Hashes.
@@ -243,7 +273,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
243
273
 
244
274
  * Refactoring: Use the `Wasabi::Document` with resolver instead of the custom `Savon::Wasabi::Document`.
245
275
 
246
- ### 1.1.0 (2012-06-28)
276
+ ## 1.1.0 (2012-06-28)
247
277
 
248
278
  * Improvement: Changed Savon's core dependencies to be more strict and only allow bug fix changes.
249
279
  Major or minor releases of these dependencies now need a release of Savon so they can be used.
@@ -270,7 +300,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
270
300
  * Refactoring: Moved code that sets the cookies from the last response for the
271
301
  next request to `HTTPI::Request#set_cookies`.
272
302
 
273
- ### 1.0.0 (2012-06-09)
303
+ ## 1.0.0 (2012-06-09)
274
304
 
275
305
  * Fix: `Savon.client` didn't pass the optional block.
276
306
 
@@ -281,15 +311,15 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
281
311
 
282
312
  As this change affects `savon_spec`, you need to update `savon_spec` to v1.3.0.
283
313
 
284
- ### 0.9.14 (2012-06-07)
314
+ ## 0.9.14 (2012-06-07)
285
315
 
286
316
  * Fix: [#292](https://github.com/savonrb/savon/issues/292) again
287
317
 
288
- ### 0.9.13 (2012-06-07)
318
+ ## 0.9.13 (2012-06-07)
289
319
 
290
320
  * Fix: [#292](https://github.com/savonrb/savon/issues/292)
291
321
 
292
- ### 0.9.12 (2012-06-07)
322
+ ## 0.9.12 (2012-06-07)
293
323
 
294
324
  * Re-added the log method setters to the new config object for backwards compatibility.
295
325
  You should be able to configure the logger as you used to do.
@@ -302,7 +332,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
302
332
  end
303
333
  ```
304
334
 
305
- ### 0.9.11 (2012-06-06)
335
+ ## 0.9.11 (2012-06-06)
306
336
 
307
337
  * Feature: [#264](https://github.com/savonrb/savon/pull/264) - Thanks to @hoverlover, Savon and Akami now support
308
338
  signed messages through WSSE.
@@ -336,7 +366,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
336
366
  </env:Envelope>
337
367
  ```
338
368
 
339
- ### 0.9.10 (2012-06-06)
369
+ ## 0.9.10 (2012-06-06)
340
370
 
341
371
  * Feature: [#289](https://github.com/savonrb/savon/pull/289) - Allow the SOAP envelope header to be set as a String.
342
372
 
@@ -366,7 +396,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
366
396
  * Moved logging to the new `Savon::Logger` object.
367
397
  * Removed the `blank?` extension from `Object`.
368
398
 
369
- ### 0.9.9 (2012-02-17)
399
+ ## 0.9.9 (2012-02-17)
370
400
 
371
401
  * Improvement: [pull request 255](https://github.com/savonrb/savon/pull/255) - Raise an error if fetching
372
402
  a remote WSDL fails. Possible fix for [issue 236](https://github.com/savonrb/savon/issues/236).
@@ -390,7 +420,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
390
420
  * Fix: [pull request 265](https://github.com/savonrb/savon/pull/265) - Fixes gemspec problems when bundling
391
421
  under JRuby 1.6.5. Also fixes [issue 267](https://github.com/savonrb/savon/issues/267).
392
422
 
393
- ### 0.9.8 (2012-02-15)
423
+ ## 0.9.8 (2012-02-15)
394
424
 
395
425
  * Feature: Savon now ships with [Savon::Model](http://rubygems.org/gems/savon_model).
396
426
  Savon::Model is a lightweight DSL to be used inside your domain models. It's been refactored
@@ -424,7 +454,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
424
454
  * Fix: [pull request 250](https://github.com/savonrb/savon/pull/250) - The Content-Length header should
425
455
  be the size in bytes.
426
456
 
427
- ### 0.9.7 (2011-08-25)
457
+ ## 0.9.7 (2011-08-25)
428
458
 
429
459
  * Feature: Merged [pull request 210](https://github.com/savonrb/savon/pull/210) by
430
460
  [mboeh](https://github.com/mboeh) to add `Savon::SOAP::Response#doc` and
@@ -453,7 +483,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
453
483
 
454
484
  * Improvement: [issue 222](https://github.com/savonrb/savon/issues/222) - Set the Content-Length header.
455
485
 
456
- ### 0.9.6 (2011-07-07)
486
+ ## 0.9.6 (2011-07-07)
457
487
 
458
488
  * Improvement/Fix: Updated Savon to use the latest version of [Wasabi](http://rubygems.org/gems/wasabi).
459
489
  This should fix [issue 155](https://github.com/savonrb/savon/issues/155) - Savon can automatically add namespaces
@@ -464,16 +494,16 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
464
494
 
465
495
  * Fix: [issue 143](https://github.com/savonrb/savon/issues/143) - Updating Wasabi should solve this issue.
466
496
 
467
- ### 0.9.5 (2011-07-03)
497
+ ## 0.9.5 (2011-07-03)
468
498
 
469
499
  * Refactoring: Extracted WSSE authentication out into the [akami](http://rubygems.org/gems/akami) gem.
470
500
 
471
- ### 0.9.4 (2011-07-03)
501
+ ## 0.9.4 (2011-07-03)
472
502
 
473
503
  * Refactoring: Extracted the WSDL parser out into the [wasabi](http://rubygems.org/gems/wasabi) gem.
474
504
  This should isolate upcoming improvements to the parser.
475
505
 
476
- ### 0.9.3 (2011-06-30)
506
+ ## 0.9.3 (2011-06-30)
477
507
 
478
508
  * Fix: [issue 138](https://github.com/savonrb/savon/issues/138) -
479
509
  Savon now supports setting a global SOAP header via `Savon.soap_header=`.
@@ -508,7 +538,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
508
538
 
509
539
  * `Savon::SOAP::Response#basic_hash` is now `Savon::SOAP::Response#hash`.
510
540
 
511
- ### 0.9.2 (2011-04-30)
541
+ ## 0.9.2 (2011-04-30)
512
542
 
513
543
  * Fix: [issue 154](https://github.com/savonrb/savon/pull/154) -
514
544
  Timezone format used by Savon now matches the XML schema spec.
@@ -526,7 +556,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
526
556
 
527
557
  * Improvement: WSDL parsing now uses Nokogiri instead of REXML.
528
558
 
529
- ### 0.9.1 (2011-04-06)
559
+ ## 0.9.1 (2011-04-06)
530
560
 
531
561
  * Improvement: if you're only setting the local or remote address of your wsdl document, you can
532
562
  now pass an (optional) String to `Savon::Client.new` to set `wsdl.document`.
@@ -542,7 +572,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
542
572
  response[:authenticate_response][:return]
543
573
  ```
544
574
 
545
- ### 0.9.0 (2011-04-05)
575
+ ## 0.9.0 (2011-04-05)
546
576
 
547
577
  * Feature: issues [#158](https://github.com/savonrb/savon/issues/158),
548
578
  [#169](https://github.com/savonrb/savon/issues/169) and [#172](https://github.com/savonrb/savon/issues/172)
@@ -594,18 +624,18 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
594
624
 
595
625
  * And if you haven't already seen the new documentation: [savonrb.com](http://savonrb.com)
596
626
 
597
- ### 0.8.6 (2011-02-15)
627
+ ## 0.8.6 (2011-02-15)
598
628
 
599
629
  * Fix for issues [issue #147](https://github.com/savonrb/savon/issues/147) and [#151](https://github.com/savonrb/savon/issues/151)
600
630
  ([771194](https://github.com/savonrb/savon/commit/771194)).
601
631
 
602
- ### 0.8.5 (2011-01-28)
632
+ ## 0.8.5 (2011-01-28)
603
633
 
604
634
  * Fix for [issue #146](https://github.com/savonrb/savon/issues/146) ([98655c](https://github.com/savonrb/savon/commit/98655c)).
605
635
 
606
636
  * Fix for [issue #147](https://github.com/savonrb/savon/issues/147) ([252670](https://github.com/savonrb/savon/commit/252670)).
607
637
 
608
- ### 0.8.4 (2011-01-26)
638
+ ## 0.8.4 (2011-01-26)
609
639
 
610
640
  * Fix for issues [issue #130](https://github.com/savonrb/savon/issues/130) and [#134](https://github.com/savonrb/savon/issues/134)
611
641
  ([4f9847](https://github.com/savonrb/savon/commit/4f9847)).
@@ -614,14 +644,14 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
614
644
 
615
645
  * Fix for [issue #135](https://github.com/savonrb/savon/issues/135) ([c9261d](https://github.com/savonrb/savon/commit/c9261d)).
616
646
 
617
- ### 0.8.3 (2011-01-11)
647
+ ## 0.8.3 (2011-01-11)
618
648
 
619
649
  * Moved implementation of `Savon::SOAP::Response#to_array` to a class method at `Savon::SOAP::XML.to_array`
620
650
  ([05a7d3](https://github.com/savonrb/savon/commit/05a7d3)).
621
651
 
622
652
  * Fix for [issue #131](https://github.com/savonrb/savon/issues/131) ([4e57b3](https://github.com/savonrb/savon/commit/4e57b3)).
623
653
 
624
- ### 0.8.2 (2011-01-04)
654
+ ## 0.8.2 (2011-01-04)
625
655
 
626
656
  * Fix for [issue #127](https://github.com/savonrb/savon/issues/127) ([0eb3da](https://github.com/savonrb/savon/commit/0eb3da4)).
627
657
 
@@ -653,7 +683,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
653
683
  end
654
684
  ```
655
685
 
656
- ### 0.8.1 (2010-12-22)
686
+ ## 0.8.1 (2010-12-22)
657
687
 
658
688
  * 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
689
 
@@ -661,7 +691,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
661
691
 
662
692
  * Loosen dependency on builder. Should be quite stable.
663
693
 
664
- ### 0.8.0 (2010-12-20)
694
+ ## 0.8.0 (2010-12-20)
665
695
 
666
696
  * Added `Savon::SOAP::XML#env_namespace` ([51fa0e](https://github.com/savonrb/savon/commit/51fa0e)) to configure
667
697
  the SOAP envelope namespace. It defaults to :env but can also be set to an empty String for SOAP envelope
@@ -670,7 +700,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
670
700
  * Replaced quite a lot of core extensions by moving the Hash to XML translation into a new gem called
671
701
  [Gyoku](http://rubygems.org/gems/gyoku) ([bac4b4](https://github.com/savonrb/savon/commit/bac4b4)).
672
702
 
673
- ### 0.8.0.beta.4 (2010-11-20)
703
+ ## 0.8.0.beta.4 (2010-11-20)
674
704
 
675
705
  * Fix for [issue #107](https://github.com/savonrb/savon/issues/107) ([1d6eda](https://github.com/savonrb/savon/commit/1d6eda)).
676
706
 
@@ -686,12 +716,12 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
686
716
  # => [{ :id => 1, :name => "foo"}, { :id => 2, :name => "bar"}]
687
717
  ```
688
718
 
689
- ### 0.8.0.beta.3 (2010-11-06)
719
+ ## 0.8.0.beta.3 (2010-11-06)
690
720
 
691
721
  * Fix for [savon_spec](http://rubygems.org/gems/savon_spec) to not send nil to `Savon::SOAP::XML#body`
692
722
  ([c34b42](https://github.com/savonrb/savon/commit/c34b42)).
693
723
 
694
- ### 0.8.0.beta.2 (2010-11-05)
724
+ ## 0.8.0.beta.2 (2010-11-05)
695
725
 
696
726
  * Added `Savon.response_pattern` ([0a12fb](https://github.com/savonrb/savon/commit/0a12fb)) to automatically walk deeper into
697
727
  the SOAP response Hash when a pattern (specified as an Array of Regexps and Symbols) matches the response. If for example
@@ -734,7 +764,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
734
764
 
735
765
  * Added `Savon::SOAP::Response#to_array` (which also uses the response pattern).
736
766
 
737
- ### 0.8.0.beta.1 (2010-10-29)
767
+ ## 0.8.0.beta.1 (2010-10-29)
738
768
 
739
769
  * Changed `Savon::Client.new` to accept a block instead of multiple Hash arguments. You can access the
740
770
  wsdl, http and wsse objects inside the block to configure your client for a particular service.
@@ -827,15 +857,15 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
827
857
 
828
858
  * Started to remove quite a few core extensions.
829
859
 
830
- ### 0.7.9 (2010-06-14)
860
+ ## 0.7.9 (2010-06-14)
831
861
 
832
862
  * Fix for [issue #53](https://github.com/savonrb/savon/issues/53).
833
863
 
834
- ### 0.7.8 (2010-05-09)
864
+ ## 0.7.8 (2010-05-09)
835
865
 
836
866
  * Fixed gemspec to include missing files in the gem.
837
867
 
838
- ### 0.7.7 (2010-05-09)
868
+ ## 0.7.7 (2010-05-09)
839
869
 
840
870
  * SOAP requests now start with a proper XML declaration.
841
871
 
@@ -858,7 +888,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
858
888
  in SOAP request Hash values, but you can now append an exclamation mark to Hash keys specifying that
859
889
  it's value should not be escaped.
860
890
 
861
- ### 0.7.6 (2010-03-21)
891
+ ## 0.7.6 (2010-03-21)
862
892
 
863
893
  * Moved documentation from the Github Wiki to the actual class files and established a much nicer
864
894
  documentation combining examples and implementation (using Hanna) at: http://savon.rubiii.com
@@ -874,7 +904,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
874
904
  * Fix for issues [#39](https://github.com/savonrb/savon/issues/39) and [#49](https://github.com/savonrb/savon/issues/49).
875
905
  Added `Savon::SOAP#xml` which let's you specify completely custom SOAP request XML.
876
906
 
877
- ### 0.7.5 (2010-02-19)
907
+ ## 0.7.5 (2010-02-19)
878
908
 
879
909
  * Fix for [issue #34](https://github.com/savonrb/savon/issues/34).
880
910
 
@@ -884,11 +914,11 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
884
914
 
885
915
  * Changed the key for specifying the order of tags from :@inorder to :order!
886
916
 
887
- ### 0.7.4 (2010-02-02)
917
+ ## 0.7.4 (2010-02-02)
888
918
 
889
919
  * Fix for [issue #33](https://github.com/savonrb/savon/issues/33).
890
920
 
891
- ### 0.7.3 (2010-01-31)
921
+ ## 0.7.3 (2010-01-31)
892
922
 
893
923
  * Added support for Geotrust-style WSDL documents (Julian Kornberger <github.corny@digineo.de>).
894
924
 
@@ -909,7 +939,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
909
939
 
910
940
  * Fix for [issue #25](https://github.com/savonrb/savon/issues/25).
911
941
 
912
- ### 0.7.2 (2010-01-17)
942
+ ## 0.7.2 (2010-01-17)
913
943
 
914
944
  * Exposed the `Net::HTTP` response (added by Kevin Ingolfsland). Use the `http` accessor (`response.http`)
915
945
  on your `Savon::Response` to access the `Net::HTTP` response object.
@@ -922,12 +952,12 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
922
952
 
923
953
  * Added support for global header and namespaces. See [issue #9](https://github.com/savonrb/savon/issues/9).
924
954
 
925
- ### 0.7.1 (2010-01-10)
955
+ ## 0.7.1 (2010-01-10)
926
956
 
927
957
  * The Hash of HTTP headers for SOAP calls is now public via `Savon::Request#headers`.
928
958
  Patch for [issue #8](https://github.com/savonrb/savon/issues/8).
929
959
 
930
- ### 0.7.0 (2010-01-09)
960
+ ## 0.7.0 (2010-01-09)
931
961
 
932
962
  This version comes with several changes to the public API!
933
963
  Pay attention to the following list and read the updated Wiki: http://wiki.github.com/savonrb/savon
@@ -985,7 +1015,7 @@ Pay attention to the following list and read the updated Wiki: http://wiki.githu
985
1015
  soap.namespace = "http://example.com"
986
1016
  ```
987
1017
 
988
- ### 0.6.8 (2010-01-01)
1018
+ ## 0.6.8 (2010-01-01)
989
1019
 
990
1020
  * Improved specifications for various kinds of WSDL documents.
991
1021
 
@@ -1002,7 +1032,7 @@ Pay attention to the following list and read the updated Wiki: http://wiki.githu
1002
1032
  client.get_api_key { |soap| soap.input = "User.GetApiKey" }
1003
1033
  ```
1004
1034
 
1005
- ### 0.6.7 (2009-12-18)
1035
+ ## 0.6.7 (2009-12-18)
1006
1036
 
1007
1037
  * Implemented support for a proxy server. The proxy URI can be set through an optional Hash of options passed
1008
1038
  to instantiating `Savon::Client` (Dave Woodward <dave@futuremint.com>)
@@ -1012,17 +1042,17 @@ Pay attention to the following list and read the updated Wiki: http://wiki.githu
1012
1042
 
1013
1043
  * Patch for [issue #10](https://github.com/savonrb/savon/issues/10).
1014
1044
 
1015
- ### 0.6.6 (2009-12-14)
1045
+ ## 0.6.6 (2009-12-14)
1016
1046
 
1017
1047
  * Default to use the name of the SOAP action (the method called in a client) in lowerCamelCase for SOAP action
1018
1048
  and input when Savon::WSDL is disabled. You still need to specify soap.action and maybe soap.input in case
1019
1049
  your SOAP actions are named any different.
1020
1050
 
1021
- ### 0.6.5 (2009-12-13)
1051
+ ## 0.6.5 (2009-12-13)
1022
1052
 
1023
1053
  * Added an `open_timeout` method to `Savon::Request`.
1024
1054
 
1025
- ### 0.6.4 (2009-12-13)
1055
+ ## 0.6.4 (2009-12-13)
1026
1056
 
1027
1057
  * Refactored specs to be less unit-like.
1028
1058
 
@@ -1040,7 +1070,7 @@ Pay attention to the following list and read the updated Wiki: http://wiki.githu
1040
1070
  0.6.3 192.900000 19.630000 212.530000 (914.031865)
1041
1071
  ```
1042
1072
 
1043
- ### 0.6.3 (2009-12-11)
1073
+ ## 0.6.3 (2009-12-11)
1044
1074
 
1045
1075
  * Removing 2 ruby deprecation warnings for parenthesized arguments. (Dave Woodward <dave@futuremint.com>)
1046
1076
 
@@ -1064,17 +1094,17 @@ Pay attention to the following list and read the updated Wiki: http://wiki.githu
1064
1094
  0.6.2 574.720000 78.380000 653.100000 (1387.778539)
1065
1095
  ```
1066
1096
 
1067
- ### 0.6.2 (2009-12-06)
1097
+ ## 0.6.2 (2009-12-06)
1068
1098
 
1069
1099
  * Added support for changing the name of the SOAP input node.
1070
1100
 
1071
1101
  * Added a CHANGELOG.
1072
1102
 
1073
- ### 0.6.1 (2009-12-06)
1103
+ ## 0.6.1 (2009-12-06)
1074
1104
 
1075
1105
  * Fixed a problem with WSSE credentials, where every request contained a WSSE authentication header.
1076
1106
 
1077
- ### 0.6.0 (2009-12-06)
1107
+ ## 0.6.0 (2009-12-06)
1078
1108
 
1079
1109
  * `method_missing` now yields the SOAP and WSSE objects to a given block.
1080
1110
 
@@ -1082,15 +1112,15 @@ Pay attention to the following list and read the updated Wiki: http://wiki.githu
1082
1112
 
1083
1113
  * Improved SOAP action handling (another problem that came up with issue #1).
1084
1114
 
1085
- ### 0.5.3 (2009-11-30)
1115
+ ## 0.5.3 (2009-11-30)
1086
1116
 
1087
1117
  * Patch for [issue #2](https://github.com/savonrb/savon/issues/2).
1088
1118
 
1089
- ### 0.5.2 (2009-11-30)
1119
+ ## 0.5.2 (2009-11-30)
1090
1120
 
1091
1121
  * Patch for [issue #1](https://github.com/savonrb/savon/issues/1).
1092
1122
 
1093
- ### 0.5.1 (2009-11-29)
1123
+ ## 0.5.1 (2009-11-29)
1094
1124
 
1095
1125
  * Optimized default response process.
1096
1126
 
@@ -1102,6 +1132,6 @@ Pay attention to the following list and read the updated Wiki: http://wiki.githu
1102
1132
 
1103
1133
  * Added specs
1104
1134
 
1105
- ### 0.5.0 (2009-11-29)
1135
+ ## 0.5.0 (2009-11-29)
1106
1136
 
1107
1137
  * Complete rewrite and public release.
data/CONTRIBUTING.md CHANGED
@@ -3,44 +3,40 @@
3
3
  This page describes how to contribute changes to Savon.
4
4
 
5
5
  Please do not create a pull request without reading this guide first.
6
- Make sure to read the documentation for your version at [savonrb.com](http://savonrb.com/)
7
- and post questions to the [mailing list](https://groups.google.com/forum/#!forum/savonrb).
6
+ Make sure to read the documentation for your version and ask questions on [Stack Overflow](https://stackoverflow.com/questions/ask?tags=savon).
8
7
 
9
8
  **Bug fixes**
10
9
 
11
- If you really think you found a bug, please make sure to add as many information as possible
10
+ If you really think you found a bug, please make sure to add as much information as possible
12
11
  to the ticket. You're a developer, we are developers and you know we need tests to reproduce
13
12
  problems and make sure they don't come back.
14
13
 
15
14
  So if you can reproduce your problem in a spec, that would be awesome! If you can't, please
16
- let us know how we could make this easier for you. Also, provide code and the WSDL of the
17
- service you're working with so others can try to come up with a spec for your problem.
15
+ let us know how we can make this easier for you. Also, provide code and the WSDL of the
16
+ service you're working with, so others can try to come up with a spec for your problem.
18
17
 
19
- After we have a failing spec, it obviously needs to be fixed. Make sure your new spec is the
20
- only failing one under the `spec` directory. Travis only runs the "unit tests" at `spec/savon`,
21
- but Savon actually has with some additional "integration/example specs" at `spec/integration`,
22
- which you need to run locally to make sure the integration with real world services still works.
18
+ After we have a failing spec, it needs to be fixed. Make sure your new spec is the
19
+ only failing one under the `spec` directory. CI only runs the "unit tests" at `spec/savon`,
20
+ but Savon actually has some additional specs at `spec/integration`, which you need to run locally
21
+ to make sure the integration with real-world services still works.
23
22
 
24
- Notice that these specs are not run by Travis, because the service's are not guaranteed to work
25
- all the time and the specs will timeout after a few seconds when the service is currently down.
23
+ These specs are not run by CI, because the services are not guaranteed to work all the time.
26
24
 
27
- Please follow this basic workflow for pull requests:
25
+ Please follow this workflow for Pull Requests:
28
26
 
29
27
  * [Fork the project](https://help.github.com/articles/fork-a-repo)
30
28
  * Create a feature branch and make your bug fix
31
29
  * Add tests for it!
32
- * Update the [Changelog](https://github.com/savonrb/savon/blob/master/CHANGELOG.md)
33
- * [Send a pull request](https://help.github.com/articles/using-pull-requests)
34
- * [Check that your pull request passes the build](https://travis-ci.org/savonrb/savon/pull_requests)
35
-
30
+ * [Send a Pull Request](https://help.github.com/articles/using-pull-requests)
31
+ * [Check that your Pull Request passes the build](https://github.com/savonrb/savon/actions?query=workflow%3ARuby)
36
32
 
37
33
  **Improvements and feature requests**
38
34
 
39
35
  If you have an idea for an improvement or a new feature, please feel free to
40
- [create a new issue](https://github.com/savonrb/savon/issues/new) and describe your idea
36
+ [create a new Issue](https://github.com/savonrb/savon/issues/new/choose) and describe your idea
41
37
  so that other people can give their insights and opinions. This is also important to avoid
42
38
  duplicate work.
43
39
 
44
- Pull requests and issues on GitHub are meant to be used to discuss problems and ideas,
45
- so please make sure to participate and follow up on questions. In case noone comments
40
+ Pull Requests and Issues on GitHub are meant to be used to discuss problems and ideas,
41
+ so please make sure to participate and follow up on questions. In case no one comments
46
42
  on your ticket, please keep updating the ticket with additional information.
data/Gemfile CHANGED
@@ -1,13 +1,8 @@
1
1
  source 'https://rubygems.org'
2
+
2
3
  gemspec
3
4
 
4
5
  gem "httpclient", "~> 2.7.1"
5
6
 
6
7
  gem "simplecov", :require => false
7
- gem "coveralls", :require => false
8
-
9
- platform :rbx do
10
- gem 'racc'
11
- gem 'rubysl'
12
- gem 'rubinius-coverage'
13
- end
8
+ gem "net-smtp" if RUBY_VERSION >= "3.1.0"