typhoeus 0.4.2 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +8 -0
  3. data/.rspec +4 -0
  4. data/.travis.yml +26 -0
  5. data/CHANGELOG.md +341 -28
  6. data/CONTRIBUTING.md +20 -0
  7. data/Gemfile +31 -2
  8. data/Guardfile +9 -0
  9. data/LICENSE +1 -1
  10. data/README.md +486 -357
  11. data/Rakefile +21 -12
  12. data/UPGRADE.md +55 -0
  13. data/lib/rack/typhoeus/middleware/params_decoder/helper.rb +76 -0
  14. data/lib/rack/typhoeus/middleware/params_decoder.rb +57 -0
  15. data/lib/rack/typhoeus.rb +1 -0
  16. data/lib/typhoeus/adapters/faraday.rb +180 -0
  17. data/lib/typhoeus/cache/dalli.rb +28 -0
  18. data/lib/typhoeus/cache/rails.rb +28 -0
  19. data/lib/typhoeus/cache/redis.rb +35 -0
  20. data/lib/typhoeus/config.rb +69 -0
  21. data/lib/typhoeus/easy_factory.rb +180 -0
  22. data/lib/typhoeus/errors/no_stub.rb +12 -0
  23. data/lib/typhoeus/errors/typhoeus_error.rb +8 -0
  24. data/lib/typhoeus/errors.rb +9 -0
  25. data/lib/typhoeus/expectation.rb +217 -0
  26. data/lib/typhoeus/hydra/addable.rb +23 -0
  27. data/lib/typhoeus/hydra/before.rb +31 -0
  28. data/lib/typhoeus/hydra/block_connection.rb +35 -0
  29. data/lib/typhoeus/hydra/cacheable.rb +15 -0
  30. data/lib/typhoeus/hydra/memoizable.rb +56 -0
  31. data/lib/typhoeus/hydra/queueable.rb +83 -0
  32. data/lib/typhoeus/hydra/runnable.rb +19 -0
  33. data/lib/typhoeus/hydra/stubbable.rb +28 -0
  34. data/lib/typhoeus/hydra.rb +84 -236
  35. data/lib/typhoeus/pool.rb +70 -0
  36. data/lib/typhoeus/railtie.rb +12 -0
  37. data/lib/typhoeus/request/actions.rb +125 -0
  38. data/lib/typhoeus/request/before.rb +30 -0
  39. data/lib/typhoeus/request/block_connection.rb +52 -0
  40. data/lib/typhoeus/request/cacheable.rb +38 -0
  41. data/lib/typhoeus/request/callbacks.rb +151 -0
  42. data/lib/typhoeus/request/marshal.rb +22 -0
  43. data/lib/typhoeus/request/memoizable.rb +38 -0
  44. data/lib/typhoeus/request/operations.rb +40 -0
  45. data/lib/typhoeus/request/responseable.rb +29 -0
  46. data/lib/typhoeus/request/streamable.rb +34 -0
  47. data/lib/typhoeus/request/stubbable.rb +30 -0
  48. data/lib/typhoeus/request.rb +186 -231
  49. data/lib/typhoeus/response/cacheable.rb +14 -0
  50. data/lib/typhoeus/response/header.rb +105 -0
  51. data/lib/typhoeus/response/informations.rb +248 -0
  52. data/lib/typhoeus/response/status.rb +106 -0
  53. data/lib/typhoeus/response.rb +60 -115
  54. data/lib/typhoeus/version.rb +3 -1
  55. data/lib/typhoeus.rb +126 -39
  56. data/perf/profile.rb +14 -0
  57. data/perf/vs_nethttp.rb +64 -0
  58. data/spec/rack/typhoeus/middleware/params_decoder/helper_spec.rb +156 -0
  59. data/spec/rack/typhoeus/middleware/params_decoder_spec.rb +31 -0
  60. data/spec/spec_helper.rb +29 -0
  61. data/spec/support/localhost_server.rb +94 -0
  62. data/spec/support/memory_cache.rb +15 -0
  63. data/spec/support/server.rb +116 -0
  64. data/spec/typhoeus/adapters/faraday_spec.rb +339 -0
  65. data/spec/typhoeus/cache/dalli_spec.rb +41 -0
  66. data/spec/typhoeus/cache/redis_spec.rb +41 -0
  67. data/spec/typhoeus/config_spec.rb +15 -0
  68. data/spec/typhoeus/easy_factory_spec.rb +143 -0
  69. data/spec/typhoeus/errors/no_stub_spec.rb +13 -0
  70. data/spec/typhoeus/expectation_spec.rb +280 -0
  71. data/spec/typhoeus/hydra/addable_spec.rb +22 -0
  72. data/spec/typhoeus/hydra/before_spec.rb +98 -0
  73. data/spec/typhoeus/hydra/block_connection_spec.rb +18 -0
  74. data/spec/typhoeus/hydra/cacheable_spec.rb +88 -0
  75. data/spec/typhoeus/hydra/memoizable_spec.rb +53 -0
  76. data/spec/typhoeus/hydra/queueable_spec.rb +98 -0
  77. data/spec/typhoeus/hydra/runnable_spec.rb +137 -0
  78. data/spec/typhoeus/hydra/stubbable_spec.rb +48 -0
  79. data/spec/typhoeus/hydra_spec.rb +22 -0
  80. data/spec/typhoeus/pool_spec.rb +137 -0
  81. data/spec/typhoeus/request/actions_spec.rb +19 -0
  82. data/spec/typhoeus/request/before_spec.rb +93 -0
  83. data/spec/typhoeus/request/block_connection_spec.rb +75 -0
  84. data/spec/typhoeus/request/cacheable_spec.rb +94 -0
  85. data/spec/typhoeus/request/callbacks_spec.rb +91 -0
  86. data/spec/typhoeus/request/marshal_spec.rb +60 -0
  87. data/spec/typhoeus/request/memoizable_spec.rb +34 -0
  88. data/spec/typhoeus/request/operations_spec.rb +101 -0
  89. data/spec/typhoeus/request/responseable_spec.rb +13 -0
  90. data/spec/typhoeus/request/stubbable_spec.rb +45 -0
  91. data/spec/typhoeus/request_spec.rb +232 -0
  92. data/spec/typhoeus/response/header_spec.rb +147 -0
  93. data/spec/typhoeus/response/informations_spec.rb +283 -0
  94. data/spec/typhoeus/response/status_spec.rb +256 -0
  95. data/spec/typhoeus/response_spec.rb +100 -0
  96. data/spec/typhoeus_spec.rb +105 -0
  97. data/typhoeus.gemspec +25 -0
  98. metadata +146 -158
  99. data/lib/typhoeus/curl.rb +0 -453
  100. data/lib/typhoeus/easy/auth.rb +0 -14
  101. data/lib/typhoeus/easy/callbacks.rb +0 -33
  102. data/lib/typhoeus/easy/ffi_helper.rb +0 -61
  103. data/lib/typhoeus/easy/infos.rb +0 -90
  104. data/lib/typhoeus/easy/options.rb +0 -115
  105. data/lib/typhoeus/easy/proxy.rb +0 -20
  106. data/lib/typhoeus/easy/ssl.rb +0 -82
  107. data/lib/typhoeus/easy.rb +0 -115
  108. data/lib/typhoeus/filter.rb +0 -28
  109. data/lib/typhoeus/form.rb +0 -61
  110. data/lib/typhoeus/header.rb +0 -54
  111. data/lib/typhoeus/hydra/callbacks.rb +0 -24
  112. data/lib/typhoeus/hydra/connect_options.rb +0 -61
  113. data/lib/typhoeus/hydra/stubbing.rb +0 -68
  114. data/lib/typhoeus/hydra_mock.rb +0 -131
  115. data/lib/typhoeus/multi.rb +0 -146
  116. data/lib/typhoeus/param_processor.rb +0 -43
  117. data/lib/typhoeus/remote.rb +0 -306
  118. data/lib/typhoeus/remote_method.rb +0 -108
  119. data/lib/typhoeus/remote_proxy_object.rb +0 -50
  120. data/lib/typhoeus/utils.rb +0 -50
@@ -0,0 +1,100 @@
1
+ require 'spec_helper'
2
+
3
+ describe Typhoeus::Response do
4
+ let(:response) { Typhoeus::Response.new(options) }
5
+ let(:options) { {} }
6
+
7
+ describe ".new" do
8
+ context "when options" do
9
+ context "when return_code" do
10
+ let(:options) { {:return_code => 2} }
11
+
12
+ it "stores" do
13
+ expect(response.options[:return_code]).to be(2)
14
+ end
15
+ end
16
+
17
+ context "when headers" do
18
+ let(:options) { {:headers => {'A' => 'B'}} }
19
+
20
+ it "stores unmodified" do
21
+ expect(response.options[:headers]).to be(options[:headers])
22
+ end
23
+
24
+ it "sets @headers to a Typhoeus::Response::Header" do
25
+ expect(response.instance_variable_get(:@headers)).to be_a(Typhoeus::Response::Header)
26
+ end
27
+
28
+ it "has key" do
29
+ expect(response.headers['A']).to eq('B')
30
+ end
31
+ end
32
+ end
33
+ end
34
+
35
+ describe "#mock" do
36
+ context "when @mock" do
37
+ before { response.mock = true }
38
+
39
+ it "returns @mock" do
40
+ expect(response.mock).to be_truthy
41
+ end
42
+ end
43
+
44
+ context "when options[:mock]" do
45
+ let(:options) { {:mock => true} }
46
+
47
+ it "returns options[:mock]" do
48
+ expect(response.mock).to be_truthy
49
+ end
50
+ end
51
+
52
+ context "when @mock and options[:mock]" do
53
+ let(:options) { {:mock => 1} }
54
+ before { response.mock = 2 }
55
+
56
+ it "returns @mock" do
57
+ expect(response.mock).to be(2)
58
+ end
59
+ end
60
+ end
61
+
62
+ describe "#handled_response" do
63
+ let(:handled_response) { Typhoeus::Response.new }
64
+
65
+ context "when @handled_response" do
66
+ before { response.handled_response = handled_response }
67
+
68
+ it "returns @handled_response" do
69
+ expect(response.handled_response).to be(handled_response)
70
+ end
71
+ end
72
+
73
+ context "when @handled_response is nil" do
74
+ before { response.handled_response = nil }
75
+
76
+ it "returns response" do
77
+ expect(response.handled_response).to be(response)
78
+ end
79
+ end
80
+ end
81
+
82
+ describe "#cached" do
83
+ context "when @cached" do
84
+ before { response.cached = true }
85
+
86
+ it "returns cached status" do
87
+ expect(response.cached?).to be_truthy
88
+ end
89
+ end
90
+
91
+ context "when @cached is nil" do
92
+ before { response.cached = nil }
93
+
94
+ it "returns false" do
95
+ expect(response.cached?).to be_falsey
96
+ end
97
+ end
98
+
99
+ end
100
+ end
@@ -0,0 +1,105 @@
1
+ require 'spec_helper'
2
+
3
+ describe Typhoeus do
4
+ before(:each) do
5
+ Typhoeus.configure { |config| config.verbose = false; config.block_connection = false }
6
+ end
7
+
8
+ describe ".configure" do
9
+ it "yields config" do
10
+ Typhoeus.configure do |config|
11
+ expect(config).to be_a(Typhoeus::Config)
12
+ end
13
+ end
14
+
15
+ it "sets values config" do
16
+ Typhoeus::Config.verbose = true
17
+ expect(Typhoeus::Config.verbose).to be_truthy
18
+ end
19
+ end
20
+
21
+ describe ".stub" do
22
+ let(:base_url) { "www.example.com" }
23
+
24
+ shared_examples "lazy response construction" do
25
+ it "calls the block to construct a response when a request matches the stub" do
26
+ expected_response = Typhoeus::Response.new
27
+ Typhoeus.stub(base_url) do |request|
28
+ expected_response
29
+ end
30
+
31
+ response = Typhoeus.get(base_url)
32
+
33
+ expect(response).to be(expected_response)
34
+ end
35
+ end
36
+
37
+ context "when no similar expectation exists" do
38
+ include_examples "lazy response construction"
39
+
40
+ it "returns expectation" do
41
+ expect(Typhoeus.stub(base_url)).to be_a(Typhoeus::Expectation)
42
+ end
43
+
44
+ it "adds expectation" do
45
+ Typhoeus.stub(:get, "")
46
+ expect(Typhoeus::Expectation.all.size).to eq(1)
47
+ end
48
+ end
49
+
50
+ context "when similar expectation exists" do
51
+ include_examples "lazy response construction"
52
+
53
+ let(:expectation) { Typhoeus::Expectation.new(base_url) }
54
+ before { Typhoeus::Expectation.all << expectation }
55
+
56
+ it "returns expectation" do
57
+ expect(Typhoeus.stub(base_url)).to be_a(Typhoeus::Expectation)
58
+ end
59
+
60
+ it "doesn't add expectation" do
61
+ Typhoeus.stub(base_url)
62
+ expect(Typhoeus::Expectation.all.size).to eq(1)
63
+ end
64
+ end
65
+ end
66
+
67
+ describe ".before" do
68
+ it "adds callback" do
69
+ Typhoeus.before { true }
70
+ expect(Typhoeus.before.size).to eq(1)
71
+ end
72
+ end
73
+
74
+ describe ".with_connection" do
75
+ it "executes block with block connection is false" do
76
+ Typhoeus.with_connection { expect(Typhoeus::Config.block_connection).to be(false) }
77
+ end
78
+
79
+ it "sets block connection back to previous value" do
80
+ Typhoeus::Config.block_connection = true
81
+ Typhoeus.with_connection {}
82
+ expect(Typhoeus::Config.block_connection).to be(true)
83
+ end
84
+
85
+ it "returns result of block" do
86
+ expect(Typhoeus.with_connection { "123" }).to eq("123")
87
+ end
88
+ end
89
+
90
+ [:get, :post, :put, :delete, :head, :patch, :options].each do |name|
91
+ describe ".#{name}" do
92
+ let(:response) { Typhoeus::Request.method(name).call("http://localhost:3001") }
93
+
94
+ it "returns ok" do
95
+ expect(response.return_code).to eq(:ok)
96
+ end
97
+
98
+ unless name == :head
99
+ it "makes #{name.to_s.upcase} requests" do
100
+ expect(response.response_body).to include("\"REQUEST_METHOD\":\"#{name.to_s.upcase}\"")
101
+ end
102
+ end
103
+ end
104
+ end
105
+ end
data/typhoeus.gemspec ADDED
@@ -0,0 +1,25 @@
1
+ # encoding: utf-8
2
+ lib = File.expand_path('../lib/', __FILE__)
3
+ $:.unshift lib unless $:.include?(lib)
4
+
5
+ require 'typhoeus/version'
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = "typhoeus"
9
+ s.version = Typhoeus::VERSION
10
+ s.platform = Gem::Platform::RUBY
11
+ s.authors = ["David Balatero", "Paul Dix", "Hans Hasselberg"]
12
+ s.email = ["hans.hasselberg@gmail.com"]
13
+ s.homepage = "https://github.com/typhoeus/typhoeus"
14
+ s.summary = "Parallel HTTP library on top of libcurl multi."
15
+ s.description = %q{Like a modern code version of the mythical beast with 100 serpent heads, Typhoeus runs HTTP requests in parallel while cleanly encapsulating handling logic.}
16
+
17
+ s.required_rubygems_version = ">= 1.3.6"
18
+ s.license = 'MIT'
19
+
20
+ s.add_dependency('ethon', [">= 0.9.0"])
21
+
22
+ s.files = `git ls-files`.split("\n")
23
+ s.test_files = `git ls-files -- spec/*`.split("\n")
24
+ s.require_path = 'lib'
25
+ end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typhoeus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
5
- prerelease:
4
+ version: 1.4.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - David Balatero
@@ -11,136 +10,22 @@ authors:
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2012-06-09 00:00:00.000000000 Z
13
+ date: 2020-05-08 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
- name: ffi
16
+ name: ethon
18
17
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
18
  requirements:
21
- - - ~>
19
+ - - ">="
22
20
  - !ruby/object:Gem::Version
23
- version: '1.0'
21
+ version: 0.9.0
24
22
  type: :runtime
25
23
  prerelease: false
26
24
  version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
25
  requirements:
29
- - - ~>
26
+ - - ">="
30
27
  - !ruby/object:Gem::Version
31
- version: '1.0'
32
- - !ruby/object:Gem::Dependency
33
- name: mime-types
34
- requirement: !ruby/object:Gem::Requirement
35
- none: false
36
- requirements:
37
- - - ~>
38
- - !ruby/object:Gem::Version
39
- version: '1.18'
40
- type: :runtime
41
- prerelease: false
42
- version_requirements: !ruby/object:Gem::Requirement
43
- none: false
44
- requirements:
45
- - - ~>
46
- - !ruby/object:Gem::Version
47
- version: '1.18'
48
- - !ruby/object:Gem::Dependency
49
- name: sinatra
50
- requirement: !ruby/object:Gem::Requirement
51
- none: false
52
- requirements:
53
- - - ~>
54
- - !ruby/object:Gem::Version
55
- version: '1.3'
56
- type: :development
57
- prerelease: false
58
- version_requirements: !ruby/object:Gem::Requirement
59
- none: false
60
- requirements:
61
- - - ~>
62
- - !ruby/object:Gem::Version
63
- version: '1.3'
64
- - !ruby/object:Gem::Dependency
65
- name: json
66
- requirement: !ruby/object:Gem::Requirement
67
- none: false
68
- requirements:
69
- - - ~>
70
- - !ruby/object:Gem::Version
71
- version: '1.7'
72
- type: :development
73
- prerelease: false
74
- version_requirements: !ruby/object:Gem::Requirement
75
- none: false
76
- requirements:
77
- - - ~>
78
- - !ruby/object:Gem::Version
79
- version: '1.7'
80
- - !ruby/object:Gem::Dependency
81
- name: rake
82
- requirement: !ruby/object:Gem::Requirement
83
- none: false
84
- requirements:
85
- - - ~>
86
- - !ruby/object:Gem::Version
87
- version: '0.9'
88
- type: :development
89
- prerelease: false
90
- version_requirements: !ruby/object:Gem::Requirement
91
- none: false
92
- requirements:
93
- - - ~>
94
- - !ruby/object:Gem::Version
95
- version: '0.9'
96
- - !ruby/object:Gem::Dependency
97
- name: mocha
98
- requirement: !ruby/object:Gem::Requirement
99
- none: false
100
- requirements:
101
- - - ~>
102
- - !ruby/object:Gem::Version
103
- version: '0.10'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- none: false
108
- requirements:
109
- - - ~>
110
- - !ruby/object:Gem::Version
111
- version: '0.10'
112
- - !ruby/object:Gem::Dependency
113
- name: rspec
114
- requirement: !ruby/object:Gem::Requirement
115
- none: false
116
- requirements:
117
- - - ~>
118
- - !ruby/object:Gem::Version
119
- version: '2.10'
120
- type: :development
121
- prerelease: false
122
- version_requirements: !ruby/object:Gem::Requirement
123
- none: false
124
- requirements:
125
- - - ~>
126
- - !ruby/object:Gem::Version
127
- version: '2.10'
128
- - !ruby/object:Gem::Dependency
129
- name: guard-rspec
130
- requirement: !ruby/object:Gem::Requirement
131
- none: false
132
- requirements:
133
- - - ~>
134
- - !ruby/object:Gem::Version
135
- version: '0.6'
136
- type: :development
137
- prerelease: false
138
- version_requirements: !ruby/object:Gem::Requirement
139
- none: false
140
- requirements:
141
- - - ~>
142
- - !ruby/object:Gem::Version
143
- version: '0.6'
28
+ version: 0.9.0
144
29
  description: Like a modern code version of the mythical beast with 100 serpent heads,
145
30
  Typhoeus runs HTTP requests in parallel while cleanly encapsulating handling logic.
146
31
  email:
@@ -149,60 +34,163 @@ executables: []
149
34
  extensions: []
150
35
  extra_rdoc_files: []
151
36
  files:
152
- - lib/typhoeus/curl.rb
153
- - lib/typhoeus/easy/auth.rb
154
- - lib/typhoeus/easy/callbacks.rb
155
- - lib/typhoeus/easy/ffi_helper.rb
156
- - lib/typhoeus/easy/infos.rb
157
- - lib/typhoeus/easy/options.rb
158
- - lib/typhoeus/easy/proxy.rb
159
- - lib/typhoeus/easy/ssl.rb
160
- - lib/typhoeus/easy.rb
161
- - lib/typhoeus/filter.rb
162
- - lib/typhoeus/form.rb
163
- - lib/typhoeus/header.rb
164
- - lib/typhoeus/hydra/callbacks.rb
165
- - lib/typhoeus/hydra/connect_options.rb
166
- - lib/typhoeus/hydra/stubbing.rb
167
- - lib/typhoeus/hydra.rb
168
- - lib/typhoeus/hydra_mock.rb
169
- - lib/typhoeus/multi.rb
170
- - lib/typhoeus/param_processor.rb
171
- - lib/typhoeus/remote.rb
172
- - lib/typhoeus/remote_method.rb
173
- - lib/typhoeus/remote_proxy_object.rb
174
- - lib/typhoeus/request.rb
175
- - lib/typhoeus/response.rb
176
- - lib/typhoeus/utils.rb
177
- - lib/typhoeus/version.rb
178
- - lib/typhoeus.rb
37
+ - ".gitignore"
38
+ - ".rspec"
39
+ - ".travis.yml"
179
40
  - CHANGELOG.md
41
+ - CONTRIBUTING.md
180
42
  - Gemfile
43
+ - Guardfile
181
44
  - LICENSE
182
45
  - README.md
183
46
  - Rakefile
47
+ - UPGRADE.md
48
+ - lib/rack/typhoeus.rb
49
+ - lib/rack/typhoeus/middleware/params_decoder.rb
50
+ - lib/rack/typhoeus/middleware/params_decoder/helper.rb
51
+ - lib/typhoeus.rb
52
+ - lib/typhoeus/adapters/faraday.rb
53
+ - lib/typhoeus/cache/dalli.rb
54
+ - lib/typhoeus/cache/rails.rb
55
+ - lib/typhoeus/cache/redis.rb
56
+ - lib/typhoeus/config.rb
57
+ - lib/typhoeus/easy_factory.rb
58
+ - lib/typhoeus/errors.rb
59
+ - lib/typhoeus/errors/no_stub.rb
60
+ - lib/typhoeus/errors/typhoeus_error.rb
61
+ - lib/typhoeus/expectation.rb
62
+ - lib/typhoeus/hydra.rb
63
+ - lib/typhoeus/hydra/addable.rb
64
+ - lib/typhoeus/hydra/before.rb
65
+ - lib/typhoeus/hydra/block_connection.rb
66
+ - lib/typhoeus/hydra/cacheable.rb
67
+ - lib/typhoeus/hydra/memoizable.rb
68
+ - lib/typhoeus/hydra/queueable.rb
69
+ - lib/typhoeus/hydra/runnable.rb
70
+ - lib/typhoeus/hydra/stubbable.rb
71
+ - lib/typhoeus/pool.rb
72
+ - lib/typhoeus/railtie.rb
73
+ - lib/typhoeus/request.rb
74
+ - lib/typhoeus/request/actions.rb
75
+ - lib/typhoeus/request/before.rb
76
+ - lib/typhoeus/request/block_connection.rb
77
+ - lib/typhoeus/request/cacheable.rb
78
+ - lib/typhoeus/request/callbacks.rb
79
+ - lib/typhoeus/request/marshal.rb
80
+ - lib/typhoeus/request/memoizable.rb
81
+ - lib/typhoeus/request/operations.rb
82
+ - lib/typhoeus/request/responseable.rb
83
+ - lib/typhoeus/request/streamable.rb
84
+ - lib/typhoeus/request/stubbable.rb
85
+ - lib/typhoeus/response.rb
86
+ - lib/typhoeus/response/cacheable.rb
87
+ - lib/typhoeus/response/header.rb
88
+ - lib/typhoeus/response/informations.rb
89
+ - lib/typhoeus/response/status.rb
90
+ - lib/typhoeus/version.rb
91
+ - perf/profile.rb
92
+ - perf/vs_nethttp.rb
93
+ - spec/rack/typhoeus/middleware/params_decoder/helper_spec.rb
94
+ - spec/rack/typhoeus/middleware/params_decoder_spec.rb
95
+ - spec/spec_helper.rb
96
+ - spec/support/localhost_server.rb
97
+ - spec/support/memory_cache.rb
98
+ - spec/support/server.rb
99
+ - spec/typhoeus/adapters/faraday_spec.rb
100
+ - spec/typhoeus/cache/dalli_spec.rb
101
+ - spec/typhoeus/cache/redis_spec.rb
102
+ - spec/typhoeus/config_spec.rb
103
+ - spec/typhoeus/easy_factory_spec.rb
104
+ - spec/typhoeus/errors/no_stub_spec.rb
105
+ - spec/typhoeus/expectation_spec.rb
106
+ - spec/typhoeus/hydra/addable_spec.rb
107
+ - spec/typhoeus/hydra/before_spec.rb
108
+ - spec/typhoeus/hydra/block_connection_spec.rb
109
+ - spec/typhoeus/hydra/cacheable_spec.rb
110
+ - spec/typhoeus/hydra/memoizable_spec.rb
111
+ - spec/typhoeus/hydra/queueable_spec.rb
112
+ - spec/typhoeus/hydra/runnable_spec.rb
113
+ - spec/typhoeus/hydra/stubbable_spec.rb
114
+ - spec/typhoeus/hydra_spec.rb
115
+ - spec/typhoeus/pool_spec.rb
116
+ - spec/typhoeus/request/actions_spec.rb
117
+ - spec/typhoeus/request/before_spec.rb
118
+ - spec/typhoeus/request/block_connection_spec.rb
119
+ - spec/typhoeus/request/cacheable_spec.rb
120
+ - spec/typhoeus/request/callbacks_spec.rb
121
+ - spec/typhoeus/request/marshal_spec.rb
122
+ - spec/typhoeus/request/memoizable_spec.rb
123
+ - spec/typhoeus/request/operations_spec.rb
124
+ - spec/typhoeus/request/responseable_spec.rb
125
+ - spec/typhoeus/request/stubbable_spec.rb
126
+ - spec/typhoeus/request_spec.rb
127
+ - spec/typhoeus/response/header_spec.rb
128
+ - spec/typhoeus/response/informations_spec.rb
129
+ - spec/typhoeus/response/status_spec.rb
130
+ - spec/typhoeus/response_spec.rb
131
+ - spec/typhoeus_spec.rb
132
+ - typhoeus.gemspec
184
133
  homepage: https://github.com/typhoeus/typhoeus
185
- licenses: []
134
+ licenses:
135
+ - MIT
136
+ metadata: {}
186
137
  post_install_message:
187
138
  rdoc_options: []
188
139
  require_paths:
189
140
  - lib
190
141
  required_ruby_version: !ruby/object:Gem::Requirement
191
- none: false
192
142
  requirements:
193
- - - ! '>='
143
+ - - ">="
194
144
  - !ruby/object:Gem::Version
195
145
  version: '0'
196
146
  required_rubygems_version: !ruby/object:Gem::Requirement
197
- none: false
198
147
  requirements:
199
- - - ! '>='
148
+ - - ">="
200
149
  - !ruby/object:Gem::Version
201
150
  version: 1.3.6
202
151
  requirements: []
203
- rubyforge_project: ! '[none]'
204
- rubygems_version: 1.8.24
152
+ rubyforge_project:
153
+ rubygems_version: 2.5.2.3
205
154
  signing_key:
206
- specification_version: 3
155
+ specification_version: 4
207
156
  summary: Parallel HTTP library on top of libcurl multi.
208
- test_files: []
157
+ test_files:
158
+ - spec/rack/typhoeus/middleware/params_decoder/helper_spec.rb
159
+ - spec/rack/typhoeus/middleware/params_decoder_spec.rb
160
+ - spec/spec_helper.rb
161
+ - spec/support/localhost_server.rb
162
+ - spec/support/memory_cache.rb
163
+ - spec/support/server.rb
164
+ - spec/typhoeus/adapters/faraday_spec.rb
165
+ - spec/typhoeus/cache/dalli_spec.rb
166
+ - spec/typhoeus/cache/redis_spec.rb
167
+ - spec/typhoeus/config_spec.rb
168
+ - spec/typhoeus/easy_factory_spec.rb
169
+ - spec/typhoeus/errors/no_stub_spec.rb
170
+ - spec/typhoeus/expectation_spec.rb
171
+ - spec/typhoeus/hydra/addable_spec.rb
172
+ - spec/typhoeus/hydra/before_spec.rb
173
+ - spec/typhoeus/hydra/block_connection_spec.rb
174
+ - spec/typhoeus/hydra/cacheable_spec.rb
175
+ - spec/typhoeus/hydra/memoizable_spec.rb
176
+ - spec/typhoeus/hydra/queueable_spec.rb
177
+ - spec/typhoeus/hydra/runnable_spec.rb
178
+ - spec/typhoeus/hydra/stubbable_spec.rb
179
+ - spec/typhoeus/hydra_spec.rb
180
+ - spec/typhoeus/pool_spec.rb
181
+ - spec/typhoeus/request/actions_spec.rb
182
+ - spec/typhoeus/request/before_spec.rb
183
+ - spec/typhoeus/request/block_connection_spec.rb
184
+ - spec/typhoeus/request/cacheable_spec.rb
185
+ - spec/typhoeus/request/callbacks_spec.rb
186
+ - spec/typhoeus/request/marshal_spec.rb
187
+ - spec/typhoeus/request/memoizable_spec.rb
188
+ - spec/typhoeus/request/operations_spec.rb
189
+ - spec/typhoeus/request/responseable_spec.rb
190
+ - spec/typhoeus/request/stubbable_spec.rb
191
+ - spec/typhoeus/request_spec.rb
192
+ - spec/typhoeus/response/header_spec.rb
193
+ - spec/typhoeus/response/informations_spec.rb
194
+ - spec/typhoeus/response/status_spec.rb
195
+ - spec/typhoeus/response_spec.rb
196
+ - spec/typhoeus_spec.rb