contacts_client 0.0.30 → 0.0.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/models/telephone.rb +1 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NmQ5NzViN2ViNWRiOWFkZmNmNjc0Yjg1YWQwYjliYzQ2ZTU2NDRlNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTA0ZGM0OTIwNDc1NGQ4Y2U3MWRiM2FhNjEyZWFmNDBiOTk0ZjUyMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTEwNTk1MmNhYjUxYTgxZTdiN2QyOTRkNjJlYmVmNzc4YWE1OTgyMmNkMDVl
|
10
|
+
NTc2YTQ1ZGI3YWYzNmIyMmI5NzIzZWNjYjBjOTM4MjVmYzA3NGZiMmEzNmQx
|
11
|
+
ZjNhMjM0MTY5MzViNmUwYzNlOGQ2NzBlOWFmZmRhOTdlYWVkYzg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTQwNjNlMDMwZTAwYjI5ZGI4M2YyNTVjMmE3Mzg4MWE2ZWQ3OThiMmMxNTNm
|
14
|
+
ZWZjYWY0MjBhZGUzY2UwNWRjMGYzODI3ZmViZDA2ODMzNWFhNTZiZjA0ZmM0
|
15
|
+
MTkzZGFjZjc5ZjQxNzkxY2Q2OWIxNjRkMjNhZmM3Y2Q5ZDUyNTI=
|
data/app/models/telephone.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
class Telephone < ContactAttribute
|
2
2
|
include ActiveModel::Validations::Callbacks
|
3
|
+
before_validation :strip_whitespace
|
3
4
|
|
4
5
|
self.attribute_keys = [:_id, :_type, :public, :primary, :category, :value, :contact_id]
|
5
6
|
self.hydra = Contacts::HYDRA
|
@@ -11,10 +12,6 @@ class Telephone < ContactAttribute
|
|
11
12
|
|
12
13
|
attr_accessor :category, :value, :public, :primary
|
13
14
|
|
14
|
-
before_validation :strip_whitespace
|
15
|
-
|
16
|
-
validates :value, :numericality => true, :unless => :masked?
|
17
|
-
|
18
15
|
def masked?
|
19
16
|
value.present? && value.last == '#'
|
20
17
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contacts_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dwayne Macgowan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|