phonelib 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/data/PhoneNumberMetaData.xml +365 -253
- data/data/phone_data.yml +598 -506
- data/lib/phonelib/core.rb +10 -3
- data/lib/phonelib/phone.rb +1 -0
- data/lib/phonelib/version.rb +1 -1
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +16 -28
- data/test/dummy/log/test.log +807 -3397
- metadata +114 -121
- checksums.yaml +0 -7
metadata
CHANGED
@@ -1,85 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phonelib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Vadim Senderovich
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
12
|
+
date: 2013-09-24 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: rails
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirement: &7760120 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- - '>='
|
19
|
+
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: 3.1.0
|
20
22
|
type: :development
|
21
23
|
prerelease: false
|
22
|
-
version_requirements:
|
23
|
-
requirements:
|
24
|
-
- - '>='
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 3.1.0
|
24
|
+
version_requirements: *7760120
|
27
25
|
- !ruby/object:Gem::Dependency
|
28
26
|
name: sqlite3
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
27
|
+
requirement: &7759280 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
30
29
|
requirements:
|
31
|
-
- - '>='
|
30
|
+
- - ! '>='
|
32
31
|
- !ruby/object:Gem::Version
|
33
32
|
version: '0'
|
34
33
|
type: :development
|
35
34
|
prerelease: false
|
36
|
-
version_requirements:
|
37
|
-
requirements:
|
38
|
-
- - '>='
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
35
|
+
version_requirements: *7759280
|
41
36
|
- !ruby/object:Gem::Dependency
|
42
37
|
name: nokogiri
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
38
|
+
requirement: &7757700 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
44
40
|
requirements:
|
45
|
-
- - '>='
|
41
|
+
- - ! '>='
|
46
42
|
- !ruby/object:Gem::Version
|
47
43
|
version: '0'
|
48
44
|
type: :development
|
49
45
|
prerelease: false
|
50
|
-
version_requirements:
|
51
|
-
requirements:
|
52
|
-
- - '>='
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
46
|
+
version_requirements: *7757700
|
55
47
|
- !ruby/object:Gem::Dependency
|
56
48
|
name: pry
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
+
requirement: &7756400 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
58
51
|
requirements:
|
59
|
-
- - '>='
|
52
|
+
- - ! '>='
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
type: :development
|
63
56
|
prerelease: false
|
64
|
-
version_requirements:
|
65
|
-
requirements:
|
66
|
-
- - '>='
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
57
|
+
version_requirements: *7756400
|
69
58
|
- !ruby/object:Gem::Dependency
|
70
59
|
name: shoulda-context
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirement: &7888460 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
72
62
|
requirements:
|
73
|
-
- - '>='
|
63
|
+
- - ! '>='
|
74
64
|
- !ruby/object:Gem::Version
|
75
65
|
version: '0'
|
76
66
|
type: :development
|
77
67
|
prerelease: false
|
78
|
-
version_requirements:
|
79
|
-
requirements:
|
80
|
-
- - '>='
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
68
|
+
version_requirements: *7888460
|
83
69
|
description: Google libphonenumber library was taken as a basis for this gem. Gem
|
84
70
|
uses its data file for validations and number formatting.
|
85
71
|
email:
|
@@ -90,140 +76,147 @@ extra_rdoc_files: []
|
|
90
76
|
files:
|
91
77
|
- data/phone_data.yml
|
92
78
|
- data/PhoneNumberMetaData.xml
|
93
|
-
- lib/
|
94
|
-
- lib/phonelib/version.rb
|
79
|
+
- lib/validators/phone_validator.rb
|
95
80
|
- lib/phonelib/phone.rb
|
96
81
|
- lib/phonelib/core.rb
|
97
|
-
- lib/
|
82
|
+
- lib/phonelib/version.rb
|
83
|
+
- lib/phonelib.rb
|
98
84
|
- lib/tasks/phonelib_tasks.rake
|
99
85
|
- MIT-LICENSE
|
100
86
|
- Rakefile
|
101
87
|
- README.rdoc
|
102
|
-
- test/
|
103
|
-
- test/dummy/
|
104
|
-
- test/dummy/
|
88
|
+
- test/dummy/db/schema.rb
|
89
|
+
- test/dummy/db/test.sqlite3
|
90
|
+
- test/dummy/db/migrate/20130121173847_create_phones.rb
|
91
|
+
- test/dummy/db/migrate/20130122075331_add_possible_number_to_phone.rb
|
92
|
+
- test/dummy/db/development.sqlite3
|
93
|
+
- test/dummy/config.ru
|
94
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
105
95
|
- test/dummy/config/initializers/wrap_parameters.rb
|
106
|
-
- test/dummy/config/initializers/secret_token.rb
|
107
96
|
- test/dummy/config/initializers/mime_types.rb
|
108
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
109
97
|
- test/dummy/config/initializers/inflections.rb
|
98
|
+
- test/dummy/config/initializers/session_store.rb
|
99
|
+
- test/dummy/config/initializers/secret_token.rb
|
110
100
|
- test/dummy/config/environments/development.rb
|
111
|
-
- test/dummy/config/environments/test.rb
|
112
101
|
- test/dummy/config/environments/production.rb
|
113
|
-
- test/dummy/config/
|
114
|
-
- test/dummy/config/locales/en.yml
|
115
|
-
- test/dummy/config/boot.rb
|
102
|
+
- test/dummy/config/environments/test.rb
|
116
103
|
- test/dummy/config/application.rb
|
104
|
+
- test/dummy/config/boot.rb
|
105
|
+
- test/dummy/config/environment.rb
|
117
106
|
- test/dummy/config/routes.rb
|
107
|
+
- test/dummy/config/locales/en.yml
|
108
|
+
- test/dummy/config/database.yml
|
109
|
+
- test/dummy/public/422.html
|
110
|
+
- test/dummy/public/404.html
|
111
|
+
- test/dummy/public/favicon.ico
|
112
|
+
- test/dummy/public/500.html
|
113
|
+
- test/dummy/test/fixtures/phones.yml
|
114
|
+
- test/dummy/test/unit/helpers/phones_helper_test.rb
|
115
|
+
- test/dummy/test/unit/phone_test.rb
|
116
|
+
- test/dummy/test/functional/phones_controller_test.rb
|
117
|
+
- test/dummy/README.rdoc
|
118
|
+
- test/dummy/log/development.log
|
119
|
+
- test/dummy/log/test.log
|
120
|
+
- test/dummy/Rakefile
|
121
|
+
- test/dummy/script/rails
|
122
|
+
- test/dummy/app/views/layouts/application.html.erb
|
123
|
+
- test/dummy/app/views/phones/_form.html.erb
|
124
|
+
- test/dummy/app/views/phones/index.html.erb
|
125
|
+
- test/dummy/app/views/phones/show.html.erb
|
126
|
+
- test/dummy/app/views/phones/edit.html.erb
|
127
|
+
- test/dummy/app/views/phones/new.html.erb
|
118
128
|
- test/dummy/app/models/phone.rb
|
119
|
-
- test/dummy/app/
|
129
|
+
- test/dummy/app/helpers/application_helper.rb
|
130
|
+
- test/dummy/app/helpers/phones_helper.rb
|
120
131
|
- test/dummy/app/controllers/phones_controller.rb
|
121
|
-
- test/dummy/app/
|
132
|
+
- test/dummy/app/controllers/application_controller.rb
|
122
133
|
- test/dummy/app/assets/stylesheets/scaffold.css
|
123
134
|
- test/dummy/app/assets/stylesheets/phones.css
|
135
|
+
- test/dummy/app/assets/stylesheets/application.css
|
124
136
|
- test/dummy/app/assets/javascripts/application.js
|
125
137
|
- test/dummy/app/assets/javascripts/phones.js
|
126
|
-
- test/dummy/app/helpers/phones_helper.rb
|
127
|
-
- test/dummy/app/helpers/application_helper.rb
|
128
|
-
- test/dummy/app/views/layouts/application.html.erb
|
129
|
-
- test/dummy/app/views/phones/index.html.erb
|
130
|
-
- test/dummy/app/views/phones/_form.html.erb
|
131
|
-
- test/dummy/app/views/phones/new.html.erb
|
132
|
-
- test/dummy/app/views/phones/edit.html.erb
|
133
|
-
- test/dummy/app/views/phones/show.html.erb
|
134
|
-
- test/dummy/script/rails
|
135
|
-
- test/dummy/db/development.sqlite3
|
136
|
-
- test/dummy/db/migrate/20130121173847_create_phones.rb
|
137
|
-
- test/dummy/db/migrate/20130122075331_add_possible_number_to_phone.rb
|
138
|
-
- test/dummy/db/schema.rb
|
139
|
-
- test/dummy/db/test.sqlite3
|
140
|
-
- test/dummy/config.ru
|
141
|
-
- test/dummy/README.rdoc
|
142
|
-
- test/dummy/Rakefile
|
143
|
-
- test/dummy/log/test.log
|
144
|
-
- test/dummy/log/development.log
|
145
|
-
- test/dummy/public/404.html
|
146
|
-
- test/dummy/public/422.html
|
147
|
-
- test/dummy/public/500.html
|
148
|
-
- test/dummy/public/favicon.ico
|
149
|
-
- test/dummy/test/functional/phones_controller_test.rb
|
150
|
-
- test/dummy/test/fixtures/phones.yml
|
151
|
-
- test/dummy/test/unit/helpers/phones_helper_test.rb
|
152
|
-
- test/dummy/test/unit/phone_test.rb
|
153
138
|
- test/test_helper.rb
|
139
|
+
- test/phonelib_test.rb
|
154
140
|
homepage: https://github.com/daddyz/phonelib
|
155
141
|
licenses: []
|
156
|
-
metadata: {}
|
157
142
|
post_install_message:
|
158
143
|
rdoc_options: []
|
159
144
|
require_paths:
|
160
145
|
- lib
|
161
146
|
required_ruby_version: !ruby/object:Gem::Requirement
|
147
|
+
none: false
|
162
148
|
requirements:
|
163
|
-
- - '>='
|
149
|
+
- - ! '>='
|
164
150
|
- !ruby/object:Gem::Version
|
165
151
|
version: '0'
|
152
|
+
segments:
|
153
|
+
- 0
|
154
|
+
hash: 4341017430313603608
|
166
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
|
+
none: false
|
167
157
|
requirements:
|
168
|
-
- - '>='
|
158
|
+
- - ! '>='
|
169
159
|
- !ruby/object:Gem::Version
|
170
160
|
version: '0'
|
161
|
+
segments:
|
162
|
+
- 0
|
163
|
+
hash: 4341017430313603608
|
171
164
|
requirements: []
|
172
165
|
rubyforge_project:
|
173
|
-
rubygems_version:
|
166
|
+
rubygems_version: 1.8.17
|
174
167
|
signing_key:
|
175
|
-
specification_version:
|
168
|
+
specification_version: 3
|
176
169
|
summary: Gem validates phone numbers with Google libphonenumber database.
|
177
170
|
test_files:
|
178
|
-
- test/
|
179
|
-
- test/dummy/
|
180
|
-
- test/dummy/
|
171
|
+
- test/dummy/db/schema.rb
|
172
|
+
- test/dummy/db/test.sqlite3
|
173
|
+
- test/dummy/db/migrate/20130121173847_create_phones.rb
|
174
|
+
- test/dummy/db/migrate/20130122075331_add_possible_number_to_phone.rb
|
175
|
+
- test/dummy/db/development.sqlite3
|
176
|
+
- test/dummy/config.ru
|
177
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
181
178
|
- test/dummy/config/initializers/wrap_parameters.rb
|
182
|
-
- test/dummy/config/initializers/secret_token.rb
|
183
179
|
- test/dummy/config/initializers/mime_types.rb
|
184
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
185
180
|
- test/dummy/config/initializers/inflections.rb
|
181
|
+
- test/dummy/config/initializers/session_store.rb
|
182
|
+
- test/dummy/config/initializers/secret_token.rb
|
186
183
|
- test/dummy/config/environments/development.rb
|
187
|
-
- test/dummy/config/environments/test.rb
|
188
184
|
- test/dummy/config/environments/production.rb
|
189
|
-
- test/dummy/config/
|
190
|
-
- test/dummy/config/locales/en.yml
|
191
|
-
- test/dummy/config/boot.rb
|
185
|
+
- test/dummy/config/environments/test.rb
|
192
186
|
- test/dummy/config/application.rb
|
187
|
+
- test/dummy/config/boot.rb
|
188
|
+
- test/dummy/config/environment.rb
|
193
189
|
- test/dummy/config/routes.rb
|
190
|
+
- test/dummy/config/locales/en.yml
|
191
|
+
- test/dummy/config/database.yml
|
192
|
+
- test/dummy/public/422.html
|
193
|
+
- test/dummy/public/404.html
|
194
|
+
- test/dummy/public/favicon.ico
|
195
|
+
- test/dummy/public/500.html
|
196
|
+
- test/dummy/test/fixtures/phones.yml
|
197
|
+
- test/dummy/test/unit/helpers/phones_helper_test.rb
|
198
|
+
- test/dummy/test/unit/phone_test.rb
|
199
|
+
- test/dummy/test/functional/phones_controller_test.rb
|
200
|
+
- test/dummy/README.rdoc
|
201
|
+
- test/dummy/log/development.log
|
202
|
+
- test/dummy/log/test.log
|
203
|
+
- test/dummy/Rakefile
|
204
|
+
- test/dummy/script/rails
|
205
|
+
- test/dummy/app/views/layouts/application.html.erb
|
206
|
+
- test/dummy/app/views/phones/_form.html.erb
|
207
|
+
- test/dummy/app/views/phones/index.html.erb
|
208
|
+
- test/dummy/app/views/phones/show.html.erb
|
209
|
+
- test/dummy/app/views/phones/edit.html.erb
|
210
|
+
- test/dummy/app/views/phones/new.html.erb
|
194
211
|
- test/dummy/app/models/phone.rb
|
195
|
-
- test/dummy/app/
|
212
|
+
- test/dummy/app/helpers/application_helper.rb
|
213
|
+
- test/dummy/app/helpers/phones_helper.rb
|
196
214
|
- test/dummy/app/controllers/phones_controller.rb
|
197
|
-
- test/dummy/app/
|
215
|
+
- test/dummy/app/controllers/application_controller.rb
|
198
216
|
- test/dummy/app/assets/stylesheets/scaffold.css
|
199
217
|
- test/dummy/app/assets/stylesheets/phones.css
|
218
|
+
- test/dummy/app/assets/stylesheets/application.css
|
200
219
|
- test/dummy/app/assets/javascripts/application.js
|
201
220
|
- test/dummy/app/assets/javascripts/phones.js
|
202
|
-
- test/dummy/app/helpers/phones_helper.rb
|
203
|
-
- test/dummy/app/helpers/application_helper.rb
|
204
|
-
- test/dummy/app/views/layouts/application.html.erb
|
205
|
-
- test/dummy/app/views/phones/index.html.erb
|
206
|
-
- test/dummy/app/views/phones/_form.html.erb
|
207
|
-
- test/dummy/app/views/phones/new.html.erb
|
208
|
-
- test/dummy/app/views/phones/edit.html.erb
|
209
|
-
- test/dummy/app/views/phones/show.html.erb
|
210
|
-
- test/dummy/script/rails
|
211
|
-
- test/dummy/db/development.sqlite3
|
212
|
-
- test/dummy/db/migrate/20130121173847_create_phones.rb
|
213
|
-
- test/dummy/db/migrate/20130122075331_add_possible_number_to_phone.rb
|
214
|
-
- test/dummy/db/schema.rb
|
215
|
-
- test/dummy/db/test.sqlite3
|
216
|
-
- test/dummy/config.ru
|
217
|
-
- test/dummy/README.rdoc
|
218
|
-
- test/dummy/Rakefile
|
219
|
-
- test/dummy/log/test.log
|
220
|
-
- test/dummy/log/development.log
|
221
|
-
- test/dummy/public/404.html
|
222
|
-
- test/dummy/public/422.html
|
223
|
-
- test/dummy/public/500.html
|
224
|
-
- test/dummy/public/favicon.ico
|
225
|
-
- test/dummy/test/functional/phones_controller_test.rb
|
226
|
-
- test/dummy/test/fixtures/phones.yml
|
227
|
-
- test/dummy/test/unit/helpers/phones_helper_test.rb
|
228
|
-
- test/dummy/test/unit/phone_test.rb
|
229
221
|
- test/test_helper.rb
|
222
|
+
- test/phonelib_test.rb
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: e3a7a222584f2b4a8409d639b76df90e9494f0f8
|
4
|
-
data.tar.gz: 48d4949660527a4025fbbfea4254f76a42be7039
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 8dc1703d9e41571e4b1aa0a8cfc7a0f1d9bb64deda6527f91a1bfc65f2ac8f28b6ba9cc0107c6cc3ef3fad9b0e41053a8cf326ce63d149f3c29e86362848ccea
|
7
|
-
data.tar.gz: d5147e218bf60e5c688246a28d010854fc8db7195757c751c55f457c71d279dcd919b41cdd47fe616ad08818a2e07d8bc6e237aa37348b431f5ec6121dfbd74f
|