phony 2.2.1 → 2.2.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: d477f31e7f4d8aa21386f93f8ce3e07bbf91c750
4
- data.tar.gz: 40398d6c86212888d8b8355a12d22112c5ca2c51
3
+ metadata.gz: 8962dd146c8cbf465a677681c21f4e85118d5498
4
+ data.tar.gz: 5658d9cbc17e3ee1f9efd99b205397462c82decf
5
5
  SHA512:
6
- metadata.gz: f9f4548b3395335f5f018f33f3a1e8272d8d946bbe08883173661ad11c93eea2630d7b282cc0c5f0d78fc01fb0da6e000ac268da1d55451de8ac3f7c913c06df
7
- data.tar.gz: 9c2f65bb9e2d198671e2de781a1bd93e5f7eb944dbab0ca55589609fe76b8096aed083c33fd8f19226d7ebd6f54ce717da397625b2cceea1713a6e69ae745818
6
+ metadata.gz: 145ce5c03dca0106a0cbb7bdc1226f50fa2755b2aadb109b9ad0b4cecf704a7e23a745623ac97204ff4505169778954519327425a782e2659a20211407e6b04d
7
+ data.tar.gz: 187286eeffa3f0e7100d11922ce42d87b74415c530ed8ae8ee3e566b7fd54aff5a93e3f4946baea83293197b11be36595dcd83d045eaa5d35657fc1ecf305ba6
@@ -4,6 +4,7 @@ ndcs = [
4
4
  # '1', # Vienna
5
5
  '89', # Routing Number
6
6
  '316', # Graz
7
+ '463', # Klagenfurt
7
8
  '512', # Innsbruck
8
9
  '662', # Salzburg
9
10
  '732' # Linz
@@ -49,6 +50,13 @@ mobile = [
49
50
  '699',
50
51
  ]
51
52
 
53
+ mobile_2digit = [
54
+ '67',
55
+ '68',
56
+ '69',
57
+ ]
58
+
59
+
52
60
  service = [
53
61
  '710',
54
62
  '711',
@@ -79,7 +87,8 @@ Phony.define do
79
87
  one_of(service) >> split(9..9) |
80
88
  one_of(corporate) >> split(5..5) |
81
89
  one_of(ndcs) >> split(6..6) |
82
- one_of(mobile) >> split(7..7) |
83
90
  one_of('663') >> split(6..6) | # 6 digit mobile.
91
+ one_of(mobile) >> split(7..7) |
92
+ one_of(mobile_2digit) >> split(7..7) | # Separate as mobile contains 676 - 67 violates the prefix rule.
84
93
  fixed(4) >> split(7..7)
85
94
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phony
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke