intercom 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +1 -1
- data/changes.txt +3 -0
- data/lib/intercom/lib/dynamic_accessors.rb +1 -1
- data/lib/intercom/version.rb +1 -1
- data/spec/unit/intercom/user_spec.rb +5 -0
- metadata +16 -27
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e666fa1f3e03d4ee2514a54799c5b448207fa76b
|
4
|
+
data.tar.gz: 4bcf1ac7401ef0a3197ff85111d2436c0e40d69e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ef06e460771992cc2876d3c2d01532167d321b10f673828136f99dca662400e09a8c00178a3533434eabc21892e728e274597f406a2770fa9ef3442310d8f2bd
|
7
|
+
data.tar.gz: ad68662d937de1d6df9322c92caf03391cb6682c2a2632a1da87d59d501ecd764f18a87c60f4acccee9ba74fcb46508b51f0191d017353b46a448d2f4372b7bd
|
data/README.md
CHANGED
data/changes.txt
CHANGED
@@ -6,7 +6,7 @@ module Intercom
|
|
6
6
|
|
7
7
|
def define_accessors(attribute, value, object)
|
8
8
|
klass = object.class
|
9
|
-
if attribute.to_s.end_with?
|
9
|
+
if attribute.to_s.end_with?('_at') && attribute.to_s != 'update_last_request_at'
|
10
10
|
define_date_based_accessors(attribute, value, klass)
|
11
11
|
elsif object.flat_store_attribute?(attribute)
|
12
12
|
define_flat_store_based_accessors(attribute, value, klass)
|
data/lib/intercom/version.rb
CHANGED
@@ -77,6 +77,11 @@ describe "Intercom::User" do
|
|
77
77
|
user.unsubscribed_from_emails.must_equal true
|
78
78
|
user.user_agent_data.must_equal "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11"
|
79
79
|
end
|
80
|
+
|
81
|
+
it 'allows update_last_request_at' do
|
82
|
+
Intercom.expects(:post).with("/users", {"user_id" => "1224242", 'update_last_request_at' => true, "custom_attributes" => {}}).returns({"user_id" => "i-1224242", "last_request_at" => 1414509439})
|
83
|
+
Intercom::User.create(user_id:'1224242', update_last_request_at:true)
|
84
|
+
end
|
80
85
|
|
81
86
|
it "allows easy setting of custom data" do
|
82
87
|
now = Time.now
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: intercom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
5
|
-
prerelease:
|
4
|
+
version: 2.4.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Ben McRedmond
|
@@ -21,55 +20,48 @@ dependencies:
|
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: minitest
|
23
22
|
requirement: !ruby/object:Gem::Requirement
|
24
|
-
none: false
|
25
23
|
requirements:
|
26
|
-
- -
|
24
|
+
- - '>='
|
27
25
|
- !ruby/object:Gem::Version
|
28
26
|
version: '0'
|
29
27
|
type: :development
|
30
28
|
prerelease: false
|
31
29
|
version_requirements: !ruby/object:Gem::Requirement
|
32
|
-
none: false
|
33
30
|
requirements:
|
34
|
-
- -
|
31
|
+
- - '>='
|
35
32
|
- !ruby/object:Gem::Version
|
36
33
|
version: '0'
|
37
34
|
- !ruby/object:Gem::Dependency
|
38
35
|
name: rake
|
39
36
|
requirement: !ruby/object:Gem::Requirement
|
40
|
-
none: false
|
41
37
|
requirements:
|
42
|
-
- -
|
38
|
+
- - '>='
|
43
39
|
- !ruby/object:Gem::Version
|
44
40
|
version: '0'
|
45
41
|
type: :development
|
46
42
|
prerelease: false
|
47
43
|
version_requirements: !ruby/object:Gem::Requirement
|
48
|
-
none: false
|
49
44
|
requirements:
|
50
|
-
- -
|
45
|
+
- - '>='
|
51
46
|
- !ruby/object:Gem::Version
|
52
47
|
version: '0'
|
53
48
|
- !ruby/object:Gem::Dependency
|
54
49
|
name: mocha
|
55
50
|
requirement: !ruby/object:Gem::Requirement
|
56
|
-
none: false
|
57
51
|
requirements:
|
58
|
-
- -
|
52
|
+
- - '>='
|
59
53
|
- !ruby/object:Gem::Version
|
60
54
|
version: '0'
|
61
55
|
type: :development
|
62
56
|
prerelease: false
|
63
57
|
version_requirements: !ruby/object:Gem::Requirement
|
64
|
-
none: false
|
65
58
|
requirements:
|
66
|
-
- -
|
59
|
+
- - '>='
|
67
60
|
- !ruby/object:Gem::Version
|
68
61
|
version: '0'
|
69
62
|
- !ruby/object:Gem::Dependency
|
70
63
|
name: fakeweb
|
71
64
|
requirement: !ruby/object:Gem::Requirement
|
72
|
-
none: false
|
73
65
|
requirements:
|
74
66
|
- - ~>
|
75
67
|
- !ruby/object:Gem::Version
|
@@ -77,7 +69,6 @@ dependencies:
|
|
77
69
|
type: :development
|
78
70
|
prerelease: false
|
79
71
|
version_requirements: !ruby/object:Gem::Requirement
|
80
|
-
none: false
|
81
72
|
requirements:
|
82
73
|
- - ~>
|
83
74
|
- !ruby/object:Gem::Version
|
@@ -85,20 +76,18 @@ dependencies:
|
|
85
76
|
- !ruby/object:Gem::Dependency
|
86
77
|
name: json
|
87
78
|
requirement: !ruby/object:Gem::Requirement
|
88
|
-
none: false
|
89
79
|
requirements:
|
90
|
-
- -
|
80
|
+
- - '>='
|
91
81
|
- !ruby/object:Gem::Version
|
92
82
|
version: '0'
|
93
83
|
type: :runtime
|
94
84
|
prerelease: false
|
95
85
|
version_requirements: !ruby/object:Gem::Requirement
|
96
|
-
none: false
|
97
86
|
requirements:
|
98
|
-
- -
|
87
|
+
- - '>='
|
99
88
|
- !ruby/object:Gem::Version
|
100
89
|
version: '0'
|
101
|
-
description:
|
90
|
+
description: 'Intercom (https://www.intercom.io) is a customer relationship management
|
102
91
|
and messaging tool for web app owners. This library wraps the api provided by Intercom.
|
103
92
|
See http://docs.intercom.io/api for more details. '
|
104
93
|
email:
|
@@ -182,27 +171,26 @@ files:
|
|
182
171
|
homepage: https://www.intercom.io
|
183
172
|
licenses:
|
184
173
|
- MIT
|
174
|
+
metadata: {}
|
185
175
|
post_install_message:
|
186
176
|
rdoc_options: []
|
187
177
|
require_paths:
|
188
178
|
- lib
|
189
179
|
required_ruby_version: !ruby/object:Gem::Requirement
|
190
|
-
none: false
|
191
180
|
requirements:
|
192
|
-
- -
|
181
|
+
- - '>='
|
193
182
|
- !ruby/object:Gem::Version
|
194
183
|
version: 1.9.3
|
195
184
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
196
|
-
none: false
|
197
185
|
requirements:
|
198
|
-
- -
|
186
|
+
- - '>='
|
199
187
|
- !ruby/object:Gem::Version
|
200
188
|
version: '0'
|
201
189
|
requirements: []
|
202
190
|
rubyforge_project: intercom
|
203
|
-
rubygems_version:
|
191
|
+
rubygems_version: 2.0.14
|
204
192
|
signing_key:
|
205
|
-
specification_version:
|
193
|
+
specification_version: 4
|
206
194
|
summary: Ruby bindings for the Intercom API
|
207
195
|
test_files:
|
208
196
|
- spec/spec_helper.rb
|
@@ -220,3 +208,4 @@ test_files:
|
|
220
208
|
- spec/unit/intercom/traits/api_resource_spec.rb
|
221
209
|
- spec/unit/intercom/user_spec.rb
|
222
210
|
- spec/unit/intercom_spec.rb
|
211
|
+
has_rdoc:
|