big-phoney 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/big-phoney.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{big-phoney}
5
- s.version = "0.0.7"
5
+ s.version = "0.0.8"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Pat Nakajima", "Brandon Keene"]
@@ -21,7 +21,9 @@ module BigPhoney
21
21
  end
22
22
 
23
23
  if number and not BigPhoney::PhoneNumber.new(number).valid?
24
- record.errors[attribute] << "is not valid"
24
+ if record.errors[attribute].empty?
25
+ record.errors[attribute] << "is not valid"
26
+ end
25
27
  end
26
28
  end
27
29
  end
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: 17
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Pat Nakajima