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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 559fbf0dade19be29d6d13f215dba7950417dd1ae662c0ec423e7ae825e7c7b0
4
- data.tar.gz: 7e8660488af6dc921cc3ddb440c4a94124fa049d222e57b98cd639336874ed03
3
+ metadata.gz: 68eb557e31765c4d1a363dfb697dd1e31f0c6db217c745b8c19ed92fbae5832a
4
+ data.tar.gz: dd97f72723481953ca9650ea8a1c75e8e1a9ba4d9812360fb543e6ce9f08f942
5
5
  SHA512:
6
- metadata.gz: 36c76acdbe5b1f3e8a2410a53a4e246911f9fbfc85983b3bc5a1019023bcaba6572e3ef87067cf2da8af94b3efe895d2c00b3717a6111c2e7c602dbd2afef89b
7
- data.tar.gz: 9055b88a192759c97a9529c4319c6cdb0db6a150a9b969ddee6fd46c54fcf8e2edbe85dbbe457fb93c86b62b3cd921f4f5d572519ee8ce49b167f76ea4f500f2
6
+ metadata.gz: a2d9cf35d2a5f0de4192e36955a6438b1f6c00b75169a0465145de61b3dd03bd0df29e63a03b58b486ca2c0c3531ca8b06f6e09584d3697b6ac608848ed90c4c
7
+ data.tar.gz: fce87f526d295612055a4d0843139f850757d1fe426fb2f11df2f5bc73993a9bf1dd7db7b20071a6fb8edacbc1759e3eb8d6a5982f1a9cafb108917bc0fed3ca
@@ -17,7 +17,8 @@ module Cryptomus
17
17
  @response = response
18
18
  @status = response&.status
19
19
  @response_body = response&.body
20
- msg ||= "Response #{status}, #{response_body}" if response
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptomus
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
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.0
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-16 00:00:00.000000000 Z
11
+ date: 2023-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday