intercom 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/changes.txt CHANGED
@@ -1,3 +1,9 @@
1
+ 0.0.8
2
+ - add support for updating last request time for user through either last_request_at or last_impression_at
3
+
4
+ 0.0.7
5
+ - add support for deleting user
6
+
1
7
  0.0.6
2
8
  - drop rest-client, use pure net/http instead
3
9
 
data/lib/intercom/user.rb CHANGED
@@ -150,6 +150,27 @@ module Intercom
150
150
  time_at("last_impression_at")
151
151
  end
152
152
 
153
+ ##
154
+ # Set Time at which this User last made a request your application.
155
+ # @return [void]
156
+ def last_impression_at=(time)
157
+ set_time_at("last_impression_at", time)
158
+ end
159
+
160
+ ##
161
+ # Get last time this User interacted with your application
162
+ # @return [Time]
163
+ def last_request_at
164
+ time_at("last_request_at")
165
+ end
166
+
167
+ ##
168
+ # Set Time at which this User last made a request your application.
169
+ # @return [void]
170
+ def last_request_at=(time)
171
+ set_time_at("last_request_at", time)
172
+ end
173
+
153
174
  ##
154
175
  # Get Time at which this User started using your application.
155
176
  # @return [Time]
@@ -1,3 +1,3 @@
1
1
  module Intercom #:nodoc:
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -115,7 +115,7 @@ describe "Intercom::User" do
115
115
  end
116
116
 
117
117
  it "raises argument error when trying to set a read only attribute" do
118
- read_only_attributes = %w(relationship_score last_impression_at session_count)
118
+ read_only_attributes = %w(relationship_score session_count)
119
119
  read_only_attributes.each do |read_only|
120
120
  proc { Intercom::User.create("email" => "jo@example.com", read_only => "some value") }.must_raise NoMethodError
121
121
  user = Intercom::User.new
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intercom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-11-13 00:00:00.000000000 Z
14
+ date: 2013-01-08 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: minitest