930 Commits

Author SHA1 Message Date
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
Igor Springer
25979431e4 Add support for setting Ruby Net::HTTP read_timeout option separately
Right now `timeout` setting sets all the timeout values (`read`, `open` & `write` if available). To unify the API with `Net::HTTP` one (which has a dedicated method for `read_timeout` as well) I propose extending the `RequestOptions` by `read_timeout`.
2019-07-18 11:03:58 +02:00
rick olson
70764fb34e teach #inspect how to build string without appending to a frozen string 2019-07-08 11:43:19 -06:00
rick olson
275d1e3daa bump version to 1.0.0-rc1 2019-06-25 10:57:44 -06:00
risk danger olson
1c3bf50d8a
rdoc: fix type info for SSLOptions (#990) 2019-06-03 13:47:52 -04:00
iMacTia
d4f062a56b Use latest rubocop version like CircleCI. 2019-05-23 11:02:59 +01:00
lucasmoreno
91ba32e9d2 Introduces Faraday::ConflictError for 409 response code (#979) 2019-05-23 10:35:21 +01:00
Olle Jonsson
be097190e9
Refactor: Extract repeated calls to a shared map (#973)
* Extract repeated calls to a shared map

* Spec for net_http_persistent min_version

* Use realistic value in a spec
2019-04-14 20:51:52 +02:00
Bart de Water
b4a27f3734 Allow setting min/max SSL version for a Net::HTTP::Persistent connection 2019-04-13 19:17:59 -04:00
Olle Jonsson
7280a3803d Lint Style/IfUnlessModifier 2019-04-08 20:42:10 +02:00
Olle Jonsson
def850b619 Lint Naming/RescuedExceptionsVariableName 2019-04-08 20:39:24 +02:00
risk danger olson
a8cd68e18f
Merge pull request #959 from lostisland/docs-connection-overload
document both uses of Connection#options
2019-04-01 15:41:08 -06:00
risk danger olson
cda3a0171d
Merge pull request #962 from lostisland/memoized-wo-block
Fix Memoized w/o block
2019-03-31 13:51:34 -06:00
rick olson
34bf23ae40 feed rubocop 2019-03-31 13:42:02 -06:00
rick olson
7aa80e21b9 stop relying on surprising Proc.new behavior
this raises a warning in ruby 2.7.0
https://docs.ruby-lang.org/en/trunk/NEWS.html
2019-03-31 13:39:21 -06:00
rick olson
342c2e4eb8 raise ArgumentError if Faraday::Options.memoized is called w/o a block 2019-03-31 13:28:25 -06:00
rick olson
4656ca4283 document both uses of Connection#options 2019-03-29 16:03:05 -06:00
rick olson
d986824c32 i've determined there's a spelling mistake here 2019-03-29 14:51:43 -06:00
rick olson
e2c07759de document missing argument 2019-03-29 14:50:45 -06:00
risk danger olson
5063ffe963 rubocop: fix Style/Documentation offenses (#951)
* rubocop: fix Style/Documentation offenses

* no test dir

* use @see tag

* put @example after @params, before @return
2019-03-21 09:40:49 +01:00
rick olson
e500ccd42d Merge branch 'master' into document-example 2019-03-20 16:27:34 -06:00
rick olson
9e29d03f63 prefer Lint/SafeNavigationWithEmpty 2019-03-20 13:29:27 -06:00
rick olson
6394090d1b ignore more weird const names 2019-03-20 13:27:52 -06:00
Olle Jonsson
5b924852fb YARD comment for RackBuilder example 2019-03-18 14:46:33 +01:00
Ted Johansson
88698363fd Chore: RuboCop Style/MultipleComparison (#923) 2019-03-11 20:59:09 +00:00
Olle Jonsson
94a26eb1a8
Merge branch 'master' into use-circleci 2019-03-08 18:46:32 +01:00
risk danger olson
bd322bba6b chore: rubocop lint Metrics/LineLength (#938) 2019-03-08 17:45:12 +00:00
rick olson
490ee83ddf Merge branch 'master' into rubocop-style-classvars 2019-03-07 10:37:20 -07:00
rick olson
4d88475295 remove #constantize use and unnecessary nil checks 2019-03-07 10:28:55 -07:00
Mattia
609d1768cb
Adds em-synchrony adapter to RSpec tests (#936) 2019-03-07 13:23:41 +00:00
Olle Jonsson
338de4d938 HttpClient adapter: add EADDRNOTAVAIL 2019-03-06 19:53:20 +01:00
Olle Jonsson
148b99ee0f NetHttp adapter: include EADDRNOTAVAIL, too
- this is about connections failing, an experiment
2019-03-06 19:50:23 +01:00
rick olson
73747c66b7 Merge branch 'master' into rubocop-style-classvars 2019-03-06 09:30:09 -07:00
risk danger olson
c801391d18
Merge pull request #932 from lostisland/em-http-tests
Adds em-http adapter to RSpec tests
2019-03-06 09:29:15 -07:00
Sergey Prikhodko
1d3d675821 Add the log formatter that is easy to override and safe to inherit (#889) 2019-03-06 16:13:14 +00:00
rick olson
5f276b36fa replace @@classvars with AdapterRegistry usage 2019-03-05 11:38:24 -07:00
rick olson
dcb7030289 always require 'monitor' since it's used by AdapterRegistry too. 2019-03-05 11:38:07 -07:00
rick olson
e8382421aa reimplement const-lookup from Faraday::RackBuilder::Handler 2019-03-05 11:37:42 -07:00
iMacTia
ab33c8ace1 Adds em-http adapter to RSpec tests 2019-03-05 18:26:46 +00:00
Mattia
ded4f6ef9a
Fixes Rubocop Style/GuardClause (#931) 2019-03-05 12:25:15 +00:00
Geoff Hubbard
e342992751 chore: Rubocop lint Style/MissingRespondToMissing (#930) 2019-03-04 23:25:25 +01:00
Geoff Hubbard
c5ceb2679c chore: RuboCop lint Style/MethodMissingSuper (#928) 2019-03-04 21:07:33 +00:00
Mattia
6b0eb71322
chore: RuboCop lint Metrics/BlockLength (#927) 2019-03-04 21:02:46 +00:00
Mattia
ef4044281d chore: RuboCop lint Style/IfUnlessModifier (#926)
* Fixes Rubocop Style/IfUnlessModifier

* Update lib/faraday/adapter/httpclient.rb

Co-Authored-By: iMacTia <iMacTia@users.noreply.github.com>

* Update lib/faraday/request/retry.rb

Co-Authored-By: iMacTia <iMacTia@users.noreply.github.com>
2019-03-04 14:49:25 +01:00
iMacTia
2a04aeadb3 Fixes Rubocop Style/ModuleFunction 2019-03-04 13:01:46 +00:00
iMacTia
f3e9adba3b Fixes Rubocop Style/MutableConstant 2019-03-04 12:55:20 +00:00
Ted Johansson
5b49e6c9b2 Chore: RuboCop Style/MultilineIfModifier (#924) 2019-03-04 08:40:44 +01:00
Mattia
fb21e2db1a chore: RuboCop lint Style/N* (#921)
* Fixes Rubocop Style/NumericPredicate

* Fixes Rubocop Style/NilComparison
2019-03-03 22:40:17 +01:00
iMacTia
f8f5985f3e Fixes Rubocop Style/ParallelAssignment 2019-03-03 19:23:46 +00:00