email_address 0.1.18 → 0.1.19
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 +4 -4
- data/README.md +0 -3
- data/lib/email_address/active_record_validator.rb +4 -3
- data/lib/email_address/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: adfafdd9c68cbc88c13f77175ab945fce253b0c67d93cbf92f27d95358d9286d
|
4
|
+
data.tar.gz: 07ea20d4fddbc9a2626a870b40162fe5ecaedfd7f588ba56f8d9efffce9a4eac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45005aaae90329115140e038aa9f17325d66a939de376a2efc0fdda6542a1b47850ae40b80503fd69e1308f3cfe2fb5392904d2ca5ba0f997b00b6712e01ccb9
|
7
|
+
data.tar.gz: e69900c156e676aac54f5f2d3ca395f08f08d07f768913df990d8b3c012e12e5cda678145f1dcdb0d141691ebf93d2beb85ba3b8dd654522fbb121962529585c
|
data/README.md
CHANGED
@@ -544,9 +544,6 @@ For the mailbox (AKA account, role), without the tag
|
|
544
544
|
* address_size: 3..254,
|
545
545
|
A range specifying the size limit of the complete address
|
546
546
|
|
547
|
-
* address_local: false,
|
548
|
-
Allow localhost, no domain, or local subdomains.
|
549
|
-
|
550
547
|
For provider rules to match to domain names and Exchanger hosts
|
551
548
|
The value is an array of match tokens.
|
552
549
|
* host_match: %w(.org example.com hotmail. user*@ sub.*.com)
|
@@ -37,9 +37,10 @@ module EmailAddress
|
|
37
37
|
return if r[f].nil?
|
38
38
|
e = Address.new(r[f])
|
39
39
|
unless e.valid?
|
40
|
-
|
41
|
-
|
42
|
-
|
40
|
+
error_message = @opt[:message] ||
|
41
|
+
Config.error_messages[:invalid_address] ||
|
42
|
+
"Invalid Email Address"
|
43
|
+
r.errors.add(f, error_message)
|
43
44
|
end
|
44
45
|
end
|
45
46
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: email_address
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Allen Fair
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -184,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
184
|
- !ruby/object:Gem::Version
|
185
185
|
version: '0'
|
186
186
|
requirements: []
|
187
|
-
rubygems_version: 3.
|
187
|
+
rubygems_version: 3.1.4
|
188
188
|
signing_key:
|
189
189
|
specification_version: 4
|
190
190
|
summary: This gem provides a ruby language library for working with and validating
|