email_validator 2.0.1 → 2.1.0

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.
@@ -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.1
4
+ version: 2.1.0
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-09 00:00:00.000000000 Z
12
+ date: 2020-12-09 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: activemodel
@@ -24,55 +25,22 @@ 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
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
43
+ homepage: https://github.com/K-and-R/email_validator
76
44
  licenses: []
77
45
  metadata: {}
78
46
  post_install_message:
@@ -83,15 +51,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
83
51
  requirements:
84
52
  - - ">="
85
53
  - !ruby/object:Gem::Version
86
- version: '0'
54
+ version: 2.4.0
87
55
  required_rubygems_version: !ruby/object:Gem::Requirement
88
56
  requirements:
89
57
  - - ">="
90
58
  - !ruby/object:Gem::Version
91
59
  version: '0'
92
60
  requirements: []
93
- rubygems_version: 3.0.1
61
+ rubygems_version: 3.1.4
94
62
  signing_key:
95
63
  specification_version: 4
96
- summary: An email validator for Rails and ActiveModel.
97
- test_files: []
64
+ summary: An email validator for Rails 3+.
65
+ test_files:
66
+ - spec/email_validator_spec.rb
67
+ - 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,12 +0,0 @@
1
- rvm:
2
- - 2.3.8
3
- - 2.4.5
4
- - 2.5.3
5
- - 2.6.1
6
- - ruby-head
7
- - jruby-19mode
8
- - jruby-head
9
- - rbx-3
10
- matrix:
11
- allow_failures:
12
- - rvm: rbx-3
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
@@ -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.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
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- ActiveSupport::Deprecation.warn(
4
- 'Strict mode has been deprecated in email_validator 2.0. You are receiving '\
5
- 'this warning because your project is requiring "email_validator/strict", '\
6
- 'most likely in your Gemfile.'
7
- )
8
-
9
- require 'email_validator'