validates_email_format_of 1.7.1 → 1.7.2

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: 2b11027884cda429ba190024f4564c69f88bfdf8dc24ac471fb3ed805050b8f9
4
- data.tar.gz: c7a676365614b908a6206fcabfb2f9eda65c5995eae2e4f15fdbe18f4e182aa8
3
+ metadata.gz: 6220bc1f3cb06d9af63e0bcf8ccfcc6e1dc795a59a5c08cd817ac921a057585b
4
+ data.tar.gz: 6c0f414549308510ad6434c71b3a1d0cabd88c4fc18cb3a3fb02135b862f3f5b
5
5
  SHA512:
6
- metadata.gz: 9b21600741d0f3e46ed27548db8ab52165e5ee7a284633be31ea1eb127e4156f418f93c6ceea29fe8b9ec305bf52fe4d74166a0de24f1c12b1d0eb0b88e472c8
7
- data.tar.gz: c867bb8f4e29b7f3ea21c343a2a5668c68f8bf0c02fafdea979c5fcd9a2588cabe84c29cf3c62c5ebd426ad55625897a7a0b156067021d69ae9ae2f2bf8ce63c
6
+ metadata.gz: 91e1f3eb18440c304f144d81b346134d9c6d7bc747e43fe464edeebb9e3a02e972e7fa4b4283d7b9eed6e4556f37a578d11bb4a9bb0328e93f5f2f2658625a30
7
+ data.tar.gz: 2e3c8cc64f8d860c0fb1e7771197942901a4fae28b166376b613bbef6262275003bbad62b23e244a3a9887ecb99c5f1dad7bc3f3b973150beaa5774782baed2d
@@ -1,9 +1,23 @@
1
- == 1.7.1 (3 Aug 2022)
1
+ # CHANGELOG
2
+
3
+ ## [Unreleased]
4
+
5
+ [Unreleased]: https://github.com/validates-email-format-of/validates_email_format_of/compare/v1.7.2...master
6
+
7
+ ## [1.7.2]
8
+
9
+ * Fix regression that disallowed domains starting with number - https://github.com/validates-email-format-of/validates_email_format_of/issues/88
10
+
11
+ [Unreleased]: https://github.com/validates-email-format-of/validates_email_format_of/compare/v1.7.1...v1.7.2
12
+
13
+ ## [1.7.1] (3 Aug 2022)
2
14
 
3
15
  * Fix invalid symbols being allowed in the local part - https://github.com/validates-email-format-of/validates_email_format_of/issues/86
4
16
  * 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
17
 
6
- == 1.7.0 (29 July 2022)
18
+ [1.7.1]: https://github.com/validates-email-format-of/validates_email_format_of/compare/v1.7.0...v1.7.1
19
+
20
+ ## [1.7.0] (29 July 2022)
7
21
 
8
22
  * Use Standard.rb for internal code formatting - https://github.com/validates-email-format-of/validates_email_format_of/commit/db1b0a86af58e478b7f9f2f269bf93bf48dc13c1
9
23
  * Add support for comments in the local part and improve quoted character handling - https://github.com/validates-email-format-of/validates_email_format_of/issues/69
@@ -13,6 +27,9 @@
13
27
  * Fix regex duplicate character warning - https://github.com/validates-email-format-of/validates_email_format_of/pull/71
14
28
  * Update CI to include Ruby 2.6 to 3.1 and Rails 4.2 to 7.0
15
29
 
16
- == 1.6.1 (8 Sept 2014)
30
+ [1.7.0]: https://github.com/validates-email-format-of/validates_email_format_of/compare/v1.6.1...v1.7.0
31
+ ## [1.6.1] (8 Sept 2014)
17
32
 
18
33
  * In a Rails context, this gem now uses ActiveModel's default logic for constructing I18n keys, to make it easier to override them on a model/attribute basis.
34
+
35
+ [1.6.1]: https://github.com/validates-email-format-of/validates_email_format_of/compare/v1.6.0...v1.6.1
@@ -1,3 +1,3 @@
1
1
  module ValidatesEmailFormatOf
2
- VERSION = "1.7.1"
2
+ VERSION = "1.7.2"
3
3
  end
@@ -70,7 +70,14 @@ module ValidatesEmailFormatOf
70
70
  # <ldh-str> ::= <let-dig-hyp> | <let-dig-hyp> <ldh-str>
71
71
  # <let-dig-hyp> ::= <let-dig> | "-"
72
72
  # <let-dig> ::= <letter> | <digit>
73
- DOMAIN_PART_LABEL = /\A[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9]?\Z/
73
+ #
74
+ # Additionally, from https://datatracker.ietf.org/doc/html/rfc1123#section-2.1
75
+ #
76
+ # > One aspect of host name syntax is hereby changed: the
77
+ # > restriction on the first character is relaxed to allow either a
78
+ # > letter or a digit. Host software MUST support this more liberal
79
+ # > syntax.
80
+ DOMAIN_PART_LABEL = /\A[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9]?\Z/
74
81
 
75
82
  # From https://tools.ietf.org/id/draft-liman-tld-names-00.html#rfc.section.2
76
83
  #
@@ -35,6 +35,7 @@ describe ValidatesEmailFormatOf do
35
35
  "valid_valid123@test.example.com",
36
36
  "valid-valid+123@test.example.co.uk",
37
37
  "valid-valid+1.23@test.example.com.au",
38
+ "valid@1example.com",
38
39
  "valid@example.co.uk",
39
40
  "v@example.com",
40
41
  "valid@example.ca",
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.1
4
+ version: 1.7.2
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-08-03 00:00:00.000000000 Z
12
+ date: 2022-08-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
@@ -121,7 +121,7 @@ files:
121
121
  - ".gitignore"
122
122
  - ".rspec"
123
123
  - Appraisals
124
- - CHANGELOG
124
+ - CHANGELOG.md
125
125
  - Gemfile
126
126
  - MIT-LICENSE
127
127
  - README.rdoc