faraday 0.9.0.rc5 → 0.9.0.rc6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +6 -5
- data/README.md +0 -22
- data/faraday.gemspec +2 -2
- data/lib/faraday.rb +6 -2
- data/lib/faraday/adapter/em_http.rb +34 -14
- data/lib/faraday/adapter/em_http_ssl_patch.rb +56 -0
- data/lib/faraday/adapter/em_synchrony.rb +21 -20
- data/lib/faraday/adapter/excon.rb +16 -0
- data/lib/faraday/adapter/httpclient.rb +14 -0
- data/lib/faraday/adapter/net_http.rb +6 -2
- data/lib/faraday/adapter/net_http_persistent.rb +15 -3
- data/lib/faraday/adapter/patron.rb +13 -11
- data/lib/faraday/adapter/typhoeus.rb +11 -0
- data/lib/faraday/autoload.rb +2 -4
- data/lib/faraday/connection.rb +30 -3
- data/lib/faraday/error.rb +4 -1
- data/lib/faraday/options.rb +117 -23
- data/lib/faraday/request/instrumentation.rb +1 -3
- data/lib/faraday/request/multipart.rb +1 -1
- data/lib/faraday/request/retry.rb +38 -9
- data/lib/faraday/response.rb +1 -2
- data/lib/faraday/response/raise_error.rb +3 -0
- data/lib/faraday/utils.rb +10 -4
- data/script/proxy-server +42 -0
- data/script/server +1 -3
- data/script/test +35 -7
- data/test/adapters/excon_test.rb +4 -0
- data/test/adapters/httpclient_test.rb +5 -0
- data/test/adapters/integration.rb +48 -2
- data/test/adapters/net_http_persistent_test.rb +10 -1
- data/test/adapters/patron_test.rb +3 -0
- data/test/adapters/rack_test.rb +5 -0
- data/test/adapters/typhoeus_test.rb +3 -13
- data/test/authentication_middleware_test.rb +6 -6
- data/test/connection_test.rb +123 -49
- data/test/env_test.rb +19 -1
- data/test/helper.rb +2 -4
- data/test/live_server.rb +4 -2
- data/test/middleware/instrumentation_test.rb +13 -0
- data/test/middleware/retry_test.rb +47 -0
- data/test/multibyte.txt +1 -0
- data/test/options_test.rb +93 -17
- data/test/request_middleware_test.rb +6 -6
- data/test/utils_test.rb +34 -13
- metadata +69 -44
metadata
CHANGED
@@ -1,54 +1,65 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: faraday
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: -2653310500
|
5
5
|
prerelease: 6
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 9
|
9
|
+
- 0
|
10
|
+
- rc
|
11
|
+
- 6
|
12
|
+
version: 0.9.0.rc6
|
6
13
|
platform: ruby
|
7
|
-
authors:
|
14
|
+
authors:
|
8
15
|
- Rick Olson
|
9
16
|
autorequire:
|
10
17
|
bindir: bin
|
11
18
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
19
|
+
|
20
|
+
date: 2013-11-09 00:00:00 -07:00
|
21
|
+
default_executable:
|
22
|
+
dependencies:
|
23
|
+
- !ruby/object:Gem::Dependency
|
15
24
|
name: multipart-post
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '1.1'
|
22
|
-
type: :runtime
|
23
25
|
prerelease: false
|
24
|
-
|
26
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
27
|
none: false
|
26
|
-
requirements:
|
28
|
+
requirements:
|
27
29
|
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
hash: 31
|
32
|
+
segments:
|
33
|
+
- 1
|
34
|
+
- 2
|
35
|
+
- 0
|
36
|
+
version: 1.2.0
|
37
|
+
type: :runtime
|
38
|
+
version_requirements: *id001
|
39
|
+
- !ruby/object:Gem::Dependency
|
31
40
|
name: bundler
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ~>
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: '1.0'
|
38
|
-
type: :development
|
39
41
|
prerelease: false
|
40
|
-
|
42
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
43
|
none: false
|
42
|
-
requirements:
|
44
|
+
requirements:
|
43
45
|
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
hash: 15
|
48
|
+
segments:
|
49
|
+
- 1
|
50
|
+
- 0
|
51
|
+
version: "1.0"
|
52
|
+
type: :development
|
53
|
+
version_requirements: *id002
|
46
54
|
description:
|
47
55
|
email: technoweenie@gmail.com
|
48
56
|
executables: []
|
57
|
+
|
49
58
|
extensions: []
|
59
|
+
|
50
60
|
extra_rdoc_files: []
|
51
|
-
|
61
|
+
|
62
|
+
files:
|
52
63
|
- .document
|
53
64
|
- CHANGELOG.md
|
54
65
|
- CONTRIBUTING.md
|
@@ -58,6 +69,7 @@ files:
|
|
58
69
|
- Rakefile
|
59
70
|
- faraday.gemspec
|
60
71
|
- lib/faraday/adapter/em_http.rb
|
72
|
+
- lib/faraday/adapter/em_http_ssl_patch.rb
|
61
73
|
- lib/faraday/adapter/em_synchrony/parallel_manager.rb
|
62
74
|
- lib/faraday/adapter/em_synchrony.rb
|
63
75
|
- lib/faraday/adapter/excon.rb
|
@@ -117,38 +129,51 @@ files:
|
|
117
129
|
- test/response_middleware_test.rb
|
118
130
|
- test/strawberry.rb
|
119
131
|
- test/utils_test.rb
|
132
|
+
- test/multibyte.txt
|
120
133
|
- script/console
|
121
134
|
- script/generate_certs
|
122
135
|
- script/package
|
136
|
+
- script/proxy-server
|
123
137
|
- script/release
|
124
138
|
- script/server
|
125
139
|
- script/test
|
140
|
+
has_rdoc: true
|
126
141
|
homepage: https://github.com/lostisland/faraday
|
127
|
-
licenses:
|
142
|
+
licenses:
|
128
143
|
- MIT
|
129
144
|
post_install_message:
|
130
145
|
rdoc_options: []
|
131
|
-
|
146
|
+
|
147
|
+
require_paths:
|
132
148
|
- lib
|
133
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
149
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
134
150
|
none: false
|
135
|
-
requirements:
|
136
|
-
- -
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
|
139
|
-
|
151
|
+
requirements:
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
hash: 3
|
155
|
+
segments:
|
156
|
+
- 0
|
157
|
+
version: "0"
|
158
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
159
|
none: false
|
141
|
-
requirements:
|
142
|
-
- -
|
143
|
-
- !ruby/object:Gem::Version
|
160
|
+
requirements:
|
161
|
+
- - ">"
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
hash: 25
|
164
|
+
segments:
|
165
|
+
- 1
|
166
|
+
- 3
|
167
|
+
- 1
|
144
168
|
version: 1.3.1
|
145
169
|
requirements: []
|
170
|
+
|
146
171
|
rubyforge_project:
|
147
|
-
rubygems_version: 1.
|
172
|
+
rubygems_version: 1.6.2
|
148
173
|
signing_key:
|
149
174
|
specification_version: 2
|
150
175
|
summary: HTTP/REST API client library.
|
151
|
-
test_files:
|
176
|
+
test_files:
|
152
177
|
- test/adapters/default_test.rb
|
153
178
|
- test/adapters/em_http_test.rb
|
154
179
|
- test/adapters/em_synchrony_test.rb
|