phonelib 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/data/phone_data.dat CHANGED
Binary file
@@ -121,7 +121,8 @@ module Phonelib
121
121
 
122
122
  format = @data[country][:format]
123
123
  if matches = @national_number.match(/#{format[Core::PATTERN]}/)
124
- national = format[:format].gsub(/\$\d/) { |el| matches[el[1].to_i] }
124
+ fmt = format[:intl_format] || format[:format]
125
+ national = fmt.gsub(/\$\d/) { |el| matches[el[1].to_i] }
125
126
  else
126
127
  national = @national_number
127
128
  end
@@ -1,5 +1,5 @@
1
1
  # :nodoc:
2
2
  module Phonelib
3
3
  # :nodoc:
4
- VERSION = '0.3.3'
4
+ VERSION = '0.3.4'
5
5
  end
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.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vadim Senderovich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-15 00:00:00.000000000 Z
11
+ date: 2014-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake