phony 2.12.6 → 2.12.7

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 +6 -26
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0510dae7f9f431b940e69717936a431b41fbcd6c
4
- data.tar.gz: e91334914a4d5e16d597b83afb0514b1decf8034
3
+ metadata.gz: dfff70fbf021c9a1ba0413d60f75aacdb2e10dd1
4
+ data.tar.gz: 6724549cc4a17fb3130d9b9dadb2ede2ee35448c
5
5
  SHA512:
6
- metadata.gz: b8510a0ebab25d011d17e0139c15da88d5b2cde39f147e788224f951944ad8404232f6dc3bf9505a7906918f68cbfd9704b8831a4d70fe0b18a6bf10a8618316
7
- data.tar.gz: d49241108a82e0d6fe9f7452f8836265371dbb31e896013cb7a282754ac7abe8545ec8f0cd60286c3d9c680fbcf45347870e90d37fc0ff0685a65035d2775ca5
6
+ metadata.gz: eea1e237c7179a3609f79304dbd549040315e1e205846dca9395b997f4fa382492dc31edd28264bcb49f28a30ea135d1435c75d0763100aa7a92756f9608f94f
7
+ data.tar.gz: b632de491b41e4558976b6e5f8ed8a2fb17c7dffee542c08952d873fbc80402df480e6d6f33c84b784aa7eebada55850077cffe128c095e93d4789e66b82ba6c
@@ -1,25 +1,6 @@
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
-
23
4
  ndcs_with_8_subscriber_numbers = %w(3 6)
24
5
 
25
6
  ndcs_with_7_subscriber_numbers = %w(
@@ -421,13 +402,12 @@ ndcs_with_5_subscriber_numbers = %w(
421
402
  Phony.define do
422
403
  country '81',
423
404
  trunk('0') |
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)
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
431
411
  # TODO: 91(NDC) N(S)N length: 5-13 - Non-geographic number (Direct subscriber telephone service (legacy))
432
412
  fixed(2) >> split(4,4)
433
413
  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.6
4
+ version: 2.12.7
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-29 00:00:00.000000000 Z
11
+ date: 2015-04-07 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