fat_fingers 0.1.24 → 0.1.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/fat_fingers.rb +5 -0
- data/test/test_fat_fingers.rb +3 -1
- metadata +7 -9
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e922507178b036835d71bd7d4c0d680c1d52f4d8
|
4
|
+
data.tar.gz: 3714a5a6462e4a02146633d7a929d8f1fa90cb24
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e4496124e2e942b80b98d2a6364b98b21723d6c85950148bd67b52216ab7fe70a9670ffa3ad682f687c61c10ed00f506610ab868aa127ae5c5b128ffe5c50943
|
7
|
+
data.tar.gz: bc88b36848aaf18645cd916e5d42889d57c9ab8dcd93407774d0f2239306da390985f54a15016b6c04d128963600cc8d56d6326e3f5752284a78ef2719b6072b
|
data/lib/fat_fingers.rb
CHANGED
@@ -25,6 +25,7 @@ class String
|
|
25
25
|
clean_up_googlemail.
|
26
26
|
clean_up_hotmail.
|
27
27
|
clean_up_yahoo.
|
28
|
+
clean_up_aol.
|
28
29
|
clean_up_other_providers.
|
29
30
|
clean_up_known_coms.
|
30
31
|
add_a_period_if_they_forgot_it
|
@@ -88,6 +89,10 @@ protected
|
|
88
89
|
gsub(/@y*a*h*a*o*\./,"@yahoo.")
|
89
90
|
end
|
90
91
|
|
92
|
+
def clean_up_aol
|
93
|
+
gsub(/@ol\./,"@aol.")
|
94
|
+
end
|
95
|
+
|
91
96
|
def clean_up_other_providers
|
92
97
|
gsub(/@co*ma*cas*t\.net/,"@comcast.net").
|
93
98
|
gsub(/@sbcglob(a|l)\.net/, "@sbcglobal.net").
|
data/test/test_fat_fingers.rb
CHANGED
@@ -96,7 +96,8 @@ class StringTest < MiniTest::Unit::TestCase
|
|
96
96
|
@bad_aol = [
|
97
97
|
"test@aol.co",
|
98
98
|
"test@aol.co",
|
99
|
-
"test@aol.cm"
|
99
|
+
"test@aol.cm",
|
100
|
+
"test@ol.com"
|
100
101
|
]
|
101
102
|
|
102
103
|
@good_com = "test@something.com"
|
@@ -117,6 +118,7 @@ class StringTest < MiniTest::Unit::TestCase
|
|
117
118
|
"test@something.coim",
|
118
119
|
"test@something.cok",
|
119
120
|
"test@something.colm",
|
121
|
+
"test@something.clom",
|
120
122
|
"test@something.comj",
|
121
123
|
"test@something.comn",
|
122
124
|
"test@something.con",
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fat_fingers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.26
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Charlie Park
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2014-
|
11
|
+
date: 2014-08-20 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
13
|
description: Makes sure users don't accidentally create an account for the wrong e-mail
|
15
14
|
address. Because 'gmial' isn't actually what they meant to type. Similarly, 'yaho.com',
|
@@ -26,27 +25,26 @@ files:
|
|
26
25
|
homepage: http://github.com/charliepark/fat_fingers
|
27
26
|
licenses:
|
28
27
|
- MIT
|
28
|
+
metadata: {}
|
29
29
|
post_install_message:
|
30
30
|
rdoc_options: []
|
31
31
|
require_paths:
|
32
32
|
- lib
|
33
33
|
required_ruby_version: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
34
|
requirements:
|
36
|
-
- -
|
35
|
+
- - ">="
|
37
36
|
- !ruby/object:Gem::Version
|
38
37
|
version: 1.8.7
|
39
38
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
40
|
-
none: false
|
41
39
|
requirements:
|
42
|
-
- -
|
40
|
+
- - ">="
|
43
41
|
- !ruby/object:Gem::Version
|
44
42
|
version: '0'
|
45
43
|
requirements: []
|
46
44
|
rubyforge_project:
|
47
|
-
rubygems_version:
|
45
|
+
rubygems_version: 2.2.2
|
48
46
|
signing_key:
|
49
|
-
specification_version:
|
47
|
+
specification_version: 4
|
50
48
|
summary: Clean up e-mail strings when the user's made a typo (like 'gmail.cmo').
|
51
49
|
test_files:
|
52
50
|
- test/test_fat_fingers.rb
|