valid_email2 3.3.1 → 3.4.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
  SHA256:
3
- metadata.gz: fe834d489ba46cf4a8262cb077bf2f88b0fd866b604bf1ae628d877bbfdbb57b
4
- data.tar.gz: af8e27efffae003ed85189ae10d1f9b6e30817e8529deb4064811156a332208e
3
+ metadata.gz: 71c14200d42afbdf47d3222f443c72f81dd23af157f32baebbcc607d2ef09959
4
+ data.tar.gz: 67e841c534a03d363b118bc50026dcc54ee1550478a98d92e885d53c40905ffe
5
5
  SHA512:
6
- metadata.gz: 300c5f449125f0d6bd1abfd224aa88c65caa0377fe2b2a56ec6bc695bb3c0e9bac4ea03f2c091509c19f5cb8614137578ec8fc52a844cfd0765f9da7d5707615
7
- data.tar.gz: ce9dfe893b11555a195f4777e3146f0065c3d49c26b289e874d01cb40da0f02f575f5a3efd8430e57bffdd2aaf52a36f05056986b789b3bd982b14d889bea0e2
6
+ metadata.gz: 27e0b370d3fc4fa2fb1530e931c9f06156c88045f9b55a4b9e038d521460b34ac4dc8b81f6194ea649477cb4169774cfe3b7a9ad15e06447f472b0742700433e
7
+ data.tar.gz: d160ab3de4196dc830e26aedab650c9839520b9aadccb9e6153305eb42ad796929cab5a209aef3ce869e1a801171b7de45fdc23d3e5ac6004436ad7e31a2a6ef
@@ -1,3 +1,7 @@
1
+ ## Version 3.4.0
2
+ * Disallow consecutive dots https://github.com/micke/valid_email2/pull/163
3
+ * Add andyes.net https://github.com/micke/valid_email2/pull/162
4
+
1
5
  ## Version 3.3.1
2
6
  * Fix some performance regressions (https://github.com/micke/valid_email2/pull/150)
3
7
 
@@ -3398,6 +3398,7 @@ androidsapps.co
3398
3398
  androidworld.tw
3399
3399
  andthen.us
3400
3400
  andy1mail.host
3401
+ andyes.net
3401
3402
  andynugraha.net
3402
3403
  andyyxc45.biz
3403
3404
  aneaproducciones.com
@@ -45,6 +45,7 @@ module ValidEmail2
45
45
  !domain.start_with?('.') &&
46
46
  !domain.start_with?('-') &&
47
47
  !domain.include?('-.') &&
48
+ !address.local.include?('..') &&
48
49
  !address.local.end_with?('.')
49
50
  else
50
51
  false
@@ -1,3 +1,3 @@
1
1
  module ValidEmail2
2
- VERSION = "3.3.1"
2
+ VERSION = "3.4.0"
3
3
  end
@@ -87,6 +87,11 @@ describe ValidEmail2 do
87
87
  expect(user.valid?).to be_falsey
88
88
  end
89
89
 
90
+ it "is invalid if the address contains consecutive dots" do
91
+ user = TestUser.new(email: "foo..bar@gmail.com")
92
+ expect(user.valid?).to be_falsey
93
+ end
94
+
90
95
  it "is invalid if the email contains emoticons" do
91
96
  user = TestUser.new(email: "foo🙈@gmail.com")
92
97
  expect(user.valid?).to be_falsy
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: 3.3.1
4
+ version: 3.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micke Lisinge
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-10 00:00:00.000000000 Z
11
+ date: 2020-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler