radiator 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +8 -15
- data/lib/radiator/api.rb +4 -2
- data/lib/radiator/version.rb +1 -1
- data/radiator.gemspec +4 -8
- metadata +42 -64
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3cb52c16134c84db4c129bc572f45f67ac952bbe
|
4
|
+
data.tar.gz: 16b6c0642c4f55212b454de1cdba522d8b4fc682
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e1c75f94f7a6e18fa7015856c3edb24b2886706167db7845ca0384b359ff1717d8de71493e533bc1f3c06bc08f83461141bca46fdc7c925ebfaf4df157e0a66
|
7
|
+
data.tar.gz: 8f3b4b4b290e149bc91c3c8809f136d518dbd0a7e1ad56d1453fa1ff1053cc4a88845f5a67585ed3b2d593ac513c03ec75a2ba407efcab43a98b68c52d0573bd
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
radiator (0.3.
|
5
|
-
|
6
|
-
|
4
|
+
radiator (0.3.2)
|
5
|
+
awesome_print (~> 1.7, >= 1.7.0)
|
6
|
+
bitcoin-ruby (~> 0.0, >= 0.0.11)
|
7
|
+
ffi (~> 1.9, >= 1.9.18)
|
7
8
|
hashie (~> 3.5, >= 3.5.5)
|
8
9
|
json (~> 2.0, >= 2.0.2)
|
9
10
|
logging (~> 2.2, >= 2.2.0)
|
10
|
-
net-http-persistent (~>
|
11
|
+
net-http-persistent (~> 3.0, >= 3.0.0)
|
11
12
|
|
12
13
|
GEM
|
13
14
|
remote: https://rubygems.org/
|
@@ -17,13 +18,10 @@ GEM
|
|
17
18
|
awesome_print (1.8.0)
|
18
19
|
bitcoin-ruby (0.0.11)
|
19
20
|
coderay (1.1.2)
|
21
|
+
connection_pool (2.2.1)
|
20
22
|
crack (0.4.3)
|
21
23
|
safe_yaml (~> 1.0.0)
|
22
24
|
docile (1.1.5)
|
23
|
-
ethon (0.10.1)
|
24
|
-
ffi (>= 1.3.0)
|
25
|
-
faraday (0.9.2)
|
26
|
-
multipart-post (>= 1.2, < 3)
|
27
25
|
ffi (1.9.18)
|
28
26
|
hashdiff (0.3.7)
|
29
27
|
hashie (3.5.6)
|
@@ -37,8 +35,8 @@ GEM
|
|
37
35
|
minitest-line (0.6.4)
|
38
36
|
minitest (~> 5.0)
|
39
37
|
multi_json (1.12.2)
|
40
|
-
|
41
|
-
|
38
|
+
net-http-persistent (3.0.0)
|
39
|
+
connection_pool (~> 2.2)
|
42
40
|
pry (0.11.1)
|
43
41
|
coderay (~> 1.1.0)
|
44
42
|
method_source (~> 0.9.0)
|
@@ -50,8 +48,6 @@ GEM
|
|
50
48
|
json (>= 1.8, < 3)
|
51
49
|
simplecov-html (~> 0.10.0)
|
52
50
|
simplecov-html (0.10.2)
|
53
|
-
typhoeus (1.3.0)
|
54
|
-
ethon (>= 0.9.0)
|
55
51
|
vcr (3.0.3)
|
56
52
|
webmock (3.1.0)
|
57
53
|
addressable (>= 2.3.6)
|
@@ -63,16 +59,13 @@ PLATFORMS
|
|
63
59
|
ruby
|
64
60
|
|
65
61
|
DEPENDENCIES
|
66
|
-
awesome_print (~> 1.7, >= 1.7.0)
|
67
62
|
bundler (~> 1.15, >= 1.15.4)
|
68
|
-
faraday (~> 0.9.2)
|
69
63
|
minitest (~> 5.9, >= 5.9.0)
|
70
64
|
minitest-line (~> 0.6.3)
|
71
65
|
pry (~> 0.11.1)
|
72
66
|
radiator!
|
73
67
|
rake (~> 12.1, >= 12.1.0)
|
74
68
|
simplecov (~> 0.15.1)
|
75
|
-
typhoeus (~> 1.0, >= 1.0.2)
|
76
69
|
vcr (~> 3.0, >= 3.0.3)
|
77
70
|
webmock (~> 3.1, >= 3.1.0)
|
78
71
|
yard (~> 0.9.9)
|
data/lib/radiator/api.rb
CHANGED
@@ -147,7 +147,8 @@ module Radiator
|
|
147
147
|
]
|
148
148
|
|
149
149
|
DEFAULT_GOLOS_FAILOVER_URLS = [
|
150
|
-
DEFAULT_GOLOS_URL
|
150
|
+
DEFAULT_GOLOS_URL,
|
151
|
+
'https://api.golos.cf'
|
151
152
|
]
|
152
153
|
|
153
154
|
# @private
|
@@ -425,6 +426,7 @@ module Radiator
|
|
425
426
|
Hashie::Mash.new(response)
|
426
427
|
end
|
427
428
|
when '400' then warning 'Code 400: Bad Request, retrying ...', method_name
|
429
|
+
when '429' then warning 'Code 429: Too Many Requests, retrying ...', method_name
|
428
430
|
when '502' then warning 'Code 502: Bad Gateway, retrying ...', method_name
|
429
431
|
when '503' then warning 'Code 503: Service Unavailable, retrying ...', method_name
|
430
432
|
when '504' then warning 'Code 504: Gateway Timeout, retrying ...', method_name
|
@@ -506,7 +508,7 @@ module Radiator
|
|
506
508
|
end
|
507
509
|
|
508
510
|
def http
|
509
|
-
@http ||= Net::HTTP::Persistent.new(http_id).tap do |http|
|
511
|
+
@http ||= Net::HTTP::Persistent.new(name: http_id).tap do |http|
|
510
512
|
idempotent = api_name != :network_broadcast_api
|
511
513
|
http.keep_alive = 30
|
512
514
|
http.read_timeout = 10
|
data/lib/radiator/version.rb
CHANGED
data/radiator.gemspec
CHANGED
@@ -24,18 +24,14 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_development_dependency 'webmock', '~> 3.1', '>= 3.1.0'
|
25
25
|
spec.add_development_dependency 'simplecov', '~> 0.15.1'
|
26
26
|
spec.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.3'
|
27
|
-
spec.add_development_dependency 'faraday', '~> 0.9.2'
|
28
|
-
spec.add_development_dependency 'typhoeus', '~> 1.0', '>= 1.0.2'
|
29
27
|
spec.add_development_dependency 'yard', '~> 0.9.9'
|
30
28
|
spec.add_development_dependency 'pry', '~> 0.11.1'
|
31
|
-
spec.add_development_dependency 'awesome_print', '~> 1.7', '>= 1.7.0'
|
32
29
|
|
33
|
-
|
34
|
-
# is the darwin default at the moment.
|
35
|
-
spec.add_dependency('net-http-persistent', '~> 2.9', '>= 2.9.4')
|
30
|
+
spec.add_dependency('net-http-persistent', '~> 3.0', '>= 3.0.0')
|
36
31
|
spec.add_dependency('json', '~> 2.0', '>= 2.0.2')
|
37
32
|
spec.add_dependency('logging', '~> 2.2', '>= 2.2.0')
|
38
33
|
spec.add_dependency('hashie', '~> 3.5', '>= 3.5.5')
|
39
|
-
spec.add_dependency('bitcoin-ruby', '0.0.11')
|
40
|
-
spec.add_dependency('ffi', '1.9.18')
|
34
|
+
spec.add_dependency('bitcoin-ruby', '~> 0.0', '>= 0.0.11')
|
35
|
+
spec.add_dependency('ffi', '~> 1.9', '>= 1.9.18')
|
36
|
+
spec.add_dependency 'awesome_print', '~> 1.7', '>= 1.7.0'
|
41
37
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anthony Martin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -138,40 +138,6 @@ dependencies:
|
|
138
138
|
- - ">="
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: 3.0.3
|
141
|
-
- !ruby/object:Gem::Dependency
|
142
|
-
name: faraday
|
143
|
-
requirement: !ruby/object:Gem::Requirement
|
144
|
-
requirements:
|
145
|
-
- - "~>"
|
146
|
-
- !ruby/object:Gem::Version
|
147
|
-
version: 0.9.2
|
148
|
-
type: :development
|
149
|
-
prerelease: false
|
150
|
-
version_requirements: !ruby/object:Gem::Requirement
|
151
|
-
requirements:
|
152
|
-
- - "~>"
|
153
|
-
- !ruby/object:Gem::Version
|
154
|
-
version: 0.9.2
|
155
|
-
- !ruby/object:Gem::Dependency
|
156
|
-
name: typhoeus
|
157
|
-
requirement: !ruby/object:Gem::Requirement
|
158
|
-
requirements:
|
159
|
-
- - "~>"
|
160
|
-
- !ruby/object:Gem::Version
|
161
|
-
version: '1.0'
|
162
|
-
- - ">="
|
163
|
-
- !ruby/object:Gem::Version
|
164
|
-
version: 1.0.2
|
165
|
-
type: :development
|
166
|
-
prerelease: false
|
167
|
-
version_requirements: !ruby/object:Gem::Requirement
|
168
|
-
requirements:
|
169
|
-
- - "~>"
|
170
|
-
- !ruby/object:Gem::Version
|
171
|
-
version: '1.0'
|
172
|
-
- - ">="
|
173
|
-
- !ruby/object:Gem::Version
|
174
|
-
version: 1.0.2
|
175
141
|
- !ruby/object:Gem::Dependency
|
176
142
|
name: yard
|
177
143
|
requirement: !ruby/object:Gem::Requirement
|
@@ -200,46 +166,26 @@ dependencies:
|
|
200
166
|
- - "~>"
|
201
167
|
- !ruby/object:Gem::Version
|
202
168
|
version: 0.11.1
|
203
|
-
- !ruby/object:Gem::Dependency
|
204
|
-
name: awesome_print
|
205
|
-
requirement: !ruby/object:Gem::Requirement
|
206
|
-
requirements:
|
207
|
-
- - "~>"
|
208
|
-
- !ruby/object:Gem::Version
|
209
|
-
version: '1.7'
|
210
|
-
- - ">="
|
211
|
-
- !ruby/object:Gem::Version
|
212
|
-
version: 1.7.0
|
213
|
-
type: :development
|
214
|
-
prerelease: false
|
215
|
-
version_requirements: !ruby/object:Gem::Requirement
|
216
|
-
requirements:
|
217
|
-
- - "~>"
|
218
|
-
- !ruby/object:Gem::Version
|
219
|
-
version: '1.7'
|
220
|
-
- - ">="
|
221
|
-
- !ruby/object:Gem::Version
|
222
|
-
version: 1.7.0
|
223
169
|
- !ruby/object:Gem::Dependency
|
224
170
|
name: net-http-persistent
|
225
171
|
requirement: !ruby/object:Gem::Requirement
|
226
172
|
requirements:
|
227
173
|
- - "~>"
|
228
174
|
- !ruby/object:Gem::Version
|
229
|
-
version: '
|
175
|
+
version: '3.0'
|
230
176
|
- - ">="
|
231
177
|
- !ruby/object:Gem::Version
|
232
|
-
version:
|
178
|
+
version: 3.0.0
|
233
179
|
type: :runtime
|
234
180
|
prerelease: false
|
235
181
|
version_requirements: !ruby/object:Gem::Requirement
|
236
182
|
requirements:
|
237
183
|
- - "~>"
|
238
184
|
- !ruby/object:Gem::Version
|
239
|
-
version: '
|
185
|
+
version: '3.0'
|
240
186
|
- - ">="
|
241
187
|
- !ruby/object:Gem::Version
|
242
|
-
version:
|
188
|
+
version: 3.0.0
|
243
189
|
- !ruby/object:Gem::Dependency
|
244
190
|
name: json
|
245
191
|
requirement: !ruby/object:Gem::Requirement
|
@@ -304,30 +250,62 @@ dependencies:
|
|
304
250
|
name: bitcoin-ruby
|
305
251
|
requirement: !ruby/object:Gem::Requirement
|
306
252
|
requirements:
|
307
|
-
- -
|
253
|
+
- - "~>"
|
254
|
+
- !ruby/object:Gem::Version
|
255
|
+
version: '0.0'
|
256
|
+
- - ">="
|
308
257
|
- !ruby/object:Gem::Version
|
309
258
|
version: 0.0.11
|
310
259
|
type: :runtime
|
311
260
|
prerelease: false
|
312
261
|
version_requirements: !ruby/object:Gem::Requirement
|
313
262
|
requirements:
|
314
|
-
- -
|
263
|
+
- - "~>"
|
264
|
+
- !ruby/object:Gem::Version
|
265
|
+
version: '0.0'
|
266
|
+
- - ">="
|
315
267
|
- !ruby/object:Gem::Version
|
316
268
|
version: 0.0.11
|
317
269
|
- !ruby/object:Gem::Dependency
|
318
270
|
name: ffi
|
319
271
|
requirement: !ruby/object:Gem::Requirement
|
320
272
|
requirements:
|
321
|
-
- -
|
273
|
+
- - "~>"
|
274
|
+
- !ruby/object:Gem::Version
|
275
|
+
version: '1.9'
|
276
|
+
- - ">="
|
322
277
|
- !ruby/object:Gem::Version
|
323
278
|
version: 1.9.18
|
324
279
|
type: :runtime
|
325
280
|
prerelease: false
|
326
281
|
version_requirements: !ruby/object:Gem::Requirement
|
327
282
|
requirements:
|
328
|
-
- -
|
283
|
+
- - "~>"
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
version: '1.9'
|
286
|
+
- - ">="
|
329
287
|
- !ruby/object:Gem::Version
|
330
288
|
version: 1.9.18
|
289
|
+
- !ruby/object:Gem::Dependency
|
290
|
+
name: awesome_print
|
291
|
+
requirement: !ruby/object:Gem::Requirement
|
292
|
+
requirements:
|
293
|
+
- - "~>"
|
294
|
+
- !ruby/object:Gem::Version
|
295
|
+
version: '1.7'
|
296
|
+
- - ">="
|
297
|
+
- !ruby/object:Gem::Version
|
298
|
+
version: 1.7.0
|
299
|
+
type: :runtime
|
300
|
+
prerelease: false
|
301
|
+
version_requirements: !ruby/object:Gem::Requirement
|
302
|
+
requirements:
|
303
|
+
- - "~>"
|
304
|
+
- !ruby/object:Gem::Version
|
305
|
+
version: '1.7'
|
306
|
+
- - ">="
|
307
|
+
- !ruby/object:Gem::Version
|
308
|
+
version: 1.7.0
|
331
309
|
description: Client for accessing the STEEM blockchain.
|
332
310
|
email:
|
333
311
|
- radiator@martin-studio.com
|