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.
Files changed (45) hide show
  1. data/Gemfile +6 -5
  2. data/README.md +0 -22
  3. data/faraday.gemspec +2 -2
  4. data/lib/faraday.rb +6 -2
  5. data/lib/faraday/adapter/em_http.rb +34 -14
  6. data/lib/faraday/adapter/em_http_ssl_patch.rb +56 -0
  7. data/lib/faraday/adapter/em_synchrony.rb +21 -20
  8. data/lib/faraday/adapter/excon.rb +16 -0
  9. data/lib/faraday/adapter/httpclient.rb +14 -0
  10. data/lib/faraday/adapter/net_http.rb +6 -2
  11. data/lib/faraday/adapter/net_http_persistent.rb +15 -3
  12. data/lib/faraday/adapter/patron.rb +13 -11
  13. data/lib/faraday/adapter/typhoeus.rb +11 -0
  14. data/lib/faraday/autoload.rb +2 -4
  15. data/lib/faraday/connection.rb +30 -3
  16. data/lib/faraday/error.rb +4 -1
  17. data/lib/faraday/options.rb +117 -23
  18. data/lib/faraday/request/instrumentation.rb +1 -3
  19. data/lib/faraday/request/multipart.rb +1 -1
  20. data/lib/faraday/request/retry.rb +38 -9
  21. data/lib/faraday/response.rb +1 -2
  22. data/lib/faraday/response/raise_error.rb +3 -0
  23. data/lib/faraday/utils.rb +10 -4
  24. data/script/proxy-server +42 -0
  25. data/script/server +1 -3
  26. data/script/test +35 -7
  27. data/test/adapters/excon_test.rb +4 -0
  28. data/test/adapters/httpclient_test.rb +5 -0
  29. data/test/adapters/integration.rb +48 -2
  30. data/test/adapters/net_http_persistent_test.rb +10 -1
  31. data/test/adapters/patron_test.rb +3 -0
  32. data/test/adapters/rack_test.rb +5 -0
  33. data/test/adapters/typhoeus_test.rb +3 -13
  34. data/test/authentication_middleware_test.rb +6 -6
  35. data/test/connection_test.rb +123 -49
  36. data/test/env_test.rb +19 -1
  37. data/test/helper.rb +2 -4
  38. data/test/live_server.rb +4 -2
  39. data/test/middleware/instrumentation_test.rb +13 -0
  40. data/test/middleware/retry_test.rb +47 -0
  41. data/test/multibyte.txt +1 -0
  42. data/test/options_test.rb +93 -17
  43. data/test/request_middleware_test.rb +6 -6
  44. data/test/utils_test.rb +34 -13
  45. 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
- version: 0.9.0.rc5
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
- date: 2013-05-13 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
26
+ requirement: &id001 !ruby/object:Gem::Requirement
25
27
  none: false
26
- requirements:
28
+ requirements:
27
29
  - - ~>
28
- - !ruby/object:Gem::Version
29
- version: '1.1'
30
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
42
+ requirement: &id002 !ruby/object:Gem::Requirement
41
43
  none: false
42
- requirements:
44
+ requirements:
43
45
  - - ~>
44
- - !ruby/object:Gem::Version
45
- version: '1.0'
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
- files:
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
- require_paths:
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
- version: '0'
139
- required_rubygems_version: !ruby/object:Gem::Requirement
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.8.23
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