953 Commits

Author SHA1 Message Date
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
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
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
Mattia
5547e9131a
Bump version to 1.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
Olle Jonsson
f6401225a4 Adapter Registry reads also use mutex 2020-03-25 12:58:36 +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
technoweenie
cd9f83d86c indent so yard-junk doesn't think it's a 'tag' 2019-12-31 16:51:53 -07:00
technoweenie
94e4e48ef4 Merge branch 'master' into ship-1.0 2019-12-31 08:55:20 -07:00
Mattia
41bc84e15f
Merge branch 'master' into upstream-error-init 2019-12-31 10:15:48 +00:00
technoweenie
5b6f9d87d3 remove CONNECT method 2019-12-30 08:09:02 -07:00
technoweenie
a0fd827dc5 version 1.0.0 2019-12-29 23:26:10 -07:00
risk danger olson
cbedb826c9
Merge branch 'master' into fix-empty-body-for-flat-params-encoder 2019-12-29 23:08:05 -07:00
technoweenie
b4b328b720 Merge branch 'master' into upstream-error-init 2019-12-29 22:44:04 -07:00
risk danger olson
5a2bb2e5e6
Ci: ruby 2.7 (#1100)
* ci: run against ruby 2.7

* fix ruby 2.7 warning

lib/faraday/adapter/net_http_persistent.rb:13: warning: Using the last
argument as keyword parameters is deprecated; maybe ** should be added to the
call

https://github.com/lostisland/faraday/pull/1099/checks?check_run_id=367324080
https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/

* use rvm to install ruby 2.7
2019-12-29 22:43:23 -07:00
technoweenie
b322331923 revert error subclass changes 2019-12-29 18:37:05 -07:00
technoweenie
7ba417400f how do i get this to init 2019-12-27 13:14:08 -07:00
technoweenie
6833062a5c dont re-init them 2019-12-27 13:04:11 -07:00
technoweenie
5efd43f749 init these ivars 2019-12-27 12:46:56 -07:00
technoweenie
24b99b8231 don't force response to be {} 2019-12-27 12:35:23 -07:00
technoweenie
e4aee9f7f2 improve error initializer consistency 2019-12-27 12:25:22 -07:00
Mattia
3301356e7d
Merge branch 'master' into fix-empty-body-for-flat-params-encoder 2019-12-27 17:02:59 +00:00
Amr El-Bakry
9726bc2029 Add log_level option to logger default formatter (#1079) 2019-12-27 17:02:08 +00:00
Samuel Williams
15595d0370 Add Adapter#close so that derived classes can call super. (#1091) 2019-12-27 16:48:45 +00:00
Kiselev Valentine
475ddeab13 Fix empty array for FlatParamsEncoder {key: []} -> "key=" 2019-12-09 14:05:01 +03:00
Samuel Williams
0b9552e707
Expose Connection#close. 2019-11-12 08:58:47 +09:00
Samuel Williams
e7ddc2d298
Issue warning if #close is not implemented. 2019-11-11 10:58:01 +09:00
Samuel Williams
f33e2fa1f8
Add default implementation of Middleware#close. 2019-11-02 08:31:02 +13:00
rick olson
b5f9936dbe remove temp_proxy and improve proxy tests 2019-10-18 11:10:41 -06:00
rick olson
b1b617e53f Correct documentation to show #connection returns the block return value.
This is so that it returns an HTTP response object from the client lib.
2019-10-17 10:24:03 -06:00
rick olson
43cd327f19 Merge branch 'master' into cleanup-adapter-connections
Update for latest #request_timeout changes.
2019-10-17 10:19:03 -06:00
rick olson
68c53c448f prefer Hash#fetch 2019-10-17 10:05:09 -06:00
Mattia
48e6c3f820
Merge branch 'master' into springerigor-read-timeout-request-option 2019-10-17 11:26:41 +01:00
Bobby McDonald
e331955fd8 Fix instances of frozen empty string literals (#1040) 2019-10-17 11:25:15 +01:00
Mattia
9de70e0184
Merge branch 'master' into springerigor-read-timeout-request-option 2019-10-17 11:02:23 +01:00
rick olson
232ec3892e the nil status is extremely rare, so check it last 2019-10-15 13:23:33 -06:00
risk danger olson
a91581a04e
Update lib/faraday/adapter/net_http.rb
Co-Authored-By: Olle Jonsson <olle.jonsson@gmail.com>
2019-10-15 10:35:10 -06:00
risk danger olson
296f336b62
Update lib/faraday/adapter/net_http.rb
Co-Authored-By: Olle Jonsson <olle.jonsson@gmail.com>
2019-10-15 10:35:03 -06:00
Jonny
07ddcb93f5 Pass the exception correctly 2019-10-15 10:26:10 -06:00
Michael Herold
72b917c8be Raise exception on nil status 2019-10-15 10:26:06 -06:00
rick olson
83d933a61e fix bad merge 2019-10-14 14:35:14 -06:00
rick olson
75b9804e33 unused 2019-10-14 14:21:19 -06:00
rick olson
18c204e3a5 lint fixes 2019-10-14 14:18:03 -06:00
risk danger olson
edcbd9f8e4
Merge branch 'master' into cleanup-adapter-connections 2019-10-14 14:13:02 -06:00
rick olson
b85589c72a Merge branch 'master' into springerigor-read-timeout-request-option 2019-10-14 14:08:02 -06:00