1786 Commits

Author SHA1 Message Date
rick olson
b85589c72a Merge branch 'master' into springerigor-read-timeout-request-option 2019-10-14 14:08:02 -06:00
rick olson
0aea513d72 teach rack adapter to use #request_timeout 2019-10-14 14:07:42 -06:00
rick olson
6394bc08a5 teach patron adapter how to use #request_timeout 2019-10-14 14:06:07 -06:00
rick olson
711c257295 teach httpclient adapter how to use #request_timeout 2019-10-14 14:03:29 -06:00
rick olson
55c0b742ec test current httpclient timeout behavior 2019-10-14 11:19:48 -06:00
Stanisław Pitucha
cccc145e2f Describe clearing cached stubs
This was the solution proposed in https://github.com/lostisland/faraday/issues/1041
2019-10-07 19:48:59 +02:00
Orien Madgwick
940e01ce38 Add project metadata to the gemspec (#1046)
As per https://guides.rubygems.org/specification-reference/#metadata,
add metadata to the gemspec file. This'll allow people to more easily
access the source code, raise issues and read the changelog. These
`bug_tracker_uri`, `changelog_uri`, `documentation_uri`, `wiki_uri` and
`source_code_uri` links will appear on the rubygems page at
https://rubygems.org/gems/faraday and be available via the rubygems
API after the next release.
2019-10-07 19:21:28 +02:00
Olle Jonsson
6c7bf772b9 Rubocop: Lint/SendWithMixinArgument (#1047)
Same as 0ac691abaf1f78185f025ea8c8711f3970b49ebc, credits to @BobbyMcWho
2019-10-07 17:54:17 +01:00
risk danger olson
dcae077607
Merge pull request #1029 from lostisland/rel-v0.16.0
release v0.16.0
v0.16.0
2019-09-27 10:34:02 -06:00
rick olson
9882080737 release v0.16.0 2019-09-27 10:26:47 -06:00
risk danger olson
435e45b154
Merge pull request #1000 from lostisland/add-testing-examples
Add testing examples
2019-09-22 09:50:58 -06:00
risk danger olson
872a249fa7
Excon streaming (#1026)
* implement excon streaming

* trust that excon will return empty body on streamed responses

* track total byte size ourselves

* the extra args are needed
2019-09-22 09:43:18 -06:00
rick olson
f8615d5255 net_http and net_http_persistent share _some_ config code 2019-09-20 07:30:21 -06:00
rick olson
ba7b82d9a2 lint: fix alignment and rescue stmt 2019-09-20 05:32:14 -06:00
risk danger olson
80ba52c721
update multipart docs to mention ParamPart class (#1018)
* update multipart docs to mention ParamsPart class

* Use newer "FilePart" name

* annotate example

* Consistently use single quotes

* remove last UploadIO reference
2019-09-20 05:08:56 -06:00
rick olson
bfe360a0a7 Refactor patron adapter to use #connection 2019-09-20 04:25:02 -06:00
rick olson
bfdb66ab71 Refactor httpclient adapter to use #connection 2019-09-19 20:44:18 -06:00
rick olson
86d3cf2e8b Refactor excon adapter to use #connection 2019-09-19 20:38:20 -06:00
rick olson
36ff4a5c3e Refactor net_http and net_http_persistent adapters to use #connection 2019-09-19 20:26:26 -06:00
rick olson
b35f6a2480 RequestOptions#fetch_timeout => Adapter#request_timeout
This allows adapter internals and specs to treat request options as a 
plain hash.
2019-09-19 16:39:39 -06:00
rick olson
8dae875906 lint 2019-09-19 16:05:06 -06:00
rick olson
a5a398c231 teach Excon to use #fetch_timeout 2019-09-19 15:50:50 -06:00
rick olson
6c117f47b9 test current Excon timeout config 2019-09-19 15:50:25 -06:00
rick olson
24cf49c216 teach EMHttp adapter to use #fetch_timeout 2019-09-19 15:40:36 -06:00
rick olson
abade0d453 test current EMHttp timeout config 2019-09-19 15:32:22 -06:00
rick olson
dbe4fae178 teach Faraday::RequestOptions to get the correct timeout configuration 2019-09-19 12:20:45 -06:00
rick olson
956c53f99a space things out a bit 2019-09-19 12:01:00 -06:00
rick olson
3575ad6485 Merge branch 'read-timeout-request-option' of https://github.com/springerigor/faraday into springerigor-read-timeout-request-option 2019-09-19 12:00:09 -06:00
risk danger olson
b863c167d6
Merge pull request #1021 from lostisland/upload_io_file_part
Rename UploadIO -> FilePart
2019-09-19 11:38:01 -06:00
rick olson
c0c911d0ee properly indent @param tags 2019-09-18 14:50:54 -06:00
rick olson
c3bbb16dd3 remove class scope decl 2019-09-18 14:43:53 -06:00
rick olson
df8b15e720 move the Faraday::ParamPart#initialize yard desc to the class 2019-09-18 14:42:01 -06:00
rick olson
6fdc48e163 add specs for FilePart 2019-09-18 14:25:21 -06:00
rick olson
249835f8b6 add alias Faraday::FilePart for older Faraday::UploadIO 2019-09-18 14:18:14 -06:00
risk danger olson
1418454f04
Merge pull request #1017 from trainline-eu/add-part-params-class-to-allow-multipart-posts-with-json-content-and-file-upload
Create PartParams class to allow multipart posts with JSON content and file upload at the same time
2019-09-17 13:30:04 -06:00
Jeremy ISRAEL
7dded89b33 Create PartParams class to allow multipart posts with JSON content and IO content in the same request 2019-09-17 10:29:22 +02:00
Aaron Patterson
f4ae96ea9b This fixes warnings on Ruby 2.7 (#1009) 2019-08-15 22:17:16 +01:00
risk danger olson
e8792e43d5 port changes from #1000 (#1004) 2019-07-19 14:11:30 +02:00
rick olson
f825112db3 remove debugging code 2019-07-18 14:32:26 -06:00
rick olson
e1c71d4d57 whats up with webmock and patron 2019-07-18 14:10:53 -06:00
rick olson
ffbc597146 fix rubocop issues in examples 2019-07-18 13:45:59 -06:00
rick olson
d0ed8f891f describe stub request response, add exception example 2019-07-18 12:51:19 -06:00
rick olson
8e31ce1684 fix pointers to example files 2019-07-18 12:51:02 -06:00
rick olson
90122910d1 isolate examples from rspec test suite run in ci 2019-07-18 12:48:34 -06:00
rick olson
25c4791791 add example testing exception 2019-07-18 12:00:09 -06:00
risk danger olson
8d2eb3c079
Update docs/adapters/testing.md
Co-Authored-By: Olle Jonsson <olle.jonsson@gmail.com>
2019-07-18 10:30:51 -06:00
risk danger olson
fff3227cee
Update docs/adapters/testing.md
Co-Authored-By: Olle Jonsson <olle.jonsson@gmail.com>
2019-07-18 10:30:43 -06:00
risk danger olson
52b260112a
Update spec/examples/client_spec.rb
Co-Authored-By: Olle Jonsson <olle.jonsson@gmail.com>
2019-07-18 10:30:31 -06:00
Igor Springer
25979431e4 Add support for setting Ruby Net::HTTP read_timeout option separately
Right now `timeout` setting sets all the timeout values (`read`, `open` & `write` if available). To unify the API with `Net::HTTP` one (which has a dedicated method for `read_timeout` as well) I propose extending the `RequestOptions` by `read_timeout`.
2019-07-18 11:03:58 +02:00
rick olson
4a2d1e6b3d so picky 2019-07-10 10:35:21 -06:00