phonelib 0.6.43 → 0.6.46
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +7 -0
- data/data/extended_data.dat +0 -0
- data/data/phone_data.dat +0 -0
- data/lib/phonelib/phone_formatter.rb +1 -1
- data/lib/phonelib/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f5702cfd1fd7ef6eecf8c589701a8be3879ffc29147df0915f05c40199ee43d
|
4
|
+
data.tar.gz: 694c0a043d7d2681652dd4a9e0ea3a668ccd35e300813acc8cfac2d6980caa3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37ea9d924c98e51c2879a395a7e56050ee63060ace543a60c69a6df7d4b92054af945532ec0b559bcbc298eca4597eb471d845a853caaae1538928e25b929b83
|
7
|
+
data.tar.gz: 69df60d5eeecc7747cca844b12adcac43d03396d676749d49ee5b381c8fc4f7b2b44543ad5605cf2772302820c087e37482a4dc43c826a925f4135772649d5ec
|
data/Rakefile
CHANGED
@@ -22,6 +22,13 @@ end
|
|
22
22
|
Bundler::GemHelper.install_tasks
|
23
23
|
|
24
24
|
require 'rspec/core/rake_task'
|
25
|
+
module TempFixForRakeLastComment
|
26
|
+
def last_comment
|
27
|
+
last_description
|
28
|
+
end
|
29
|
+
end
|
30
|
+
Rake::Application.send :include, TempFixForRakeLastComment
|
31
|
+
|
25
32
|
RSpec::Core::RakeTask.new(:spec) do |t|
|
26
33
|
if defined? Rails
|
27
34
|
puts 'Rails found! Running tests with Rails'
|
data/data/extended_data.dat
CHANGED
Binary file
|
data/data/phone_data.dat
CHANGED
Binary file
|
@@ -44,7 +44,7 @@ module Phonelib
|
|
44
44
|
prefix = formatted if formatted.is_a?(String)
|
45
45
|
return nil if sanitized.empty?
|
46
46
|
return "#{prefix}#{country_prefix_or_not}#{sanitized}" unless valid?
|
47
|
-
return country_code
|
47
|
+
return "#{prefix}#{country_code}#{@national_number}" unless formatted
|
48
48
|
|
49
49
|
fmt = @data[country][:format]
|
50
50
|
national = @national_number
|
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.46
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vadim Senderovich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "<"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '14.0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "<"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '14.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: nokogiri
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.10.
|
33
|
+
version: 1.10.8
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.10.
|
40
|
+
version: 1.10.8
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: pry
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - '='
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 2.3.1
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - '='
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: 2.3.1
|
125
125
|
description: |2
|
126
126
|
Google libphonenumber library was taken as a basis for
|
127
127
|
this gem. Gem uses its data file for validations and number formatting.
|