email_validator 1.6.0 → 2.2.1

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: 1.6.0
4
+ version: 2.2.1
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: 2015-05-12 00:00:00.000000000 Z
12
+ date: 2020-12-10 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: activemodel
@@ -24,56 +25,24 @@ 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: 'An email validator for Rails 3+. See homepage for details: http://github.com/balexand/email_validator'
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
72
- - lib/email_validator/strict.rb
73
41
  - spec/email_validator_spec.rb
74
42
  - spec/spec_helper.rb
75
- homepage: https://github.com/balexand/email_validator
76
- licenses: []
43
+ homepage: https://github.com/K-and-R/email_validator
44
+ licenses:
45
+ - MIT
77
46
  metadata: {}
78
47
  post_install_message:
79
48
  rdoc_options: []
@@ -83,16 +52,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
83
52
  requirements:
84
53
  - - ">="
85
54
  - !ruby/object:Gem::Version
86
- version: '0'
55
+ version: 2.4.0
87
56
  required_rubygems_version: !ruby/object:Gem::Requirement
88
57
  requirements:
89
58
  - - ">="
90
59
  - !ruby/object:Gem::Version
91
60
  version: '0'
92
61
  requirements: []
93
- rubyforge_project:
94
- rubygems_version: 2.4.5
62
+ rubygems_version: 3.1.4
95
63
  signing_key:
96
64
  specification_version: 4
97
65
  summary: An email validator for Rails 3+.
98
- test_files: []
66
+ test_files:
67
+ - spec/email_validator_spec.rb
68
+ - 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,7 +0,0 @@
1
- rvm:
2
- - 1.9.3
3
- - 2.0.0
4
- - 2.1.3
5
- - ruby-head
6
- - jruby-19mode
7
- - rbx-2
data/Changes.md DELETED
@@ -1,11 +0,0 @@
1
- # HEAD
2
-
3
- # 1.6.0
4
-
5
- * Unicode characters support [i7an #24]
6
-
7
- # 1.5.0
8
-
9
- * Add a class method for simpler validation [TiteiKo and cluesque #19]
10
- * RSpec 3.0 syntax [strivedi183 #17]
11
- * 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 = "1.6.0"
4
- s.authors = ["Brian Alexander"]
5
- s.description = %q{An email validator for Rails 3+. See homepage for details: http://github.com/balexand/email_validator}
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 3+.}
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
@@ -1,5 +0,0 @@
1
- # require this file to enable :strict_mode by default
2
-
3
- require 'email_validator'
4
-
5
- EmailValidator::default_options[:strict_mode] = true