valid_email2 1.1.4 → 1.1.5

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: 2772f4cfe0c3e922accc746bf56da1f8ba008314
4
- data.tar.gz: df93619f6437a6501e6d113a5a9b0a2de4cf9f59
3
+ metadata.gz: 89124fcb3dcff8c5eb8833cfa0f4bc7e52777974
4
+ data.tar.gz: 4d11dd11352a95f1965d838567081839531b5859
5
5
  SHA512:
6
- metadata.gz: 2872c88ff3eee9e3efc756281f20d2a0336ad5f864738e682f4dcbca61b5ee445be18cb4ea54fc4e30f79f40d5b50e8dc97cb5d92531773e88b277c191f29814
7
- data.tar.gz: 7de35bc5ff08c0df5fd099f960df1456e150a2849d06b8cb69161879f6fa2ad4605d3a5c9cd03da8aec9b0663671959ca4c6a35039da7f046b4fff8527588a80
6
+ metadata.gz: cbc8d2a1282dc1603bb086af4707500d8cb71e2f231d25a0bca4218762f8a9212ebe78ef8318ceb09b0ea75faed07a5b584dd6ee34cd868111688a2ce6f4bae5
7
+ data.tar.gz: 7ba94266099a2e3a453251d89d74b8d04f47f329d5d54b16787e06030edab5323a04da8769e32534fc9cf641e6791b928dd5da824bbd48b4d5e1597e3aa848be
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## Version 1.1.5
2
+ Be more lenient on the mail gem version dependency to allow people to use v2.6.
3
+ Added more disposable email domains (https://github.com/lisinge/valid_email2/pull/14 and https://github.com/lisinge/valid_email2/pull/15)
4
+
1
5
  ## Version 1.1.4
2
6
  Added more disposable email domains (https://github.com/lisinge/valid_email2/commit/aedb51fadd5a05461d7f5ef7ea6942d7769f0c58)
3
7
 
@@ -21,10 +21,8 @@ module ValidEmail2
21
21
  return false if @parse_error
22
22
 
23
23
  if address.domain && address.address == @raw_address
24
- tree = address.send(:tree)
25
-
26
24
  # Valid address needs to have a dot in the domain
27
- tree.domain.dot_atom_text.elements.size > 1
25
+ !!address.domain.match(/\./)
28
26
  else
29
27
  false
30
28
  end
@@ -1,3 +1,3 @@
1
1
  module ValidEmail2
2
- VERSION = "1.1.4"
2
+ VERSION = "1.1.5"
3
3
  end
data/valid_email2.gemspec CHANGED
@@ -23,6 +23,6 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency "bundler", "~> 1.3"
24
24
  spec.add_development_dependency "rake"
25
25
  spec.add_development_dependency "rspec", "~> 2.14.1"
26
- spec.add_runtime_dependency "mail", "~> 2.5.4"
26
+ spec.add_runtime_dependency "mail", "~> 2.5"
27
27
  spec.add_runtime_dependency "activemodel", ">= 3.2"
28
28
  end
@@ -217,6 +217,7 @@
217
217
  - keepmymail.com
218
218
  - killmail.com
219
219
  - killmail.net
220
+ - kiois.com
220
221
  - kir.ch.tc
221
222
  - klassmaster.com
222
223
  - klassmaster.net
@@ -273,6 +274,7 @@
273
274
  - mailzilla.com
274
275
  - mailzilla.org
275
276
  - mbx.cc
277
+ - mciek.com
276
278
  - mega.zik.dj
277
279
  - meinspamschutz.de
278
280
  - meltmail.com
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: valid_email2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micke Lisinge
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-08 00:00:00.000000000 Z
11
+ date: 2015-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 2.5.4
61
+ version: '2.5'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 2.5.4
68
+ version: '2.5'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: activemodel
71
71
  requirement: !ruby/object:Gem::Requirement