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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '048a38f261e97782ba518f01532bf16277f6902279220bef3dcf2fdcbcd30a02'
4
- data.tar.gz: 0ba3b10db4ec304019a79d9ca95330b6935560cf8f77d7247f8219f6d0a6934b
3
+ metadata.gz: c0241240816fa4582989be16e381b3dd3a97f541923cb2edc469058243ec3a9e
4
+ data.tar.gz: 23f53e4099aeff681150625deb1d89b800229fc815142942d914ff253288a023
5
5
  SHA512:
6
- metadata.gz: f42c926db24b050b6e0425c030e62695c42a48b002eb1d89555fda8c5f7f8fdff983fc0e5a1321b04bf507989a2fcc4ad207fde5951212cb5a3b209af474d9f3
7
- data.tar.gz: 54aca991f7aded45ea28726156b732f2a42ddff0f44a633791bd672c5b82a24d0f43d4d0c856c718f92009a706d04a2a014ce064b370db65d82b57b739a778fb
6
+ metadata.gz: 9235cfad8bb3de94b66b4f9574c826e305b32957abbff951617db697e8ac5330181c8bd23b4503cbb9e2932bcfe7c49c5a8122f7feff51d5a61966ddc9ae4e53
7
+ data.tar.gz: 2be08bc2fa281449a956b0039af69585dd6f35425080e414cf56eb9594e283ce309122f647e72609afb40a963a3e760d7cda7d5b368e1a2064f25588f7174242
data/README.md CHANGED
@@ -117,8 +117,7 @@ your pull request. You will need to have [Ruby](https://www.ruby-lang.org/en/) 2
117
117
 
118
118
  ```
119
119
  $ bundle update
120
- $ rake
120
+ $ bundle exec rake
121
121
  ```
122
122
 
123
123
  If it's clean and you don't see any error messages, submit your pull request.
124
-
data/lib/sibit/version.rb CHANGED
@@ -26,5 +26,5 @@
26
26
  # License:: MIT
27
27
  class Sibit
28
28
  # Current version of the library.
29
- VERSION = '0.7.7'
29
+ VERSION = '0.7.8'
30
30
  end
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}: #{res.code}" unless res.code == '200'
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.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-14 00:00:00.000000000 Z
11
+ date: 2019-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backtrace