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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f35a27b064a7d00d1065e8e0abf6909996b99b31efbb4a3b0b5e4561f5ae973d
4
- data.tar.gz: fe810c793bd95dc57452e56c7ad3b6bbfae0bc78a862049cc179f45ae3f6e5f7
3
+ metadata.gz: 58e08b4633a65e72825d820f696452a7681f84f790a9b10aca0a96b3c3866be8
4
+ data.tar.gz: f4fb8cffaa0b0812e155e52525337950afd7b075862ba39b46131658afaf5471
5
5
  SHA512:
6
- metadata.gz: 6d0cc07345770baf3280ce4b62a8052682f466387ce8120044172ac19086938631c7958ec59f7a745187b018d520e97944b12c20a2744fc6d1fc61a5acdeb61b
7
- data.tar.gz: abdcea8b4a2b2cf06de0f4a0ceaa4a7e8d4bcc252258fbb93f2d026bed2f63cd0e7803e6b6b940d412a41c8338a55a39d62d1e66e9a75d6446eb5af896ff949e
6
+ metadata.gz: cebe9948f33c7ab5473eb832fd3a51ca9d7b9d8f81f8f1bfe046b1d5e9eee194d981a3651b2adee705974fca4b2f9d6427fb72a32fc117e3afd0dd3f73f78895
7
+ data.tar.gz: 7c7dbe0e4a6c4838b1bc9a397472f8968d14c6b6e516515f6dcbb5f7159e5f5b56beb9e0fe2ba8ce482a4003f90940d01fd49b87f849c180c14750b582014eed
@@ -1,5 +1,8 @@
1
1
  # chartmogul-ruby Change Log
2
2
 
3
+ ## Version 1.1.8 - 22 June 2018
4
+ - Fix ChartMogul::ChartMogulError class
5
+
3
6
  ## Version 1.0.2 - 6 March 2017
4
7
  - Consolidated Customer, Enrichment/Customer now deprecated
5
8
 
@@ -1,19 +1,19 @@
1
1
  module ChartMogul
2
2
  class ChartMogulError < StandardError
3
- attr_accessor :message
4
- attr_accessor :response
5
- attr_accessor :http_status
3
+ attr_reader :error_message, :response, :http_status
6
4
 
7
- def initialize(message, http_status: nil, response: nil)
8
- @message = message
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 to_s
14
- status = @http_status ? " (HTTP Status: #{@http_status})" : ''
15
- response = @response ? "\nResponse: #{@response}" : ''
16
- "#{message}#{status}#{response}"
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
@@ -1,3 +1,3 @@
1
1
  module ChartMogul
2
- VERSION = '1.1.7'.freeze
2
+ VERSION = '1.1.8'.freeze
3
3
  end
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.7
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-03-26 00:00:00.000000000 Z
11
+ date: 2018-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday