contacts_client 0.0.25 → 0.0.26

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,6 +7,8 @@ class Attachment < LogicalModel
7
7
  self.api_key = Contacts::API_KEY
8
8
  self.host = Contacts::HOST
9
9
 
10
+ self.expires_in = 1.hour
11
+
10
12
  attr_accessor :name, :description, :file, :public, :primary
11
13
 
12
14
  def new_record?
data/app/models/avatar.rb CHANGED
@@ -7,4 +7,6 @@ class Avatar < LogicalModel
7
7
  self.api_key_name = "app_key"
8
8
  self.api_key = Contacts::API_KEY
9
9
  self.host = Contacts::HOST
10
+
11
+ self.expires_in = 1.hour
10
12
  end
@@ -16,6 +16,8 @@ class ContactAttribute < LogicalModel
16
16
 
17
17
  belongs_to :contact, class: 'PadmaContact'
18
18
 
19
+ self.expires_in = 10.minutes
20
+
19
21
  use_hydra Contacts::HYDRA
20
22
  set_resource_url Contacts::HOST, "/v0/contact_attributes"
21
23
  set_api_key 'app_key', Contacts::API_KEY
@@ -39,6 +39,8 @@ class PadmaContact < LogicalModel
39
39
 
40
40
  self.enable_delete_multiple = true
41
41
 
42
+ self.expires_in = 10.minutes
43
+
42
44
  validates_presence_of :first_name
43
45
  validates_inclusion_of :gender, in: %W(male female), allow_blank: true
44
46
  validates_numericality_of :estimated_age, allow_blank: true
data/app/models/tag.rb CHANGED
@@ -11,6 +11,8 @@ class Tag < LogicalModel
11
11
  set_api_key(:app_key,Contacts::API_KEY)
12
12
 
13
13
  self.hydra = Contacts::HYDRA
14
+
15
+ self.expires_in = 10.minutes
14
16
 
15
17
  validates :name, :presence => true
16
18
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contacts_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.25
4
+ version: 0.0.26
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-21 00:00:00.000000000 Z
12
+ date: 2014-06-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties