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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f80ae7356a3f97911f3afb08ff495144c1661ebe085893324ffa1ae3c877a5b3
|
4
|
+
data.tar.gz: '080060eea23b636ea1942f4ab58bf79c20cf0ecb95fec1f1873ae0a265764524'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2019-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|