contacts_client 0.0.36 → 0.0.37
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/models/contact_attribute.rb +2 -2
- data/app/models/occupation.rb +19 -0
- metadata +19 -18
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjI5MjQ2MDQ3Nzk5MWRlMWVjYWFkNjcwNjdkZDE4YWQzNTQyODBkNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDQ1ZGMwYjVhNmY0OGQ0MjBmNjkxMzQwMmE4NWIwNzNjZGY0MGU0Mw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODg4MDBmNTRkNDY1YWMyMDRlYjVjZGRkZTVkYTQyNGM3MzQxZTZiNGNmZDhj
|
10
|
+
MzQ1MjIwMTkzMzIzNmFlYWQzOWFmNTAyZGM0MjM4OWNkZWRlNTgyNzE5NmU1
|
11
|
+
NzNjZjk5ZjY2NmJhYzI0ZjEwYzQ1MjcyYTZjNTJmMDBiYzExMDU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NWQ5MDhkNTc0NDk2Nzc3YTQyNzIxNGI0NjcyZjc5Y2NkMzlhYTc3MjdiNjYz
|
14
|
+
ZTlhY2UxMmM1NGVmNWM3YTI4NTFmNDU2MWUyNDVhOTEzMDk1MTlhNjI1YmU3
|
15
|
+
ZmJmMWY3ZGYyMmNmMTEwN2I3ZGI2ZmNiYjMxOTkyY2FhZjg3ZGM=
|
@@ -3,7 +3,7 @@ class ContactAttribute < LogicalModel
|
|
3
3
|
# defines ContactAttribute.custom_keys and .async_custom_keys
|
4
4
|
extend ContactAttribute::CustomKeys
|
5
5
|
|
6
|
-
AVAILABLE_TYPES = %w(telephone email identification address date_attribute custom_attribute social_network_id)
|
6
|
+
AVAILABLE_TYPES = %w(telephone email identification address date_attribute custom_attribute social_network_id occupation)
|
7
7
|
|
8
8
|
attr_accessor :public, :primary
|
9
9
|
|
@@ -82,4 +82,4 @@ class ContactAttribute < LogicalModel
|
|
82
82
|
self.class.logger.warn "timeout"
|
83
83
|
return nil
|
84
84
|
end
|
85
|
-
end
|
85
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
class Occupation < ContactAttribute
|
2
|
+
|
3
|
+
use_hydra Contacts::HYDRA
|
4
|
+
|
5
|
+
set_resource_url Contacts::HOST, '/v0/contact_attributes'
|
6
|
+
set_api_key :app_key, Contacts::API_KEY
|
7
|
+
|
8
|
+
attribute :_id
|
9
|
+
attribute :_type
|
10
|
+
attribute :public
|
11
|
+
attribute :primary
|
12
|
+
attribute :value
|
13
|
+
attribute :contact_id
|
14
|
+
|
15
|
+
def _type
|
16
|
+
self.class.name
|
17
|
+
end
|
18
|
+
|
19
|
+
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.37
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dwayne Macgowan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -45,26 +45,27 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
- app/validators/email_format_validator.rb
|
49
|
-
- app/models/date_attribute.rb
|
50
48
|
- app/models/address.rb
|
51
|
-
- app/models/
|
49
|
+
- app/models/attachment.rb
|
50
|
+
- app/models/avatar.rb
|
51
|
+
- app/models/contact_attribute.rb
|
52
|
+
- app/models/contact_attribute/custom_keys.rb
|
53
|
+
- app/models/contacts_merge.rb
|
54
|
+
- app/models/custom_attribute.rb
|
55
|
+
- app/models/date_attribute.rb
|
52
56
|
- app/models/email.rb
|
57
|
+
- app/models/identification.rb
|
58
|
+
- app/models/occupation.rb
|
59
|
+
- app/models/padma_contact.rb
|
60
|
+
- app/models/social_network_id.rb
|
53
61
|
- app/models/tag.rb
|
54
62
|
- app/models/telephone.rb
|
55
|
-
- app/
|
56
|
-
- app/models/social_network_id.rb
|
57
|
-
- app/models/padma_contact.rb
|
58
|
-
- app/models/contacts_merge.rb
|
59
|
-
- app/models/attachment.rb
|
60
|
-
- app/models/contact_attribute/custom_keys.rb
|
61
|
-
- app/models/contact_attribute.rb
|
62
|
-
- app/models/avatar.rb
|
63
|
-
- lib/contacts_client.rb
|
64
|
-
- lib/contacts/shared_examples.rb
|
65
|
-
- lib/contacts/railties.rb
|
66
|
-
- lib/contacts/belongs_to_contact.rb
|
63
|
+
- app/validators/email_format_validator.rb
|
67
64
|
- config/initializers/contacts_client.rb
|
65
|
+
- lib/contacts/belongs_to_contact.rb
|
66
|
+
- lib/contacts/railties.rb
|
67
|
+
- lib/contacts/shared_examples.rb
|
68
|
+
- lib/contacts_client.rb
|
68
69
|
homepage: ''
|
69
70
|
licenses: []
|
70
71
|
metadata: {}
|
@@ -84,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
85
|
version: '0'
|
85
86
|
requirements: []
|
86
87
|
rubyforge_project:
|
87
|
-
rubygems_version: 2.
|
88
|
+
rubygems_version: 2.4.6
|
88
89
|
signing_key:
|
89
90
|
specification_version: 4
|
90
91
|
summary: Client library for padma-contacts-ws
|