validates_email_format_of 1.6.1 → 1.6.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.
- checksums.yaml +5 -13
- data/config/locales/de.yml +8 -0
- data/lib/validates_email_format_of/rspec_matcher.rb +1 -2
- data/lib/validates_email_format_of/version.rb +1 -1
- data/lib/validates_email_format_of.rb +1 -1
- data/spec/spec_helper.rb +0 -7
- data/spec/validates_email_format_of_spec.rb +7 -0
- data/validates_email_format_of.gemspec +6 -1
- metadata +15 -14
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
YTg5ZGY1MWEzYWFkYTUzOTVlYzQ0N2FlZGRjNDY0OWY0ZmU2NTA3OA==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 473a6ecf75f1a602abc00714b86b075545d9e2a7
|
4
|
+
data.tar.gz: 2988b649b8aaa152f177757bd38e4dc2588dc2aa
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
YjQyNDI0ZmYyZGRhZmYwN2U0MjEyYzVmYzJmZDk1ZDAwMjcwOWZhOGU2YTZl
|
11
|
-
MjdjNmIyNDE3ZjE5YzJmOGI2ZGVjZWRiMWI5ZDFkNjQ1NzRiYjg=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
YTI2Zjg0ZjQ3MzRlZTE2MjEzOTI2NjkwZDUzYjk3MjRmYmYzZDJhNmYzOTUz
|
14
|
-
YWM2MDJiZjkxOGQyNmU2ZDVlZTZiNDMwYWY2YzcwMzU3ZWYyNjVmYmQ1Mzc3
|
15
|
-
MzY1YTgxZmJlMDBiODgyYjVmYmZlZDM0NDhlZGQwYmIyOWM0NTU=
|
6
|
+
metadata.gz: 645502e19a3a3abb8c3d5eef6bc6d2c864bb7e9d5fd2d6467219222806e6604b7b48aa199141d03c104de2ac9a0cb3476e508274b2068cc8be8e3a3b63739bf7
|
7
|
+
data.tar.gz: b361147b9c4f5220cf4b50922f710ee0e604041e78301320f5d668d5cf61b6fa646a26e20e9f36d6a4d38b70010dcc4aff9c62a6113bf27139dd045a52b8cf47
|
@@ -2,8 +2,7 @@ require "validates_email_format_of"
|
|
2
2
|
|
3
3
|
RSpec::Matchers.define :validate_email_format_of do |attribute|
|
4
4
|
match do
|
5
|
-
|
6
|
-
actual = actual_class_name.new
|
5
|
+
actual = subject.is_a?(Class) ? subject.new : subject
|
7
6
|
actual.send(:"#{attribute}=", "invalid@example.")
|
8
7
|
expect(actual).to be_invalid
|
9
8
|
@expected_message ||= ValidatesEmailFormatOf.default_message
|
@@ -147,4 +147,4 @@ module ValidatesEmailFormatOf
|
|
147
147
|
end
|
148
148
|
|
149
149
|
require 'validates_email_format_of/active_model' if defined?(::ActiveModel) && !(ActiveModel::VERSION::MAJOR < 2 || (2 == ActiveModel::VERSION::MAJOR && ActiveModel::VERSION::MINOR < 1))
|
150
|
-
require 'validates_email_format_of/railtie' if defined?(::Rails)
|
150
|
+
require 'validates_email_format_of/railtie' if defined?(::Rails::Railtie)
|
data/spec/spec_helper.rb
CHANGED
@@ -20,10 +20,3 @@ RSpec::Matchers.define :have_errors_on_email do
|
|
20
20
|
expect(actual).to (defined?(ActiveModel) ? be_empty : be_nil)
|
21
21
|
end
|
22
22
|
end
|
23
|
-
|
24
|
-
RSpec.configure do |config|
|
25
|
-
config.before(:suite) do
|
26
|
-
ValidatesEmailFormatOf.load_i18n_locales
|
27
|
-
I18n.enforce_available_locales = false
|
28
|
-
end
|
29
|
-
end
|
@@ -2,6 +2,13 @@
|
|
2
2
|
require "#{File.expand_path(File.dirname(__FILE__))}/spec_helper"
|
3
3
|
require "validates_email_format_of"
|
4
4
|
|
5
|
+
RSpec.configure do |config|
|
6
|
+
config.before(:suite) do
|
7
|
+
ValidatesEmailFormatOf.load_i18n_locales
|
8
|
+
I18n.enforce_available_locales = false
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
5
12
|
describe ValidatesEmailFormatOf do
|
6
13
|
subject do |example|
|
7
14
|
if defined?(ActiveModel)
|
@@ -15,7 +15,12 @@ spec = Gem::Specification.new do |s|
|
|
15
15
|
s.files = `git ls-files`.split($/)
|
16
16
|
s.require_paths = ['lib']
|
17
17
|
|
18
|
-
|
18
|
+
if RUBY_VERSION < "1.9.3"
|
19
|
+
s.add_dependency 'i18n', '< 0.7.0'
|
20
|
+
else
|
21
|
+
s.add_dependency 'i18n'
|
22
|
+
end
|
23
|
+
|
19
24
|
s.add_development_dependency 'bundler'
|
20
25
|
s.add_development_dependency 'rspec'
|
21
26
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: validates_email_format_of
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Dunae
|
@@ -9,48 +9,48 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2015-08-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: i18n
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: bundler
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '0'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rspec
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '0'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
description: Validate e-mail addresses against RFC 2822 and RFC 3696.
|
@@ -61,13 +61,14 @@ executables: []
|
|
61
61
|
extensions: []
|
62
62
|
extra_rdoc_files: []
|
63
63
|
files:
|
64
|
-
- .gitignore
|
65
|
-
- .rspec
|
66
|
-
- .travis.yml
|
64
|
+
- ".gitignore"
|
65
|
+
- ".rspec"
|
66
|
+
- ".travis.yml"
|
67
67
|
- CHANGELOG
|
68
68
|
- Gemfile
|
69
69
|
- MIT-LICENSE
|
70
70
|
- README.rdoc
|
71
|
+
- config/locales/de.yml
|
71
72
|
- config/locales/en.yml
|
72
73
|
- config/locales/pl.yml
|
73
74
|
- gemfiles/Gemfile.active_model_2_1
|
@@ -97,17 +98,17 @@ require_paths:
|
|
97
98
|
- lib
|
98
99
|
required_ruby_version: !ruby/object:Gem::Requirement
|
99
100
|
requirements:
|
100
|
-
- -
|
101
|
+
- - ">="
|
101
102
|
- !ruby/object:Gem::Version
|
102
103
|
version: '0'
|
103
104
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
105
|
requirements:
|
105
|
-
- -
|
106
|
+
- - ">="
|
106
107
|
- !ruby/object:Gem::Version
|
107
108
|
version: '0'
|
108
109
|
requirements: []
|
109
110
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.
|
111
|
+
rubygems_version: 2.4.3
|
111
112
|
signing_key:
|
112
113
|
specification_version: 4
|
113
114
|
summary: Validate e-mail addresses against RFC 2822 and RFC 3696.
|