phonelib 0.6.15 → 0.6.16

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: e8d7e46eb10e0d821b842e5f88e0bb19b155a1d1
4
- data.tar.gz: fcb0e4064fbecc3df45a001b6033620c3328fbb8
3
+ metadata.gz: a0d8ac9905a06408a2e22941698f44b56b8e5f6a
4
+ data.tar.gz: 49518341f5949e58af9c7a5c694e1e09b2c3b770
5
5
  SHA512:
6
- metadata.gz: c6816d97eaa931ee82e65448cd85fa91d3fb965daf3f3a1c3f62a494d70d424fc16cfa5d0e0ff59e933fd0452f040fa24cbe1ce94d7e6e396ab7afbf9b71cdd6
7
- data.tar.gz: '049325fb4deaff9529be193175ea0df3b01b62ca083ed9cf72d6754b3350ddd7413575f5ab4c8c0a84fbfe5c430fb11e955a312513b2bb5408fd5a5823623e34'
6
+ metadata.gz: '0487064c4a034a250185030bfb101746f11155ed61d92988aaff04e946618334cec3441db27b2066ab4dcdc53933d7a2ec26c4970222c830b7bb87f8e15498ea'
7
+ data.tar.gz: 33cd7d06fb58d82afaa0c249277727c97d1a592619979e4ebb41c4e4204cb5456aa689833fdc1f908b7e53ed6e7defb539b44056f2ed9e4426a3324ffd5d1908
Binary file
Binary file
@@ -105,7 +105,7 @@ module Phonelib
105
105
  regex << "(#{data[Core::INTERNATIONAL_PREFIX]})?"
106
106
  regex << "(#{data[Core::COUNTRY_CODE]})#{country_optional ? '?' : ''}"
107
107
  regex << "(#{data[Core::NATIONAL_PREFIX_FOR_PARSING] || data[Core::NATIONAL_PREFIX]})?"
108
- regex << "(#{type_regex(data[Core::TYPES][Core::GENERAL], type)})"
108
+ regex << "(#{type_regex(data[Core::TYPES][Core::GENERAL], type)})" if data[Core::TYPES]
109
109
 
110
110
  cr("^#{regex.join}$")
111
111
  end
@@ -1,4 +1,4 @@
1
1
  module Phonelib
2
2
  # @private
3
- VERSION = '0.6.15'
3
+ VERSION = '0.6.16'
4
4
  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.6.15
4
+ version: 0.6.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vadim Senderovich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-17 00:00:00.000000000 Z
11
+ date: 2017-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake