faraday 0.9.0.rc6 → 0.9.0.rc7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ca7a6a74fd366e7546ba28ccb1c27483fdfb6447
4
+ data.tar.gz: 991320c247d7c297118ab9bbf66c4abbfe141ec5
5
+ SHA512:
6
+ metadata.gz: 54db2e8aeeae9dae10066a17642533230a58ef76ea25036428dbf053af9b9ed0fe98f83acaa36bdeaf3e84c30ccb679410ed9e1203b3133ce0de94f1febbae8b
7
+ data.tar.gz: e6fad8763e2b855fcc9341d314776bfebe162d070be92b566b48eec569732ce35718d0a4a4d920f46fd8e82c6ce308d4c4e176a13678a147f14cd55c73aef7b3
data/Gemfile CHANGED
@@ -8,10 +8,10 @@ group :test do
8
8
  gem 'coveralls', :require => false
9
9
  gem 'em-http-request', '>= 1.1', :require => 'em-http'
10
10
  gem 'em-synchrony', '>= 1.0.3', :require => ['em-synchrony', 'em-synchrony/em-http']
11
- gem 'excon', ['>= 0.25.3', '< 0.27.3']
11
+ gem 'excon', '>= 0.27.4'
12
12
  gem 'httpclient', '>= 2.2'
13
13
  gem 'leftright', '>= 0.9', :require => false
14
- gem 'mime-types', '~> 1.25', :platforms => :ruby_18
14
+ gem 'mime-types', '~> 1.25', :platforms => [:jruby, :ruby_18]
15
15
  gem 'minitest', '~> 5.0.5'
16
16
  gem 'net-http-persistent', '>= 2.5', :require => false
17
17
  gem 'patron', '>= 0.4.2', :platforms => :ruby
@@ -21,4 +21,9 @@ group :test do
21
21
  gem 'typhoeus', '~> 0.3.3', :platforms => :ruby
22
22
  end
23
23
 
24
+ platforms :rbx do
25
+ gem 'rubinius-coverage'
26
+ gem 'rubysl'
27
+ end
28
+
24
29
  gemspec
data/README.md CHANGED
@@ -184,6 +184,7 @@ implementations:
184
184
  * MRI 1.9.2
185
185
  * MRI 1.9.3
186
186
  * MRI 2.0.0
187
+ * MRI 2.1.0
187
188
  * [JRuby][]
188
189
  * [Rubinius][]
189
190
 
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.homepage = 'https://github.com/lostisland/faraday'
18
18
  spec.licenses = ['MIT']
19
19
 
20
- spec.add_dependency 'multipart-post', '~> 1.2.0'
20
+ spec.add_dependency 'multipart-post', '>= 1.2', '< 3'
21
21
  spec.add_development_dependency 'bundler', '~> 1.0'
22
22
 
23
23
  spec.files = %w(.document CHANGELOG.md CONTRIBUTING.md Gemfile LICENSE.md README.md Rakefile)
@@ -14,7 +14,7 @@ require 'forwardable'
14
14
  # conn.get '/'
15
15
  #
16
16
  module Faraday
17
- VERSION = "0.9.0.rc6"
17
+ VERSION = "0.9.0.rc7"
18
18
 
19
19
  class << self
20
20
  # Public: Gets or sets the root path that Faraday is being loaded from.
@@ -204,7 +204,8 @@ module Faraday
204
204
  def load_middleware(key)
205
205
  value = fetch_middleware(key)
206
206
  case value
207
- when Module then value
207
+ when Module
208
+ value
208
209
  when Symbol, String
209
210
  middleware_mutex do
210
211
  @registered_middleware[key] = const_get(value)
@@ -261,7 +262,7 @@ class Object
261
262
  # Yields self.
262
263
  # Returns self.
263
264
  def tap
264
- yield self
265
+ yield(self)
265
266
  self
266
267
  end unless Object.respond_to?(:tap)
267
268
  end
@@ -39,7 +39,7 @@ module Faraday
39
39
  env.body = body
40
40
  env.response_headers = Utils::Headers.new.tap do |response_headers|
41
41
  response_headers.update headers unless headers.nil?
42
- yield response_headers if block_given?
42
+ yield(response_headers) if block_given?
43
43
  end
44
44
  end
45
45
  end
@@ -13,9 +13,10 @@ module Faraday
13
13
  EOFError,
14
14
  Errno::ECONNABORTED,
15
15
  Errno::ECONNREFUSED,
16
- Errno::ENETUNREACH,
17
16
  Errno::ECONNRESET,
17
+ Errno::EHOSTUNREACH,
18
18
  Errno::EINVAL,
19
+ Errno::ENETUNREACH,
19
20
  Net::HTTPBadResponse,
20
21
  Net::HTTPHeaderSyntaxError,
21
22
  Net::ProtocolError,
@@ -21,7 +21,7 @@ module Faraday
21
21
  def initialize
22
22
  # {:get => [Stub, Stub]}
23
23
  @stack, @consumed = {}, {}
24
- yield self if block_given?
24
+ yield(self) if block_given?
25
25
  end
26
26
 
27
27
  def empty?
@@ -100,7 +100,7 @@ module Faraday
100
100
  params = query ?
101
101
  Faraday::Utils.parse_nested_query(query) :
102
102
  {}
103
- super path, params, headers, body, block
103
+ super(path, params, headers, body, block)
104
104
  end
105
105
 
106
106
  def matches?(request_uri, request_headers, request_body)
@@ -138,7 +138,7 @@ module Faraday
138
138
  end
139
139
 
140
140
  def configure
141
- yield stubs
141
+ yield(stubs)
142
142
  end
143
143
 
144
144
  def call(env)
@@ -88,7 +88,7 @@ module Faraday
88
88
  end
89
89
  })
90
90
 
91
- yield self if block_given?
91
+ yield(self) if block_given?
92
92
 
93
93
  @headers[:user_agent] ||= "Faraday v#{VERSION}"
94
94
  end
@@ -139,7 +139,7 @@ module Faraday
139
139
  def #{method}(url = nil, params = nil, headers = nil)
140
140
  run_request(:#{method}, url, nil, headers) { |request|
141
141
  request.params.update(params) if params
142
- yield request if block_given?
142
+ yield(request) if block_given?
143
143
  }
144
144
  end
145
145
  RUBY
@@ -247,8 +247,10 @@ module Faraday
247
247
  h.klass.respond_to?(:supports_parallel?) and h.klass.supports_parallel?
248
248
  end
249
249
 
250
- if handler then handler.klass.setup_parallel_manager
251
- elsif block_given? then yield
250
+ if handler
251
+ handler.klass.setup_parallel_manager
252
+ elsif block_given?
253
+ yield
252
254
  end
253
255
  end
254
256
  end
@@ -369,7 +371,7 @@ module Faraday
369
371
  req.url(url) if url
370
372
  req.headers.update(headers) if headers
371
373
  req.body = body if body
372
- yield req if block_given?
374
+ yield(req) if block_given?
373
375
  end
374
376
 
375
377
  builder.build_response(self, request)
@@ -383,7 +385,7 @@ module Faraday
383
385
  req.params = self.params.dup
384
386
  req.headers = self.headers.dup
385
387
  req.options = self.options.merge(:proxy => self.proxy)
386
- yield req if block_given?
388
+ yield(req) if block_given?
387
389
  end
388
390
  end
389
391
 
@@ -417,7 +419,7 @@ module Faraday
417
419
  # Internal: Yields username and password extracted from a URI if they both exist.
418
420
  def with_uri_credentials(uri)
419
421
  if uri.user and uri.password
420
- yield Utils.unescape(uri.user), Utils.unescape(uri.password)
422
+ yield(Utils.unescape(uri.user), Utils.unescape(uri.password))
421
423
  end
422
424
  end
423
425
 
@@ -36,7 +36,12 @@ module Faraday
36
36
  class ConnectionFailed < ClientError; end
37
37
  class ResourceNotFound < ClientError; end
38
38
  class ParsingError < ClientError; end
39
- class TimeoutError < ClientError; end
39
+
40
+ class TimeoutError < ClientError
41
+ def initialize(ex = nil)
42
+ super(ex || "timeout")
43
+ end
44
+ end
40
45
 
41
46
  class SSLError < ClientError
42
47
  end
@@ -8,9 +8,9 @@ module Faraday
8
8
  end
9
9
 
10
10
  # Public
11
- def each(&block)
11
+ def each
12
12
  members.each do |key|
13
- block.call key.to_sym, send(key)
13
+ yield(key.to_sym, send(key))
14
14
  end
15
15
  end
16
16
 
@@ -48,19 +48,17 @@ module Faraday
48
48
 
49
49
  # Public
50
50
  def fetch(key, *args)
51
- return send(key) if symbolized_key_set.include?(key.to_sym)
52
-
53
- key_setter = "#{key}="
54
-
55
- if args.size > 0
56
- return send(key_setter, args.first)
57
- end
58
-
59
- if block_given?
60
- return send(key_setter, Proc.new.call(key))
51
+ unless symbolized_key_set.include?(key.to_sym)
52
+ key_setter = "#{key}="
53
+ if args.size > 0
54
+ send(key_setter, args.first)
55
+ elsif block_given?
56
+ send(key_setter, Proc.new.call(key))
57
+ else
58
+ raise self.class.fetch_error_class, "key not found: #{key.inspect}"
59
+ end
61
60
  end
62
-
63
- raise self.class.fetch_error_class, "key not found: #{key.inspect}"
61
+ send(key)
64
62
  end
65
63
 
66
64
  # Public
@@ -180,8 +178,10 @@ module Faraday
180
178
 
181
179
  def self.from(value)
182
180
  case value
183
- when String then value = {:uri => Utils.URI(value)}
184
- when URI then value = {:uri => value}
181
+ when String
182
+ value = {:uri => Utils.URI(value)}
183
+ when URI
184
+ value = {:uri => value}
185
185
  when Hash, Options
186
186
  if uri = value.delete(:uri)
187
187
  value[:uri] = Utils.URI(uri)
@@ -63,7 +63,7 @@ module Faraday
63
63
  def build(options = {})
64
64
  raise_if_locked
65
65
  @handlers.clear unless options[:keep]
66
- yield self if block_given?
66
+ yield(self) if block_given?
67
67
  end
68
68
 
69
69
  def [](idx)
@@ -23,21 +23,25 @@ module Faraday
23
23
 
24
24
  def self.create(request_method)
25
25
  new(request_method).tap do |request|
26
- yield request if block_given?
26
+ yield(request) if block_given?
27
27
  end
28
28
  end
29
29
 
30
30
  # Public: Replace params, preserving the existing hash type
31
31
  def params=(hash)
32
- if params then params.replace hash
33
- else super
32
+ if params
33
+ params.replace hash
34
+ else
35
+ super
34
36
  end
35
37
  end
36
38
 
37
39
  # Public: Replace request headers, preserving the existing hash type
38
40
  def headers=(hash)
39
- if headers then headers.replace hash
40
- else super
41
+ if headers
42
+ headers.replace hash
43
+ else
44
+ super
41
45
  end
42
46
  end
43
47
 
@@ -5,8 +5,10 @@ module Faraday
5
5
  # Public
6
6
  def self.header(type, token)
7
7
  case token
8
- when String, Symbol then "#{type} #{token}"
9
- when Hash then build_hash(type.to_s, token)
8
+ when String, Symbol
9
+ "#{type} #{token}"
10
+ when Hash
11
+ build_hash(type.to_s, token)
10
12
  else
11
13
  raise ArgumentError, "Can't build an Authorization #{type} header from #{token.inspect}"
12
14
  end
@@ -104,8 +104,10 @@ module Faraday
104
104
  (class << matcher; self; end).class_eval do
105
105
  define_method(:===) do |error|
106
106
  exceptions.any? do |ex|
107
- if ex.is_a? Module then error.is_a? ex
108
- else error.class.to_s == ex.to_s
107
+ if ex.is_a? Module
108
+ error.is_a? ex
109
+ else
110
+ error.class.to_s == ex.to_s
109
111
  end
110
112
  end
111
113
  end
@@ -18,7 +18,7 @@ module Faraday
18
18
  def match_content_type(env)
19
19
  if process_request?(env)
20
20
  env.request_headers[CONTENT_TYPE] ||= self.class.mime_type
21
- yield env.body unless env.body.respond_to?(:to_str)
21
+ yield(env.body) unless env.body.respond_to?(:to_str)
22
22
  end
23
23
  end
24
24
 
@@ -54,7 +54,7 @@ module Faraday
54
54
  if not finished?
55
55
  @on_complete_callbacks << Proc.new
56
56
  else
57
- yield env
57
+ yield(env)
58
58
  end
59
59
  return self
60
60
  end
@@ -22,7 +22,8 @@ module Faraday
22
22
 
23
23
  # symbol -> string mapper + cache
24
24
  KeyMap = Hash.new do |map, key|
25
- value = if key.respond_to?(:to_str) then key
25
+ value = if key.respond_to?(:to_str)
26
+ key
26
27
  else
27
28
  key.to_s.split('_'). # :user_agent => %w(user agent)
28
29
  each { |w| w.capitalize! }. # => %w(User Agent)
@@ -42,7 +43,7 @@ module Faraday
42
43
  k = (@names[k.downcase] ||= k)
43
44
  # join multiple values with a comma
44
45
  v = v.to_ary.join(', ') if v.respond_to? :to_ary
45
- super k, v
46
+ super(k, v)
46
47
  end
47
48
 
48
49
  def fetch(k, *args, &block)
@@ -55,7 +56,7 @@ module Faraday
55
56
  k = KeyMap[k]
56
57
  if k = @names[k.downcase]
57
58
  @names.delete k.downcase
58
- super k
59
+ super(k)
59
60
  end
60
61
  end
61
62
 
@@ -93,8 +94,10 @@ module Faraday
93
94
  map { |h| h.split(/:\s+/, 2) }.reject { |p| p[0].nil? }. # split key and value, ignore blank lines
94
95
  each { |key, value|
95
96
  # join multiple values with a comma
96
- if self[key] then self[key] << ', ' << value
97
- else self[key] = value
97
+ if self[key]
98
+ self[key] << ', ' << value
99
+ else
100
+ self[key] = value
98
101
  end
99
102
  }
100
103
  end
@@ -12,6 +12,9 @@ module Adapters
12
12
  # Excon lets OpenSSL::SSL::SSLError be raised without any way to
13
13
  # distinguish whether it happened because of a 407 proxy response
14
14
  undef :test_proxy_auth_fail if ssl_mode?
15
+
16
+ # https://github.com/geemus/excon/issues/358
17
+ undef :test_connection_error if RUBY_VERSION >= '2.1.0'
15
18
  end
16
19
  end
17
20
  end
@@ -3,7 +3,7 @@ require File.expand_path('../helper', __FILE__)
3
3
  class AuthenticationMiddlewareTest < Faraday::TestCase
4
4
  def conn
5
5
  Faraday::Connection.new('http://example.net/') do |builder|
6
- yield builder
6
+ yield(builder)
7
7
  builder.adapter :test do |stub|
8
8
  stub.get('/auth-echo') do |env|
9
9
  [200, {}, env[:request_headers]['Authorization']]
@@ -171,13 +171,13 @@ class TestConnection < Faraday::TestCase
171
171
  uri = conn.build_exclusive_url('')
172
172
  assert_equal "/nigiri", uri.path
173
173
  end
174
-
174
+
175
175
  def test_build_exclusive_url_doesnt_use_connection_params
176
176
  conn = Faraday::Connection.new "http://sushi.com/nigiri"
177
177
  conn.params = {:a => 1}
178
178
  assert_equal "http://sushi.com/nigiri", conn.build_exclusive_url.to_s
179
179
  end
180
-
180
+
181
181
  def test_build_exclusive_url_uses_argument_params
182
182
  conn = Faraday::Connection.new "http://sushi.com/nigiri"
183
183
  conn.params = {:a => 1}
@@ -186,13 +186,13 @@ class TestConnection < Faraday::TestCase
186
186
  url = conn.build_exclusive_url(nil, params)
187
187
  assert_equal "http://sushi.com/nigiri?a=2", url.to_s
188
188
  end
189
-
189
+
190
190
  def test_build_url_uses_params
191
191
  conn = Faraday::Connection.new "http://sushi.com/nigiri"
192
192
  conn.params = {:a => 1, :b => 1}
193
193
  assert_equal "http://sushi.com/nigiri?a=1&b=1", conn.build_url.to_s
194
194
  end
195
-
195
+
196
196
  def test_build_url_merges_params
197
197
  conn = Faraday::Connection.new "http://sushi.com/nigiri"
198
198
  conn.params = {:a => 1, :b => 1}
@@ -395,7 +395,7 @@ class TestConnection < Faraday::TestCase
395
395
 
396
396
  def env_url(url, params)
397
397
  conn = Faraday::Connection.new(url, :params => params)
398
- yield conn if block_given?
398
+ yield(conn) if block_given?
399
399
  req = conn.build_request(:get)
400
400
  req.to_env(conn).url
401
401
  end
@@ -404,7 +404,7 @@ end
404
404
  class TestRequestParams < Faraday::TestCase
405
405
  def create_connection(*args)
406
406
  @conn = Faraday::Connection.new(*args) do |conn|
407
- yield conn if block_given?
407
+ yield(conn) if block_given?
408
408
  class << conn.builder
409
409
  undef app
410
410
  def app() lambda { |env| env } end
@@ -515,7 +515,7 @@ class TestRequestParams < Faraday::TestCase
515
515
 
516
516
  def get(*args)
517
517
  env = @conn.get(*args) do |req|
518
- yield req if block_given?
518
+ yield(req) if block_given?
519
519
  end
520
520
  env[:url].query
521
521
  end
@@ -48,7 +48,7 @@ module Middleware
48
48
  assert_raises(Errno::ETIMEDOUT) {
49
49
  conn(:max => 2, :interval => 0.1).post("/unstable")
50
50
  }
51
- assert_in_delta 0.2, Time.now - started, 0.03
51
+ assert_in_delta 0.2, Time.now - started, 0.04
52
52
  end
53
53
 
54
54
  def test_calls_sleep_amount
@@ -149,7 +149,7 @@ class MiddlewareStackTest < Faraday::TestCase
149
149
  def build_stack(*handlers)
150
150
  @builder.build do |b|
151
151
  handlers.each { |handler| b.use(*handler) }
152
- yield b if block_given?
152
+ yield(b) if block_given?
153
153
 
154
154
  b.adapter :test do |stub|
155
155
  stub.get '/' do |env|
@@ -11,7 +11,7 @@ class TestUtils < Faraday::TestCase
11
11
  def gsub(regex)
12
12
  string.gsub(regex) {
13
13
  match, = $&, '' =~ /a/
14
- yield match
14
+ yield(match)
15
15
  }
16
16
  end
17
17
  end
metadata CHANGED
@@ -1,66 +1,56 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: faraday
3
- version: !ruby/object:Gem::Version
4
- hash: -2653310500
5
- prerelease: 6
6
- segments:
7
- - 0
8
- - 9
9
- - 0
10
- - rc
11
- - 6
12
- version: 0.9.0.rc6
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.9.0.rc7
13
5
  platform: ruby
14
- authors:
6
+ authors:
15
7
  - Rick Olson
16
8
  autorequire:
17
9
  bindir: bin
18
10
  cert_chain: []
19
-
20
- date: 2013-11-09 00:00:00 -07:00
21
- default_executable:
22
- dependencies:
23
- - !ruby/object:Gem::Dependency
11
+ date: 2014-01-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
24
14
  name: multipart-post
25
- prerelease: false
26
- requirement: &id001 !ruby/object:Gem::Requirement
27
- none: false
28
- requirements:
29
- - - ~>
30
- - !ruby/object:Gem::Version
31
- hash: 31
32
- segments:
33
- - 1
34
- - 2
35
- - 0
36
- version: 1.2.0
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '1.2'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '3'
37
23
  type: :runtime
38
- version_requirements: *id001
39
- - !ruby/object:Gem::Dependency
40
- name: bundler
41
24
  prerelease: false
42
- requirement: &id002 !ruby/object:Gem::Requirement
43
- none: false
44
- requirements:
45
- - - ~>
46
- - !ruby/object:Gem::Version
47
- hash: 15
48
- segments:
49
- - 1
50
- - 0
51
- version: "1.0"
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '1.2'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '3'
33
+ - !ruby/object:Gem::Dependency
34
+ name: bundler
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '1.0'
52
40
  type: :development
53
- version_requirements: *id002
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '1.0'
54
47
  description:
55
48
  email: technoweenie@gmail.com
56
49
  executables: []
57
-
58
50
  extensions: []
59
-
60
51
  extra_rdoc_files: []
61
-
62
- files:
63
- - .document
52
+ files:
53
+ - ".document"
64
54
  - CHANGELOG.md
65
55
  - CONTRIBUTING.md
66
56
  - Gemfile
@@ -68,10 +58,12 @@ files:
68
58
  - README.md
69
59
  - Rakefile
70
60
  - faraday.gemspec
61
+ - lib/faraday.rb
62
+ - lib/faraday/adapter.rb
71
63
  - lib/faraday/adapter/em_http.rb
72
64
  - lib/faraday/adapter/em_http_ssl_patch.rb
73
- - lib/faraday/adapter/em_synchrony/parallel_manager.rb
74
65
  - lib/faraday/adapter/em_synchrony.rb
66
+ - lib/faraday/adapter/em_synchrony/parallel_manager.rb
75
67
  - lib/faraday/adapter/excon.rb
76
68
  - lib/faraday/adapter/httpclient.rb
77
69
  - lib/faraday/adapter/net_http.rb
@@ -80,7 +72,6 @@ files:
80
72
  - lib/faraday/adapter/rack.rb
81
73
  - lib/faraday/adapter/test.rb
82
74
  - lib/faraday/adapter/typhoeus.rb
83
- - lib/faraday/adapter.rb
84
75
  - lib/faraday/autoload.rb
85
76
  - lib/faraday/connection.rb
86
77
  - lib/faraday/error.rb
@@ -88,6 +79,7 @@ files:
88
79
  - lib/faraday/options.rb
89
80
  - lib/faraday/parameters.rb
90
81
  - lib/faraday/rack_builder.rb
82
+ - lib/faraday/request.rb
91
83
  - lib/faraday/request/authorization.rb
92
84
  - lib/faraday/request/basic_authentication.rb
93
85
  - lib/faraday/request/instrumentation.rb
@@ -95,13 +87,18 @@ files:
95
87
  - lib/faraday/request/retry.rb
96
88
  - lib/faraday/request/token_authentication.rb
97
89
  - lib/faraday/request/url_encoded.rb
98
- - lib/faraday/request.rb
90
+ - lib/faraday/response.rb
99
91
  - lib/faraday/response/logger.rb
100
92
  - lib/faraday/response/raise_error.rb
101
- - lib/faraday/response.rb
102
93
  - lib/faraday/upload_io.rb
103
94
  - lib/faraday/utils.rb
104
- - lib/faraday.rb
95
+ - script/console
96
+ - script/generate_certs
97
+ - script/package
98
+ - script/proxy-server
99
+ - script/release
100
+ - script/server
101
+ - script/test
105
102
  - test/adapters/default_test.rb
106
103
  - test/adapters/em_http_test.rb
107
104
  - test/adapters/em_synchrony_test.rb
@@ -124,56 +121,37 @@ files:
124
121
  - test/middleware/instrumentation_test.rb
125
122
  - test/middleware/retry_test.rb
126
123
  - test/middleware_stack_test.rb
124
+ - test/multibyte.txt
127
125
  - test/options_test.rb
128
126
  - test/request_middleware_test.rb
129
127
  - test/response_middleware_test.rb
130
128
  - test/strawberry.rb
131
129
  - test/utils_test.rb
132
- - test/multibyte.txt
133
- - script/console
134
- - script/generate_certs
135
- - script/package
136
- - script/proxy-server
137
- - script/release
138
- - script/server
139
- - script/test
140
- has_rdoc: true
141
130
  homepage: https://github.com/lostisland/faraday
142
- licenses:
131
+ licenses:
143
132
  - MIT
133
+ metadata: {}
144
134
  post_install_message:
145
135
  rdoc_options: []
146
-
147
- require_paths:
136
+ require_paths:
148
137
  - lib
149
- required_ruby_version: !ruby/object:Gem::Requirement
150
- none: false
151
- requirements:
138
+ required_ruby_version: !ruby/object:Gem::Requirement
139
+ requirements:
152
140
  - - ">="
153
- - !ruby/object:Gem::Version
154
- hash: 3
155
- segments:
156
- - 0
157
- version: "0"
158
- required_rubygems_version: !ruby/object:Gem::Requirement
159
- none: false
160
- requirements:
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
143
+ required_rubygems_version: !ruby/object:Gem::Requirement
144
+ requirements:
161
145
  - - ">"
162
- - !ruby/object:Gem::Version
163
- hash: 25
164
- segments:
165
- - 1
166
- - 3
167
- - 1
146
+ - !ruby/object:Gem::Version
168
147
  version: 1.3.1
169
148
  requirements: []
170
-
171
149
  rubyforge_project:
172
- rubygems_version: 1.6.2
150
+ rubygems_version: 2.2.0
173
151
  signing_key:
174
152
  specification_version: 2
175
153
  summary: HTTP/REST API client library.
176
- test_files:
154
+ test_files:
177
155
  - test/adapters/default_test.rb
178
156
  - test/adapters/em_http_test.rb
179
157
  - test/adapters/em_synchrony_test.rb