radiator 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -3
- data/lib/radiator/api.rb +5 -2
- data/lib/radiator/version.rb +1 -1
- data/radiator.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd04edb4782257e159679b3ba504958f7bebff66
|
4
|
+
data.tar.gz: c02f7c6a4f03d7083781768e8698dbca4dd9e7f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dff44fb5eb36711bf5d3bf608f75ac6c45febd7a1f1f8595737325e6a6a22141e70380009d9d70c0d86bcb1ecc36dba0a5b178eb650c69eb2d7ca7edc37c876
|
7
|
+
data.tar.gz: 69342f5a584c97d19693134127587c83d6f67f60c99a4d189c8ada1e40164cc267df39eb14961b83f19012ee85e76dc057bc9318633cf2845d96a0b8640aa078
|
data/Gemfile.lock
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
radiator (0.3.
|
4
|
+
radiator (0.3.9)
|
5
5
|
awesome_print (~> 1.7, >= 1.7.0)
|
6
6
|
bitcoin-ruby (~> 0.0, >= 0.0.11)
|
7
7
|
ffi (~> 1.9, >= 1.9.18)
|
8
8
|
hashie (~> 3.5, >= 3.5.5)
|
9
9
|
json (~> 2.0, >= 2.0.2)
|
10
10
|
logging (~> 2.2, >= 2.2.0)
|
11
|
-
net-http-persistent (~>
|
11
|
+
net-http-persistent (~> 3.0, >= 2.5.2)
|
12
12
|
|
13
13
|
GEM
|
14
14
|
remote: https://rubygems.org/
|
@@ -17,6 +17,7 @@ GEM
|
|
17
17
|
public_suffix (>= 2.0.2, < 4.0)
|
18
18
|
awesome_print (1.8.0)
|
19
19
|
bitcoin-ruby (0.0.12)
|
20
|
+
connection_pool (2.2.1)
|
20
21
|
crack (0.4.3)
|
21
22
|
safe_yaml (~> 1.0.0)
|
22
23
|
docile (1.1.5)
|
@@ -34,7 +35,8 @@ GEM
|
|
34
35
|
minitest-proveit (1.0.0)
|
35
36
|
minitest (> 5, < 7)
|
36
37
|
multi_json (1.12.2)
|
37
|
-
net-http-persistent (
|
38
|
+
net-http-persistent (3.0.0)
|
39
|
+
connection_pool (~> 2.2)
|
38
40
|
public_suffix (3.0.0)
|
39
41
|
rake (12.2.1)
|
40
42
|
safe_yaml (1.0.4)
|
data/lib/radiator/api.rb
CHANGED
@@ -202,7 +202,6 @@ module Radiator
|
|
202
202
|
@logger = options[:logger] || Radiator.logger
|
203
203
|
@hashie_logger = options[:hashie_logger] || Logger.new(nil)
|
204
204
|
@max_requests = options[:max_requests] || 30
|
205
|
-
@pool_size = options[:pool_size] || Net::HTTP::Persistent::DEFAULT_POOL_SIZE
|
206
205
|
@ssl_verify_mode = options[:ssl_verify_mode] || OpenSSL::SSL::VERIFY_PEER
|
207
206
|
@reuse_ssl_sessions = !!options[:reuse_ssl_sessions]
|
208
207
|
@ssl_version = options[:ssl_version]
|
@@ -224,6 +223,10 @@ module Radiator
|
|
224
223
|
true
|
225
224
|
end
|
226
225
|
|
226
|
+
if defined? Net::HTTP::Persistent::DEFAULT_POOL_SIZE
|
227
|
+
@pool_size = options[:pool_size] || Net::HTTP::Persistent::DEFAULT_POOL_SIZE
|
228
|
+
end
|
229
|
+
|
227
230
|
Hashie.logger = @hashie_logger
|
228
231
|
@method_names = nil
|
229
232
|
@http = nil
|
@@ -519,7 +522,7 @@ module Radiator
|
|
519
522
|
idempotent = api_name != :network_broadcast_api
|
520
523
|
|
521
524
|
@http ||= if defined? Net::HTTP::Persistent::DEFAULT_POOL_SIZE
|
522
|
-
Net::HTTP::Persistent.new(name: http_id)
|
525
|
+
Net::HTTP::Persistent.new(name: http_id, pool_size: @pool_size)
|
523
526
|
else
|
524
527
|
# net-http-persistent < 3.0
|
525
528
|
Net::HTTP::Persistent.new(http_id)
|
data/lib/radiator/version.rb
CHANGED
data/radiator.gemspec
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.3'
|
28
28
|
spec.add_development_dependency 'yard', '~> 0.9.9'
|
29
29
|
|
30
|
-
spec.add_dependency('net-http-persistent', '~>
|
30
|
+
spec.add_dependency('net-http-persistent', '~> 3.0', '>= 2.5.2')
|
31
31
|
spec.add_dependency('json', '~> 2.0', '>= 2.0.2')
|
32
32
|
spec.add_dependency('logging', '~> 2.2', '>= 2.2.0')
|
33
33
|
spec.add_dependency('hashie', '~> 3.5', '>= 3.5.5')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anthony Martin
|
@@ -178,7 +178,7 @@ dependencies:
|
|
178
178
|
requirements:
|
179
179
|
- - "~>"
|
180
180
|
- !ruby/object:Gem::Version
|
181
|
-
version: '
|
181
|
+
version: '3.0'
|
182
182
|
- - ">="
|
183
183
|
- !ruby/object:Gem::Version
|
184
184
|
version: 2.5.2
|
@@ -188,7 +188,7 @@ dependencies:
|
|
188
188
|
requirements:
|
189
189
|
- - "~>"
|
190
190
|
- !ruby/object:Gem::Version
|
191
|
-
version: '
|
191
|
+
version: '3.0'
|
192
192
|
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: 2.5.2
|