1522 Commits

Author SHA1 Message Date
risk danger olson
993a483ec3
Merge pull request #1053 from lostisland/raise-error-nil
Raise error nil
2019-10-16 10:42:20 -06:00
risk danger olson
c844e4c53e
Merge branch 'master' into raise-error-nil 2019-10-16 10:35:24 -06:00
Mattia
708ca5b9ab
Use GitHub Actions for CI (#1051) 2019-10-16 10:57:42 +01:00
rick olson
f7f91b7077 raise_error: update docs to mention nil status code 2019-10-15 13:37:41 -06:00
rick olson
232ec3892e the nil status is extremely rare, so check it last 2019-10-15 13:23:33 -06:00
Jonny
07ddcb93f5 Pass the exception correctly 2019-10-15 10:26:10 -06:00
Michael Herold
72b917c8be Raise exception on nil status 2019-10-15 10:26:06 -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
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
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
rick olson
4a2d1e6b3d so picky 2019-07-10 10:35:21 -06:00
rick olson
d8ccce2bc0 show example of testing the env object too 2019-07-10 10:34:50 -06:00
rick olson
8b71ba3320 let it goooooo 2019-07-10 10:29:53 -06:00
rick olson
bbb015b500 let it go 2019-07-10 10:19:56 -06:00
rick olson
657b0231f8 Link directly to the blob pages on github 2019-07-10 10:05:18 -06:00
rick olson
869cf338de add test/unit and rspec test examples 2019-07-10 10:00:34 -06:00
Lewis Cowles
ac27ce502e Configure Jekyll plugin jekyll-remote-theme to support Docker usage (#999)
I tried to build with Jekyll 3.6.x (`jekyll/jekyll:latest`). It went badly.

By following the author guide https://github.com/benbalter/jekyll-remote-theme I noticed we were missing a YAML configuration entry.
2019-07-09 22:05:10 +02:00
risk danger olson
8fa2b46196
Merge pull request #994 from lostisland/fix/website-navigation
Website Navigation Fix
v1.0-rc1
2019-07-08 12:07:02 -06:00
risk danger olson
8585604508
Merge pull request #995 from lostisland/fix-options-inspect
teach #inspect how to build string without appending to a frozen string
2019-07-08 12:06:24 -06:00
rick olson
432fcd267d fix test 2019-07-08 11:55:56 -06:00
iMacTia
0ec66e8959 Fixes website navigation by adding trailing slashes to /index.md files.
See https://stackoverflow.com/questions/54727643/trailing-slashes-in-jekyll-github-pages-site-cause-404
2019-07-08 18:45:46 +01:00
rick olson
70764fb34e teach #inspect how to build string without appending to a frozen string 2019-07-08 11:43:19 -06:00
risk danger olson
7eae1cbf23
Merge pull request #993 from lostisland/prep-1.0-rc1
Ship 1.0.0-rc1
2019-07-08 11:30:13 -06:00
rick olson
2a2a0ebfe5 Merge branch 'master' into prep-1.0-rc1 2019-07-08 11:14:20 -06:00
risk danger olson
a285d7a8b6
Merge pull request #982 from lostisland/faraday-website
Faraday Website
2019-07-08 11:11:59 -06:00