valid_email2 3.1.1 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/valid_email2/address.rb +1 -1
- data/lib/valid_email2/version.rb +1 -1
- data/spec/valid_email2_spec.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81f002d3f49ad0c6c47542c4551e19d4f3c4eee5e7ac8a880843c72afca63580
|
4
|
+
data.tar.gz: 83048195af9517187e998511ef33ba58813802110557305e5b0e195f5085833b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1404b591d8639273063daeeaecdd8c53012d58c18e33286418f651372f8dd06513560ce2e0c2aac55db53ac081a8b11b9cb450520a66cf7b4506d86bce5f4b0
|
7
|
+
data.tar.gz: 6c739f6f71eacb00db48cf0ed72ae6dbd564275e54943a5bb88f10d64878d96cf32600f60ff6ee4dd525e7e47968e0809306f9d88fc13aef1d2af5a91a2bc6cf
|
data/CHANGELOG.md
CHANGED
data/lib/valid_email2/address.rb
CHANGED
data/lib/valid_email2/version.rb
CHANGED
data/spec/valid_email2_spec.rb
CHANGED
@@ -84,6 +84,11 @@ describe ValidEmail2 do
|
|
84
84
|
expect(user.valid?).to be_falsy
|
85
85
|
end
|
86
86
|
|
87
|
+
it "is invalid if the domain contains spaces" do
|
88
|
+
user = TestUser.new(email: "user@gmail .com")
|
89
|
+
expect(user.valid?).to be_falsy
|
90
|
+
end
|
91
|
+
|
87
92
|
it "is invalid if the domain begins with a dash" do
|
88
93
|
user = TestUser.new(email: "foo@-gmail.com")
|
89
94
|
expect(user.valid?).to be_falsy
|