phony 2.12.5 → 2.12.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/phony/countries/japan.rb +26 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0510dae7f9f431b940e69717936a431b41fbcd6c
|
4
|
+
data.tar.gz: e91334914a4d5e16d597b83afb0514b1decf8034
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
406
|
-
one_of(ndcs_with_6_subscriber_numbers)
|
407
|
-
one_of(%w(120 800))
|
408
|
-
one_of(ndcs_with_7_subscriber_numbers)
|
409
|
-
one_of(ndcs_with_8_subscriber_numbers)
|
410
|
-
one_of(
|
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.
|
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-
|
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
|