phony 2.12.5 → 2.12.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/phony/countries/japan.rb +26 -6
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b68aff7c06c3b376114d3c8dee232f9d3ef93907
4
- data.tar.gz: 47ab5ce24f588b947a47990391c9810da3cf556d
3
+ metadata.gz: 0510dae7f9f431b940e69717936a431b41fbcd6c
4
+ data.tar.gz: e91334914a4d5e16d597b83afb0514b1decf8034
5
5
  SHA512:
6
- metadata.gz: a8a006c46a7165ef4b46479daef633c79b7e763f15cd9448653aa05fef290d1f44e426ba89fe29fa1672819a44f3a0312eb97ee0034134ac7c531090e23ac6d5
7
- data.tar.gz: ff24ecc68f512578560a668e6717546c1318645f1335f7b7a5940be2a87152ed55d7ccc7552a339de50e8b684bebdcdff2d02fa1ddff98ff7e95f10e1c16725e
6
+ metadata.gz: b8510a0ebab25d011d17e0139c15da88d5b2cde39f147e788224f951944ad8404232f6dc3bf9505a7906918f68cbfd9704b8831a4d70fe0b18a6bf10a8618316
7
+ data.tar.gz: d49241108a82e0d6fe9f7452f8836265371dbb31e896013cb7a282754ac7abe8545ec8f0cd60286c3d9c680fbcf45347870e90d37fc0ff0685a65035d2775ca5
@@ -1,6 +1,25 @@
1
1
  # Japan
2
2
  # http://www.itu.int/oth/T020200006D/en
3
3
 
4
+ ndcs_with_11_subscriber_numbers = %w(
5
+ 020
6
+ 030
7
+ 040
8
+ 050
9
+ 060
10
+ 070
11
+ 080
12
+ 090
13
+ )
14
+
15
+ ndcs_with_10_subscriber_numbers = %w(
16
+ 20
17
+ 50
18
+ 60
19
+ 70
20
+ 90
21
+ )
22
+
4
23
  ndcs_with_8_subscriber_numbers = %w(3 6)
5
24
 
6
25
  ndcs_with_7_subscriber_numbers = %w(
@@ -402,12 +421,13 @@ ndcs_with_5_subscriber_numbers = %w(
402
421
  Phony.define do
403
422
  country '81',
404
423
  trunk('0') |
405
- one_of(ndcs_with_5_subscriber_numbers) >> split(3,2) |
406
- one_of(ndcs_with_6_subscriber_numbers) >> split(3,3) |
407
- one_of(%w(120 800)) >> split(3,3) | # freephone
408
- one_of(ndcs_with_7_subscriber_numbers) >> split(4,3) |
409
- one_of(ndcs_with_8_subscriber_numbers) >> split(4,4) |
410
- one_of('20', '50', '60', '70', '90') >> split(4,4) | # mobile, VoIP telephony
424
+ one_of(ndcs_with_5_subscriber_numbers) >> split(3,2) |
425
+ one_of(ndcs_with_6_subscriber_numbers) >> split(3,3) |
426
+ one_of(%w(120 800)) >> split(3,3) | # freephone
427
+ one_of(ndcs_with_7_subscriber_numbers) >> split(4,3) |
428
+ one_of(ndcs_with_8_subscriber_numbers) >> split(4,4) |
429
+ one_of(ndcs_with_10_subscriber_numbers) >> split(4,4) | # mobile, VoIP telephony
430
+ one_of(ndcs_with_11_subscriber_numbers) >> split(4,4) | # 3-digit non-Geographic area codes (excluding 010)
411
431
  # TODO: 91(NDC) N(S)N length: 5-13 - Non-geographic number (Direct subscriber telephone service (legacy))
412
432
  fixed(2) >> split(4,4)
413
433
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phony
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.12.5
4
+ version: 2.12.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-26 00:00:00.000000000 Z
11
+ date: 2015-03-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'Fast international phone number (E164 standard) normalizing, splitting
14
14
  and formatting. Lots of formatting options: International (+.., 00..), national