phony_rails 0.14.7 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/.rubocop.yml +2 -1
- data/.rubocop_todo.yml +16 -0
- data/.travis.yml +4 -2
- data/CHANGELOG.md +83 -0
- data/Gemfile +1 -3
- data/README.md +28 -19
- data/lib/data/country_codes.yaml +2 -0
- data/lib/phony_rails/locales/es.yml +4 -0
- data/lib/phony_rails/locales/ko.yml +4 -0
- data/lib/phony_rails/string_extensions.rb +5 -0
- data/lib/phony_rails/version.rb +1 -1
- data/lib/phony_rails.rb +60 -26
- data/lib/validators/phony_validator.rb +3 -0
- data/phony_rails.gemspec +7 -5
- data/spec/lib/phony_rails_spec.rb +87 -11
- data/spec/lib/validators/phony_validator_spec.rb +111 -24
- data/spec/spec_helper.rb +19 -15
- metadata +16 -15
- data/Gemfile.lock +0 -143
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phony_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joost Hietbrink
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: phony
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 2.18.12
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 2.18.12
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: activerecord
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,19 +53,19 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: sqlite3
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 1.4.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 1.4.0
|
69
69
|
description: This Gem adds useful methods to your Rails app to validate, display and
|
70
70
|
save phone numbers.
|
71
71
|
email:
|
@@ -81,7 +81,6 @@ files:
|
|
81
81
|
- ".travis.yml"
|
82
82
|
- CHANGELOG.md
|
83
83
|
- Gemfile
|
84
|
-
- Gemfile.lock
|
85
84
|
- Guardfile
|
86
85
|
- LICENSE
|
87
86
|
- README.md
|
@@ -90,11 +89,13 @@ files:
|
|
90
89
|
- lib/phony_rails.rb
|
91
90
|
- lib/phony_rails/locales/de.yml
|
92
91
|
- lib/phony_rails/locales/en.yml
|
92
|
+
- lib/phony_rails/locales/es.yml
|
93
93
|
- lib/phony_rails/locales/fr.yml
|
94
94
|
- lib/phony_rails/locales/he.yml
|
95
95
|
- lib/phony_rails/locales/it.yml
|
96
96
|
- lib/phony_rails/locales/ja.yml
|
97
97
|
- lib/phony_rails/locales/km.yml
|
98
|
+
- lib/phony_rails/locales/ko.yml
|
98
99
|
- lib/phony_rails/locales/nl.yml
|
99
100
|
- lib/phony_rails/locales/ru.yml
|
100
101
|
- lib/phony_rails/locales/tr.yml
|
@@ -110,8 +111,9 @@ homepage: https://github.com/joost/phony_rails
|
|
110
111
|
licenses:
|
111
112
|
- MIT
|
112
113
|
metadata: {}
|
113
|
-
post_install_message:
|
114
|
-
|
114
|
+
post_install_message: |-
|
115
|
+
PhonyRails v0.10.0 changes the way numbers are stored!
|
116
|
+
It now adds a ' + ' to the normalized number when it starts with a country number!
|
115
117
|
rdoc_options: []
|
116
118
|
require_paths:
|
117
119
|
- lib
|
@@ -119,15 +121,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
119
121
|
requirements:
|
120
122
|
- - ">="
|
121
123
|
- !ruby/object:Gem::Version
|
122
|
-
version: '
|
124
|
+
version: '2.4'
|
123
125
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
126
|
requirements:
|
125
127
|
- - ">="
|
126
128
|
- !ruby/object:Gem::Version
|
127
129
|
version: '0'
|
128
130
|
requirements: []
|
129
|
-
|
130
|
-
rubygems_version: 2.5.1
|
131
|
+
rubygems_version: 3.0.3
|
131
132
|
signing_key:
|
132
133
|
specification_version: 4
|
133
134
|
summary: This Gem adds useful methods to your Rails app to validate, display and save
|
data/Gemfile.lock
DELETED
@@ -1,143 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
phony_rails (0.14.7)
|
5
|
-
activesupport (>= 3.0)
|
6
|
-
phony (> 2.15)
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
activemodel (5.1.4)
|
12
|
-
activesupport (= 5.1.4)
|
13
|
-
activerecord (5.1.4)
|
14
|
-
activemodel (= 5.1.4)
|
15
|
-
activesupport (= 5.1.4)
|
16
|
-
arel (~> 8.0)
|
17
|
-
activesupport (5.1.4)
|
18
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
19
|
-
i18n (~> 0.7)
|
20
|
-
minitest (~> 5.1)
|
21
|
-
tzinfo (~> 1.1)
|
22
|
-
arel (8.0.0)
|
23
|
-
ast (2.3.0)
|
24
|
-
bson (4.2.2)
|
25
|
-
coderay (1.1.2)
|
26
|
-
concurrent-ruby (1.0.5)
|
27
|
-
coveralls (0.8.21)
|
28
|
-
json (>= 1.8, < 3)
|
29
|
-
simplecov (~> 0.14.1)
|
30
|
-
term-ansicolor (~> 1.3)
|
31
|
-
thor (~> 0.19.4)
|
32
|
-
tins (~> 1.6)
|
33
|
-
diff-lcs (1.3)
|
34
|
-
docile (1.1.5)
|
35
|
-
ffi (1.9.18)
|
36
|
-
formatador (0.2.5)
|
37
|
-
guard (2.14.1)
|
38
|
-
formatador (>= 0.2.4)
|
39
|
-
listen (>= 2.7, < 4.0)
|
40
|
-
lumberjack (~> 1.0)
|
41
|
-
nenv (~> 0.1)
|
42
|
-
notiffany (~> 0.0)
|
43
|
-
pry (>= 0.9.12)
|
44
|
-
shellany (~> 0.0)
|
45
|
-
thor (>= 0.18.1)
|
46
|
-
guard-bundler (2.1.0)
|
47
|
-
bundler (~> 1.0)
|
48
|
-
guard (~> 2.2)
|
49
|
-
guard-compat (~> 1.1)
|
50
|
-
guard-compat (1.2.1)
|
51
|
-
guard-rspec (4.7.3)
|
52
|
-
guard (~> 2.1)
|
53
|
-
guard-compat (~> 1.1)
|
54
|
-
rspec (>= 2.99.0, < 4.0)
|
55
|
-
i18n (0.9.1)
|
56
|
-
concurrent-ruby (~> 1.0)
|
57
|
-
json (2.1.0)
|
58
|
-
listen (3.1.5)
|
59
|
-
rb-fsevent (~> 0.9, >= 0.9.4)
|
60
|
-
rb-inotify (~> 0.9, >= 0.9.7)
|
61
|
-
ruby_dep (~> 1.2)
|
62
|
-
lumberjack (1.0.12)
|
63
|
-
method_source (0.9.0)
|
64
|
-
minitest (5.10.3)
|
65
|
-
mongo (2.4.3)
|
66
|
-
bson (>= 4.2.1, < 5.0.0)
|
67
|
-
mongoid (6.2.1)
|
68
|
-
activemodel (~> 5.1)
|
69
|
-
mongo (>= 2.4.1, < 3.0.0)
|
70
|
-
nenv (0.3.0)
|
71
|
-
notiffany (0.1.1)
|
72
|
-
nenv (~> 0.1)
|
73
|
-
shellany (~> 0.0)
|
74
|
-
parallel (1.12.0)
|
75
|
-
parser (2.4.0.2)
|
76
|
-
ast (~> 2.3)
|
77
|
-
phony (2.16.3)
|
78
|
-
powerpack (0.1.1)
|
79
|
-
pry (0.11.3)
|
80
|
-
coderay (~> 1.1.0)
|
81
|
-
method_source (~> 0.9.0)
|
82
|
-
rainbow (2.2.2)
|
83
|
-
rake
|
84
|
-
rake (12.3.0)
|
85
|
-
rb-fsevent (0.10.2)
|
86
|
-
rb-inotify (0.9.10)
|
87
|
-
ffi (>= 0.5.0, < 2)
|
88
|
-
rspec (3.7.0)
|
89
|
-
rspec-core (~> 3.7.0)
|
90
|
-
rspec-expectations (~> 3.7.0)
|
91
|
-
rspec-mocks (~> 3.7.0)
|
92
|
-
rspec-core (3.7.0)
|
93
|
-
rspec-support (~> 3.7.0)
|
94
|
-
rspec-expectations (3.7.0)
|
95
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
96
|
-
rspec-support (~> 3.7.0)
|
97
|
-
rspec-mocks (3.7.0)
|
98
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
99
|
-
rspec-support (~> 3.7.0)
|
100
|
-
rspec-support (3.7.0)
|
101
|
-
rubocop (0.51.0)
|
102
|
-
parallel (~> 1.10)
|
103
|
-
parser (>= 2.3.3.1, < 3.0)
|
104
|
-
powerpack (~> 0.1)
|
105
|
-
rainbow (>= 2.2.2, < 3.0)
|
106
|
-
ruby-progressbar (~> 1.7)
|
107
|
-
unicode-display_width (~> 1.0, >= 1.0.1)
|
108
|
-
ruby-progressbar (1.9.0)
|
109
|
-
ruby_dep (1.5.0)
|
110
|
-
shellany (0.0.1)
|
111
|
-
simplecov (0.14.1)
|
112
|
-
docile (~> 1.1.0)
|
113
|
-
json (>= 1.8, < 3)
|
114
|
-
simplecov-html (~> 0.10.0)
|
115
|
-
simplecov-html (0.10.2)
|
116
|
-
sqlite3 (1.3.13)
|
117
|
-
term-ansicolor (1.6.0)
|
118
|
-
tins (~> 1.0)
|
119
|
-
thor (0.19.4)
|
120
|
-
thread_safe (0.3.6)
|
121
|
-
tins (1.15.1)
|
122
|
-
tzinfo (1.2.4)
|
123
|
-
thread_safe (~> 0.1)
|
124
|
-
unicode-display_width (1.3.0)
|
125
|
-
|
126
|
-
PLATFORMS
|
127
|
-
ruby
|
128
|
-
|
129
|
-
DEPENDENCIES
|
130
|
-
activerecord (>= 3.0)
|
131
|
-
coveralls
|
132
|
-
guard
|
133
|
-
guard-bundler
|
134
|
-
guard-rspec
|
135
|
-
mongoid (>= 3.0)
|
136
|
-
phony_rails!
|
137
|
-
rake
|
138
|
-
rspec
|
139
|
-
rubocop
|
140
|
-
sqlite3
|
141
|
-
|
142
|
-
BUNDLED WITH
|
143
|
-
1.16.1
|