phone_number 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.rvmrc +2 -0
- data/VERSION +1 -1
- data/lib/phone_number/number.rb +7 -0
- data/phone_number.gemspec +23 -31
- metadata +11 -14
- data/.gitignore +0 -23
data/.rvmrc
ADDED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.3.0
|
data/lib/phone_number/number.rb
CHANGED
@@ -46,6 +46,13 @@ module PhoneNumber
|
|
46
46
|
(@subscriber_number_postfix.nil? || @subscriber_number_postfix.empty?) && (@extension.nil? || @extension.empty?)
|
47
47
|
end
|
48
48
|
|
49
|
+
def ==( other )
|
50
|
+
return false unless other.instance_of?( self.class )
|
51
|
+
return false unless other.raw == raw
|
52
|
+
|
53
|
+
true
|
54
|
+
end
|
55
|
+
|
49
56
|
# Creates a phone number based on pattern provided. Defaults to US (NANP) formatting (111) 111-1111.
|
50
57
|
#
|
51
58
|
# Symbols:
|
data/phone_number.gemspec
CHANGED
@@ -1,56 +1,48 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{phone_number}
|
8
|
-
s.version = "1.
|
8
|
+
s.version = "1.3.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["C. Jason Harrelson (midas)"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-11-18}
|
13
13
|
s.description = %q{Encapsulates the composed of pattern for phone numbers into any easy to use library.}
|
14
14
|
s.email = %q{jason@lookforwardenterprises.com}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
17
|
-
|
17
|
+
"README.rdoc"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
21
|
+
".rvmrc",
|
22
|
+
"LICENSE",
|
23
|
+
"README.rdoc",
|
24
|
+
"Rakefile",
|
25
|
+
"VERSION",
|
26
|
+
"lib/phone_number.rb",
|
27
|
+
"lib/phone_number/active_record_extensions.rb",
|
28
|
+
"lib/phone_number/number.rb",
|
29
|
+
"phone_number.gemspec",
|
30
|
+
"rails_generators/phone_number_migration/phone_number_migration_generator.rb",
|
31
|
+
"rails_generators/phone_number_migration/templates/migration.rb",
|
32
|
+
"script/console",
|
33
|
+
"spec/database.yml",
|
34
|
+
"spec/phone_number/number_parsing_shared_spec.rb",
|
35
|
+
"spec/phone_number/number_spec.rb",
|
36
|
+
"spec/phone_number_spec.rb",
|
37
|
+
"spec/spec.opts",
|
38
|
+
"spec/spec_helper.rb"
|
39
39
|
]
|
40
40
|
s.homepage = %q{http://github.com/midas/phone_number}
|
41
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
42
41
|
s.require_paths = ["lib"]
|
43
|
-
s.rubygems_version = %q{1.
|
42
|
+
s.rubygems_version = %q{1.6.0}
|
44
43
|
s.summary = %q{Encapsulates the composed of pattern for phone numbers into any easy to use library.}
|
45
|
-
s.test_files = [
|
46
|
-
"spec/phone_number/number_parsing_shared_spec.rb",
|
47
|
-
"spec/phone_number/number_spec.rb",
|
48
|
-
"spec/phone_number_spec.rb",
|
49
|
-
"spec/spec_helper.rb"
|
50
|
-
]
|
51
44
|
|
52
45
|
if s.respond_to? :specification_version then
|
53
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
54
46
|
s.specification_version = 3
|
55
47
|
|
56
48
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phone_number
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 27
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
8
|
+
- 3
|
9
9
|
- 0
|
10
|
-
version: 1.
|
10
|
+
version: 1.3.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- C. Jason Harrelson (midas)
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-11-18 00:00:00 -06:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -60,7 +60,7 @@ extra_rdoc_files:
|
|
60
60
|
- README.rdoc
|
61
61
|
files:
|
62
62
|
- .document
|
63
|
-
- .
|
63
|
+
- .rvmrc
|
64
64
|
- LICENSE
|
65
65
|
- README.rdoc
|
66
66
|
- Rakefile
|
@@ -83,8 +83,8 @@ homepage: http://github.com/midas/phone_number
|
|
83
83
|
licenses: []
|
84
84
|
|
85
85
|
post_install_message:
|
86
|
-
rdoc_options:
|
87
|
-
|
86
|
+
rdoc_options: []
|
87
|
+
|
88
88
|
require_paths:
|
89
89
|
- lib
|
90
90
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -108,12 +108,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
requirements: []
|
109
109
|
|
110
110
|
rubyforge_project:
|
111
|
-
rubygems_version: 1.
|
111
|
+
rubygems_version: 1.6.0
|
112
112
|
signing_key:
|
113
113
|
specification_version: 3
|
114
114
|
summary: Encapsulates the composed of pattern for phone numbers into any easy to use library.
|
115
|
-
test_files:
|
116
|
-
|
117
|
-
- spec/phone_number/number_spec.rb
|
118
|
-
- spec/phone_number_spec.rb
|
119
|
-
- spec/spec_helper.rb
|
115
|
+
test_files: []
|
116
|
+
|