contacts_client 0.0.43 → 0.0.44
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 +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDY2NzVhYWJlYTFhNDA1MTIwMjZmNzkwYWRmOWIzNWM3YzcxNWY0MA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjhkNDZkMmNjMGNkZWIwNmNkN2QxMjc3OTU2M2FjOGZlZTA2YjA3Ng==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWRkODg0ODg1ZDk3MGUyM2I1OTA4NzkzNjE1ZTYyNjU3MmEyZWUzYWFlM2Y0
|
10
|
+
NDk2YmU4NGI3NThiMjIwNjRjOWEyNGUxMjAyOGVkMmM3YWIyYWFlODUxMjNj
|
11
|
+
ZDYwMTY1NTA0MTE0ZGYxY2M0YzMyOTdiODhmMTM2MTllZjJiODQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTczZWQyYmMzNGYyNmE3Y2FlYWQzNGY0ZDRlNzNiNmEwNzE1ODAyNzZjMjJj
|
14
|
+
Nzk1M2YyNWE2OTkyODk2MDUyZGNjMmVkYWNkMzNjZGNkODU2MTBmYWE0ZjIz
|
15
|
+
OWE2OTFiMjhiMTk3ZDBmNWNkNWU1Mzk0NTk4YzZjMzcxZWFlMmU=
|
data/app/models/telephone.rb
CHANGED
@@ -12,7 +12,8 @@ class Telephone < ContactAttribute
|
|
12
12
|
|
13
13
|
attr_accessor :category, :value, :public, :primary
|
14
14
|
|
15
|
-
validates :value, format: { with: /^[\(|\d][\d| |\)\-|\.]{6,16}.*\d$/ }
|
15
|
+
validates :value, format: { with: /^[\(|\d][\d| |\)\-|\.]{6,16}.*\d$/ },
|
16
|
+
length: { maximum: 45 }
|
16
17
|
|
17
18
|
def masked?
|
18
19
|
value.present? && value.last == '#'
|
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.44
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dwayne Macgowan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|