contacts_client 0.0.49 → 0.0.50

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +10 -10
  2. data/app/models/history_entry.rb +19 -0
  3. metadata +3 -2
checksums.yaml CHANGED
@@ -1,17 +1,17 @@
1
1
  ---
2
2
  !binary "U0hBMjU2":
3
3
  metadata.gz: !binary |-
4
- MzM3NmM5YjNlN2FkYWYzY2JmYmRjNTk3ZTVmYjZhYTJiNzQzZWVmNTk0YjBm
5
- MDlmYjdmNTlmMTQzOTE0ZmMwZg==
4
+ NjAwODg2NmFmYWQyYWYxNmYwNzhiNDQxOTFjNWRiYTVmZmI3YWMwMTI0ZmQ2
5
+ NTVjN2E5MWUxNDJiMDFjM2ZmNA==
6
6
  data.tar.gz: !binary |-
7
- NmE3MmRhNTJmZTQ0NjUxZmFjNThlNzRkNzM3YTZlODEwNmFkNTBlZjcwM2M5
8
- MmYxYjI0NjQ4ZGI5MzUxZTRlOQ==
7
+ MjNlOGQ3NGJlOWRmNmI3MThlNTc2ZjQ5MjcyYTgyZGMwZDFkNjFlM2IyMDY1
8
+ ZTYyMTU5YWVlMTlmODVmNjg5Zg==
9
9
  SHA512:
10
10
  metadata.gz: !binary |-
11
- ZTI5MzdiMzMwNDg3ZWQ3M2JlOTk2MTY0OWVmMWNmMDVhY2RiNGNkMzYzMWY4
12
- Y2NkNDAzM2I3ZjRhM2I4NzAxOWQ4OGZmNzExNjc1NzZlZGIzYTA5ZTJhZTQz
13
- MDU0YzJlYWMxY2QxMmI5ZTE3NzYxNDMxMDAyYzVjMGJjODNkMTA=
11
+ NWVhMjVlMjgyMDU4ZDFmMTgzMDY2NDlkYzE3MWM5ODVmNzFlOTI1OTYxZTlk
12
+ NTU3NDRhOWViOTFjNDU5NTkxNjM4MWFhZjU1NWFiOWIyOTVmZTk4NDRjY2Ez
13
+ ZmQ3NGI5OTBkOGIzZjlkZjBlZWZmYmM4MmRiZGVlYjJmYjI5MjI=
14
14
  data.tar.gz: !binary |-
15
- NjBmYmQ5OWY1YzQzM2QwNzIwZjFiODc0NWU3NzE2MGUwZTUxN2FhOGUxOTBh
16
- NDIyZjNiM2RkMTFkNmMzNjNkYjE1NjE2YmUxZTc5NDYzN2FjZGVhMzY5N2Rh
17
- MTcxOGI4ZmNkODcyMDEyOTViYjIyMmI4NTFhYWY0ZTU0YWQzNmQ=
15
+ ZWM5OWRkYTFjMTI4M2FkM2FmYjkxYWEyYmI4MWU3OTZlNGRhNWI3NjI1MTQ3
16
+ NDNhY2JlNmI5YmQzY2JmNGQzOTU3YWYyMmQwMzc2OThlMzRhZDM3MDU2OGY5
17
+ OGEwYTFhNmZmMzU4N2M3Y2I5YTM5Y2EyNjdjNDQ2ZjBjYzU1ZDc=
@@ -0,0 +1,19 @@
1
+ class HistoryEntry < LogicalModel
2
+ use_hydra Contacts::HYDRA
3
+
4
+ set_resource_url Contacts::HOST,'/v0/history_entries'
5
+ set_api_key :app_key, Contacts::API_KEY
6
+
7
+ attribute :_id
8
+ attribute :historiable_type
9
+ attribute :historiable_id
10
+ attribute :contact_id
11
+ attribute :attribute
12
+ attribute :old_value
13
+ attribute :changed_at
14
+
15
+ def contact_id
16
+ self.historiable_id
17
+ end
18
+ end
19
+
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.49
4
+ version: 0.0.50
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dwayne Macgowan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-14 00:00:00.000000000 Z
11
+ date: 2019-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -54,6 +54,7 @@ files:
54
54
  - app/models/custom_attribute.rb
55
55
  - app/models/date_attribute.rb
56
56
  - app/models/email.rb
57
+ - app/models/history_entry.rb
57
58
  - app/models/identification.rb
58
59
  - app/models/occupation.rb
59
60
  - app/models/padma_contact.rb