42 Commits

Author SHA1 Message Date
Mattia Giuffrida
cb47eca810 Remove multipart middleware and all its documentation and tests. 2022-01-03 09:40:52 +01:00
Olle Jonsson
120c56988e Lint: skip Performance/StringInclude
We are after the side-effect of setting something in the last match,
from this "useless" RegExp.
2021-08-17 08:44:04 +02:00
Olle Jonsson
f1f36be663 Lint: Style/PerlBackrefs 2021-08-17 08:44:04 +02:00
Olle Jonsson
b183095c52 Lint: Style/HashConversion 2021-08-17 08:44:04 +02:00
Matt
6333b73d13
Begin v2 release (#1297)
* Update UPGRADING.md to highlight adapters being moved out
* Cleanup tests
* Cleanup Gemfile
* Update CI
2021-08-01 17:09:03 +01:00
Matt
97a3bc2386
Fix #1219 Net::HTTP still uses env proxy (#1221) 2020-12-23 14:00:45 +00:00
Matt
868fe9bb18
Fix linting bumping Rubocop to 0.90.0 (#1182) 2020-09-17 16:02:47 +02: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
technoweenie
5b6f9d87d3 remove CONNECT method 2019-12-30 08:09:02 -07:00
rick olson
6fdc48e163 add specs for FilePart 2019-09-18 14:25:21 -06:00
rick olson
e54c86a6ce use multipart-parser gem in multipart tests 2019-04-01 15:11:56 -06:00
Mattia
14b596fd30 Support standalone adapters (#941)
* Expose relevant specs to external adapters
2019-03-10 11:02:19 +01:00
risk danger olson
bd322bba6b chore: rubocop lint Metrics/LineLength (#938) 2019-03-08 17:45:12 +00:00
Mattia
626d68f6ff
Adds rack adapter to RSpec tests (#937) 2019-03-07 23:18:29 +00:00
Mattia
609d1768cb
Adds em-synchrony adapter to RSpec tests (#936) 2019-03-07 13:23:41 +00:00
iMacTia
ab33c8ace1 Adds em-http adapter to RSpec tests 2019-03-05 18:26:46 +00:00
iMacTia
f8f5985f3e Fixes Rubocop Style/ParallelAssignment 2019-03-03 19:23:46 +00:00
iMacTia
5d4ed5e401 Fixes Rubocop Style/Proc 2019-03-03 19:08:54 +00:00
htwroclau
1fe9763c19 chore: Fix RuboCop Style/IfInsideElse (#915) 2019-03-03 18:38:56 +01:00
Mattia
d657e3d3c3 chore: RuboCop lints Style/R* (#910)
* Fixes Rubocop Style/RescueStandardError

* Fixes Rubocop Style/RegexpLiteral

* Fixes Rubocop Style/RaiseArgs
2019-03-03 10:50:49 +01:00
iMacTia
15303a3415 Fixes Rubocop Style/SingleLineMethods. 2019-03-02 16:33:29 +00:00
risk danger olson
4171215da7 chore: Rubocop lint Style/PercentLiteralDelimiters (#905) 2019-03-02 10:33:45 +01:00
htwroclau
f46a17573d chore: Fix RuboCop Style/BlockDelimiters (#906) 2019-03-02 10:10:48 +01:00
iMacTia
0af6142f47 chore: Rubocop lint Style/SymbolProc 2019-02-28 17:27:38 +00:00
risk danger olson
fd7dbc709b Rubocop style (#897)
* chore: Rubocop lint Style/AccessModifierDeclarations
* chore: Rubocop lint Style/Alias
* chore: Rubocop lint Style/AndOr
* chore: Rubocop lint Naming/ConstantName
* chore: Rubocop lint Naming/PredicateName
* chore: Rubocop lint Naming/UncommunicativeMethodParamName
* chore: Rubocop lint Performance/RedundantBlockCall
* chore: Rubocop lint Performance/StringReplacement
2019-02-28 17:15:28 +00:00
James Herdman
553b20ac1a chore: RuboCop Indent Hash 2019-02-27 08:55:23 -05:00
Olle Jonsson
7ddccdbd1e chore: RuboCop lint Layout/SpaceInsideBlockBraces 2019-02-27 08:41:05 +01:00
Olle Jonsson
52a513d232 chore: RuboCop lint Layout/SpaceBeforeBlockBraces 2019-02-27 08:39:55 +01:00
Olle Jonsson
8cb5865a78 chore: RuboCop lint Layout/SpaceAroundOperators 2019-02-27 08:37:07 +01:00
Mattia
aa4e33ff50 chore: Fix RuboCop Style/HashSyntax (#878)
* Fixes rubocop Style/HashSyntax issues.

* Fixes rubocop Style/HashSyntax issues in comments as well.
2019-02-26 12:10:35 +01:00
Olle Jonsson
00765145a3 chore: RuboCop Style/StringLiteral 2019-02-25 23:11:57 +01:00
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
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
Mattia
b427091f0e chore: RuboCop: Support Frozen String Literals (#868) 2019-02-24 20:35:12 +01: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
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
Mattia
6e3c40f159
Separate Request and Response bodies (#847) 2019-02-20 16:00:58 +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
Mattia
f1b2657523
Feature/#762 rspec (#832) 2018-11-26 17:11:35 +00:00