cryptomus 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cryptomus/errors.rb +2 -1
- data/lib/cryptomus/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: 68eb557e31765c4d1a363dfb697dd1e31f0c6db217c745b8c19ed92fbae5832a
|
4
|
+
data.tar.gz: dd97f72723481953ca9650ea8a1c75e8e1a9ba4d9812360fb543e6ce9f08f942
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2d9cf35d2a5f0de4192e36955a6438b1f6c00b75169a0465145de61b3dd03bd0df29e63a03b58b486ca2c0c3531ca8b06f6e09584d3697b6ac608848ed90c4c
|
7
|
+
data.tar.gz: fce87f526d295612055a4d0843139f850757d1fe426fb2f11df2f5bc73993a9bf1dd7db7b20071a6fb8edacbc1759e3eb8d6a5982f1a9cafb108917bc0fed3ca
|
data/lib/cryptomus/errors.rb
CHANGED
@@ -17,7 +17,8 @@ module Cryptomus
|
|
17
17
|
@response = response
|
18
18
|
@status = response&.status
|
19
19
|
@response_body = response&.body
|
20
|
-
|
20
|
+
body_msg = response_body.is_a?(Hash) ? JSON.generate(response_body) : response_body
|
21
|
+
msg ||= "Response #{status}, #{body_msg}" if response
|
21
22
|
super(msg || self.class.name)
|
22
23
|
end
|
23
24
|
end
|
data/lib/cryptomus/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cryptomus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis Talakevich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|