email_validator 2.0.1 → 2.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +106 -0
- data/README.md +181 -20
- data/lib/email_validator.rb +153 -18
- data/lib/email_validator/rfc.rb +4 -0
- data/lib/email_validator/strict.rb +2 -7
- data/spec/email_validator_spec.rb +989 -91
- data/spec/spec_helper.rb +12 -2
- metadata +18 -45
- data/.document +0 -5
- data/.gitignore +0 -22
- data/.travis.yml +0 -12
- data/Changes.md +0 -20
- data/Gemfile +0 -3
- data/Rakefile +0 -10
- data/email_validator.gemspec +0 -23
data/spec/spec_helper.rb
CHANGED
@@ -1,7 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'rubygems'
|
4
|
+
require 'pry'
|
2
5
|
require 'rspec'
|
3
6
|
require 'active_model'
|
4
7
|
|
8
|
+
I18n.enforce_available_locales = false
|
9
|
+
|
10
|
+
require 'simplecov'
|
11
|
+
SimpleCov.start 'rails'
|
12
|
+
|
5
13
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
6
14
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
7
15
|
|
@@ -13,8 +21,10 @@ class TestModel
|
|
13
21
|
def initialize(attributes = {})
|
14
22
|
@attributes = attributes
|
15
23
|
end
|
16
|
-
|
24
|
+
|
17
25
|
def read_attribute_for_validation(key)
|
18
26
|
@attributes[key]
|
19
27
|
end
|
20
|
-
end
|
28
|
+
end
|
29
|
+
|
30
|
+
RSpec.configure(&:disable_monkey_patching!)
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: email_validator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Alexander
|
8
|
+
- Karl Wilbur
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2021-04-05 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: activemodel
|
@@ -24,56 +25,26 @@ dependencies:
|
|
24
25
|
- - ">="
|
25
26
|
- !ruby/object:Gem::Version
|
26
27
|
version: '0'
|
27
|
-
|
28
|
-
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rspec
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
description: Email validator for Rails and ActiveModel.
|
56
|
-
email: balexand@gmail.com
|
28
|
+
description: 'An email validator for Rails 3+. See homepage for details: http://github.com/K-and-R/email_validator'
|
29
|
+
email: karl@kandrsoftware.com
|
57
30
|
executables: []
|
58
31
|
extensions: []
|
59
32
|
extra_rdoc_files:
|
60
33
|
- LICENSE
|
34
|
+
- README.md
|
35
|
+
- CHANGELOG.md
|
61
36
|
files:
|
62
|
-
-
|
63
|
-
- ".gitignore"
|
64
|
-
- ".travis.yml"
|
65
|
-
- Changes.md
|
66
|
-
- Gemfile
|
37
|
+
- CHANGELOG.md
|
67
38
|
- LICENSE
|
68
39
|
- README.md
|
69
|
-
- Rakefile
|
70
|
-
- email_validator.gemspec
|
71
40
|
- lib/email_validator.rb
|
41
|
+
- lib/email_validator/rfc.rb
|
72
42
|
- lib/email_validator/strict.rb
|
73
43
|
- spec/email_validator_spec.rb
|
74
44
|
- spec/spec_helper.rb
|
75
|
-
homepage: https://github.com/
|
76
|
-
licenses:
|
45
|
+
homepage: https://github.com/K-and-R/email_validator
|
46
|
+
licenses:
|
47
|
+
- MIT
|
77
48
|
metadata: {}
|
78
49
|
post_install_message:
|
79
50
|
rdoc_options: []
|
@@ -83,15 +54,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
83
54
|
requirements:
|
84
55
|
- - ">="
|
85
56
|
- !ruby/object:Gem::Version
|
86
|
-
version:
|
57
|
+
version: 2.4.0
|
87
58
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
59
|
requirements:
|
89
60
|
- - ">="
|
90
61
|
- !ruby/object:Gem::Version
|
91
62
|
version: '0'
|
92
63
|
requirements: []
|
93
|
-
rubygems_version: 3.
|
64
|
+
rubygems_version: 3.1.4
|
94
65
|
signing_key:
|
95
66
|
specification_version: 4
|
96
|
-
summary: An email validator for Rails
|
97
|
-
test_files:
|
67
|
+
summary: An email validator for Rails 3+.
|
68
|
+
test_files:
|
69
|
+
- spec/email_validator_spec.rb
|
70
|
+
- spec/spec_helper.rb
|
data/.document
DELETED
data/.gitignore
DELETED
data/.travis.yml
DELETED
data/Changes.md
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# HEAD
|
2
|
-
|
3
|
-
# 2.0.1
|
4
|
-
|
5
|
-
* Add email value to error details [f1sherman #50]
|
6
|
-
* CI doesn't test Ruby versions that no longer receive updates [f1sherman #51]
|
7
|
-
|
8
|
-
# 2.0.0
|
9
|
-
|
10
|
-
* Looser validation [#49]
|
11
|
-
|
12
|
-
# 1.6.0
|
13
|
-
|
14
|
-
* Unicode characters support [i7an #24]
|
15
|
-
|
16
|
-
# 1.5.0
|
17
|
-
|
18
|
-
* Add a class method for simpler validation [TiteiKo and cluesque #19]
|
19
|
-
* RSpec 3.0 syntax [strivedi183 #17]
|
20
|
-
* Create Changes.md
|
data/Gemfile
DELETED
data/Rakefile
DELETED
data/email_validator.gemspec
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
Gem::Specification.new do |s|
|
2
|
-
s.name = %q{email_validator}
|
3
|
-
s.version = "2.0.1"
|
4
|
-
s.authors = ["Brian Alexander"]
|
5
|
-
s.description = %q{Email validator for Rails and ActiveModel.}
|
6
|
-
s.email = %q{balexand@gmail.com}
|
7
|
-
s.extra_rdoc_files = [
|
8
|
-
"LICENSE",
|
9
|
-
]
|
10
|
-
s.files = `git ls-files`.split("\n")
|
11
|
-
s.test_files = `git ls-files -- {spec}/*`.split("\n")
|
12
|
-
|
13
|
-
s.homepage = %q{https://github.com/balexand/email_validator}
|
14
|
-
s.require_paths = %w(lib)
|
15
|
-
s.summary = %q{An email validator for Rails and ActiveModel.}
|
16
|
-
|
17
|
-
s.add_dependency("activemodel", ">= 0")
|
18
|
-
|
19
|
-
s.add_development_dependency("rake")
|
20
|
-
s.add_development_dependency("rspec", ">= 0")
|
21
|
-
|
22
|
-
s.add_development_dependency('rubysl', '~> 2.0') if RUBY_ENGINE == 'rbx'
|
23
|
-
end
|