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 +4 -4
- data/lib/sibit/json.rb +2 -0
- data/lib/sibit/version.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: e9a648e75088ba27f0c8c0f70ffa0bff4eab4aad0942f2c5f8b51b9eccb39109
|
4
|
+
data.tar.gz: 2682a77e3eefe9fe800dce91f3497d36a6fd6d81910c3e9f005d207b2022245f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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
|
+
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-
|
11
|
+
date: 2021-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backtrace
|