email_assessor 0.4.1 → 0.4.2

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: b63422ec99516f62c74828fb9d3c668c61f8a83c
4
- data.tar.gz: 17591dd48eadba786d774b4fc84b5cd53a47c98b
3
+ metadata.gz: 13f90dfaba73ab5e5e1e821d0d8be00b83956276
4
+ data.tar.gz: 9ac2c5a694df30627016cc0e060d31b33ead7ece
5
5
  SHA512:
6
- metadata.gz: e67870d0ffcc553ab906c9201dca49aa0d770139ea4623fe6521e7a5ad7e3e0b0b610e6a89afa69261d9ae40bde3659280d0414e45adf29cd0f94bb13fedde7b
7
- data.tar.gz: 11a74b6d657c07e22f4a4d621d9e165d5dca4cec5a1e1d3350647d87ac6f6ead592ad1f78a1579dab1796a389cff523d35895c92108d1894144da5ee14cfb0d0
6
+ metadata.gz: 07c7f26cfd4381070700be1ea883faf566c9742d09939a422ddfb682c2044505ac78752e212acaf2a6ca064cac1f7168b3f03fa677c59239b4a723878ccda4df
7
+ data.tar.gz: 125337e4f65e3ff315b8219379d1778bb25edc611092e2fef204f92913c4b9f05ebad79daecd1b5c4425d19f030ba6b98ba0ffca4bf3b7c466356c22e45eb3bc
@@ -18,6 +18,6 @@ module EmailAssessor
18
18
  file_name ||= ""
19
19
  domain = domain.downcase
20
20
 
21
- File.foreach(file_name).any? { |line| domain.end_with?(line.chomp) }
21
+ File.foreach(file_name).any? { |line| domain.match?(%r{\A(?:.+\.)*?#{line.chomp}\z}i) }
22
22
  end
23
23
  end
@@ -1,3 +1,3 @@
1
1
  module EmailAssessor
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
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.1
4
+ version: 0.4.2
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: 2017-04-15 00:00:00.000000000 Z
11
+ date: 2017-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler