contacts_client 0.0.51 → 0.0.56
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/history_entry.rb +8 -0
- data/app/models/padma_contact.rb +2 -1
- data/app/models/telephone.rb +1 -1
- metadata +28 -21
- checksums.yaml +0 -17
data/app/models/history_entry.rb
CHANGED
data/app/models/padma_contact.rb
CHANGED
@@ -13,6 +13,7 @@ class PadmaContact < LogicalModel
|
|
13
13
|
attribute :last_name
|
14
14
|
attribute :gender
|
15
15
|
attribute :estimated_age
|
16
|
+
attribute :estimated_age_on
|
16
17
|
attribute :avatar
|
17
18
|
attribute :status
|
18
19
|
attribute :local_status # will only be setted if #find specifies account_name
|
@@ -53,7 +54,7 @@ class PadmaContact < LogicalModel
|
|
53
54
|
self.enable_delete_multiple = true
|
54
55
|
|
55
56
|
validates_presence_of :first_name
|
56
|
-
validates_inclusion_of :gender, in: %W(male female), allow_blank: true
|
57
|
+
validates_inclusion_of :gender, in: %W(male female non_binary), allow_blank: true
|
57
58
|
validates_numericality_of :estimated_age, allow_blank: true
|
58
59
|
|
59
60
|
validates_associated :contact_attributes
|
data/app/models/telephone.rb
CHANGED
@@ -12,7 +12,7 @@ class Telephone < ContactAttribute
|
|
12
12
|
|
13
13
|
attr_accessor :category, :value, :public, :primary
|
14
14
|
|
15
|
-
validates :value, format: { with: /\A[\(|\d][\d| |\)\-|\.]{6,16}.*\d\z/ },
|
15
|
+
validates :value, format: { with: /\A[\(|\d|+][\d| |\)\-|\.]{6,16}.*\d\z/ },
|
16
16
|
length: { maximum: 45 }
|
17
17
|
|
18
18
|
def masked?
|
metadata
CHANGED
@@ -1,18 +1,20 @@
|
|
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.56
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Dwayne Macgowan
|
8
|
-
autorequire:
|
9
|
+
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2021-06-22 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: railties
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
19
|
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
@@ -20,6 +22,7 @@ dependencies:
|
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
27
|
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
@@ -27,6 +30,7 @@ dependencies:
|
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: logical_model
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
35
|
- - ! '>='
|
32
36
|
- !ruby/object:Gem::Version
|
@@ -34,6 +38,7 @@ dependencies:
|
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
43
|
- - ! '>='
|
39
44
|
- !ruby/object:Gem::Version
|
@@ -45,49 +50,51 @@ executables: []
|
|
45
50
|
extensions: []
|
46
51
|
extra_rdoc_files: []
|
47
52
|
files:
|
48
|
-
- app/models/
|
53
|
+
- app/models/tag.rb
|
54
|
+
- app/models/contacts_merge.rb
|
55
|
+
- app/models/occupation.rb
|
56
|
+
- app/models/identification.rb
|
57
|
+
- app/models/date_attribute.rb
|
58
|
+
- app/models/email.rb
|
49
59
|
- app/models/attachment.rb
|
60
|
+
- app/models/padma_contact.rb
|
50
61
|
- app/models/avatar.rb
|
62
|
+
- app/models/history_entry.rb
|
51
63
|
- app/models/contact_attribute.rb
|
52
64
|
- app/models/contact_attribute/custom_keys.rb
|
53
|
-
- app/models/contacts_merge.rb
|
54
65
|
- app/models/custom_attribute.rb
|
55
|
-
- app/models/date_attribute.rb
|
56
|
-
- app/models/email.rb
|
57
|
-
- app/models/history_entry.rb
|
58
|
-
- app/models/identification.rb
|
59
|
-
- app/models/occupation.rb
|
60
|
-
- app/models/padma_contact.rb
|
61
|
-
- app/models/social_network_id.rb
|
62
|
-
- app/models/tag.rb
|
63
66
|
- app/models/telephone.rb
|
67
|
+
- app/models/address.rb
|
68
|
+
- app/models/social_network_id.rb
|
64
69
|
- app/validators/email_format_validator.rb
|
65
|
-
-
|
70
|
+
- lib/contacts_client.rb
|
66
71
|
- lib/contacts/belongs_to_contact.rb
|
67
72
|
- lib/contacts/railties.rb
|
68
73
|
- lib/contacts/shared_examples.rb
|
69
|
-
-
|
74
|
+
- config/initializers/contacts_client.rb
|
70
75
|
homepage: ''
|
71
76
|
licenses: []
|
72
|
-
|
73
|
-
post_install_message:
|
77
|
+
post_install_message:
|
74
78
|
rdoc_options: []
|
75
79
|
require_paths:
|
76
80
|
- lib
|
77
81
|
required_ruby_version: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
78
83
|
requirements:
|
79
84
|
- - ! '>='
|
80
85
|
- !ruby/object:Gem::Version
|
81
86
|
version: '0'
|
82
87
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
|
+
none: false
|
83
89
|
requirements:
|
84
90
|
- - ! '>='
|
85
91
|
- !ruby/object:Gem::Version
|
86
92
|
version: '0'
|
87
93
|
requirements: []
|
88
|
-
rubyforge_project:
|
89
|
-
rubygems_version:
|
90
|
-
signing_key:
|
91
|
-
specification_version:
|
94
|
+
rubyforge_project:
|
95
|
+
rubygems_version: 1.8.23.2
|
96
|
+
signing_key:
|
97
|
+
specification_version: 3
|
92
98
|
summary: Client library for padma-contacts-ws
|
93
99
|
test_files: []
|
100
|
+
has_rdoc:
|
checksums.yaml
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMjU2":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
Y2IyM2UxNjBkMTU0MjJjNjQ3OTc2YTY3ZmYyMGUwMzM3MTY0ZjQ0YzRhOGMz
|
5
|
-
NjhjNzNhMTRmNWUzZmU3MzljZg==
|
6
|
-
data.tar.gz: !binary |-
|
7
|
-
MWE0MzlmNzg0N2M1OTg5NjQ4NTI3NGYwMGFiZWYzNjFhZGI1MzBmZWM3ZmEy
|
8
|
-
ZTgzYWQ4YmYyYWI2NWYyYzJiMg==
|
9
|
-
SHA512:
|
10
|
-
metadata.gz: !binary |-
|
11
|
-
ZjI4NDgyZjU3NjgyYWJiMTJlNDhiN2U0ODhjOTRkZjFmOWZmMGM3ODU2ZmU4
|
12
|
-
MWM3YjUwYTFhNDBiYTZiMDIzZGEwMzk0ZDAyYmVlZjNiNDlhM2E2NGUxNTRj
|
13
|
-
NjY2NzVkNThjNjQ5NmM1NGIyODBhMGU5YmYwZjY5NmIwOGVhN2I=
|
14
|
-
data.tar.gz: !binary |-
|
15
|
-
OTJkYzA4OGQyZGU3NDk5YjI5ZTcxMmUyOWY4MmFiMWNhYTk4YjE3NTNmNDQw
|
16
|
-
YzBhOGIwNDlmNzViODdhODM0YmQ4YWZjZDEyMTBmZjUwOGU4ZmYwYzQ0MjI2
|
17
|
-
NzViNjkxYzMwNTZmZDBmZTFkMzkwNjM3OTUxNmYxYzkzNjFjNmI=
|