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.
- checksums.yaml +7 -0
- data/Gemfile +7 -2
- data/README.md +1 -0
- data/faraday.gemspec +1 -1
- data/lib/faraday.rb +4 -3
- data/lib/faraday/adapter.rb +1 -1
- data/lib/faraday/adapter/net_http.rb +2 -1
- data/lib/faraday/adapter/test.rb +3 -3
- data/lib/faraday/connection.rb +9 -7
- data/lib/faraday/error.rb +6 -1
- data/lib/faraday/options.rb +16 -16
- data/lib/faraday/rack_builder.rb +1 -1
- data/lib/faraday/request.rb +9 -5
- data/lib/faraday/request/authorization.rb +4 -2
- data/lib/faraday/request/retry.rb +4 -2
- data/lib/faraday/request/url_encoded.rb +1 -1
- data/lib/faraday/response.rb +1 -1
- data/lib/faraday/utils.rb +8 -5
- data/test/adapters/excon_test.rb +3 -0
- data/test/authentication_middleware_test.rb +1 -1
- data/test/connection_test.rb +7 -7
- data/test/middleware/retry_test.rb +1 -1
- data/test/middleware_stack_test.rb +1 -1
- data/test/utils_test.rb +1 -1
- metadata +63 -85
checksums.yaml
ADDED
@@ -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',
|
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
data/faraday.gemspec
CHANGED
@@ -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', '
|
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)
|
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.
|
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
|
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
|
265
|
+
yield(self)
|
265
266
|
self
|
266
267
|
end unless Object.respond_to?(:tap)
|
267
268
|
end
|
data/lib/faraday/adapter.rb
CHANGED
@@ -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
|
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,
|
data/lib/faraday/adapter/test.rb
CHANGED
@@ -21,7 +21,7 @@ module Faraday
|
|
21
21
|
def initialize
|
22
22
|
# {:get => [Stub, Stub]}
|
23
23
|
@stack, @consumed = {}, {}
|
24
|
-
yield
|
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
|
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
|
141
|
+
yield(stubs)
|
142
142
|
end
|
143
143
|
|
144
144
|
def call(env)
|
data/lib/faraday/connection.rb
CHANGED
@@ -88,7 +88,7 @@ module Faraday
|
|
88
88
|
end
|
89
89
|
})
|
90
90
|
|
91
|
-
yield
|
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
|
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
|
251
|
-
|
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
|
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
|
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
|
422
|
+
yield(Utils.unescape(uri.user), Utils.unescape(uri.password))
|
421
423
|
end
|
422
424
|
end
|
423
425
|
|
data/lib/faraday/error.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/faraday/options.rb
CHANGED
@@ -8,9 +8,9 @@ module Faraday
|
|
8
8
|
end
|
9
9
|
|
10
10
|
# Public
|
11
|
-
def each
|
11
|
+
def each
|
12
12
|
members.each do |key|
|
13
|
-
|
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
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
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
|
184
|
-
|
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)
|
data/lib/faraday/rack_builder.rb
CHANGED
data/lib/faraday/request.rb
CHANGED
@@ -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
|
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
|
33
|
-
|
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
|
40
|
-
|
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
|
9
|
-
|
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
|
108
|
-
|
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
|
21
|
+
yield(env.body) unless env.body.respond_to?(:to_str)
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
data/lib/faraday/response.rb
CHANGED
data/lib/faraday/utils.rb
CHANGED
@@ -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)
|
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
|
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
|
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]
|
97
|
-
|
97
|
+
if self[key]
|
98
|
+
self[key] << ', ' << value
|
99
|
+
else
|
100
|
+
self[key] = value
|
98
101
|
end
|
99
102
|
}
|
100
103
|
end
|
data/test/adapters/excon_test.rb
CHANGED
@@ -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
|
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']]
|
data/test/connection_test.rb
CHANGED
@@ -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
|
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
|
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
|
518
|
+
yield(req) if block_given?
|
519
519
|
end
|
520
520
|
env[:url].query
|
521
521
|
end
|
@@ -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
|
152
|
+
yield(b) if block_given?
|
153
153
|
|
154
154
|
b.adapter :test do |stub|
|
155
155
|
stub.get '/' do |env|
|
data/test/utils_test.rb
CHANGED
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
|
-
|
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
|
-
|
21
|
-
|
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
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
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
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
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
|
-
|
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
|
-
|
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/
|
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
|
-
-
|
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
|
-
|
151
|
-
requirements:
|
138
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
139
|
+
requirements:
|
152
140
|
- - ">="
|
153
|
-
- !ruby/object:Gem::Version
|
154
|
-
|
155
|
-
|
156
|
-
|
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:
|
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
|