valid_email2 3.2.1 → 3.2.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
  SHA256:
3
- metadata.gz: f3e4a4d583c6ad8a5e3758c5dcb287616283dec67992ee006168697b80b092d8
4
- data.tar.gz: 14a322e79fbe29504b89a25f5cab6667ed61e82379f35f440ea1c6f93c36dd66
3
+ metadata.gz: 72dbf447c5b40cb7e347efa6a7e7e44bcde6b81cef1b1fbb9ba4703adff15e6b
4
+ data.tar.gz: 36b83448929482e263e09dfd579e1359f6c3066fd418c26437c14274f736d072
5
5
  SHA512:
6
- metadata.gz: 58de91a219767f5f27a5d8edd7d9eaa6a8cf65c614f00ea687acbf383b45d98158f5208f7dcd46f4d4a5ff7295ae28700dfa10c922707c50d8f460ea2257f53e
7
- data.tar.gz: 9069d8f4b4f002e4464433daa648457400ff90c844bec3613305920d87964bdcb4124af4a5cb36b68d0bdfeb53937f9ffb990370a788e8848f7065fc149c136d
6
+ metadata.gz: 7ce45d7dd425b621280b5977378a6b7b3001b2e7e909b92b2b261094bdd4529a628820df5440969d8f8dde839a581e7c478069b5cb2b1a24a440256f174c3f5c
7
+ data.tar.gz: 668831fbb29286e4a3f9d4e3adda30312a34c0f90ce366e4574dbb506cd4d5ba794d6cfe59533e467f7f7f95325a60e6cbb52337cf55c620b378fa83e6c22a8d
@@ -1,3 +1,6 @@
1
+ ## Version 3.2.2
2
+ * Disallow quote (') in domain
3
+
1
4
  ## Version 3.2.1
2
5
  * Fix loading of blacklisted domains
3
6
 
@@ -6,7 +6,7 @@ module ValidEmail2
6
6
  class Address
7
7
  attr_accessor :address
8
8
 
9
- PROHIBITED_DOMAIN_CHARACTERS_REGEX = /[+!_\/\s]/
9
+ PROHIBITED_DOMAIN_CHARACTERS_REGEX = /[+!_\/\s']/
10
10
  DEFAULT_RECIPIENT_DELIMITER = '+'.freeze
11
11
  DOT_DELIMITER = '.'.freeze
12
12
 
@@ -1,3 +1,3 @@
1
1
  module ValidEmail2
2
- VERSION = "3.2.1"
2
+ VERSION = "3.2.2"
3
3
  end
@@ -59,8 +59,8 @@ describe ValidEmail2 do
59
59
  expect(user.valid?).to be_falsey
60
60
  end
61
61
 
62
- it "is invalid if email contains invalid characters" do
63
- %w[+ _ !].each do |invalid_character|
62
+ %w[+ _ ! / \ '].each do |invalid_character|
63
+ it "is invalid if email contains a \"#{invalid_character}\" character" do
64
64
  user = TestUser.new(email: "foo@google#{invalid_character}yahoo.com")
65
65
  expect(user.valid?).to be_falsey
66
66
  end
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.2.1
4
+ version: 3.2.2
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-03-26 00:00:00.000000000 Z
11
+ date: 2020-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler