sibit 0.21.4 → 0.21.5

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: 93334175f6c66f2bf72dbe72fc89eb5813d7292d5933da62101e045a807089d4
4
- data.tar.gz: d6aad85381e588b3b6ede0f6b471b136cc133319425a5443e3280ef40287c8dd
3
+ metadata.gz: e9a648e75088ba27f0c8c0f70ffa0bff4eab4aad0942f2c5f8b51b9eccb39109
4
+ data.tar.gz: 2682a77e3eefe9fe800dce91f3497d36a6fd6d81910c3e9f005d207b2022245f
5
5
  SHA512:
6
- metadata.gz: 07beba474641abf451d3b94cc1d40ae19f86295e7606bfbe613d59eb3017ef8cdf143fdd08f63dea36ca0b32b112c61f0458e45ca2f399e893dbee325022de88
7
- data.tar.gz: d589cdf99c4434a6b90c02ac20c806f094e2b984c939f71de03a9307674b88e85abb2e847f1ddf6483c5dd72fb0664e1a6dbbf493852e2c627ce247f2a110df5
6
+ metadata.gz: 75579cc314eddf9d74f26d74f6ea68f1ad0e7148e5f1111b61d97b1cb6d3ec4e5c6c275074ce5d70dfd2071abb0c7436c6b408dfedae773394b63ffbc2d3dce6
7
+ data.tar.gz: 598291e668fc4aca8a2ab25e159458a0d6f47c2f856e1eb529b1d0d3d55ccaa0f86d004442906ba9ac0b8079067c6a866b76f3854bcdcdefe8bdd78225b0d1f0
data/lib/sibit/json.rb CHANGED
@@ -65,6 +65,8 @@ class Sibit
65
65
  end
66
66
  @log.info("GET #{uri}: #{res.code}/#{length(res.body.length)} in #{age(start)}")
67
67
  JSON.parse(res.body)
68
+ rescue JSON::ParserError => e
69
+ raise Sibit::Error, "Can't parse JSON: #{e.message}"
68
70
  end
69
71
 
70
72
  def post(address, body, headers: {})
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.21.4'
29
+ VERSION = '0.21.5'
30
30
  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.21.4
4
+ version: 0.21.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-09 00:00:00.000000000 Z
11
+ date: 2021-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backtrace