fat_fingers 0.1.29 → 0.1.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fat_fingers.rb +4 -4
- data/test/test_fat_fingers.rb +2 -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: 60cfaacdb23fbf460619cfdbca2e53ecea7f6f63
|
4
|
+
data.tar.gz: 150869af0208a25841926c311db5cf10e7088708
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2482be41ea243321ed0ea601610d0fed93f23de65f61648116e0ada22840c3ed1898e16e8847300f0158c9e8309b305c97ee401c26cce4a5a7fd1e4c58c532ce
|
7
|
+
data.tar.gz: 682e4bd23a21ae87aa314f9265a38a90bf3ca15c186182880c261aa17815ef9874775a2c2f88b28b8df94bfc2d344bd7b11165361a08e8bdef585a9ed870fec6
|
data/lib/fat_fingers.rb
CHANGED
@@ -33,11 +33,11 @@ class String
|
|
33
33
|
end
|
34
34
|
|
35
35
|
protected
|
36
|
-
|
36
|
+
|
37
37
|
def remove_mailto
|
38
38
|
gsub(/\Amailto:/, "")
|
39
39
|
end
|
40
|
-
|
40
|
+
|
41
41
|
def remove_invalid_characters
|
42
42
|
gsub(/(\s|\#|\'|\"|\\)*/, "").
|
43
43
|
gsub(/(\,|\.\.)/, ".").
|
@@ -67,8 +67,8 @@ protected
|
|
67
67
|
end
|
68
68
|
|
69
69
|
def clean_up_funky_coms
|
70
|
-
gsub(/\.c*(c|ci|coi|l|m|n|o|op|cp|0|9)*m+o*$/,".com").
|
71
|
-
gsub(/\.(c|v|x)o+(m|n)$/,".com")
|
70
|
+
gsub(/\.c*(c|ck|ci|coi|l|m|n|o|op|cp|0|9)*m+o*$/,".com").
|
71
|
+
gsub(/\.(c|f|v|x)o+(m|n)$/,".com")
|
72
72
|
end
|
73
73
|
|
74
74
|
def clean_up_funky_nets
|
data/test/test_fat_fingers.rb
CHANGED
@@ -192,9 +192,11 @@ class StringTest < MiniTest::Unit::TestCase
|
|
192
192
|
"test@something.coom",
|
193
193
|
"test@something.copm",
|
194
194
|
"test@something.cpm",
|
195
|
+
"test@something.ckm",
|
195
196
|
"test@something.ocm",
|
196
197
|
"test@something.vom",
|
197
198
|
"test@something.xom",
|
199
|
+
"test@something.fom",
|
198
200
|
"test@something.con.com",
|
199
201
|
"test@something.com.com",
|
200
202
|
"test@something.com'",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fat_fingers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.30
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charlie Park
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-01-16 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Makes sure users don't accidentally create an account for the wrong e-mail
|
15
15
|
address. Because 'gmial' isn't actually what they meant to type. Similarly, 'yaho.com',
|