validates_phone_format_of 1.0.3 → 1.0.4
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 +4 -4
- data/README.md +1 -0
- data/lib/validates_phone_format_of.rb +1 -1
- data/validates_phone_format_of.gemspec +2 -2
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e59b570a2c1327b0ff26d06c05959b83e2214f41
|
4
|
+
data.tar.gz: 6391b6a0d78d43a557e1a45feefd2e444f8ce683
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16fd6f8ef3997603400b2de0f284673b5e38e2b7f1e35136d765ad54bfd0c15429a78e3170c4c403dc6046ad5dc832a380488f6161fb43d6c4ebea68127a5664
|
7
|
+
data.tar.gz: 01c57e4fcb20645ddfb31ab0c2e8b45a04b9e7d238186abd83a9a5f1820b1c5cdb46577d5eb568bfd8f21b605ce87545d97d6ee3db797c3db301b81dac33bbc3
|
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# validates_phone_format_of
|
2
2
|
|
3
|
+
[](https://travis-ci.org/jonathantribouharet/validates_phone_format_of)
|
3
4
|
[](http://badge.fury.io/rb/validates_phone_format_of)
|
4
5
|
|
5
6
|
Validate phone numbers against E.164 format.
|
@@ -8,7 +8,7 @@ module ActiveModel
|
|
8
8
|
module Validations
|
9
9
|
class PhoneFormatValidator < EachValidator
|
10
10
|
def validate_each(record, attribute, value)
|
11
|
-
record.errors.add(attribute, :invalid, options.merge({value
|
11
|
+
record.errors.add(attribute, :invalid, options.merge({:value => value})) if value.to_s !~ ValidatesPhoneFormatOf::Regexp
|
12
12
|
end
|
13
13
|
end
|
14
14
|
|
@@ -5,7 +5,7 @@ Gem::Specification.new do |s|
|
|
5
5
|
s.summary = "Validate phone numbers against E.164 format with this Ruby on Rails gem"
|
6
6
|
s.description = s.summary
|
7
7
|
s.homepage = 'https://github.com/jonathantribouharet/validates_phone_format_of'
|
8
|
-
s.version = '1.0.
|
8
|
+
s.version = '1.0.4'
|
9
9
|
s.files = `git ls-files`.split("\n")
|
10
10
|
s.require_paths = ['lib']
|
11
11
|
s.authors = ['Jonathan TRIBOUHARET']
|
@@ -13,6 +13,6 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.license = 'MIT'
|
14
14
|
s.platform = Gem::Platform::RUBY
|
15
15
|
|
16
|
-
s.add_development_dependency 'bundler'
|
16
|
+
s.add_development_dependency 'bundler'
|
17
17
|
s.add_development_dependency 'rspec', '~> 3.6'
|
18
18
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: validates_phone_format_of
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan TRIBOUHARET
|
@@ -14,28 +14,28 @@ dependencies:
|
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '3.6'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '3.6'
|
41
41
|
description: Validate phone numbers against E.164 format with this Ruby on Rails gem
|
@@ -44,11 +44,11 @@ executables: []
|
|
44
44
|
extensions: []
|
45
45
|
extra_rdoc_files: []
|
46
46
|
files:
|
47
|
-
-
|
48
|
-
-
|
49
|
-
-
|
50
|
-
-
|
51
|
-
-
|
47
|
+
- .gitignore
|
48
|
+
- .rspec
|
49
|
+
- .ruby-gemset
|
50
|
+
- .ruby-version
|
51
|
+
- .travis.yml
|
52
52
|
- Gemfile
|
53
53
|
- LICENSE
|
54
54
|
- README.md
|
@@ -73,17 +73,17 @@ require_paths:
|
|
73
73
|
- lib
|
74
74
|
required_ruby_version: !ruby/object:Gem::Requirement
|
75
75
|
requirements:
|
76
|
-
- -
|
76
|
+
- - '>='
|
77
77
|
- !ruby/object:Gem::Version
|
78
78
|
version: '0'
|
79
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- -
|
81
|
+
- - '>='
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0'
|
84
84
|
requirements: []
|
85
85
|
rubyforge_project:
|
86
|
-
rubygems_version: 2.
|
86
|
+
rubygems_version: 2.0.14.1
|
87
87
|
signing_key:
|
88
88
|
specification_version: 4
|
89
89
|
summary: Validate phone numbers against E.164 format with this Ruby on Rails gem
|