fat_fingers 0.1.30 → 0.1.31

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60cfaacdb23fbf460619cfdbca2e53ecea7f6f63
4
- data.tar.gz: 150869af0208a25841926c311db5cf10e7088708
3
+ metadata.gz: 5e30e60bb255687718c1b10d4648e5daaa481b9c
4
+ data.tar.gz: 3a7afcd520520ab409f4e738e97ea039ec894ff8
5
5
  SHA512:
6
- metadata.gz: 2482be41ea243321ed0ea601610d0fed93f23de65f61648116e0ada22840c3ed1898e16e8847300f0158c9e8309b305c97ee401c26cce4a5a7fd1e4c58c532ce
7
- data.tar.gz: 682e4bd23a21ae87aa314f9265a38a90bf3ca15c186182880c261aa17815ef9874775a2c2f88b28b8df94bfc2d344bd7b11165361a08e8bdef585a9ed870fec6
6
+ metadata.gz: fdb149c7eebbcd888ebc68d2ee5c4df7b69fc1d23213f4d5220b4b9dd3b1dc0618cd07fe061d86c4cabd96461d0fbb226ec6f76fdd370867d4145fe1bee9ebd9
7
+ data.tar.gz: fdfbe2c63919b36e18f7e3e59e549fae7e15e5d36b841a083585fe151d5bd158278bbc5832cd9018dbe258d135e7bd054f3d9951f975caa8ae79a7cceaa6eda2
data/lib/fat_fingers.rb CHANGED
@@ -84,7 +84,7 @@ protected
84
84
  end
85
85
 
86
86
  def clean_up_gmail
87
- gsub(/@g[nm]{0,2}s?[ail]{1,2}[aiklmou]{0,3}\.(?!gov)/,"@gmail.") # match a broad variety of mispellings of gmail, but not if it's .gov
87
+ gsub(/@g[nm]{0,2}s?[ail]{1,2}[aiklmou]{0,3}\.(?!gov)(?!edu)/,"@gmail.") # match a broad variety of mispellings of gmail, but not if it's .gov or .edu
88
88
  end
89
89
 
90
90
  def clean_up_hotmail
@@ -261,6 +261,10 @@ class StringTest < MiniTest::Unit::TestCase
261
261
  "test.com@gmail.com",
262
262
  "test.comisky@gmail.com",
263
263
  "test+spamfilter@gmail.com",
264
+ "test@gmx.com",
265
+ "test@gao.gov",
266
+ "test@gial.edu",
267
+ "test@googlemail.com",
264
268
  "test@something.cn",
265
269
  "test@something.com.co",
266
270
  "test@something.co",
@@ -269,9 +273,6 @@ class StringTest < MiniTest::Unit::TestCase
269
273
  "test@aol.com",
270
274
  "test@att.net",
271
275
  "test@facebook.com",
272
- "test@gmx.com",
273
- "test@gao.gov",
274
- "test@googlemail.com",
275
276
  "test@hotmail.co.uk",
276
277
  "test@live.com",
277
278
  "test@mac.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.30
4
+ version: 0.1.31
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: 2018-01-16 00:00:00.000000000 Z
12
+ date: 2018-06-27 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',