chartmogul-ruby 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/changelog.md +3 -0
- data/lib/chartmogul/errors/chartmogul_error.rb +9 -9
- data/lib/chartmogul/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: 58e08b4633a65e72825d820f696452a7681f84f790a9b10aca0a96b3c3866be8
|
4
|
+
data.tar.gz: f4fb8cffaa0b0812e155e52525337950afd7b075862ba39b46131658afaf5471
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cebe9948f33c7ab5473eb832fd3a51ca9d7b9d8f81f8f1bfe046b1d5e9eee194d981a3651b2adee705974fca4b2f9d6427fb72a32fc117e3afd0dd3f73f78895
|
7
|
+
data.tar.gz: 7c7dbe0e4a6c4838b1bc9a397472f8968d14c6b6e516515f6dcbb5f7159e5f5b56beb9e0fe2ba8ce482a4003f90940d01fd49b87f849c180c14750b582014eed
|
data/changelog.md
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
module ChartMogul
|
2
2
|
class ChartMogulError < StandardError
|
3
|
-
|
4
|
-
attr_accessor :response
|
5
|
-
attr_accessor :http_status
|
3
|
+
attr_reader :error_message, :response, :http_status
|
6
4
|
|
7
|
-
def initialize(
|
8
|
-
@
|
5
|
+
def initialize(error_message, http_status: nil, response: nil)
|
6
|
+
@error_message = error_message
|
9
7
|
@http_status = http_status
|
10
8
|
@response = response
|
9
|
+
|
10
|
+
super(build_message)
|
11
11
|
end
|
12
12
|
|
13
|
-
def
|
14
|
-
status =
|
15
|
-
|
16
|
-
"#{
|
13
|
+
def build_message
|
14
|
+
status = http_status ? " (HTTP Status: #{http_status})" : ''
|
15
|
+
resp = response ? "\nResponse: #{response}" : ''
|
16
|
+
"#{error_message}#{status}#{resp}"
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
data/lib/chartmogul/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chartmogul-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Langenauer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|