risk danger olson
5cad588227
implement Connection#options. ( #857 )
...
fixes #305
2019-02-20 22:02:03 +00:00
Olle Jonsson
b2857e6e20
chore: RuboCop linting ( #860 )
...
* chore: RuboCop lint Layout/LeadingCommentSpace
* chore: RuboCop lint Layout/EmptyLineAfterGuardClause
* chore: RuboCop lint Layout/EmptyLineBetweenDefs
* chore: RuboCop lint Layout/EmptyLines
* chore: Regenerate RuboCop TODO
2019-02-20 22:44:57 +01:00
Olle Jonsson
f98c3e92fd
chore: RuboCop trailing commas fixed ( #859 )
2019-02-20 22:25:41 +01:00
Olle Jonsson
b585462dd5
chore: Fix RuboCop Style/ZeroLengthPredicate ( #858 )
2019-02-20 22:16:48 +01:00
Olle Jonsson
1054fcdf92
chore: RuboCop: Bundler/OrderedGems ( #856 )
...
* chore: RuboCop: Bundler/OrderedGems
* chore: Regenerate .rubocop_todo.yml
2019-02-20 22:07:03 +01:00
Olle Jonsson
03d05a25a9
RuboCop: Allow Lint/AssignmentInCondition - and enable RuboCop in CodeClimate ( #853 )
...
RuboCop: Create a TODO list and enable RuboCop in CodeClimate
2019-02-20 20:06:26 +01:00
Mattia
c8248ba2a4
Update README.md
2019-02-20 18:34:51 +00:00
Mattia
d3cbcd8825
README.md: Mark master branch as 1.0, and link to stable release branch ( #850 )
2019-02-20 18:29:15 +00:00
Olle Jonsson
848251420a
Add RuboCop, start configuration, add --auto-gen-config ( #851 )
2019-02-20 18:28:48 +00:00
Olle Jonsson
9939ba6234
Gemspec: Required Ruby >=2.3 ( #852 )
2019-02-20 18:24:07 +00:00
Mattia
6e3c40f159
Separate Request and Response bodies ( #847 )
2019-02-20 16:00:58 +00:00
Mattia
6e4a2aaa05
Refactor Adapter as final endpoints ( #846 )
...
* Refactors Adapters:
* They're now final endpoints.
* They don't need to call `@app.call` anymore.
* They don't inherit from `Faraday::Middleware` anymore.
2019-02-19 10:48:52 +01:00
iMacTia
3fbf2d5261
Re-enables typhoeus tests using adapter's master branch.
2019-02-05 21:14:05 +00:00
iMacTia
0474e03d2d
Use require instead of require_relative.
2019-01-14 09:17:05 +00:00
iMacTia
5ace0ea5ab
[Ruby 2.7] Stops using &Proc.new for block forwarding.
2019-01-13 17:39:29 +00:00
iMacTia
1f8aae53ae
Refactors params encoders into multiple files.
2019-01-13 17:04:33 +00:00
iMacTia
e14fb01063
Removes deprecated Faraday::Builder.
...
Refactors options into multiple files.
2019-01-13 16:59:12 +00:00
Mattia
793e6ba9c9
Add new error classes ( #841 )
...
* Removes sub-class constants definition from `Faraday::Error`. A sub-class (e.g. `ClientError`) was previously accessible
either through the `Faraday` module (e.g. `Faraday::ClientError`) or through the `Faraday::Error` class (e.g. `Faraday::Error::ClientError`).
The latter is no longer available and the former should be used instead, so check your `rescue`s.
* Introduces a new `Faraday::ServerError` (5xx status codes) alongside the existing `Faraday::ClientError` (4xx status codes).
Please note `Faraday::ClientError` was previously used for both.
* Introduces new Errors that describe the most common REST status codes:
* Faraday::BadRequestError (400)
* Faraday::UnauthorizedError (401)
* Faraday::ForbiddenError (403)
* Faraday::ProxyAuthError (407). Please note this raised a `Faraday::ConnectionFailed` before.
* Faraday::UnprocessableEntityError (422)
2019-01-04 17:24:38 +00:00
Olle Jonsson
0e07aaee76
Travis: Drop old setting sudo: false ( #840 )
2018-12-29 16:00:00 +00:00
Olle Jonsson
dad29566dc
Travis: Include Ruby 2.6 ( #838 )
2018-12-28 21:04:49 +00:00
Mattia
f1b2657523
Feature/#762 rspec ( #832 )
2018-11-26 17:11:35 +00:00
iMacTia
554780253f
Merge branch 'master' of https://github.com/lostisland/faraday into 1.0
2018-11-26 15:58:58 +00:00
Col
f18a248c36
Expose pool_size as a option for the NetHttpPersistent adapter ( #834 )
2018-11-26 15:55:26 +00:00
iMacTia
a37f8c5c37
Merge branch 'master' of https://github.com/lostisland/faraday into 1.0
2018-10-29 16:15:49 +00:00
Olle Jonsson
ec3ccb128c
[1.0] UPGRADING.md: Mention Ruby 2.3+ ( #829 )
2018-10-19 16:22:52 +01:00
Olle Jonsson
3ff3dbc43e
[1.0] Travis CI matrix: Drop 2.2: 2.3+ new min version required ( #828 )
2018-10-19 11:13:53 +01:00
Olle Jonsson
e77ac3d9e8
[1.0] [DOC] SSLOptions, Utils::Headers, Utils::ParamsHash ( #826 )
2018-10-19 09:20:33 +01:00
Mattia
88de44ebe3
Fix label name for contributing
2018-10-02 15:26:39 +01:00
iMacTia
afe53e9020
Merge branch 'master' of https://github.com/lostisland/faraday into 1.0
...
# Conflicts:
# .travis.yml
# lib/faraday/options.rb
2018-09-21 09:29:29 +01:00
Mattia
81274c93a2
Version bump to 0.15.3
v0.15.3
2018-09-19 16:10:22 +01:00
Bart
e306bd6d6b
Add support for Ruby 2.6 Net::HTTP write_timeout ( #824 )
2018-09-19 16:09:42 +01:00
Olle Jonsson
9478d597bb
ISSUE_TEMPLATE: Fix a typo ( #820 )
2018-09-11 16:08:51 +01:00
Olle Jonsson
7974c7a95c
[1.0] YARD docs for error classes ( #819 )
2018-09-11 12:48:58 +01:00
Olle Jonsson
3b2b86a8e1
[1.0] Docs for middleware ( #817 )
2018-09-11 11:59:31 +01:00
Olle Jonsson
8309a875bb
[1.0] Docs for more middlewares ( #815 )
2018-09-07 16:01:55 +01:00
K. Rodman Mannix
f26a8d675b
Add DEFAULT_EXCEPTIONS constant to Request::Retry ( #814 )
2018-08-23 16:02:29 +01:00
Mattia Giuffrida
82a8a0bd13
Merge branch 'master' of https://github.com/lostisland/faraday into 1.0
...
# Conflicts:
# lib/faraday/request.rb
2018-07-21 15:11:12 +01:00
Michiel
f08a985bd1
Make Faraday::Request serialisable with Marshal. ( #803 )
2018-05-28 22:42:12 +01:00
Mattia
8ba0797af9
Version bump to 0.15.2
v0.15.2
2018-05-23 16:15:54 +01:00
Denis Talakevich
aafbb24771
#800 correct handling parameter value empty array ( #801 )
2018-05-23 16:15:06 +01:00
Michiel
fe379511f0
Set max_retries to 0 if available. ( #799 )
2018-05-23 12:20:12 +01:00
Olle Jonsson
c63efc6472
README: logger middleware wording ( #798 )
...
- this wording was borrowed from a comment on #794
2018-05-16 09:08:36 +01:00
Mattia
e8589f9db6
version bump to 0.15.1
v0.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