credit_card_sanitizer 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/credit_card_sanitizer.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a78eb4b9bd51d648be7cdba8808e4f75f394bfd
|
4
|
+
data.tar.gz: 96ae7f4310a4c128e9949c4fac1855bca685cd61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1df0d6ac8ddd3eab00def435e4b44db0816d3b20ac7d7bab51c3e931d7534c3a7c69704f15a6dbf546b41ee2243e0411ceedb875e12cceb64293c5c466289885
|
7
|
+
data.tar.gz: 4811dcc2cc3b426a659afd1f4bcf088724416a107fab9aea145e40f5531163f13da8e95ad5d2b5bde319fd148fdaf1166d69f264c6abba7697b71e7fec1b7294
|
@@ -60,6 +60,7 @@ class CreditCardSanitizer
|
|
60
60
|
# Returns a String of the redacted text if a credit card number was detected.
|
61
61
|
# Returns nil if no credit card numbers were detected.
|
62
62
|
def sanitize!(text)
|
63
|
+
text.force_encoding(Encoding::UTF_8)
|
63
64
|
text.scrub!('�')
|
64
65
|
|
65
66
|
redacted = nil
|
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.3.
|
4
|
+
version: 0.3.7
|
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: 2015-11-
|
13
|
+
date: 2015-11-10 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: appraisal
|