dsu3 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cbf00362beaf86aea7d0481df9e0be5511287fddb583a4e768f5b08bf171a7a4
4
- data.tar.gz: ef35c40a9b3f948b318bc7746f41163ac9b372e4c8d177cc7de3af3cf9fd965f
3
+ metadata.gz: 82851e7f871ff43245228fa78712507d4eb513ec33afcc6a5ff5276f4a419d14
4
+ data.tar.gz: 129b9a23a0c359968c32d6251dcb5a5952805fc4c3877f49ac8e596959bda430
5
5
  SHA512:
6
- metadata.gz: 8dc1cf7a06a3fd22c3165633007161303415b9dc18ce54c9f59664b087130745cedab7ae31fb3f3bd0ca25012c6381bde45903f32410fbf13eac9b7e92a0f195
7
- data.tar.gz: 15030d9af29247295cdd221cdb0044b6dd06f67fa740d0ad86d9d717f7380a2c16d0094f688e389ad4ce5bae2bc99bf13f093789a4fb96f10aec4d12b2a3f9e2
6
+ metadata.gz: fa6331b0ab524ba4884a4ae5e2aa15aec99b7b008ffd9549b955741135e04bd3320a34b821939c3e142e3428b16c9c0c8fe23c79d855040c8e99df5b44d9428c
7
+ data.tar.gz: 666626ee1b2e92bf22d80b5cc2135ff17dc8ef24b51fbe13e3d616e893d8e53432cc542ac656817418a70d1e8c5d812992285e9e55dbb464d5c4bdf3d3df9295
data/lib/dsu3/api.rb CHANGED
@@ -42,6 +42,7 @@ module DSU3
42
42
  if e.is_a?(RestClient::TooManyRequests)
43
43
  LOGGER.warn('ratelimit exceeded')
44
44
  elsif e.response.headers[:content_type] == 'application/json'
45
+ data = JSON.parse(e.response)
45
46
  LOGGER.error("#{data['code']}: #{data['message']}")
46
47
  else
47
48
  LOGGER.error(e.message)
data/lib/dsu3/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DSU3
4
- VERSION = '0.9.0'
4
+ VERSION = '0.9.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dsu3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artur Sheremetjev IV