phonelib 0.6.35 → 0.6.36
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/extended_data.dat +0 -0
- data/data/phone_data.dat +0 -0
- data/lib/phonelib/phone_formatter.rb +6 -1
- data/lib/phonelib/version.rb +1 -1
- 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: ebb5c4a03e76dff6c8aafae4aca658e6703542bf
|
4
|
+
data.tar.gz: 62e417bddb31c30731c9db39419840c7337558aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61fb6b7dee5132bf7c63cb5a604cd2fb2ab9782ba20bc6df8b4a0367cb497da9b596f475dc00031f93ee4580d2a98ae13ea5feb43bdc6a273f87b3a77941c969
|
7
|
+
data.tar.gz: 978d3dcb0236573a1b2425949e0a5716abe196d0052d59e30dd71fae5b794094dda948de9a243dfc91c2f900867ad73164504e101243eead4c9d6c98df10a983
|
data/data/extended_data.dat
CHANGED
Binary file
|
data/data/phone_data.dat
CHANGED
Binary file
|
@@ -149,7 +149,12 @@ module Phonelib
|
|
149
149
|
rule.gsub!(/(\$NP|\$FG)/, '$NP' => prefix, '$FG' => '$1')
|
150
150
|
|
151
151
|
# add space to format groups, change first group to rule,
|
152
|
-
format_string = format[:format].gsub(/(\d)\$/, '\\1 $')
|
152
|
+
format_string = format[:format].gsub(/(\d)\$/, '\\1 $')
|
153
|
+
if format_string.include? '$1'
|
154
|
+
format_string.gsub! '$1', rule
|
155
|
+
else
|
156
|
+
format_string = rule.gsub('$1', '') + format_string
|
157
|
+
end
|
153
158
|
|
154
159
|
@formatting_data =
|
155
160
|
[@national_number.match(/#{format[Core::PATTERN]}/), format_string]
|
data/lib/phonelib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phonelib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.36
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vadim Senderovich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|