1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00
Commit graph

18 commits

Author SHA1 Message Date
Igor Springer
413df85838 Add support for Net::HTTP#write_timeout method (Ruby 2.6.0) (#647)
* Add support for `Net::HTTP#write_timeout` method (Ruby 2.6.0)

[The method](https://ruby-doc.org/stdlib-2.6/libdoc/net/http/rdoc/Net/HTTP.html#method-i-write_timeout-3D) was introduced in Ruby 2.6.0.

The gem already supports `open_timeout` & `read_timeout`, so it would be nice to provide support for `write_timeout` as well.

From the official documentation:

> Number of seconds to wait for one block to be written (via one write(2) call). Any number may be used, including Floats for fractional seconds. If the HTTP object cannot write data in this many seconds, it raises a Net::WriteTimeout exception. The default value is 60 seconds. Net::WriteTimeout is not raised on Windows.

* Introduce private `validate_timeout_argument` method to reduce duplication

* Introduce private `add_timeout?` method to reduce duplication

* Do not warn about `write_timeout` when set using the default `timeout` option

* Introduce private `from_ruby_version` method to reduce duplication
2019-03-20 18:52:02 +04:00
Nikita Misharin
2054834e4e
Specify bundler version to fix CI for rubies < 2.3 (#640) 2019-01-23 09:39:08 +03:00
Théophile Helleboid - chtitux
d84a05b69e Add Ruby 2.6 compatibility and tests (#636)
On ruby/ruby@660740a75d , some status
codes have been updated.
Add aliases so old names can still be used with ruby >= 2.6
2019-01-21 16:33:26 +03:00
Cesare
af92a27226
Travis tests: Update Ruby to latest versions 2018-11-12 08:12:47 +01:00
Nicolas Leger
e53ae70450
[CI] Test against Ruby 2.5 2018-02-15 10:55:31 +01:00
Jon Hope
7516697aa5 Add 2.4.1 to the build 2017-06-03 23:25:34 +01:00
John Nunemaker
f63266c7f1
Drop support for ruby 1.9.3 2016-07-29 08:36:41 -04:00
Michael Stock
49b33aed82 Add Ruby 2.3 to Travis matrix 2016-02-03 22:11:32 -08:00
John Nunemaker
3fe80ebfc4 Add more ruby versions to matrix 2016-01-04 10:31:47 -05:00
John Nunemaker
16f825e37e Update bundler prior to bundling 2016-01-04 10:31:28 -05:00
John Nunemaker
0cc03eeb46 turn on travis emails 2016-01-04 10:31:19 -05:00
John Nunemaker
37393376a7 Remove ree and 1.8 from travis. 2014-01-06 17:45:50 -05:00
Nathan Lilienthal
b123ec296f adding 2.0.0 to travis test 2013-03-25 14:37:55 -04:00
John Nunemaker
d392c2d1cb Drop support for 1.9.2. 2012-09-07 14:03:00 -04:00
John Nunemaker
83316de971 Ensure that guard isn't installed on travis. 2012-04-15 23:18:23 -04:00
John Nunemaker
0d9d4f67ff Turn email notifications off. 2012-04-15 23:00:30 -04:00
John Nunemaker
e976c80348 Fewer rubies for travis. 2012-04-15 22:42:34 -04:00
Isaac Sanders
7d74662a0e Added a travis config 2012-04-15 17:20:27 -05:00