Olle Jonsson
babfdeaf04
Lint: Avoid an issue with numeric suffix
2021-08-17 08:44:04 +02:00
Olle Jonsson
c0d97cefa5
Lint: Layout/EmptyLineBetweenDefs
2021-08-17 08:44:04 +02:00
Olle Jonsson
33235f482e
Lint: Layout/LineEndStringConcatenationIndentation
2021-08-17 08:44:04 +02:00
Olle Jonsson
b183095c52
Lint: Style/HashConversion
2021-08-17 08:44:04 +02:00
Olle Jonsson
e640be9866
Lint Style/RedundantBegin
2021-08-17 08:44:04 +02:00
Matt
fe600c72ad
Drop deprecated auth helpers from Connection. ( #1308 )
...
Merge Authentication middleware.
Add possibility of passing a proc.
Update documentation.
2021-08-15 10:28:49 +02:00
Matt
ce0fdf8bca
Remove deprecated Faraday::UploadIO ( #1307 )
2021-08-14 09:48:16 +01:00
Olle Jonsson
456191715a
Remove deprecated Faraday::Request#method ( #1303 )
2021-08-09 15:30:37 +02:00
Matt
4b6162d364
Move json middleware (request and response) from faraday_middleware ( #1300 )
2021-08-09 08:52:02 +01:00
Matt
08b7d4d3b7
Autoloading, dependency loading and middleware registry cleanup ( #1301 )
2021-08-09 08:25:02 +01:00
Matt
ca37a9420e
Merge branch '1.x' of https://github.com/lostisland/faraday
2021-08-01 18:08:32 +01:00
Yutaka Kamei
a1ee375bcd
Add strict_mode to Test::Stubs ( #1298 )
2021-08-01 17:45:32 +01: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
Pavel Rosický
6ed220cabf
Fix jruby incompatibility after moving out EM adapters ( #1294 )
2021-07-11 11:02:52 +01:00
Alexey D
4dd36897af
Always dup url_prefix in Connection#build_exclusive_url ( #1288 )
2021-06-24 16:09:26 +01:00
Adam Doppelt
1f496a7f17
Default proxy scheme to http:// if necessary, fixes #1282 ( #1283 )
2021-05-22 09:27:06 +01:00
Catalin
53e4baedc7
Add proxy setting when url_prefix is changed ( #1276 )
...
* Add proxy setting when url_prefix is changed
Without this setting, setting the url_prefix after
a Faraday::Connection is initialized results in no_proxy
settings ignored when using relative paths.
* Increase Rubocop Metrics/ClassLength
2021-04-28 15:54:08 +02:00
Mike Rogers
14d0dd70c4
Replacing Net::HTTP::Persistent with faraday-net_http_persistent ( #1250 )
2021-03-26 08:00:05 +00:00
Hiroshi Hatake
850155eb41
Handle IPv6 address String on Faraday::Connection#proxy_from_env ( #1252 )
2021-03-22 11:30:22 +00:00
yarafan
0ed6480f6e
escape colon in path segment ( #1237 )
2021-01-18 16:18:21 +00:00
Matt
023cc41335
Improves consistency with Faraday::Error and Faraday::RaiseError ( #1229 )
2020-12-31 13:07:21 +00:00
Matt
97a3bc2386
Fix #1219 Net::HTTP still uses env proxy ( #1221 )
2020-12-23 14:00:45 +00:00
Nathan Beyer
01c25e880c
Adjust the retry documentation and spec to align with implementation ( #1197 ) ( #1198 )
2020-10-27 06:11:38 +01:00
Matt
d56742a174
Introduces on_request and on_complete methods in Faraday::Middleware. ( #1194 )
2020-10-22 15:04:46 +01:00
Sandro Damilano
8ee406d788
Include request info in exceptions raised by RaiseError Middleware ( #1181 )
2020-09-17 16:45:25 +02: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
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
87ecaf9682
Return tests of Test
adapter
2020-04-20 08:27:04 +02: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
Karl Entwistle
864a7e52f3
Encode Spaces in Query Strings as '%20' Instead of '+' ( #1125 )
2020-03-29 11:48:15 +01:00
Olle Jonsson
52e30bf8e8
spec: JRuby-proof a test about error messages
2020-02-10 16:04:04 +01:00
Olle Jonsson
284d920cf3
specs: JRuby-Skip EM specs
2020-02-10 16:04:04 +01:00
Olle Jonsson
e80b829976
specs: JRuby-Skip Patron specs
2020-02-10 16:04:04 +01:00
nic-lan
1042a45618
Allows parse
method to be private/protected in response middleware ( #1123 )
2020-02-10 14:38:27 +00: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
df5fc690df
remove ruby 2.7 deprecation
...
spec/faraday/response/logger_spec.rb:73: warning: Using the last argument as
keyword parameters is deprecated; maybe ** should be added to the call
lib/faraday/logging/formatter.rb:13: warning: The called method 'initialize'
is defined here
2019-12-30 08:11:59 -07:00
technoweenie
5b6f9d87d3
remove CONNECT method
2019-12-30 08:09:02 -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
Mattia
a53a4360e2
Adds compatibility with latest rubocop ( #1093 )
2019-12-27 16:43:11 +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
9379c716d4
Add spec for Middleware#close
.
2019-11-11 11:14:39 +09:00
rick olson
b5f9936dbe
remove temp_proxy and improve proxy tests
2019-10-18 11:10:41 -06:00