sibit 0.7.7 → 0.7.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -2
- data/lib/sibit/version.rb +1 -1
- data/lib/sibit.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0241240816fa4582989be16e381b3dd3a97f541923cb2edc469058243ec3a9e
|
4
|
+
data.tar.gz: 23f53e4099aeff681150625deb1d89b800229fc815142942d914ff253288a023
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9235cfad8bb3de94b66b4f9574c826e305b32957abbff951617db697e8ac5330181c8bd23b4503cbb9e2932bcfe7c49c5a8122f7feff51d5a61966ddc9ae4e53
|
7
|
+
data.tar.gz: 2be08bc2fa281449a956b0039af69585dd6f35425080e414cf56eb9594e283ce309122f647e72609afb40a963a3e760d7cda7d5b368e1a2064f25588f7174242
|
data/README.md
CHANGED
data/lib/sibit/version.rb
CHANGED
data/lib/sibit.rb
CHANGED
@@ -182,7 +182,7 @@ class Sibit
|
|
182
182
|
def get_json(uri)
|
183
183
|
start = Time.now
|
184
184
|
res = Net::HTTP.get_response(URI('https://blockchain.info' + uri))
|
185
|
-
raise Error, "Failed to retrieve #{uri}
|
185
|
+
raise Error, "Failed to retrieve #{uri} (#{res.code}): #{res.body}" unless res.code == '200'
|
186
186
|
info("GET #{uri}: #{res.code}/#{res.body.length}b in #{age(start)}")
|
187
187
|
JSON.parse(res.body)
|
188
188
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sibit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backtrace
|