fat_fingers 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/fat_fingers.rb CHANGED
@@ -41,6 +41,7 @@ protected
41
41
  end
42
42
 
43
43
  def fix_coms_with_appended_letters
44
+ gsub(/\.couk$/, ".co.uk").
44
45
  gsub(/\.com(.)*$/, ".com").
45
46
  gsub(/\.co[^op]$/, ".com")
46
47
  end
@@ -31,6 +31,7 @@ class StringTest < MiniTest::Unit::TestCase
31
31
  "test@gmaill.co.uk",
32
32
  "test@gamil.co.uk",
33
33
  "test@gnail.co.uk",
34
+ "test@gmail.couk"
34
35
  ]
35
36
 
36
37
  @good_yahoo = "test@yahoo.com"
@@ -74,6 +75,7 @@ class StringTest < MiniTest::Unit::TestCase
74
75
  "test@something.copm",
75
76
  "test@something.xom",
76
77
  "test@something.vom",
78
+ "test@something.cok",
77
79
  "test@something.comn",
78
80
  "test@something.comj",
79
81
  "test@something.coim",
@@ -88,6 +90,7 @@ class StringTest < MiniTest::Unit::TestCase
88
90
  "test@something.com\"",
89
91
  "test@something.com\\",
90
92
  "test@something.com,",
93
+ "test@something.co,",
91
94
  "test@something.com.",
92
95
  "test@something,com",
93
96
  "test@\#something.com",
@@ -98,6 +101,7 @@ class StringTest < MiniTest::Unit::TestCase
98
101
  "test@somethingcom",
99
102
 
100
103
  "te st@something.com",
104
+ " test@something.com",
101
105
  "TEST@SOMETHING.COM"
102
106
  ]
103
107
 
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.8
4
+ version: 0.1.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: