1664 Commits

Author SHA1 Message Date
Rusty Geldmacher
8c746f68e3 Require 'date' to avoid retry exception
Without requiring 'date', we get an exception in the retry middleware
when it tries to use DateTime for handling the Retry-After header.
2020-11-13 07:26:33 +01:00
Nathan Beyer
01c25e880c
Adjust the retry documentation and spec to align with implementation (#1197) (#1198) 2020-10-27 06:11:38 +01:00
Tijmen Brommet
95667f848a
Update documentation on using the logger (#1196)
`Faraday::Logging::Formatter` is the correct class to subclass.
2020-10-26 09:17:27 +01:00
Olle Jonsson
4e9f4b06f1
Fix a typo re: on_response -> on_complete 2020-10-23 17:28:00 +02:00
Olle Jonsson
0977306827
docs: Fix typo in markdown
Missing backtick ruined some formatting.
2020-10-22 20:23:25 +02:00
Matt
d56742a174
Introduces on_request and on_complete methods in Faraday::Middleware. (#1194) 2020-10-22 15:04:46 +01:00
Olle Jonsson
7326cd8bfd
docs: Adapters, how to create them (#1193)
This begins a new section, probably we want to move the Parallel section to its own "Advanced Adapter authoring" or a subject-specific text. Anyway, we have started!
2020-10-22 11:55:46 +02:00
Matt
680407daa9
Add comment in gemspec to explain exposure of examples and spec folders. (#1192)
Fixes #1190
2020-10-21 09:22:52 +01:00
Matt
571dc11c2f
Version bump to 1.1.0 v1.1.0 2020-10-17 11:49:07 +01:00
Igor Victor
0461c4b321
Upgrade CI to ruby/setup-ruby (#1187)
This replaces rvm in GitHub Actions.
2020-10-13 16:22:53 +02:00
Joel Stimson
85b46bef6c
Remove retry_change_requests from documentation (#1185) 2020-10-06 10:33:29 +01:00
Utkarsh Gupta
a5b7a6bc81
Drop git ls-files in gemspec (#1183) 2020-09-23 11:20:37 +02:00
Sandro Damilano
8ee406d788
Include request info in exceptions raised by RaiseError Middleware (#1181) 2020-09-17 16:45:25 +02:00
Matt
868fe9bb18
Fix linting bumping Rubocop to 0.90.0 (#1182) 2020-09-17 16:02:47 +02:00
Matt
9af091f9c4
Improves documentation on how to contribute to the site by using Docker. (#1175) 2020-09-01 16:32:18 +01:00
Vít Ondruch
6521a1606e Properly fix test failure with Rack 2.1+.
Rack is not to blame, just naive test case which was enough so far.

Fixes #1119
2020-07-25 01:51:43 +02:00
Mattia
5acab36239
Introduces flat_encode option for multipart adapter. (#1163)
Fixes #1157
2020-07-09 10:43:09 +01:00
John W Higgins
e02a8c1009
Makes parameters sorting configurable (#1162) 2020-07-07 10:02:50 +01:00
Alexander Popov
f6130995eb
Update typhoeus to new stable version (1.4) (#1159) 2020-05-27 17:34:43 +01:00
Olle Jonsson
90b4564cec
Rubocop linting with 0.84.0 (#1160) 2020-05-27 17:26:31 +01:00
Daniel George Holz
722821fab7
Avoid 'last arg as keyword param' warning when building user middleware on Ruby 2.7 (#1153) 2020-05-15 15:32:38 +01:00
Mattia
019e1a8417
Limits net-http-persistent version to < 4.0 (#1156) 2020-05-07 23:34:48 +01:00
Olle Jonsson
41c0dc7edf
Add 1.0 release to wording in CONTRIBUTING (#1155) 2020-05-07 14:28:57 +01:00
Alexander Popov
87ecaf9682 Return tests of Test adapter 2020-04-20 08:27:04 +02:00
Alexander Popov
680b9f8a6c Add EditorConfig file
Resolve issues.

More info here: https://editorconfig.org/
2020-04-19 22:56:50 +02:00
Alexander Popov
c26df87b86 Update RuboCop
Require its specific version in `Gemfile`.

Fix it's installation in CI.

Enable new cops.

Resolve new offenses.

Drop support of Ruby 2.3
(it's not supported by RuboCop and by MRI:https://www.ruby-lang.org/en/news/2019/03/31/support-of-ruby-2-3-has-ended/)

Deprecate `Faraday::Request#method`, replace it with `#http_method`.
2020-04-19 17:44:07 +02:00
LuckyWind_sck
3b3de79e3d Fix typo for RSpec 2020-04-06 12:34:24 +02:00
Olle Jonsson
3ca146de4d Update year markers to 2020 for a lively look 2020-04-03 18:18:51 +02:00
Olle Jonsson
e33c559345
Link from GitHub Actions badge to CI workflow (#1141) 2020-04-03 17:02:01 +01:00
Olle Jonsson
f0c76f826f Remove Codeclimate coverage badge
- Until it supports SimpleCov 0.18, we drop this from our CI and README
2020-04-02 10:40:38 +02:00
Mattia
5547e9131a
Bump version to 1.0.1 v1.0.1 2020-03-29 14:46:47 +01:00
Karl Entwistle
864a7e52f3
Encode Spaces in Query Strings as '%20' Instead of '+' (#1125) 2020-03-29 11:48:15 +01:00
Mattia
b4ad6e386e
Update publish.yml
Replace deprecated `version` with `ruby-version`
2020-03-29 11:12:08 +01:00
Olle Jonsson
f6401225a4 Adapter Registry reads also use mutex 2020-03-25 12:58:36 +01:00
Olle Jonsson
5d24afc373 External adapters exposed
- this was inadvertently removed in 0c873c1500b0849cafcc6a0c4d7ccfeedcc7a48a
  - the feature was introduced in #941
2020-03-07 06:40:32 +01:00
Marjan Povolni
e2c56e90c9 docs(website): fix request/response mix-up in text 2020-02-24 09:36:13 +01:00
Olle Jonsson
52e30bf8e8 spec: JRuby-proof a test about error messages 2020-02-10 16:04:04 +01:00
Olle Jonsson
284d920cf3 specs: JRuby-Skip EM specs 2020-02-10 16:04:04 +01:00
Olle Jonsson
e80b829976 specs: JRuby-Skip Patron specs 2020-02-10 16:04:04 +01:00
nic-lan
1042a45618
Allows parse method to be private/protected in response middleware (#1123) 2020-02-10 14:38:27 +00:00
Bobby McDonald
a4837c8509 Update org name for typhoeus repo 2020-02-07 18:14:34 +01:00
Olle Jonsson
d77c9efee9
Fully qualify constants to be checked (#1122) 2020-02-07 15:57:00 +00:00
Justin Bull
8560572d16
Use Net::HTTP#start(&block) to ensure closed TCP connections (#1117)
Co-authored-by: Byron Wolfman <byronwolfman@users.noreply.github.com>
2020-02-07 14:54:18 +00:00
Mattia
614c26fe9d
Limits rack to v2.0.x (#1127)
Fixes #1119
2020-02-06 20:31:26 +00:00
Olle Jonsson
099dd45f63
Merge pull request #1116 from vvo/docs/add-documentation-search
docs(website): add search to the website
2020-01-22 11:03:36 +01:00
Vincent Voyer
47dcf037a7
Merge branch 'master' into docs/add-documentation-search 2020-01-21 12:38:59 +01:00
Vincent Voyer
008321b24f docs(website): add search to the website
This commit adds documentation search to the whole website using Algolia's
DocSearch project: https://community.algolia.com/docsearch/.
Analytics are available via an Algolia account, ask vincent@codeagain.com for
more information.

I tried to be as close as the Faraday design as possible.
2020-01-21 12:38:12 +01:00
Olle Jonsson
e346b8bdb4 README: Link the logo to the website (#1112) 2020-01-09 11:45:11 +00:00
Olle Jonsson
b30ec73e99
docs(retry): precise usage of retry-after (#1111)
* docs(retry): precise usage of retry-after

Fixes https://github.com/lostisland/faraday/pull/1109#issuecomment-572448991
2020-01-09 10:46:43 +01:00
Olle Jonsson
6015ae97d6
[docs] Use "including" wording
By mentioning "including" instead of "configuring like this", we avoid the possible understanding "replace the whole list".
2020-01-09 10:37:22 +01:00