valid_email2 7.0.15 → 7.1.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: 0ad947fce2af8a8c580f97e01d0f2b1ad07a0d760b339b39505b97065e290b59
4
- data.tar.gz: 26d8bcde56c018c411275230326b6cacf1353f46f4096de0654307bb357577e6
3
+ metadata.gz: 4f811fbcff51eb1018fa359171958a2ca6f906dfedf42ba44b500501534ed864
4
+ data.tar.gz: 68602394c96335f26e36321bf7886f51543d38582c28d414adee57d21bbd3e6e
5
5
  SHA512:
6
- metadata.gz: '0709bb5c717b3d746af66da6e58101ef04f0ccd511dfc0397b7652ded537c9b9f7ceaa6248a7df731392d2ac2988e913c24d4dc8a25c6b9f8a2bd59cc72f52eb'
7
- data.tar.gz: 61d4fa93707183759f1f6c0a19bb8113a4aa1c623dc836f5827968d7fd2e990112c3b1e12c65ced337409239bf6a2d173ba426ae4803599374529299278ca014
6
+ metadata.gz: f2980ded720b291bd15403fe49380829f97d651f75cfba0d8c016ba0c68a88f00c1a987549ba25d54b796fb41685a526241b141dd18b8a82263e3445b916d278
7
+ data.tar.gz: eaf2cae38d2c895527825c228a6f221004c94175671cfb74dbd9100ad495f87883df1b80f9762c127d37ad6ea2a7e267ed49fc314abed148b9811218c9f4815f
@@ -1 +1 @@
1
- {".":"7.0.15"}
1
+ {".":"7.1.0"}
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [7.1.0](https://github.com/micke/valid_email2/compare/v7.0.15...v7.1.0) (2026-08-23)
4
+
5
+ ### Features
6
+
7
+ * add custom error-messages for validation purposes https://github.com/micke/valid_email2/pull/313
8
+
9
+ ### Bug Fixes
10
+
11
+ * validate domain hostname rules per label ([d4b80b4](https://github.com/micke/valid_email2/commit/d4b80b42ecb3c262237035fa7454d7e1881d9db6))
12
+ * add pipe | to hostname forbidden characters
13
+ * update the list of deny-listed domains
14
+
3
15
  ## [7.0.15](https://github.com/micke/valid_email2/compare/v7.0.14...v7.0.15) (2026-02-22)
4
16
 
5
17
 
data/Gemfile CHANGED
@@ -2,3 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in valid_email2.gemspec
4
4
  gemspec
5
+
6
+ group :development do
7
+ gem "ruby-lsp-rspec", require: false
8
+ end
data/README.md CHANGED
@@ -112,6 +112,26 @@ To validate create your own custom message:
112
112
  validates :email, 'valid_email_2/email': { message: "is not a valid email" }
113
113
  ```
114
114
 
115
+ To validate create your dedicated validation error-message:
116
+ ```yaml
117
+ # set custom validation messages for each type of check in translations ie en.yml
118
+ errors:
119
+ messages:
120
+ disallow_dotted: "contains a dot"
121
+ disallow_subaddressing: "..."
122
+ disposable: "..."
123
+ disposable_domain: "..."
124
+ disposable_with_allow_list: "..."
125
+ disposable_domain_with_allow_list: "..."
126
+ deny_list: "..."
127
+ mx: "..."
128
+ strict_mx: "..."
129
+ ```
130
+
131
+ ```ruby
132
+ validates :email, 'valid_email_2/email': { disallow_dotted: true, specific_error_messages: true }
133
+ ```
134
+
115
135
  To allow multiple addresses separated by comma:
116
136
  ```ruby
117
137
  validates :email, 'valid_email_2/email': { multiple: true }