validates_email_format_of 1.5.2 → 1.5.3
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.
- data/README.rdoc +2 -0
- data/lib/validates_email_format_of.rb +2 -2
- data/test/validates_email_format_of_test.rb +3 -1
- metadata +38 -62
data/README.rdoc
CHANGED
|
@@ -72,6 +72,8 @@ To execute the unit tests run <tt>rake test</tt>.
|
|
|
72
72
|
|
|
73
73
|
The unit tests for this plugin use an in-memory sqlite3 database.
|
|
74
74
|
|
|
75
|
+
Tested in Ruby 1.8.7, 1.9.2, 1.9.3-rc1, JRuby and REE 1.8.7.
|
|
76
|
+
|
|
75
77
|
== Resources
|
|
76
78
|
|
|
77
79
|
* https://github.com/alexdunae/validates_email_format_of
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
module ValidatesEmailFormatOf
|
|
3
3
|
require 'resolv'
|
|
4
4
|
|
|
5
|
-
VERSION = '1.5.
|
|
5
|
+
VERSION = '1.5.3'
|
|
6
6
|
|
|
7
7
|
MessageScope = defined?(ActiveModel) ? :activemodel : :activerecord
|
|
8
8
|
|
|
@@ -92,7 +92,7 @@ module ValidatesEmailFormatOf
|
|
|
92
92
|
next
|
|
93
93
|
end
|
|
94
94
|
|
|
95
|
-
next if local[i,1] =~ /[
|
|
95
|
+
next if local[i,1] =~ /[a-z0-9]/i
|
|
96
96
|
next if local[i,1] =~ LocalPartSpecialChars
|
|
97
97
|
|
|
98
98
|
# period must be followed by something
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
|
1
2
|
require File.expand_path(File.dirname(__FILE__) + '/test_helper')
|
|
2
3
|
|
|
3
4
|
class ValidatesEmailFormatOfTest < TEST_CASE
|
|
@@ -95,7 +96,8 @@ class ValidatesEmailFormatOfTest < TEST_CASE
|
|
|
95
96
|
"foo@mail.com\r\nfoo@mail.com",
|
|
96
97
|
'@example.com',
|
|
97
98
|
'foo@',
|
|
98
|
-
'foo'
|
|
99
|
+
'foo',
|
|
100
|
+
'Iñtërnâtiônàlizætiøn@hasnt.happened.to.email'
|
|
99
101
|
].each do |email|
|
|
100
102
|
assert_invalid(email)
|
|
101
103
|
end
|
metadata
CHANGED
|
@@ -1,61 +1,46 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: validates_email_format_of
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.5.3
|
|
5
5
|
prerelease:
|
|
6
|
-
segments:
|
|
7
|
-
- 1
|
|
8
|
-
- 5
|
|
9
|
-
- 2
|
|
10
|
-
version: 1.5.2
|
|
11
6
|
platform: ruby
|
|
12
|
-
authors:
|
|
7
|
+
authors:
|
|
13
8
|
- Alex Dunae
|
|
14
9
|
autorequire:
|
|
15
10
|
bindir: bin
|
|
16
11
|
cert_chain: []
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
dependencies:
|
|
21
|
-
- !ruby/object:Gem::Dependency
|
|
12
|
+
date: 2011-10-12 00:00:00.000000000Z
|
|
13
|
+
dependencies:
|
|
14
|
+
- !ruby/object:Gem::Dependency
|
|
22
15
|
name: sqlite3
|
|
23
|
-
|
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
|
16
|
+
requirement: &2160409580 !ruby/object:Gem::Requirement
|
|
25
17
|
none: false
|
|
26
|
-
requirements:
|
|
27
|
-
- -
|
|
28
|
-
- !ruby/object:Gem::Version
|
|
29
|
-
|
|
30
|
-
segments:
|
|
31
|
-
- 0
|
|
32
|
-
version: "0"
|
|
18
|
+
requirements:
|
|
19
|
+
- - ! '>='
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '0'
|
|
33
22
|
type: :development
|
|
34
|
-
version_requirements: *id001
|
|
35
|
-
- !ruby/object:Gem::Dependency
|
|
36
|
-
name: activerecord
|
|
37
23
|
prerelease: false
|
|
38
|
-
|
|
24
|
+
version_requirements: *2160409580
|
|
25
|
+
- !ruby/object:Gem::Dependency
|
|
26
|
+
name: activerecord
|
|
27
|
+
requirement: &2160407040 !ruby/object:Gem::Requirement
|
|
39
28
|
none: false
|
|
40
|
-
requirements:
|
|
41
|
-
- -
|
|
42
|
-
- !ruby/object:Gem::Version
|
|
43
|
-
|
|
44
|
-
segments:
|
|
45
|
-
- 0
|
|
46
|
-
version: "0"
|
|
29
|
+
requirements:
|
|
30
|
+
- - ! '>='
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '0'
|
|
47
33
|
type: :development
|
|
48
|
-
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: *2160407040
|
|
49
36
|
description: Validate e-mail addresses against RFC 2822 and RFC 3696.
|
|
50
37
|
email: code@dunae.ca
|
|
51
38
|
executables: []
|
|
52
|
-
|
|
53
39
|
extensions: []
|
|
54
|
-
|
|
55
|
-
extra_rdoc_files:
|
|
40
|
+
extra_rdoc_files:
|
|
56
41
|
- README.rdoc
|
|
57
42
|
- MIT-LICENSE
|
|
58
|
-
files:
|
|
43
|
+
files:
|
|
59
44
|
- MIT-LICENSE
|
|
60
45
|
- init.rb
|
|
61
46
|
- rakefile.rb
|
|
@@ -67,42 +52,33 @@ files:
|
|
|
67
52
|
- test/validates_email_format_of_test.rb
|
|
68
53
|
- test/database.yml
|
|
69
54
|
- test/fixtures/people.yml
|
|
70
|
-
has_rdoc: true
|
|
71
55
|
homepage: https://github.com/alexdunae/validates_email_format_of
|
|
72
56
|
licenses: []
|
|
73
|
-
|
|
74
57
|
post_install_message:
|
|
75
|
-
rdoc_options:
|
|
58
|
+
rdoc_options:
|
|
76
59
|
- --title
|
|
77
60
|
- validates_email_format_of
|
|
78
|
-
require_paths:
|
|
61
|
+
require_paths:
|
|
79
62
|
- lib
|
|
80
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
63
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
81
64
|
none: false
|
|
82
|
-
requirements:
|
|
83
|
-
- -
|
|
84
|
-
- !ruby/object:Gem::Version
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
- 0
|
|
88
|
-
version: "0"
|
|
89
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - ! '>='
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '0'
|
|
69
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
70
|
none: false
|
|
91
|
-
requirements:
|
|
92
|
-
- -
|
|
93
|
-
- !ruby/object:Gem::Version
|
|
94
|
-
|
|
95
|
-
segments:
|
|
96
|
-
- 0
|
|
97
|
-
version: "0"
|
|
71
|
+
requirements:
|
|
72
|
+
- - ! '>='
|
|
73
|
+
- !ruby/object:Gem::Version
|
|
74
|
+
version: '0'
|
|
98
75
|
requirements: []
|
|
99
|
-
|
|
100
76
|
rubyforge_project:
|
|
101
|
-
rubygems_version: 1.
|
|
77
|
+
rubygems_version: 1.8.10
|
|
102
78
|
signing_key:
|
|
103
79
|
specification_version: 3
|
|
104
80
|
summary: Validate e-mail addresses against RFC 2822 and RFC 3696.
|
|
105
|
-
test_files:
|
|
81
|
+
test_files:
|
|
106
82
|
- test/fixtures/person.rb
|
|
107
83
|
- test/schema.rb
|
|
108
84
|
- test/test_helper.rb
|