faraday 0.9.0.rc3 → 0.9.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -2
- data/lib/faraday.rb +1 -1
- data/lib/faraday/options.rb +3 -3
- data/test/connection_test.rb +5 -0
- metadata +1 -1
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Faraday Changelog
|
2
2
|
|
3
|
-
## v0.9.0
|
3
|
+
## v0.9.0
|
4
4
|
|
5
5
|
* Add HTTPClient adapter (@hakanensari)
|
6
6
|
* Improve Retry handler (@mislav)
|
@@ -9,4 +9,7 @@
|
|
9
9
|
* Respect user/password in http proxy string (@mislav)
|
10
10
|
* Adapter options are structs. Reinforces consistent options across adapters
|
11
11
|
(@technoweenie)
|
12
|
-
|
12
|
+
* Stop stripping trailing / off base URLs in a Faraday::Connection. (@technoweenie)
|
13
|
+
* Add a configurable URI parser. (@technoweenie)
|
14
|
+
* Remove need to manually autoload when using the authorization header helpers on `Faraday::Connection`. (@technoweenie)
|
15
|
+
* `Faraday::Adapter::Test` respects the `Faraday::RequestOptions#params_encoder` option. (@technoweenie)
|
data/lib/faraday.rb
CHANGED
data/lib/faraday/options.rb
CHANGED
@@ -17,9 +17,7 @@ module Faraday
|
|
17
17
|
# Public
|
18
18
|
def update(obj)
|
19
19
|
obj.each do |key, value|
|
20
|
-
|
21
|
-
sub_options = self.class.options_for(key)
|
22
|
-
if sub_options && value
|
20
|
+
if sub_options = self.class.options_for(key)
|
23
21
|
value = sub_options.from(value)
|
24
22
|
elsif Hash === value
|
25
23
|
hash = {}
|
@@ -34,6 +32,8 @@ module Faraday
|
|
34
32
|
self
|
35
33
|
end
|
36
34
|
|
35
|
+
alias merge! update
|
36
|
+
|
37
37
|
# Public
|
38
38
|
def delete(key)
|
39
39
|
value = send(key)
|
data/test/connection_test.rb
CHANGED
@@ -313,6 +313,11 @@ class TestConnection < Faraday::TestCase
|
|
313
313
|
assert !conn.params.key?('b')
|
314
314
|
end
|
315
315
|
|
316
|
+
def test_initialize_with_false_option
|
317
|
+
conn = Faraday::Connection.new :ssl => {:verify => false}
|
318
|
+
assert !conn.ssl.verify?
|
319
|
+
end
|
320
|
+
|
316
321
|
def test_init_with_block
|
317
322
|
conn = Faraday::Connection.new { }
|
318
323
|
assert_equal 0, conn.builder.handlers.size
|