credit_card_sanitizer 0.6.7 → 0.6.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/credit_card_sanitizer.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ccb82cfd1273fff26cd228625a4da739431801e421c30abea2ce1af9513c6e39
|
4
|
+
data.tar.gz: ebcf474ba677378ae541bb37b7fd8ec0701a13e414d3c091f1fbf7a63362694e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37a3a7aec54549386a8919dfbdc8046a5f693b66916e9d2597e28eb367c3eac334be9d38077e83e0e7d2fae0fcc69aae4835adf78e51e68afc995d1e0cc7b236
|
7
|
+
data.tar.gz: '0694575b1e7f58429fa8a605b495783708dd11e0469d1ce19b515608dfecec08ba6028b68f6717e56086e2dc945bdaa8c1112ba2892a62825c2ffd0e6ac25d70'
|
@@ -204,7 +204,7 @@ class CreditCardSanitizer
|
|
204
204
|
def without_expiration(text)
|
205
205
|
expiration_date_boundary = SecureRandom.hex.tr('0123456789', 'ABCDEFGHIJ')
|
206
206
|
text.gsub!(EXPIRATION_DATE) do |expiration_date|
|
207
|
-
match = expiration_date.match(/(?<whitespace>\s*)(?<rest>.*)/)
|
207
|
+
match = expiration_date.match(/(?<whitespace>\s*)(?<rest>.*)/m)
|
208
208
|
"#{match[:whitespace]}#{expiration_date_boundary}#{match[:rest]}#{expiration_date_boundary}"
|
209
209
|
end
|
210
210
|
yield
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: credit_card_sanitizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Chapweske
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-
|
13
|
+
date: 2018-03-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: luhn_checksum
|
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
68
|
version: '0'
|
69
69
|
requirements: []
|
70
70
|
rubyforge_project:
|
71
|
-
rubygems_version: 2.6
|
71
|
+
rubygems_version: 2.7.6
|
72
72
|
signing_key:
|
73
73
|
specification_version: 4
|
74
74
|
summary: Credit card sanitizer
|