global_phone_locomote 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  require 'global_phone/context'
2
2
 
3
3
  module GlobalPhone
4
- VERSION = '1.0.3'
4
+ VERSION = '1.0.4'
5
5
 
6
6
  class Error < ::StandardError; end
7
7
  class NoDatabaseError < Error; end
@@ -109,7 +109,7 @@ module GlobalPhone
109
109
 
110
110
  def national_prefix_formatting_rule
111
111
  @national_prefix_formatting_rule ||=
112
- format.national_prefix_formatting_rule || territory.national_prefix_formatting_rule
112
+ format.try(:national_prefix_formatting_rule) || territory.national_prefix_formatting_rule
113
113
  end
114
114
  end
115
115
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: global_phone_locomote
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-23 00:00:00.000000000 Z
12
+ date: 2014-03-28 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: This is a fork of the wonderful sstepenson/global_phone it only exists
15
15
  because our company has a runtime dependency on this gem as part of a private gem
@@ -51,7 +51,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
51
51
  version: '0'
52
52
  segments:
53
53
  - 0
54
- hash: 2776999993341552955
54
+ hash: -2052407621972188397
55
55
  required_rubygems_version: !ruby/object:Gem::Requirement
56
56
  none: false
57
57
  requirements:
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
60
  version: '0'
61
61
  segments:
62
62
  - 0
63
- hash: 2776999993341552955
63
+ hash: -2052407621972188397
64
64
  requirements: []
65
65
  rubyforge_project:
66
66
  rubygems_version: 1.8.24