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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Faraday Changelog
2
2
 
3
- ## v0.9.0.pre
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
@@ -14,7 +14,7 @@ require 'forwardable'
14
14
  # conn.get '/'
15
15
  #
16
16
  module Faraday
17
- VERSION = "0.9.0.rc3"
17
+ VERSION = "0.9.0.rc4"
18
18
 
19
19
  class << self
20
20
  # Public: Gets or sets the root path that Faraday is being loaded from.
@@ -17,9 +17,7 @@ module Faraday
17
17
  # Public
18
18
  def update(obj)
19
19
  obj.each do |key, value|
20
- next unless value
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)
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0.rc3
4
+ version: 0.9.0.rc4
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: