1198 Commits

Author SHA1 Message Date
James Herdman
dc4d8f620e [RuboCop] Trailing Blank Lines Violations (#872) 2019-02-25 22:53:32 +01:00
risk danger olson
39dd9549f8
Merge pull request #871 from jherdman/else-alignment
Resolve Layout/ElseAlignment Violations
2019-02-25 13:06:24 -07:00
risk danger olson
627ed8775e
Merge pull request #870 from lostisland/rubocop-failures-861
Fix rubocop issues from #861
2019-02-25 13:05:05 -07:00
James Herdman
ff92c9ea04 [RuboCop] Resolve Layout/ElseAlignment 2019-02-25 14:19:19 -05:00
rick olson
3a11286c87 fix indentation issues 2019-02-25 11:26:58 -07:00
risk danger olson
e00e900486 Connection methods (#861) 2019-02-25 15:40:41 +00:00
htwroclau
de0e96054d chore: Fix RuboCop Layout/AlignParameters (#867) 2019-02-25 13:38:48 +00:00
Mattia
b427091f0e chore: RuboCop: Support Frozen String Literals (#868) 2019-02-24 20:35:12 +01:00
Mattia
fcc4c4043e
Fixes CodeClimate issues introduced in the latest PRs (#865) 2019-02-24 11:53:19 +00:00
Mattia
91ddced8b2 chore: RuboCop indentations (#864)
* chore: RuboCop lint Layout/CaseIndentation

* chore: RuboCop lint Layout/CommentIndentation

* chore: RuboCop lint Layout/IndentationWidth

* chore: RuboCop lint Layout/MultilineMethodCallIndentation

* chore: RuboCop lint Layout/MultilineOperationIndentation
2019-02-24 11:53:55 +01:00
Mattia
ec709b3974 chore: RuboCop lint Layout/AlignHash (#863) 2019-02-24 11:52:48 +01:00
htwroclau
671e9de604 chore: Fix RuboCop Layout/AccessModifierIndentation (#862) 2019-02-24 01:20:12 +01:00
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