dsu3 0.9.1 → 0.9.2

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: 82851e7f871ff43245228fa78712507d4eb513ec33afcc6a5ff5276f4a419d14
4
- data.tar.gz: 129b9a23a0c359968c32d6251dcb5a5952805fc4c3877f49ac8e596959bda430
3
+ metadata.gz: 640c9953a32bc972d54f3d032163474bfc5f58add8d4f59a9064bacc0512e4e3
4
+ data.tar.gz: 4fbc03d22f27b90ba2917eb81fb612691fe2be6bd35a6cd725d4d6f2de052496
5
5
  SHA512:
6
- metadata.gz: fa6331b0ab524ba4884a4ae5e2aa15aec99b7b008ffd9549b955741135e04bd3320a34b821939c3e142e3428b16c9c0c8fe23c79d855040c8e99df5b44d9428c
7
- data.tar.gz: 666626ee1b2e92bf22d80b5cc2135ff17dc8ef24b51fbe13e3d616e893d8e53432cc542ac656817418a70d1e8c5d812992285e9e55dbb464d5c4bdf3d3df9295
6
+ metadata.gz: d4b473f3733e34377baf5316e3537aa9368cbf2db4987c5f3b446107925b4f8660f9ca3956f2c3c38a9ecdda45336e276f2a451449216ed2b325079606114371
7
+ data.tar.gz: 222a46f109dbd7f684d1c86ad1e72c2d730e0e88ca038263f63c3390fb9812bef7702101d6672a93ab4dd1aaeff51b6dbaba717df0a1273226ce9f5645ab98a8
data/bin/dsu3 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'dsu3'
4
4
 
5
- @net = DSU3::Net.new(*File.readlines(ARGV.shift))
5
+ @net = DSU3::Net.new(*File.readlines(ARGV.shift).map(&:chop))
6
6
 
7
7
  require 'irb'
8
8
  IRB.start
data/lib/dsu3/api.rb CHANGED
@@ -42,7 +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
+ data = JSON.parse(e.response.body)
46
46
  LOGGER.error("#{data['code']}: #{data['message']}")
47
47
  else
48
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.1'
4
+ VERSION = '0.9.2'
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.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artur Sheremetjev IV