fat_fingers 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/fat_fingers.rb CHANGED
@@ -23,7 +23,7 @@ class String
23
23
  .gsub(/\.og*r*g*$/, ".org") #require the o, to not false-positive .gr e-mails
24
24
  .gsub(/@coma*cas*t.net/,"@comcast.net")
25
25
  .gsub(/@sbcgloba.net/, "@sbcglobal.net")
26
- .gsub(/@gm*i*a*m*l*i*l*a*\./,"@gmail.")
26
+ .gsub(/@g(n|m)*i*a*m*l*i*l*a*\./,"@gmail.")
27
27
  .gsub(/@y*a*h*a*o*\./,"@yahoo.")
28
28
  .gsub(/@h(o|p)*to*m*i*a*l*i*l*a*\./,"@hotmail.")
29
29
  end
@@ -1,5 +1,6 @@
1
1
  require 'minitest/autorun'
2
2
  require 'fat_fingers'
3
+ #require './lib/fat_fingers.rb'
3
4
 
4
5
  class StringTest < MiniTest::Unit::TestCase
5
6
  def setup
@@ -65,6 +66,7 @@ class StringTest < MiniTest::Unit::TestCase
65
66
  "test@gmail.conm",
66
67
  "test@gmail.coom",
67
68
  "test@gmail.c0m",
69
+ "test@gnail.com",
68
70
 
69
71
  "TEST@GMAIL.COM"
70
72
  ]
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.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: