cc-terminal 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: bf0fce5df4f9f943707fc8728e8bbdcbd78ed5dd
4
- data.tar.gz: 3f21f0c0d6293a635e23fa6fe664b5417d81c79e
3
+ metadata.gz: 82dad100cc90d5e0d2aa39f2bf957e4f39829d60
4
+ data.tar.gz: 99bb838690d6a384168975386b599e4702bed296
5
5
  SHA512:
6
- metadata.gz: 79e0395d903ffdaa562332522a4474b45af8f20998cf89820b759b4935c0edd15616c1819a35419932c9a9414789f773fb82b5db6f4779ffb8769724f4695d94
7
- data.tar.gz: cca1f0f531e4195bda80d3251448d2d4135d88ef9f1f2d492df6fddbf81bdd1dbb09a490921288fbad56b368bcf640dd8a94f40e4c2fbb5532db91a38f5d7e03
6
+ metadata.gz: 0b5c6c5288c953746f48806508aa38a2da489a4f1655a417a0df1b8cacb65a73c5ca8af56dc57ee5323c9a3d0196ba68e78e30147df84872b20291ba669f15ff
7
+ data.tar.gz: d3bf52bf6fde0d0b5af2e3453fa19b65f3211dc4a6d6cffc348c7c2d6a8f6ed70aeb27a9e5080a2c57e58649e5494d67522233d5b5db784ed9dc475bd2f8acd2
@@ -4,9 +4,10 @@ module Terminal
4
4
 
5
5
  class APIResponseError < StandardError
6
6
 
7
- attr_reader :message
7
+ attr_reader :message, :response
8
8
  def initialize(response)
9
- @message = response.body.nil? ? '' : response.body['error']
9
+ @response = response
10
+ @message = @response.body.nil? ? '' : @response.body['error']
10
11
  super(message)
11
12
  end
12
13
  end
@@ -1,3 +1,3 @@
1
1
  module Terminal
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cc-terminal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timor Tsentsiper