amex_tokenization_client 0.1.2 → 0.1.3

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: 8a458d986d472e71cddcb9e29704b9f7fd4a10a5a0995fa86db9e49cda416f72
4
- data.tar.gz: 6b2898c74f1adc55b0202e0caadcd2ae05edd30fab04e925a540ea88c346be94
3
+ metadata.gz: 800325436774bd5e89010628c690c6e0c5dd535008832b78a747613f721802d9
4
+ data.tar.gz: bfaaa00543d0bdac82497d1617c7eecca48f31401918f5809fc290ef80e05501
5
5
  SHA512:
6
- metadata.gz: a08a55c48d1682f86263e8265aecd9fdf03834dbc870f0ea8bc650d77741de2e7a29b31ae221ce93cd97a8e4affaffbbd989f1772bee15ae3b6fac0934f5a3a0
7
- data.tar.gz: f71e9de74490ce9c1b84f1bfd53d142e1acfe46795337f8094a346d684e886300f6bf27fac317fa8e22a4522914408b5fbe4adbc08e4f49d01bab4b6dbfeac75
6
+ metadata.gz: c16ab5bf9d2f50b18ec217d44ffa30524cedb9d20b3092d2546b3e1e99fd148cdc74e99024895b737fca0094c036310d262d0e488c3dcb59b2af4a748f9a794a
7
+ data.tar.gz: 53dfd5e16c9fbb24e6bd49954860756d70c094813cfc6e8459d865f0cda5f5feabae665c1d3a9e9dd8096572dd9d95bd925525467894ade6562f32271cc2388b
@@ -53,8 +53,11 @@ class AmexTokenizationClient
53
53
  end
54
54
 
55
55
  class UnexpectedHttpResponse < StandardError
56
+ attr_reader :response
57
+
56
58
  def initialize(response)
57
- super response.message || response.code
59
+ @response = response
60
+ super "#{response.message} (#{response.code}): #{response.body}"
58
61
  end
59
62
  end
60
63
 
@@ -1,3 +1,3 @@
1
1
  class AmexTokenizationClient
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amex_tokenization_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piers Chambers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-16 00:00:00.000000000 Z
11
+ date: 2019-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwe