phony 1.2.7 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/phony/countries/italy.rb +33 -33
- data/lib/phony/national_code.rb +1 -1
- metadata +4 -12
|
@@ -101,48 +101,48 @@ Phony::Countries::Italy = Phony::Country.configured :local_format => [3, 4],
|
|
|
101
101
|
'31105',
|
|
102
102
|
'313',
|
|
103
103
|
'319',
|
|
104
|
-
|
|
104
|
+
('3200'..'3209').to_a,
|
|
105
105
|
'322',
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
106
|
+
('3230'..'3239').to_a,
|
|
107
|
+
('3270'..'3279').to_a,
|
|
108
|
+
('3280'..'3289').to_a,
|
|
109
|
+
('3290'..'3299').to_a,
|
|
110
|
+
('3300'..'3309').to_a,
|
|
111
111
|
'331',
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
112
|
+
('3330'..'3339').to_a,
|
|
113
|
+
('3340'..'3349').to_a,
|
|
114
|
+
('3350'..'3359').to_a,
|
|
115
|
+
('3360'..'3369').to_a,
|
|
116
|
+
('3370'..'3379').to_a,
|
|
117
|
+
('3380'..'3389').to_a,
|
|
118
|
+
('3390'..'3399').to_a,
|
|
119
|
+
('3400'..'3409').to_a,
|
|
120
120
|
'341',
|
|
121
|
-
|
|
121
|
+
('3430'..'3439').to_a,
|
|
122
122
|
'345',
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
123
|
+
('3460'..'3469').to_a,
|
|
124
|
+
('3470'..'3479').to_a,
|
|
125
|
+
('3480'..'3489').to_a,
|
|
126
|
+
('3490'..'3499').to_a,
|
|
127
127
|
'350',
|
|
128
|
-
|
|
128
|
+
('3600'..'3609').to_a,
|
|
129
129
|
'361',
|
|
130
130
|
'362',
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
('3630'..'3639').to_a,
|
|
132
|
+
('3660'..'3669').to_a,
|
|
133
|
+
('3680'..'3689').to_a,
|
|
134
134
|
'370',
|
|
135
135
|
'373',
|
|
136
136
|
'377',
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
'397'
|
|
145
|
-
],
|
|
137
|
+
('3800'..'3809').to_a,
|
|
138
|
+
('3880'..'3889').to_a,
|
|
139
|
+
('3890'..'3899').to_a,
|
|
140
|
+
('3900'..'3909').to_a,
|
|
141
|
+
('3910'..'3919').to_a,
|
|
142
|
+
('3920'..'3929').to_a,
|
|
143
|
+
('3930'..'3939').to_a,
|
|
144
|
+
'397'
|
|
145
|
+
].flatten,
|
|
146
146
|
:service => [ # Not exhaustive.
|
|
147
147
|
'112',
|
|
148
148
|
'113',
|
|
@@ -153,4 +153,4 @@ Phony::Countries::Italy = Phony::Country.configured :local_format => [3, 4],
|
|
|
153
153
|
'1518',
|
|
154
154
|
'1530'
|
|
155
155
|
]
|
|
156
|
-
}
|
|
156
|
+
}
|
data/lib/phony/national_code.rb
CHANGED
|
@@ -23,7 +23,7 @@ module Phony
|
|
|
23
23
|
[ndc, *@local_splitter.split(rest)]
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
# Split gets a number
|
|
26
|
+
# Split gets a number without country code and removes a relative zero.
|
|
27
27
|
#
|
|
28
28
|
# Note: Some cases, like Italy, don't remove the relative zero.
|
|
29
29
|
#
|
metadata
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: phony
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
prerelease:
|
|
5
|
-
|
|
6
|
-
- 1
|
|
7
|
-
- 2
|
|
8
|
-
- 7
|
|
9
|
-
version: 1.2.7
|
|
4
|
+
prerelease:
|
|
5
|
+
version: 1.2.8
|
|
10
6
|
platform: ruby
|
|
11
7
|
authors:
|
|
12
8
|
- Florian Hanke
|
|
@@ -14,7 +10,7 @@ autorequire:
|
|
|
14
10
|
bindir: bin
|
|
15
11
|
cert_chain: []
|
|
16
12
|
|
|
17
|
-
date: 2011-
|
|
13
|
+
date: 2011-02-02 00:00:00 +01:00
|
|
18
14
|
default_executable:
|
|
19
15
|
dependencies: []
|
|
20
16
|
|
|
@@ -83,21 +79,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
83
79
|
requirements:
|
|
84
80
|
- - ">="
|
|
85
81
|
- !ruby/object:Gem::Version
|
|
86
|
-
segments:
|
|
87
|
-
- 0
|
|
88
82
|
version: "0"
|
|
89
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
84
|
none: false
|
|
91
85
|
requirements:
|
|
92
86
|
- - ">="
|
|
93
87
|
- !ruby/object:Gem::Version
|
|
94
|
-
segments:
|
|
95
|
-
- 0
|
|
96
88
|
version: "0"
|
|
97
89
|
requirements: []
|
|
98
90
|
|
|
99
91
|
rubyforge_project:
|
|
100
|
-
rubygems_version: 1.
|
|
92
|
+
rubygems_version: 1.5.0
|
|
101
93
|
signing_key:
|
|
102
94
|
specification_version: 3
|
|
103
95
|
summary: Fast international phone number (E164 standard) normalizing, splitting and formatting.
|