savon 2.12.1 → 2.13.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/CHANGELOG.md +91 -73
  4. data/CONTRIBUTING.md +15 -19
  5. data/Gemfile +2 -7
  6. data/README.md +15 -19
  7. data/RELEASING.md +10 -0
  8. data/lib/savon/block_interface.rb +1 -0
  9. data/lib/savon/builder.rb +98 -29
  10. data/lib/savon/client.rb +1 -0
  11. data/lib/savon/core_ext/string.rb +1 -0
  12. data/lib/savon/header.rb +2 -6
  13. data/lib/savon/http_error.rb +4 -4
  14. data/lib/savon/log_message.rb +1 -0
  15. data/lib/savon/message.rb +1 -0
  16. data/lib/savon/mock/expectation.rb +1 -0
  17. data/lib/savon/mock/spec_helper.rb +1 -0
  18. data/lib/savon/mock.rb +1 -0
  19. data/lib/savon/model.rb +1 -0
  20. data/lib/savon/operation.rb +20 -18
  21. data/lib/savon/options.rb +56 -0
  22. data/lib/savon/qualified_message.rb +3 -2
  23. data/lib/savon/request.rb +5 -0
  24. data/lib/savon/request_logger.rb +8 -2
  25. data/lib/savon/response.rb +48 -1
  26. data/lib/savon/soap_fault.rb +1 -0
  27. data/lib/savon/version.rb +2 -1
  28. data/lib/savon.rb +1 -0
  29. data/savon.gemspec +9 -8
  30. data/spec/integration/support/application.rb +33 -1
  31. data/spec/integration/support/server.rb +1 -0
  32. data/spec/integration/zipcode_example_spec.rb +5 -8
  33. data/spec/savon/builder_spec.rb +2 -1
  34. data/spec/savon/client_spec.rb +5 -4
  35. data/spec/savon/core_ext/string_spec.rb +2 -1
  36. data/spec/savon/features/message_tag_spec.rb +2 -1
  37. data/spec/savon/http_error_spec.rb +9 -1
  38. data/spec/savon/log_message_spec.rb +2 -1
  39. data/spec/savon/message_spec.rb +2 -11
  40. data/spec/savon/mock_spec.rb +2 -1
  41. data/spec/savon/model_spec.rb +2 -1
  42. data/spec/savon/multipart_request_spec.rb +46 -0
  43. data/spec/savon/observers_spec.rb +2 -1
  44. data/spec/savon/operation_spec.rb +20 -43
  45. data/spec/savon/options_spec.rb +40 -1
  46. data/spec/savon/qualified_message_spec.rb +2 -1
  47. data/spec/savon/request_logger_spec.rb +2 -1
  48. data/spec/savon/request_spec.rb +47 -6
  49. data/spec/savon/response_spec.rb +2 -1
  50. data/spec/savon/soap_fault_spec.rb +2 -1
  51. data/spec/savon/softlayer_spec.rb +17 -2
  52. data/spec/spec_helper.rb +5 -4
  53. data/spec/support/adapters.rb +1 -0
  54. data/spec/support/endpoint.rb +1 -0
  55. data/spec/support/fixture.rb +1 -0
  56. data/spec/support/integration.rb +1 -0
  57. data/spec/support/stdout.rb +1 -0
  58. metadata +55 -33
  59. data/.travis.yml +0 -26
  60. data/donate.png +0 -0
  61. data/spec/integration/centra_spec.rb +0 -67
  62. data/spec/integration/email_example_spec.rb +0 -32
  63. data/spec/integration/random_quote_spec.rb +0 -23
  64. data/spec/integration/ratp_example_spec.rb +0 -28
  65. data/spec/integration/stockquote_example_spec.rb +0 -34
  66. data/spec/integration/temperature_example_spec.rb +0 -46
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: adc5b65f9ac22024b164dae28b0198a4269b97ab14afac694b946e7cef896d7e
4
- data.tar.gz: 13138a12de62757d551a9114b2741501accbbad169a2a00a9dee7f439ad48a78
3
+ metadata.gz: 2df838c106560592e518702a5dedbda21f19b7e6571fd3b481c2a2a4a22c5354
4
+ data.tar.gz: ed5c9f5dddd65d6ed34ffe8837ded1b201b2ffc65c609e98e01aae57f8c27d05
5
5
  SHA512:
6
- metadata.gz: 11e3b779fc0376993c46d6ab595e96896a5b0a7ea6f478d3ce93918ebfbd93ff14c4c5ac44c0080ce527c4e30e8615d559b373900acf35b96d2d67b1661b0f28
7
- data.tar.gz: 0a8b5bcacf019b33eaafee305aee4f33c1733c26455d446738c28ad14567d69288c0f1cc0226f2e9c5304687a5b49a7011397465c16350b03b31370626014292
6
+ metadata.gz: ceb8a300b93498a4a90abc61b96dfa7e254877ab144bbe95d27c9e7fd5de3c9dcaace225e6affe3109c02f1695d225409abee74257a7cceca63e2747a61ffd84
7
+ data.tar.gz: 9366f1e31be17b4e1fd4b333b32e64f406b35a8d01d3963908d62803fcc16804ca3393cb25c7d3f7bbcf24428019477dbe27f9c183ac672e5075ea94dffdff18
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,10 +1,28 @@
1
+ # Savon changelog
2
+
3
+ ## Unreleased
4
+
5
+ * Add your PR changelog line here
6
+
7
+ ## 2.13.1 (2022-09-04)
8
+
9
+ * Fix: [#977](https://github.com/savonrb/savon/pull/977) Prevent "xmlns:xmlns" namespace but allow "xmlns" namespace.
10
+
11
+ ## 2.13.0 (2022-08-03)
12
+
13
+ * Drop support for ruby 2.6 and below. Added Ruby 3.0 and 3.1 to test matrix.
14
+ * 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.
15
+ * Fix: [#943](https://github.com/savonrb/savon/pull/943) Read all namespaces from wsdl definition if document exists
16
+ * Feature: [#920](https://github.com/savonrb/savon/pull/920) Add a `write_timeout` setter for HTTP requests
17
+ * Feature: [#930](https://github.com/savonrb/savon/pull/930) Add options for SSL min_version/max_version support
18
+ * Feature: [#931](https://github.com/savonrb/savon/pull/931) Add `log_headers` option
1
19
 
2
20
  ## 2.12.1 (2020-07-05)
3
21
 
4
22
  * Fix: [#917](https://github.com/savonrb/savon/pull/917) elementFormDefault="qualified" regression
5
23
  * Fix: [#875](https://github.com/savonrb/savon/pull/875) Fix detecting Soap 1.1 Fault when faultcode and faultstring are empty
6
24
 
7
- # 2.12.0 (2018-01-16)
25
+ ## 2.12.0 (2018-01-16)
8
26
 
9
27
  * Drop support for ruby 2.1 and below.
10
28
  * Fix: [#822](https://github.com/savonrb/savon/pull/822) Raise correct error when SOAP envelope only contains a string
@@ -14,7 +32,7 @@
14
32
  * Feature: [#812](https://github.com/savonrb/savon/pull/812) Allow `proxy` option to be `nil`.
15
33
  * Feature: [#838](https://github.com/savonrb/savon/pull/838) Added ssl_ca_path and ssl_cert_store to globals
16
34
 
17
- # 2.11.2 (2017-08-03)
35
+ ## 2.11.2 (2017-08-03)
18
36
  * Fix: [#676](https://github.com/savonrb/savon/pull/676) Fixes handling of `content!` and `attributes!`
19
37
  * Fix: [#800](https://github.com/savonrb/savon/pull/800) Fix exception calling `SOAPFault#to_s` when http.body is empty
20
38
  * Fix: [#757](https://github.com/savonrb/savon/pull/757) Logging: Use filter without automatic pretty printing
@@ -23,43 +41,43 @@
23
41
  * Feature: [#742](https://github.com/savonrb/savon/pull/742) Add support for local request headers
24
42
  * Feature: [#704](https://github.com/savonrb/savon/pull/704) Add possibility to pass attribute delete_namespace_attributes to Nori
25
43
 
26
- # 2.11.1 (2015-05-27)
44
+ ## 2.11.1 (2015-05-27)
27
45
 
28
46
  * Replace dependency on [uuid](https://rubygems.org/gems/uuid), using SecureRandom.uuid instead.
29
47
 
30
- # 2.11.0 (2015-03-31)
48
+ ## 2.11.0 (2015-03-31)
31
49
 
32
50
  * Formally drop support for 1.8.7.
33
51
 
34
- # 2.10.1 (2015-03-15)
52
+ ## 2.10.1 (2015-03-15)
35
53
 
36
54
  * Feature: [#673](https://github.com/savonrb/savon/pull/673) Adds an :unwrap option that is passed to Gyoku.
37
55
 
38
- # 2.10.0 (2015-03-02)
56
+ ## 2.10.0 (2015-03-02)
39
57
 
40
58
  * Fix: This reverts a purported "fix" to operation names.
41
59
 
42
- # 2.9.0 (2015-01-29)
60
+ ## 2.9.0 (2015-01-29)
43
61
 
44
62
  * Feature: [#655] Wasabi exceptions should be rethrown as Savon errors. This should make it easier to catch errors thrown by Savon::Client.
45
63
  * Feature: [#630] ServiceFaults are correctly identified as Soap Faults.
46
64
 
47
- # 2.8.0 (2014-11-12)
65
+ ## 2.8.0 (2014-11-12)
48
66
 
49
67
  * 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.
50
68
  * Fix : Loosened dependencies on Gyoku, Nori, Akami, and other Savon-dependency gems
51
69
  * Feature: [#636](https://github.com/savonrb/savon/pull/636) Set HTTPI.logger when Savon's logger is configured.
52
70
  * 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.
53
71
 
54
- # 2.7.2 (2014-09-23)
72
+ ## 2.7.2 (2014-09-23)
55
73
 
56
74
  Fix : Preserve false values (https://github.com/savonrb/savon/issues/321)
57
75
 
58
- # 2.7.1 (2014-09-23)
76
+ ## 2.7.1 (2014-09-23)
59
77
 
60
78
  * Fix : Fix a crash in builder when request headers do not contain WSA headers
61
79
 
62
- # 2.7.0 (2014-09-23)
80
+ ## 2.7.0 (2014-09-23)
63
81
 
64
82
  * Feature: Signing requests. Added wsse_signature.
65
83
  ```ruby
@@ -68,7 +86,7 @@ Fix : Preserve false values (https://github.com/savonrb/savon/issues/321)
68
86
  end
69
87
  ```
70
88
 
71
- # 2.5.0 (2014-05-03)
89
+ ## 2.5.0 (2014-05-03)
72
90
 
73
91
  * 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.
74
92
 
@@ -88,16 +106,16 @@ Fix : Preserve false values (https://github.com/savonrb/savon/issues/321)
88
106
  client = Savon.client(wsdl: "http://example.com/service.wsdl", log: true)
89
107
  ```
90
108
 
91
- ### 2.3.2 (2013-12-09)
109
+ ## 2.3.2 (2013-12-09)
92
110
 
93
111
  * Fix: [#520](https://github.com/savonrb/savon/issues/520) Fixes a regression in message tags in requests and responses.
94
112
 
95
- ### 2.3.1 (2013-12-05)
113
+ ## 2.3.1 (2013-12-05)
96
114
 
97
115
  * 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
98
116
  See [issue #487](https://github.com/savonrb/savon/issues/487)
99
117
 
100
- ### 2.3.0 (2013-07-27)
118
+ ## 2.3.0 (2013-07-27)
101
119
 
102
120
  Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
103
121
 
@@ -145,7 +163,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
145
163
  * Fix: [#468](https://github.com/savonrb/savon/issues/468) Changed the dependency on Nokogiri
146
164
  to < 1.6, because Nokogiri 1.6 dropped support for Ruby 1.8.
147
165
 
148
- ### 2.2.0 (2013-04-21)
166
+ ## 2.2.0 (2013-04-21)
149
167
 
150
168
  * Feature: [#416](https://github.com/savonrb/savon/pull/416) The global `namespace_identifier`
151
169
  option can now be set to `nil` to not add a namespace identifier to the message tag.
@@ -183,7 +201,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
183
201
  * Fix: [#423](https://github.com/savonrb/savon/issues/423) fixes a problem where Wasabi was
184
202
  not able to find extension base elements defined in imports it didn't follow.
185
203
 
186
- ### 2.1.0 (2013-02-03)
204
+ ## 2.1.0 (2013-02-03)
187
205
 
188
206
  * Feature: [#372](https://github.com/savonrb/savon/pull/372) added global `ssl_cert_key_password` option.
189
207
 
@@ -215,12 +233,12 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
215
233
  * Fix: [#376](https://github.com/savonrb/savon/issues/376) added a global `namespaces` option
216
234
  for adding namespaces to the SOAP envelope.
217
235
 
218
- ### 2.0.3 (2013-01-19)
236
+ ## 2.0.3 (2013-01-19)
219
237
 
220
238
  * Upgraded Nori dependency to prevent people from using a version that is vulnerable to
221
239
  the recent [remote code execution bug](https://gist.github.com/4532291).
222
240
 
223
- ### 2.0.2 (2012-12-20)
241
+ ## 2.0.2 (2012-12-20)
224
242
 
225
243
  * Fix: [#297](https://github.com/savonrb/savon/issues/297#issuecomment-11536517) added the global
226
244
  `:ssl_verify_mode` and `:ssl_version` options which were missing.
@@ -228,13 +246,13 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
228
246
  * Fix: [#344](https://github.com/savonrb/savon/issues/344) added missing global ssl cert options
229
247
  `:ssl_cert_file`, `:ssl_cert_key_file` and `:ssl_ca_cert_file`.
230
248
 
231
- ### 2.0.1 (2012-12-19)
249
+ ## 2.0.1 (2012-12-19)
232
250
 
233
251
  * Fix [#342](https://github.com/savonrb/savon/issues/342) fixes an issue where namespaces could
234
252
  not be resolved if the actual operation name to call did not match the operation name passed
235
253
  to the client's `#call` method. For example: `:get_stations` for a `getStations` operation.
236
254
 
237
- ### 2.0.0 (2012-12-18)
255
+ ## 2.0.0 (2012-12-18)
238
256
 
239
257
  * Read about all the changes in the [updated documentation](http://savonrb.com/version2.html).
240
258
 
@@ -249,7 +267,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
249
267
 
250
268
  * Fix: [321](https://github.com/savonrb/savon/issues/321) preserve `[false]` values in Hashes.
251
269
 
252
- ### 1.2.0 (2012-09-15)
270
+ ## 1.2.0 (2012-09-15)
253
271
 
254
272
  * Fix: [#312](https://github.com/savonrb/savon/pull/312) recursively determines the proper namespaces
255
273
  for SOAP body Hashes with nested Arrays of Hashes.
@@ -259,7 +277,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
259
277
 
260
278
  * Refactoring: Use the `Wasabi::Document` with resolver instead of the custom `Savon::Wasabi::Document`.
261
279
 
262
- ### 1.1.0 (2012-06-28)
280
+ ## 1.1.0 (2012-06-28)
263
281
 
264
282
  * Improvement: Changed Savon's core dependencies to be more strict and only allow bug fix changes.
265
283
  Major or minor releases of these dependencies now need a release of Savon so they can be used.
@@ -286,7 +304,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
286
304
  * Refactoring: Moved code that sets the cookies from the last response for the
287
305
  next request to `HTTPI::Request#set_cookies`.
288
306
 
289
- ### 1.0.0 (2012-06-09)
307
+ ## 1.0.0 (2012-06-09)
290
308
 
291
309
  * Fix: `Savon.client` didn't pass the optional block.
292
310
 
@@ -297,15 +315,15 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
297
315
 
298
316
  As this change affects `savon_spec`, you need to update `savon_spec` to v1.3.0.
299
317
 
300
- ### 0.9.14 (2012-06-07)
318
+ ## 0.9.14 (2012-06-07)
301
319
 
302
320
  * Fix: [#292](https://github.com/savonrb/savon/issues/292) again
303
321
 
304
- ### 0.9.13 (2012-06-07)
322
+ ## 0.9.13 (2012-06-07)
305
323
 
306
324
  * Fix: [#292](https://github.com/savonrb/savon/issues/292)
307
325
 
308
- ### 0.9.12 (2012-06-07)
326
+ ## 0.9.12 (2012-06-07)
309
327
 
310
328
  * Re-added the log method setters to the new config object for backwards compatibility.
311
329
  You should be able to configure the logger as you used to do.
@@ -318,7 +336,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
318
336
  end
319
337
  ```
320
338
 
321
- ### 0.9.11 (2012-06-06)
339
+ ## 0.9.11 (2012-06-06)
322
340
 
323
341
  * Feature: [#264](https://github.com/savonrb/savon/pull/264) - Thanks to @hoverlover, Savon and Akami now support
324
342
  signed messages through WSSE.
@@ -352,7 +370,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
352
370
  </env:Envelope>
353
371
  ```
354
372
 
355
- ### 0.9.10 (2012-06-06)
373
+ ## 0.9.10 (2012-06-06)
356
374
 
357
375
  * Feature: [#289](https://github.com/savonrb/savon/pull/289) - Allow the SOAP envelope header to be set as a String.
358
376
 
@@ -382,7 +400,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
382
400
  * Moved logging to the new `Savon::Logger` object.
383
401
  * Removed the `blank?` extension from `Object`.
384
402
 
385
- ### 0.9.9 (2012-02-17)
403
+ ## 0.9.9 (2012-02-17)
386
404
 
387
405
  * Improvement: [pull request 255](https://github.com/savonrb/savon/pull/255) - Raise an error if fetching
388
406
  a remote WSDL fails. Possible fix for [issue 236](https://github.com/savonrb/savon/issues/236).
@@ -406,7 +424,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
406
424
  * Fix: [pull request 265](https://github.com/savonrb/savon/pull/265) - Fixes gemspec problems when bundling
407
425
  under JRuby 1.6.5. Also fixes [issue 267](https://github.com/savonrb/savon/issues/267).
408
426
 
409
- ### 0.9.8 (2012-02-15)
427
+ ## 0.9.8 (2012-02-15)
410
428
 
411
429
  * Feature: Savon now ships with [Savon::Model](http://rubygems.org/gems/savon_model).
412
430
  Savon::Model is a lightweight DSL to be used inside your domain models. It's been refactored
@@ -440,7 +458,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
440
458
  * Fix: [pull request 250](https://github.com/savonrb/savon/pull/250) - The Content-Length header should
441
459
  be the size in bytes.
442
460
 
443
- ### 0.9.7 (2011-08-25)
461
+ ## 0.9.7 (2011-08-25)
444
462
 
445
463
  * Feature: Merged [pull request 210](https://github.com/savonrb/savon/pull/210) by
446
464
  [mboeh](https://github.com/mboeh) to add `Savon::SOAP::Response#doc` and
@@ -469,7 +487,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
469
487
 
470
488
  * Improvement: [issue 222](https://github.com/savonrb/savon/issues/222) - Set the Content-Length header.
471
489
 
472
- ### 0.9.6 (2011-07-07)
490
+ ## 0.9.6 (2011-07-07)
473
491
 
474
492
  * Improvement/Fix: Updated Savon to use the latest version of [Wasabi](http://rubygems.org/gems/wasabi).
475
493
  This should fix [issue 155](https://github.com/savonrb/savon/issues/155) - Savon can automatically add namespaces
@@ -480,16 +498,16 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
480
498
 
481
499
  * Fix: [issue 143](https://github.com/savonrb/savon/issues/143) - Updating Wasabi should solve this issue.
482
500
 
483
- ### 0.9.5 (2011-07-03)
501
+ ## 0.9.5 (2011-07-03)
484
502
 
485
503
  * Refactoring: Extracted WSSE authentication out into the [akami](http://rubygems.org/gems/akami) gem.
486
504
 
487
- ### 0.9.4 (2011-07-03)
505
+ ## 0.9.4 (2011-07-03)
488
506
 
489
507
  * Refactoring: Extracted the WSDL parser out into the [wasabi](http://rubygems.org/gems/wasabi) gem.
490
508
  This should isolate upcoming improvements to the parser.
491
509
 
492
- ### 0.9.3 (2011-06-30)
510
+ ## 0.9.3 (2011-06-30)
493
511
 
494
512
  * Fix: [issue 138](https://github.com/savonrb/savon/issues/138) -
495
513
  Savon now supports setting a global SOAP header via `Savon.soap_header=`.
@@ -524,7 +542,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
524
542
 
525
543
  * `Savon::SOAP::Response#basic_hash` is now `Savon::SOAP::Response#hash`.
526
544
 
527
- ### 0.9.2 (2011-04-30)
545
+ ## 0.9.2 (2011-04-30)
528
546
 
529
547
  * Fix: [issue 154](https://github.com/savonrb/savon/pull/154) -
530
548
  Timezone format used by Savon now matches the XML schema spec.
@@ -542,7 +560,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
542
560
 
543
561
  * Improvement: WSDL parsing now uses Nokogiri instead of REXML.
544
562
 
545
- ### 0.9.1 (2011-04-06)
563
+ ## 0.9.1 (2011-04-06)
546
564
 
547
565
  * Improvement: if you're only setting the local or remote address of your wsdl document, you can
548
566
  now pass an (optional) String to `Savon::Client.new` to set `wsdl.document`.
@@ -558,7 +576,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
558
576
  response[:authenticate_response][:return]
559
577
  ```
560
578
 
561
- ### 0.9.0 (2011-04-05)
579
+ ## 0.9.0 (2011-04-05)
562
580
 
563
581
  * Feature: issues [#158](https://github.com/savonrb/savon/issues/158),
564
582
  [#169](https://github.com/savonrb/savon/issues/169) and [#172](https://github.com/savonrb/savon/issues/172)
@@ -610,18 +628,18 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
610
628
 
611
629
  * And if you haven't already seen the new documentation: [savonrb.com](http://savonrb.com)
612
630
 
613
- ### 0.8.6 (2011-02-15)
631
+ ## 0.8.6 (2011-02-15)
614
632
 
615
633
  * Fix for issues [issue #147](https://github.com/savonrb/savon/issues/147) and [#151](https://github.com/savonrb/savon/issues/151)
616
634
  ([771194](https://github.com/savonrb/savon/commit/771194)).
617
635
 
618
- ### 0.8.5 (2011-01-28)
636
+ ## 0.8.5 (2011-01-28)
619
637
 
620
638
  * Fix for [issue #146](https://github.com/savonrb/savon/issues/146) ([98655c](https://github.com/savonrb/savon/commit/98655c)).
621
639
 
622
640
  * Fix for [issue #147](https://github.com/savonrb/savon/issues/147) ([252670](https://github.com/savonrb/savon/commit/252670)).
623
641
 
624
- ### 0.8.4 (2011-01-26)
642
+ ## 0.8.4 (2011-01-26)
625
643
 
626
644
  * Fix for issues [issue #130](https://github.com/savonrb/savon/issues/130) and [#134](https://github.com/savonrb/savon/issues/134)
627
645
  ([4f9847](https://github.com/savonrb/savon/commit/4f9847)).
@@ -630,14 +648,14 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
630
648
 
631
649
  * Fix for [issue #135](https://github.com/savonrb/savon/issues/135) ([c9261d](https://github.com/savonrb/savon/commit/c9261d)).
632
650
 
633
- ### 0.8.3 (2011-01-11)
651
+ ## 0.8.3 (2011-01-11)
634
652
 
635
653
  * Moved implementation of `Savon::SOAP::Response#to_array` to a class method at `Savon::SOAP::XML.to_array`
636
654
  ([05a7d3](https://github.com/savonrb/savon/commit/05a7d3)).
637
655
 
638
656
  * Fix for [issue #131](https://github.com/savonrb/savon/issues/131) ([4e57b3](https://github.com/savonrb/savon/commit/4e57b3)).
639
657
 
640
- ### 0.8.2 (2011-01-04)
658
+ ## 0.8.2 (2011-01-04)
641
659
 
642
660
  * Fix for [issue #127](https://github.com/savonrb/savon/issues/127) ([0eb3da](https://github.com/savonrb/savon/commit/0eb3da4)).
643
661
 
@@ -669,7 +687,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
669
687
  end
670
688
  ```
671
689
 
672
- ### 0.8.1 (2010-12-22)
690
+ ## 0.8.1 (2010-12-22)
673
691
 
674
692
  * Update to depend on HTTPI v0.7.5 which comes with a fallback to use Net::HTTP when no other adapter could be required.
675
693
 
@@ -677,7 +695,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
677
695
 
678
696
  * Loosen dependency on builder. Should be quite stable.
679
697
 
680
- ### 0.8.0 (2010-12-20)
698
+ ## 0.8.0 (2010-12-20)
681
699
 
682
700
  * Added `Savon::SOAP::XML#env_namespace` ([51fa0e](https://github.com/savonrb/savon/commit/51fa0e)) to configure
683
701
  the SOAP envelope namespace. It defaults to :env but can also be set to an empty String for SOAP envelope
@@ -686,7 +704,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
686
704
  * Replaced quite a lot of core extensions by moving the Hash to XML translation into a new gem called
687
705
  [Gyoku](http://rubygems.org/gems/gyoku) ([bac4b4](https://github.com/savonrb/savon/commit/bac4b4)).
688
706
 
689
- ### 0.8.0.beta.4 (2010-11-20)
707
+ ## 0.8.0.beta.4 (2010-11-20)
690
708
 
691
709
  * Fix for [issue #107](https://github.com/savonrb/savon/issues/107) ([1d6eda](https://github.com/savonrb/savon/commit/1d6eda)).
692
710
 
@@ -702,12 +720,12 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
702
720
  # => [{ :id => 1, :name => "foo"}, { :id => 2, :name => "bar"}]
703
721
  ```
704
722
 
705
- ### 0.8.0.beta.3 (2010-11-06)
723
+ ## 0.8.0.beta.3 (2010-11-06)
706
724
 
707
725
  * Fix for [savon_spec](http://rubygems.org/gems/savon_spec) to not send nil to `Savon::SOAP::XML#body`
708
726
  ([c34b42](https://github.com/savonrb/savon/commit/c34b42)).
709
727
 
710
- ### 0.8.0.beta.2 (2010-11-05)
728
+ ## 0.8.0.beta.2 (2010-11-05)
711
729
 
712
730
  * Added `Savon.response_pattern` ([0a12fb](https://github.com/savonrb/savon/commit/0a12fb)) to automatically walk deeper into
713
731
  the SOAP response Hash when a pattern (specified as an Array of Regexps and Symbols) matches the response. If for example
@@ -750,7 +768,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
750
768
 
751
769
  * Added `Savon::SOAP::Response#to_array` (which also uses the response pattern).
752
770
 
753
- ### 0.8.0.beta.1 (2010-10-29)
771
+ ## 0.8.0.beta.1 (2010-10-29)
754
772
 
755
773
  * Changed `Savon::Client.new` to accept a block instead of multiple Hash arguments. You can access the
756
774
  wsdl, http and wsse objects inside the block to configure your client for a particular service.
@@ -843,15 +861,15 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
843
861
 
844
862
  * Started to remove quite a few core extensions.
845
863
 
846
- ### 0.7.9 (2010-06-14)
864
+ ## 0.7.9 (2010-06-14)
847
865
 
848
866
  * Fix for [issue #53](https://github.com/savonrb/savon/issues/53).
849
867
 
850
- ### 0.7.8 (2010-05-09)
868
+ ## 0.7.8 (2010-05-09)
851
869
 
852
870
  * Fixed gemspec to include missing files in the gem.
853
871
 
854
- ### 0.7.7 (2010-05-09)
872
+ ## 0.7.7 (2010-05-09)
855
873
 
856
874
  * SOAP requests now start with a proper XML declaration.
857
875
 
@@ -874,7 +892,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
874
892
  in SOAP request Hash values, but you can now append an exclamation mark to Hash keys specifying that
875
893
  it's value should not be escaped.
876
894
 
877
- ### 0.7.6 (2010-03-21)
895
+ ## 0.7.6 (2010-03-21)
878
896
 
879
897
  * Moved documentation from the Github Wiki to the actual class files and established a much nicer
880
898
  documentation combining examples and implementation (using Hanna) at: http://savon.rubiii.com
@@ -890,7 +908,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
890
908
  * Fix for issues [#39](https://github.com/savonrb/savon/issues/39) and [#49](https://github.com/savonrb/savon/issues/49).
891
909
  Added `Savon::SOAP#xml` which let's you specify completely custom SOAP request XML.
892
910
 
893
- ### 0.7.5 (2010-02-19)
911
+ ## 0.7.5 (2010-02-19)
894
912
 
895
913
  * Fix for [issue #34](https://github.com/savonrb/savon/issues/34).
896
914
 
@@ -900,11 +918,11 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
900
918
 
901
919
  * Changed the key for specifying the order of tags from :@inorder to :order!
902
920
 
903
- ### 0.7.4 (2010-02-02)
921
+ ## 0.7.4 (2010-02-02)
904
922
 
905
923
  * Fix for [issue #33](https://github.com/savonrb/savon/issues/33).
906
924
 
907
- ### 0.7.3 (2010-01-31)
925
+ ## 0.7.3 (2010-01-31)
908
926
 
909
927
  * Added support for Geotrust-style WSDL documents (Julian Kornberger <github.corny@digineo.de>).
910
928
 
@@ -925,7 +943,7 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
925
943
 
926
944
  * Fix for [issue #25](https://github.com/savonrb/savon/issues/25).
927
945
 
928
- ### 0.7.2 (2010-01-17)
946
+ ## 0.7.2 (2010-01-17)
929
947
 
930
948
  * Exposed the `Net::HTTP` response (added by Kevin Ingolfsland). Use the `http` accessor (`response.http`)
931
949
  on your `Savon::Response` to access the `Net::HTTP` response object.
@@ -938,12 +956,12 @@ Combined release ticket: [#481](https://github.com/savonrb/savon/issues/481)
938
956
 
939
957
  * Added support for global header and namespaces. See [issue #9](https://github.com/savonrb/savon/issues/9).
940
958
 
941
- ### 0.7.1 (2010-01-10)
959
+ ## 0.7.1 (2010-01-10)
942
960
 
943
961
  * The Hash of HTTP headers for SOAP calls is now public via `Savon::Request#headers`.
944
962
  Patch for [issue #8](https://github.com/savonrb/savon/issues/8).
945
963
 
946
- ### 0.7.0 (2010-01-09)
964
+ ## 0.7.0 (2010-01-09)
947
965
 
948
966
  This version comes with several changes to the public API!
949
967
  Pay attention to the following list and read the updated Wiki: http://wiki.github.com/savonrb/savon
@@ -1001,7 +1019,7 @@ Pay attention to the following list and read the updated Wiki: http://wiki.githu
1001
1019
  soap.namespace = "http://example.com"
1002
1020
  ```
1003
1021
 
1004
- ### 0.6.8 (2010-01-01)
1022
+ ## 0.6.8 (2010-01-01)
1005
1023
 
1006
1024
  * Improved specifications for various kinds of WSDL documents.
1007
1025
 
@@ -1018,7 +1036,7 @@ Pay attention to the following list and read the updated Wiki: http://wiki.githu
1018
1036
  client.get_api_key { |soap| soap.input = "User.GetApiKey" }
1019
1037
  ```
1020
1038
 
1021
- ### 0.6.7 (2009-12-18)
1039
+ ## 0.6.7 (2009-12-18)
1022
1040
 
1023
1041
  * Implemented support for a proxy server. The proxy URI can be set through an optional Hash of options passed
1024
1042
  to instantiating `Savon::Client` (Dave Woodward <dave@futuremint.com>)
@@ -1028,17 +1046,17 @@ Pay attention to the following list and read the updated Wiki: http://wiki.githu
1028
1046
 
1029
1047
  * Patch for [issue #10](https://github.com/savonrb/savon/issues/10).
1030
1048
 
1031
- ### 0.6.6 (2009-12-14)
1049
+ ## 0.6.6 (2009-12-14)
1032
1050
 
1033
1051
  * Default to use the name of the SOAP action (the method called in a client) in lowerCamelCase for SOAP action
1034
1052
  and input when Savon::WSDL is disabled. You still need to specify soap.action and maybe soap.input in case
1035
1053
  your SOAP actions are named any different.
1036
1054
 
1037
- ### 0.6.5 (2009-12-13)
1055
+ ## 0.6.5 (2009-12-13)
1038
1056
 
1039
1057
  * Added an `open_timeout` method to `Savon::Request`.
1040
1058
 
1041
- ### 0.6.4 (2009-12-13)
1059
+ ## 0.6.4 (2009-12-13)
1042
1060
 
1043
1061
  * Refactored specs to be less unit-like.
1044
1062
 
@@ -1056,7 +1074,7 @@ Pay attention to the following list and read the updated Wiki: http://wiki.githu
1056
1074
  0.6.3 192.900000 19.630000 212.530000 (914.031865)
1057
1075
  ```
1058
1076
 
1059
- ### 0.6.3 (2009-12-11)
1077
+ ## 0.6.3 (2009-12-11)
1060
1078
 
1061
1079
  * Removing 2 ruby deprecation warnings for parenthesized arguments. (Dave Woodward <dave@futuremint.com>)
1062
1080
 
@@ -1080,17 +1098,17 @@ Pay attention to the following list and read the updated Wiki: http://wiki.githu
1080
1098
  0.6.2 574.720000 78.380000 653.100000 (1387.778539)
1081
1099
  ```
1082
1100
 
1083
- ### 0.6.2 (2009-12-06)
1101
+ ## 0.6.2 (2009-12-06)
1084
1102
 
1085
1103
  * Added support for changing the name of the SOAP input node.
1086
1104
 
1087
1105
  * Added a CHANGELOG.
1088
1106
 
1089
- ### 0.6.1 (2009-12-06)
1107
+ ## 0.6.1 (2009-12-06)
1090
1108
 
1091
1109
  * Fixed a problem with WSSE credentials, where every request contained a WSSE authentication header.
1092
1110
 
1093
- ### 0.6.0 (2009-12-06)
1111
+ ## 0.6.0 (2009-12-06)
1094
1112
 
1095
1113
  * `method_missing` now yields the SOAP and WSSE objects to a given block.
1096
1114
 
@@ -1098,15 +1116,15 @@ Pay attention to the following list and read the updated Wiki: http://wiki.githu
1098
1116
 
1099
1117
  * Improved SOAP action handling (another problem that came up with issue #1).
1100
1118
 
1101
- ### 0.5.3 (2009-11-30)
1119
+ ## 0.5.3 (2009-11-30)
1102
1120
 
1103
1121
  * Patch for [issue #2](https://github.com/savonrb/savon/issues/2).
1104
1122
 
1105
- ### 0.5.2 (2009-11-30)
1123
+ ## 0.5.2 (2009-11-30)
1106
1124
 
1107
1125
  * Patch for [issue #1](https://github.com/savonrb/savon/issues/1).
1108
1126
 
1109
- ### 0.5.1 (2009-11-29)
1127
+ ## 0.5.1 (2009-11-29)
1110
1128
 
1111
1129
  * Optimized default response process.
1112
1130
 
@@ -1118,6 +1136,6 @@ Pay attention to the following list and read the updated Wiki: http://wiki.githu
1118
1136
 
1119
1137
  * Added specs
1120
1138
 
1121
- ### 0.5.0 (2009-11-29)
1139
+ ## 0.5.0 (2009-11-29)
1122
1140
 
1123
1141
  * 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"