big-phoney 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/big-phoney.gemspec +1 -1
- data/lib/big-phoney.rb +4 -2
- data/spec/big_phoney_spec.rb +1 -1
- metadata +3 -3
data/big-phoney.gemspec
CHANGED
data/lib/big-phoney.rb
CHANGED
@@ -86,8 +86,10 @@ class PhoneNumber
|
|
86
86
|
errors << :country_code
|
87
87
|
end
|
88
88
|
|
89
|
-
if @
|
90
|
-
errors << :too_short
|
89
|
+
if @country_code == '1'
|
90
|
+
errors << :too_short if @number.size < MIN_US_LENGTH
|
91
|
+
else
|
92
|
+
errors << :too_short if @number.size <= MINLEN
|
91
93
|
end
|
92
94
|
end
|
93
95
|
end
|
data/spec/big_phoney_spec.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: big-phoney
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Pat Nakajima
|