930 Commits

Author SHA1 Message Date
Mattia
e8589f9db6
version bump to 0.15.1 2018-05-10 16:35:29 +01:00
iMacTia
5ee253a9a3 Merge branch 'master' of https://github.com/lostisland/faraday into 1.0
# Conflicts:
#	lib/faraday/adapter/patron.rb
2018-05-10 10:09:43 +01:00
Julik Tarkhanov
ac661139fe Fix: do not memoize/reuse Patron session (#796) 2018-05-10 10:07:37 +01:00
Pete Nicholls
5f1687abbe Logger middleware: use $stdout instead of STDOUT (#794) 2018-05-10 09:51:06 +01:00
Olle Jonsson
632ea6c96d Refactor: inline cached_connection (#797) 2018-05-08 14:27:00 +01:00
Bart
1fa90511f1 Allow setting min/max ssl version for Excon (#795) 2018-05-04 12:21:01 +01:00
Adrien Tateno
49112d2d69 NetHttpPersistent adapter better reuse of SSL connections (#793) 2018-05-04 12:19:08 +01:00
Bart
e7c79907f3 Allow setting min/max SSL version for a Net::HTTP connection on Ruby 2.5 (#792) 2018-05-01 07:49:54 +01:00
Mattia
4381c2d62d
Version bump to 0.15.0 2018-04-19 14:06:45 +01:00
Olle Jonsson
89b3365896 YARD annotations; Git ignore .yardoc/ (#788) 2018-04-17 15:08:09 +01:00
Erich Soares Machado
6b564ee8e8 Improve response logger middleware output (#784) 2018-03-26 11:15:39 +01:00
Fabio Kreusch
0aebd35d9f Returns the http response when giving up on retrying by status (#783) 2018-03-24 09:37:11 +00:00
Hiro Asari
0989bf1f76 Fix Retry middleware documentation (#781)
Based on the value defined in the code.
2018-03-15 20:58:30 +00:00
Mattia Giuffrida
d9661c4567 Merge branch 'master' of https://github.com/lostisland/faraday into 1.0 2018-03-08 20:09:09 +00:00
Michael Grosser
77fc3ecee9 Reuse persistent connections when using net-http-persistent (#778) 2018-03-08 18:05:41 +00:00
Anton Ilin
6ddf9c3b80 Retry middleware improvements (honour Retry-After header, retry statuses) (#773) 2018-02-22 21:08:09 +00:00
Gergely Borsothy-Gaal
c6a2098e08 Added retry block option to retry middleware. (#770) 2018-02-15 15:00:17 +00:00
Mattia Giuffrida
5f9314fba6 Merge branch 'master' of https://github.com/lostisland/faraday into 1.0 2018-02-10 13:14:17 +00:00
Olle Jonsson
452f04d342 [api docs] NestedParamsEncoder (#768) 2018-02-07 14:05:06 +00:00
Luis Edymerchk Laverde
162932650f Remove unused class error (#767) 2018-02-04 11:13:50 +00:00
Olle Jonsson
1793f9fd47 [1.0 docs] YARD docblocks for classes Env, Request (#763) 2018-02-02 16:54:07 +00:00
Olle Jonsson
33f771d0c4 [1.0] Remove deprecated arg to proxy reader (#765) 2018-01-31 15:48:54 +00:00
Olle Jonsson
5cdb17cf10 [1.0] YARD docblocks annotation - a beginning in a single file (#758) 2018-01-21 11:41:10 +00:00
Mattia Giuffrida
f2e0e22442 Merge branch 'master' of https://github.com/lostisland/faraday into 1.0
# Conflicts:
#	.travis.yml
2018-01-21 09:44:34 +00:00
iMacTia
2f91e9da6e Version bump to 0.14.0 2018-01-19 17:41:05 +00:00
Mattia
e6311bd286
Allow overriding env proxy (#754)
* Allows to ignore env proxy by setting Faraday.ignore_env_proxy to true
* Improved readme adding a new Proxy section
2018-01-19 17:28:00 +00:00
Christian
397166eda0 Handle all connection timeout messages in Patron (#687)
* Include more of cURL's connection timeout messages
2017-12-13 18:56:13 +00:00
Mattia
8503baea4b
Changes the way adapters are managed (#750)
* Store adapter separately from other middleware
* Adapter can be set anywhere in the stack and will always be the last
* Use default adapter if no adapter set

fixes #47
fixes #121
2017-11-21 09:48:45 +00:00
iMacTia
5f8b09e843 Merge branch 'master' of https://github.com/lostisland/faraday into 1.0 2017-11-17 15:08:28 +00:00
Mattia
b302d708ea
External Typhoeus Adapter Compatibility (#748) 2017-11-17 09:54:24 +00:00
Érik Escobedo
53b5e087e9 Faraday::Adapter::Test stubs now support entire urls (with host) (#741) 2017-11-13 15:24:15 +00:00
Mattia Giuffrida
4ef728230c Merge branch 'master' of https://github.com/lostisland/faraday into 1.0
# Conflicts:
#	lib/faraday/adapter/typhoeus.rb
#	test/adapters/typhoeus_test.rb
2017-11-12 10:56:59 +00:00
Anthony Dmitriyev
936e57879b Warn about adapter being unset when making a request (#743) 2017-11-06 10:21:38 +00:00
Olle Jonsson
e63ef9b830 Remove Typhoeus adapter (#715) 2017-11-02 09:57:49 +00:00
Harald Sitter
2b580148fd Fixes the behaviour for Excon's open_timeout (not setting write_timeout anymore) (#731) 2017-10-30 11:36:43 +00:00
Mattia
4d1ddc130b
If proxy is manually provided, this takes priority over find_proxy (#724)
Fixes #723
2017-10-30 09:07:41 +00:00
Mattia Giuffrida
7acc82b6a5 Asks Travis to use Ubuntu Precise 2017-10-30 09:02:58 +00:00
Martin Mauch
ff94676369 Streaming requests for Net::HTTP (#604) 2017-08-30 08:12:01 +01:00
Mattia
29feeb92e3 Version bump (0.13.1) 2017-08-18 17:16:25 +01:00
Mattia
b09c6db315 Fixes an incompatibility with new proxy detection and Addressable::URI gem (#722)
fixes #721
2017-08-18 13:43:41 +01:00
Mattia
ead6e342f6 Version bump (0.13.0) 2017-08-15 10:54:52 +01:00
Mattia
d1b05653a5 Version bump (0.12.3) 2017-08-15 10:50:52 +01:00
Mattia
ad7a8e5e26 Fixes an edge-case issue with response headers parsing (missing HTTP header) (#719)
Fixes https://github.com/lostisland/faraday/pull/681#discussion_r129608099
2017-08-11 15:47:47 +01:00
Olle Jonsson
f8892b1301 Adapter support for Net::HTTP::Persistent v3.0.0 (#619) 2017-07-28 15:25:59 +01:00
Brandon Dunne
923f90558c Prefer #hostname over #host. (#714) 2017-07-26 15:40:46 +01:00
Mattia
d18cc04be5 Environment proxy refactoring (#712)
* Dynamically reloads the proxy when performing a request on an absolute domain
Fixes #701

* Removes `proxy` attr_reader to avoid warning. Reintroduce it when removing the `get/set proxy`

* Request proxy is set in `run_request` and not `build_request` anymore, as url is not available in `build_reqeust`, had to remove a test for this.

* Adds new tests to check proxy working with `Faraday.get`
2017-07-24 10:14:52 +01:00
Mattia
5ba7c30a7b Version bump (0.12.2) 2017-07-21 12:51:09 +01:00
Mattia
cf6f2b10ac Fixes an issue with Options.merge! and Faraday instrumentation middleware (#711)
Fixes #710
2017-07-19 18:34:34 +01:00
Mattia
4e6296a6ee Fixes an issue with Faraday.default_connection not using Faraday.default_connection_options (#707)
Fixes #698
2017-07-12 17:00:07 +01:00
Mattia
33547461d2 Fixes an issue with Options having a nil value (#706)
Fixes #694
2017-07-12 16:58:32 +01:00