validates_email_format_of 1.7.0 → 1.7.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b11027884cda429ba190024f4564c69f88bfdf8dc24ac471fb3ed805050b8f9
|
4
|
+
data.tar.gz: c7a676365614b908a6206fcabfb2f9eda65c5995eae2e4f15fdbe18f4e182aa8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b21600741d0f3e46ed27548db8ab52165e5ee7a284633be31ea1eb127e4156f418f93c6ceea29fe8b9ec305bf52fe4d74166a0de24f1c12b1d0eb0b88e472c8
|
7
|
+
data.tar.gz: c867bb8f4e29b7f3ea21c343a2a5668c68f8bf0c02fafdea979c5fcd9a2588cabe84c29cf3c62c5ebd426ad55625897a7a0b156067021d69ae9ae2f2bf8ce63c
|
data/CHANGELOG
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
== 1.7.1 (3 Aug 2022)
|
2
|
+
|
3
|
+
* Fix invalid symbols being allowed in the local part - https://github.com/validates-email-format-of/validates_email_format_of/issues/86
|
4
|
+
* Fix rspec_matcher when using a custom error message - https://github.com/validates-email-format-of/validates_email_format_of/pull/85 - thanks https://github.com/luuqnhu !
|
5
|
+
|
1
6
|
== 1.7.0 (29 July 2022)
|
2
7
|
|
3
8
|
* Use Standard.rb for internal code formatting - https://github.com/validates-email-format-of/validates_email_format_of/commit/db1b0a86af58e478b7f9f2f269bf93bf48dc13c1
|
data/README.rdoc
CHANGED
@@ -85,7 +85,7 @@ Yes, our Rspec syntax is that simple!
|
|
85
85
|
|
86
86
|
== Credits
|
87
87
|
|
88
|
-
Written by Alex Dunae (dunae.ca), 2006-
|
88
|
+
Written by Alex Dunae (dunae.ca), 2006-22.
|
89
89
|
|
90
90
|
Many thanks to the plugin's recent contributors: https://github.com/alexdunae/validates_email_format_of/contributors
|
91
91
|
|
@@ -6,7 +6,7 @@ RSpec::Matchers.define :validate_email_format_of do |attribute|
|
|
6
6
|
actual.send(:"#{attribute}=", "invalid@example.")
|
7
7
|
expect(actual).to be_invalid
|
8
8
|
@expected_message ||= ValidatesEmailFormatOf.default_message
|
9
|
-
expect(actual.errors.added?(attribute,
|
9
|
+
expect(actual.errors.added?(attribute, @expected_message)).to be_truthy
|
10
10
|
end
|
11
11
|
chain :with_message do |message|
|
12
12
|
@expected_message = message
|
@@ -8,10 +8,8 @@ module ValidatesEmailFormatOf
|
|
8
8
|
|
9
9
|
require "resolv"
|
10
10
|
|
11
|
-
ATEXT_SYMBOLS = /[!\#$%&'*\-\/=?+\^_`{|}~]/
|
12
|
-
|
13
11
|
# Characters that are allowed in to appear in the local part unquoted
|
14
|
-
# https://www.rfc-editor.org/rfc/rfc5322#section-3.
|
12
|
+
# https://www.rfc-editor.org/rfc/rfc5322#section-3.2.3
|
15
13
|
#
|
16
14
|
# An addr-spec is a specific Internet identifier that contains a
|
17
15
|
# locally interpreted string followed by the at-sign character ("@",
|
@@ -23,9 +21,13 @@ module ValidatesEmailFormatOf
|
|
23
21
|
# string form SHOULD NOT be used. Comments and folding white space
|
24
22
|
# SHOULD NOT be used around the "@" in the addr-spec.
|
25
23
|
#
|
24
|
+
# atext = ALPHA / DIGIT /
|
25
|
+
# "!" / "#" / "$" / "%" / "&" / "'" / "*" /
|
26
|
+
# "+" / "-" / "/" / "=" / "?" / "^" / "_" /
|
27
|
+
# "`" / "{" / "|" / "}" / "~"
|
26
28
|
# dot-atom-text = 1*atext *("." 1*atext)
|
27
29
|
# dot-atom = [CFWS] dot-atom-text [CFWS]
|
28
|
-
ATEXT = /\A[A-Z0-9
|
30
|
+
ATEXT = /\A[A-Z0-9!\#$%&'*\-\/=?+\^_`{|}~]\z/i
|
29
31
|
|
30
32
|
# Characters that are allowed to appear unquoted in comments
|
31
33
|
# https://www.rfc-editor.org/rfc/rfc5322#section-3.2.2
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: validates_email_format_of
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Dunae
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-08-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: i18n
|