email_validator 2.0.0 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.0.0
4
+ version: 2.2.2
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: 2019-03-02 00:00:00.000000000 Z
12
+ date: 2020-12-11 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
- - !ruby/object:Gem::Dependency
28
- name: rake
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
- - ".document"
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/balexand/email_validator
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: '0'
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.0.1
64
+ rubygems_version: 3.1.4
94
65
  signing_key:
95
66
  specification_version: 4
96
- summary: An email validator for Rails and ActiveModel.
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
@@ -1,5 +0,0 @@
1
- README.rdoc
2
- lib/**/*.rb
3
- bin/*
4
- features/**/*.feature
5
- LICENSE
data/.gitignore DELETED
@@ -1,22 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- Gemfile.lock
18
- coverage
19
- rdoc
20
- pkg
21
-
22
- ## PROJECT::SPECIFIC
@@ -1,16 +0,0 @@
1
- rvm:
2
- - 1.9.3
3
- - 2.0.0
4
- - 2.1.10
5
- - 2.2.10
6
- - 2.3.8
7
- - 2.4.5
8
- - 2.5.3
9
- - 2.6.1
10
- - ruby-head
11
- - jruby-19mode
12
- - jruby-head
13
- - rbx-3
14
- matrix:
15
- allow_failures:
16
- - rvm: rbx-3
data/Changes.md DELETED
@@ -1,15 +0,0 @@
1
- # HEAD
2
-
3
- # 2.0.0
4
-
5
- * Looser validation [#49]
6
-
7
- # 1.6.0
8
-
9
- * Unicode characters support [i7an #24]
10
-
11
- # 1.5.0
12
-
13
- * Add a class method for simpler validation [TiteiKo and cluesque #19]
14
- * RSpec 3.0 syntax [strivedi183 #17]
15
- * Create Changes.md
data/Gemfile DELETED
@@ -1,3 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gemspec
data/Rakefile DELETED
@@ -1,10 +0,0 @@
1
- require 'bundler'
2
- require 'rspec/core/rake_task'
3
-
4
- Bundler::GemHelper.install_tasks
5
-
6
- RSpec::Core::RakeTask.new do |t|
7
- t.rspec_opts = %w(--format documentation --colour)
8
- end
9
-
10
- task :default => 'spec'
@@ -1,23 +0,0 @@
1
- Gem::Specification.new do |s|
2
- s.name = %q{email_validator}
3
- s.version = "2.0.0"
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