contacts_client 0.0.40 → 0.0.41
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 +3 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NWFlN2U1MjVmMDQ0NmZiYzNiY2RkZTk0MDg0NWJkNmFmZTUzMWIzZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODg1YzM4ZmMyNmQ5Mzg4ZDZmOWJiYTQxYmIwMDFkYmU5YmE4MmNjNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OThiYWJlZTU5MTMxY2NkOTNkNjE5NGFlYzE3MWI5ZTI3MGM1NjZkY2RkM2Y1
|
10
|
+
YTQ0NGU4ZDEzZTRlN2IyMzNkMTk5ZGZiZmQ5OGJiZjg1ZmYwZjE5MWY5ZTA3
|
11
|
+
NDJjNDg1ZjBmMzU5OTg0MzJkMzdlZDY4ODVjMTU5MGY4YzcyYjY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTEyN2NmY2Y0MDEzNzU0YmViYzQ1ZDdiYTliNDdjNmZiMTkxNzhlM2QyM2Uw
|
14
|
+
MDM4YmVkNDZlZDQzYjg2M2E0MmQxZjQ5YTEyMjQ1NjI1ODU5N2VlMTA2ZTAy
|
15
|
+
MTcwZGMyNTUyMDkxZGJlNjcyMmQxOWFhMWIwZWNkNjRmMDEzYzg=
|
data/app/models/telephone.rb
CHANGED
@@ -12,6 +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$/ }
|
16
|
+
|
15
17
|
def masked?
|
16
18
|
value.present? && value.last == '#'
|
17
19
|
end
|
@@ -24,4 +26,4 @@ class Telephone < ContactAttribute
|
|
24
26
|
def strip_whitespace
|
25
27
|
self.value = self.value.strip
|
26
28
|
end
|
27
|
-
end
|
29
|
+
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.41
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dwayne Macgowan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.6.
|
33
|
+
version: 0.6.3
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ! '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.6.
|
40
|
+
version: 0.6.3
|
41
41
|
description: This is client library for padma-Contacts-ws
|
42
42
|
email:
|
43
43
|
- dwaynemac@gmail.com
|
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
87
|
rubyforge_project:
|
88
|
-
rubygems_version: 2.4.
|
88
|
+
rubygems_version: 2.4.8
|
89
89
|
signing_key:
|
90
90
|
specification_version: 4
|
91
91
|
summary: Client library for padma-contacts-ws
|