contacts_client 0.0.49 → 0.0.54

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
+
@@ -48,11 +48,12 @@ class PadmaContact < LogicalModel
48
48
  has_many :contact_attributes
49
49
  has_many :attachments
50
50
  has_many :tags
51
+ has_many :history_entries
51
52
 
52
53
  self.enable_delete_multiple = true
53
54
 
54
55
  validates_presence_of :first_name
55
- validates_inclusion_of :gender, in: %W(male female), allow_blank: true
56
+ validates_inclusion_of :gender, in: %W(male female non_binary), allow_blank: true
56
57
  validates_numericality_of :estimated_age, allow_blank: true
57
58
 
58
59
  validates_associated :contact_attributes
@@ -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.49
4
+ version: 0.0.54
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Dwayne Macgowan
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2019-01-14 00:00:00.000000000 Z
12
+ date: 2020-07-09 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,48 +50,51 @@ executables: []
45
50
  extensions: []
46
51
  extra_rdoc_files: []
47
52
  files:
48
- - app/models/address.rb
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/identification.rb
58
- - app/models/occupation.rb
59
- - app/models/padma_contact.rb
60
- - app/models/social_network_id.rb
61
- - app/models/tag.rb
62
66
  - app/models/telephone.rb
67
+ - app/models/address.rb
68
+ - app/models/social_network_id.rb
63
69
  - app/validators/email_format_validator.rb
64
- - config/initializers/contacts_client.rb
70
+ - lib/contacts_client.rb
65
71
  - lib/contacts/belongs_to_contact.rb
66
72
  - lib/contacts/railties.rb
67
73
  - lib/contacts/shared_examples.rb
68
- - lib/contacts_client.rb
74
+ - config/initializers/contacts_client.rb
69
75
  homepage: ''
70
76
  licenses: []
71
- metadata: {}
72
77
  post_install_message:
73
78
  rdoc_options: []
74
79
  require_paths:
75
80
  - lib
76
81
  required_ruby_version: !ruby/object:Gem::Requirement
82
+ none: false
77
83
  requirements:
78
84
  - - ! '>='
79
85
  - !ruby/object:Gem::Version
80
86
  version: '0'
81
87
  required_rubygems_version: !ruby/object:Gem::Requirement
88
+ none: false
82
89
  requirements:
83
90
  - - ! '>='
84
91
  - !ruby/object:Gem::Version
85
92
  version: '0'
86
93
  requirements: []
87
94
  rubyforge_project:
88
- rubygems_version: 2.7.7
95
+ rubygems_version: 1.8.23.2
89
96
  signing_key:
90
- specification_version: 4
97
+ specification_version: 3
91
98
  summary: Client library for padma-contacts-ws
92
99
  test_files: []
100
+ has_rdoc:
checksums.yaml DELETED
@@ -1,17 +0,0 @@
1
- ---
2
- !binary "U0hBMjU2":
3
- metadata.gz: !binary |-
4
- MzM3NmM5YjNlN2FkYWYzY2JmYmRjNTk3ZTVmYjZhYTJiNzQzZWVmNTk0YjBm
5
- MDlmYjdmNTlmMTQzOTE0ZmMwZg==
6
- data.tar.gz: !binary |-
7
- NmE3MmRhNTJmZTQ0NjUxZmFjNThlNzRkNzM3YTZlODEwNmFkNTBlZjcwM2M5
8
- MmYxYjI0NjQ4ZGI5MzUxZTRlOQ==
9
- SHA512:
10
- metadata.gz: !binary |-
11
- ZTI5MzdiMzMwNDg3ZWQ3M2JlOTk2MTY0OWVmMWNmMDVhY2RiNGNkMzYzMWY4
12
- Y2NkNDAzM2I3ZjRhM2I4NzAxOWQ4OGZmNzExNjc1NzZlZGIzYTA5ZTJhZTQz
13
- MDU0YzJlYWMxY2QxMmI5ZTE3NzYxNDMxMDAyYzVjMGJjODNkMTA=
14
- data.tar.gz: !binary |-
15
- NjBmYmQ5OWY1YzQzM2QwNzIwZjFiODc0NWU3NzE2MGUwZTUxN2FhOGUxOTBh
16
- NDIyZjNiM2RkMTFkNmMzNjNkYjE1NjE2YmUxZTc5NDYzN2FjZGVhMzY5N2Rh
17
- MTcxOGI4ZmNkODcyMDEyOTViYjIyMmI4NTFhYWY0ZTU0YWQzNmQ=