email_assessor 0.4.13 → 0.5.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e89762778af30f339adc30aaf6cec13e2d31ab19
4
- data.tar.gz: c955f0aa4424bb6b83070baa7aea8e3f92eee78b
3
+ metadata.gz: e02834b0d1c2e7a47930a849efaf5df1deaaf2c5
4
+ data.tar.gz: 9ba39558dcd04c6de8982415c517bbb2574342ff
5
5
  SHA512:
6
- metadata.gz: 0e0671fd2e0aa2d3c8abacc0e11a949a71e9107445a0fa77e5377e3cbd6638217351e09eccb79d0abce202fc700bb38484b617c222d4f2e79633a93cf1979d13
7
- data.tar.gz: b25571d50af7636c25670c1758d932c52db506759c2624c5c4e3ce917dc4db20aba60cec4005f2b1957b043d9a0fc6ed363b0c4de71548533ae5d4ef0cdbb090
6
+ metadata.gz: 89e693656ae57f3bbe73b23013140ad871807a8280fe7bdccf9d7c20ce8bca8f7c3f1ddba8eb57cfec4aeb57f37c9a97eb14adce0d10392718ebe547998fd1d9
7
+ data.tar.gz: 2ec88bad93a042f81550a7885431b6cc238b21a107767ef3978812d7224df36c273bea1b21f53de0051f43e9db2ef611a9e570e153da695ce4e284808072bed8
@@ -19,8 +19,12 @@ module EmailAssessor
19
19
  file_name ||= ""
20
20
  domain = domain.downcase
21
21
 
22
- # Using String#end_with? here would lead to unexpected quirks and false positives.
23
- # For instance, hotmail.com is valid but tmail.com is not.
24
- File.foreach(file_name).any? { |line| domain.match?(%r{\A(?:.+\.)*?#{line.chomp}\z}i) }
22
+ File.foreach(file_name).any? do |line|
23
+ line = line.chomp
24
+
25
+ # String#end_with? is used as a cheaper initial check but due to potential false positives
26
+ # (hotmail.com is valid but tmail.com is not) regex is also necessary.
27
+ domain.end_with?(line) && domain.match?(%r{\A(?:.*\.)?#{line}\z}i)
28
+ end
25
29
  end
26
30
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module EmailAssessor
3
- VERSION = "0.4.13"
3
+ VERSION = "0.5.0"
4
4
  end
@@ -101,6 +101,7 @@
101
101
  2120001.net
102
102
  21cn.com
103
103
  21lr12.cf
104
+ 22office.com
104
105
  2323bryanstreet.com
105
106
  24hourmail.com
106
107
  2and2mail.tk
@@ -115,6 +116,7 @@
115
116
  30minutemail.com
116
117
  30wave.com
117
118
  3202.com
119
+ 321-email.com
118
120
  33m.co
119
121
  33mail.com
120
122
  3675.mooo.com
@@ -131,6 +133,7 @@
131
133
  4gfdsgfdgfd.tk
132
134
  4mail.cf
133
135
  4mail.ga
136
+ 4senditnow.com
134
137
  4struga.com
135
138
  4tb.host
136
139
  4w.io
@@ -341,6 +344,7 @@ akorde.al
341
344
  al-qaeda.us
342
345
  albionwe.us
343
346
  alchemywe.us
347
+ alexbox.online
344
348
  alexbrowne.info
345
349
  alfamailr.org
346
350
  alfaomega24.ru
@@ -706,6 +710,7 @@ bpornd.com
706
710
  bqm2dyl.com
707
711
  br.mintemail.com
708
712
  brandallday.net
713
+ braun4email.com
709
714
  breadtimes.press
710
715
  breakthru.com
711
716
  brefmail.com
@@ -1910,6 +1915,7 @@ heros3.com
1910
1915
  herp.in
1911
1916
  herpderp.nl
1912
1917
  hewke.xyz
1918
+ heximail.com
1913
1919
  hezemail.ga
1914
1920
  hezll.com
1915
1921
  hg8n415.com
@@ -2936,6 +2942,7 @@ newsmag.us
2936
2942
  newsusfun.com
2937
2943
  newyorkskyride.net
2938
2944
  next.ovh
2945
+ next2cloud.info
2939
2946
  nextstopvalhalla.com
2940
2947
  nezdiro.org
2941
2948
  nezzart.com
@@ -3066,6 +3073,7 @@ omzae.com
3066
3073
  one-time.email
3067
3074
  one2mail.info
3068
3075
  onebiginbox.com
3076
+ onecitymail.com
3069
3077
  onelegalplan.com
3070
3078
  oneoffemail.com
3071
3079
  oneoffmail.com
@@ -4261,6 +4269,8 @@ ushijima1129.tk
4261
4269
  usiaj.com
4262
4270
  utiket.us
4263
4271
  utilities-online.info
4272
+ utoo.email
4273
+ utooemail.com
4264
4274
  uu.gl
4265
4275
  uu2.ovh
4266
4276
  uvy.kr
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: email_assessor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.13
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Wolfe Millard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-09 00:00:00.000000000 Z
11
+ date: 2019-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler