phonie 3.1.1 → 3.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5d1aa4fda751c8c7861763701fcfbd0eefbfbb0d
4
- data.tar.gz: 5da60583e1cec748ac53e4336bfd8be2cb70b45c
3
+ metadata.gz: 527ce1d22a7e15121f33f5ddecc17ccf8e21e38e
4
+ data.tar.gz: 434942c59b9b14dbd71828baabe71c4fffaf7a8b
5
5
  SHA512:
6
- metadata.gz: b5a4d761901d6ed67a50a2da30ee5214b6a2e37313fd2fb2d2d0c9c4f41a4bd9456088ce086c037ff282022876b8f191775a38f202e733958fe69df4a027564b
7
- data.tar.gz: ac030ca70109ecf558cc0e5cfe528647adc7e3fc769ce3d8792286be3535298be53b30a1ca260aa2b41abd9c9c645f887aea90ba782443bc62596dd6ddea04e2
6
+ metadata.gz: f79e53a3da180e9fb4ce04a1f3cc7c110e50901533c0553bfba5151ab041c85f108d7736cefbf16250168c462f8ac17813fc712591a1aa357389e211b5ab0862
7
+ data.tar.gz: 72845e08eeadec2666c6177543e20d9220588f342001c71e785824875a49dcc277256ecf655208ae23e7f2a1610cf0d1d5ad39148c446e9f9fdeb9e8423c6f4e
@@ -1,3 +1,8 @@
1
+ 3.1.2
2
+ =====
3
+
4
+ * Adds support for Montenegro
5
+
1
6
  3.1.1
2
7
  =====
3
8
 
@@ -1,8 +1,8 @@
1
- = Phone
1
+ = Phonie
2
2
  Parsing, validating and creating phone numbers
3
3
 
4
4
  == Install
5
- You can install the phone library as a gem
5
+ You can install the phonie library as a gem
6
6
  gem install phonie
7
7
 
8
8
  == Initializing
@@ -155,6 +155,7 @@ Currently tested on:
155
155
  [LU] Luxembourg
156
156
  [LV] Latvia
157
157
  [MA] Morocco
158
+ [ME] Montenegro
158
159
  [MT] Malta
159
160
  [MX] Mexico
160
161
  [NG] Nigeria
@@ -1387,6 +1387,10 @@
1387
1387
  :iso_3166_code: ME
1388
1388
  :name: Montenegro
1389
1389
  :international_dialing_prefix: '00'
1390
+ :number_format: '\d{11}'
1391
+ :area_code: '20|3[0123]|4[01]|5[012]|6'
1392
+ :local_number_format: '\d{6,7}'
1393
+ :mobile_format: '6\d{7}'
1390
1394
  -
1391
1395
  :country_code: '976'
1392
1396
  :national_dialing_prefix: '0'
@@ -1,3 +1,3 @@
1
1
  module Phonie
2
- VERSION = '3.1.1'
2
+ VERSION = '3.1.2'
3
3
  end
@@ -16,7 +16,8 @@ Gem::Specification.new do |s|
16
16
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
17
  s.require_paths = ["lib"]
18
18
 
19
- s.add_development_dependency 'activemodel'
19
+ s.add_development_dependency 'activemodel', '~> 4.0'
20
+ s.add_development_dependency 'minitest', '~> 4.0'
20
21
  s.add_development_dependency 'rake'
21
22
  s.add_development_dependency 'nokogiri'
22
23
  end
@@ -13,4 +13,3 @@ class ESTest < Phonie::TestCase
13
13
  parse_test('+34635399976', '34', '6', '35399976', 'Spain', true)
14
14
  end
15
15
  end
16
-
@@ -0,0 +1,12 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
2
+
3
+ ## Montenegro
4
+ class METest < Phonie::TestCase
5
+ def test_local
6
+ parse_test('+38220123456', '382', '20', '123456', 'Montenegro', false)
7
+ end
8
+
9
+ def test_mobile
10
+ parse_test('+38261234567', '382', '6', '1234567', 'Montenegro', true)
11
+ end
12
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phonie
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomislav Car
@@ -12,22 +12,36 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2014-04-03 00:00:00.000000000 Z
15
+ date: 2014-06-28 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: activemodel
19
19
  requirement: !ruby/object:Gem::Requirement
20
20
  requirements:
21
- - - ">="
21
+ - - "~>"
22
22
  - !ruby/object:Gem::Version
23
- version: '0'
23
+ version: '4.0'
24
24
  type: :development
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
- - - ">="
28
+ - - "~>"
29
29
  - !ruby/object:Gem::Version
30
- version: '0'
30
+ version: '4.0'
31
+ - !ruby/object:Gem::Dependency
32
+ name: minitest
33
+ requirement: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - "~>"
36
+ - !ruby/object:Gem::Version
37
+ version: '4.0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - "~>"
43
+ - !ruby/object:Gem::Version
44
+ version: '4.0'
31
45
  - !ruby/object:Gem::Dependency
32
46
  name: rake
33
47
  requirement: !ruby/object:Gem::Requirement
@@ -154,6 +168,7 @@ files:
154
168
  - test/countries/lu_test.rb
155
169
  - test/countries/lv_test.rb
156
170
  - test/countries/ma_test.rb
171
+ - test/countries/me_test.rb
157
172
  - test/countries/mt_test.rb
158
173
  - test/countries/mu_test.rb
159
174
  - test/countries/mx_test.rb
@@ -216,114 +231,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
216
231
  version: '0'
217
232
  requirements: []
218
233
  rubyforge_project:
219
- rubygems_version: 2.2.0
234
+ rubygems_version: 2.2.2
220
235
  signing_key:
221
236
  specification_version: 4
222
237
  summary: Phone number parsing, validation and formatting
223
- test_files:
224
- - test/countries/ae_test.rb
225
- - test/countries/af_test.rb
226
- - test/countries/al_test.rb
227
- - test/countries/am_test.rb
228
- - test/countries/ar_test.rb
229
- - test/countries/at_test.rb
230
- - test/countries/au_test.rb
231
- - test/countries/az_test.rb
232
- - test/countries/ba_test.rb
233
- - test/countries/bd_test.rb
234
- - test/countries/be_test.rb
235
- - test/countries/bf_test.rb
236
- - test/countries/bg_test.rb
237
- - test/countries/bo_test.rb
238
- - test/countries/br_test.rb
239
- - test/countries/bs_test.rb
240
- - test/countries/bt_test.rb
241
- - test/countries/by_test.rb
242
- - test/countries/bz_test.rb
243
- - test/countries/ca_test.rb
244
- - test/countries/ch_test.rb
245
- - test/countries/cl_test.rb
246
- - test/countries/cn_test.rb
247
- - test/countries/co_test.rb
248
- - test/countries/cr_test.rb
249
- - test/countries/cy_test.rb
250
- - test/countries/cz_test.rb
251
- - test/countries/de_test.rb
252
- - test/countries/dk_test.rb
253
- - test/countries/dz_test.rb
254
- - test/countries/ec_test.rb
255
- - test/countries/ee_test.rb
256
- - test/countries/eg_test.rb
257
- - test/countries/es_test.rb
258
- - test/countries/et_test.rb
259
- - test/countries/fi_test.rb
260
- - test/countries/fr_test.rb
261
- - test/countries/gb_test.rb
262
- - test/countries/ge_test.rb
263
- - test/countries/gf_test.rb
264
- - test/countries/gh_test.rb
265
- - test/countries/gr_test.rb
266
- - test/countries/gt_test.rb
267
- - test/countries/gu_test.rb
268
- - test/countries/gy_test.rb
269
- - test/countries/hr_test.rb
270
- - test/countries/ht_test.rb
271
- - test/countries/hu_test.rb
272
- - test/countries/ie_test.rb
273
- - test/countries/il_test.rb
274
- - test/countries/in_test.rb
275
- - test/countries/iq_test.rb
276
- - test/countries/ir_test.rb
277
- - test/countries/is_test.rb
278
- - test/countries/it_test.rb
279
- - test/countries/jp_test.rb
280
- - test/countries/ke_test.rb
281
- - test/countries/kh_text.rb
282
- - test/countries/km_test.rb
283
- - test/countries/kr_test.rb
284
- - test/countries/kw_test.rb
285
- - test/countries/lk_test.rb
286
- - test/countries/lt_test.rb
287
- - test/countries/lu_test.rb
288
- - test/countries/lv_test.rb
289
- - test/countries/ma_test.rb
290
- - test/countries/mt_test.rb
291
- - test/countries/mu_test.rb
292
- - test/countries/mx_test.rb
293
- - test/countries/ng_test.rb
294
- - test/countries/ni_test.rb
295
- - test/countries/nl_test.rb
296
- - test/countries/no_test.rb
297
- - test/countries/np_test.rb
298
- - test/countries/nz_test.rb
299
- - test/countries/ph_test.rb
300
- - test/countries/pk_test.rb
301
- - test/countries/pl_test.rb
302
- - test/countries/pr_test.rb
303
- - test/countries/pt_test.rb
304
- - test/countries/qa_test.rb
305
- - test/countries/ro_test.rb
306
- - test/countries/rs_test.rb
307
- - test/countries/ru_test.rb
308
- - test/countries/sa_test.rb
309
- - test/countries/se_test.rb
310
- - test/countries/si_test.rb
311
- - test/countries/sk_test.rb
312
- - test/countries/sn_test.rb
313
- - test/countries/sv_test.rb
314
- - test/countries/th_test.rb
315
- - test/countries/tn_test.rb
316
- - test/countries/to_test.rb
317
- - test/countries/tr_test.rb
318
- - test/countries/tw_test.rb
319
- - test/countries/ua_test.rb
320
- - test/countries/us_test.rb
321
- - test/countries/uy_test.rb
322
- - test/countries/vn_test.rb
323
- - test/countries/za_test.rb
324
- - test/countries/zw_test.rb
325
- - test/country_test.rb
326
- - test/extension_test.rb
327
- - test/phone_test.rb
328
- - test/railties/validator_test.rb
329
- - test/test_helper.rb
238
+ test_files: []