amex_enhanced_authorization 0.2.0 → 0.2.1

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: 2668ce00e86e249be0f70f12d07a6cb0a744bbc1372e7fbdeedb838197d9cb05
4
- data.tar.gz: 9c6dad561f82045bfa60b7ee42f06c95040985c7584af67551e69033f0c38166
3
+ metadata.gz: f80ae7356a3f97911f3afb08ff495144c1661ebe085893324ffa1ae3c877a5b3
4
+ data.tar.gz: '080060eea23b636ea1942f4ab58bf79c20cf0ecb95fec1f1873ae0a265764524'
5
5
  SHA512:
6
- metadata.gz: 530bfb74cc5ff4103a0b8ca594d60b7e0e7e22cc673803cfa56242004b12a30279230d4aeda84068bdc75997fcddaf0227f550e9b705ecd876879d7fe0f660a6
7
- data.tar.gz: 9d58407c472e284ce9a636eb0395977bdb72265cf2234e058fe16b2dc6b1f50cd844e37e9bd0403d0c7aa705045be0caafc7b26e71bb2aaabd854a26954d4132
6
+ metadata.gz: 8d1d8b38ad42895bb95ddbf06f19b979e9df3feb6361d874e3acc7514556261095724c87e91c2260eac0567b2b81393d9e429ce203b2a05e8a171beef2b4cb61
7
+ data.tar.gz: dbad66cb0661583a8eaab412f509aa4a8159d3944a0af610a7b0c3c13319df36a36ceb0c6d1831f15c410ed127c5793f0902a9ed112cccd8d0c49188fd538feb
@@ -36,7 +36,7 @@ module AmexEnhancedAuthorization
36
36
  billing_address: billing_address,
37
37
  billing_postal_code: billing_postal_code,
38
38
  billing_first_name: billing_first_name,
39
- billing_last_name: billing_last_name,
39
+ billing_last_name: ascify(billing_last_name),
40
40
  billing_phone_number: billing_phone_number,
41
41
  shipto_address: shipto_address,
42
42
  shipto_postal_code: shipto_postal_code,
@@ -48,6 +48,12 @@ module AmexEnhancedAuthorization
48
48
  }.compact
49
49
  end
50
50
 
51
+ def ascify(s)
52
+ s && s.tr(
53
+ "ÀÁÂÃÄÅàáâãäåĀāĂ㥹ÇçĆćĈĉĊċČčÐðĎďĐđÈÉÊËèéêëĒēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħÌÍÎÏìíîïĨĩĪīĬĭĮįİıĴĵĶķĸĹĺĻļĽľĿŀŁłÑñŃńŅņŇňʼnŊŋÒÓÔÕÖØòóôõöøŌōŎŏŐőŔŕŖŗŘřŚśŜŝŞşŠšſŢţŤťŦŧÙÚÛÜùúûüŨũŪūŬŭŮůŰűŲųŴŵÝýÿŶŷŸŹźŻżŽž",
54
+ "AAAAAAaaaaaaAaAaAaCcCcCcCcCcDdDdDdEEEEeeeeEeEeEeEeEeGgGgGgGgHhHhIIIIiiiiIiIiIiIiIiJjKkkLlLlLlLlLlNnNnNnNnnNnOOOOOOooooooOoOoOoRrRrRrSsSsSsSssTtTtTtUUUUuuuuUuUuUuUuUuUuWwYyyYyYZzZzZz")
55
+ end
56
+
51
57
  def strftime(timestamp)
52
58
  timestamp.utc.strftime('%Y-%m-%dT%H:%M:%S.%L%:z')
53
59
  end
@@ -1,3 +1,3 @@
1
1
  module AmexEnhancedAuthorization
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amex_enhanced_authorization
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
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-06-14 00:00:00.000000000 Z
11
+ date: 2019-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler