intercom 3.5.21 → 3.5.22
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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/changes.txt +3 -0
- data/circle.yml +6 -0
- data/lib/intercom/traits/api_resource.rb +0 -5
- data/lib/intercom/version.rb +1 -1
- data/spec/unit/intercom/traits/api_resource_spec.rb +0 -4
- metadata +27 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 351f478fa4497d87d46e4aca16fa39f35d03f5fe
|
|
4
|
+
data.tar.gz: 714050f873df45bdd8d4f213cce69d212a5dc978
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 08df6d6c19a5cbfcb6c59407ba644dfdf7a6f0b09f1fee494d7f34567318b199b4f67c60c74fba0247dd412a5d1d2d008c239975188cd2fec3ac60571a0db3a2
|
|
7
|
+
data.tar.gz: d1d86a6f4470a294e106d560eb31a58a31425a39756ae3ff48d5c68cac106d8a2af64e70e46ea21f38b55ba65a5e57e70636a93429b12dea212537de7f373f27
|
data/README.md
CHANGED
data/changes.txt
CHANGED
data/circle.yml
ADDED
|
@@ -24,7 +24,6 @@ module Intercom
|
|
|
24
24
|
|
|
25
25
|
def from_hash(hash)
|
|
26
26
|
hash.each do |attribute, value|
|
|
27
|
-
next if type_field?(attribute)
|
|
28
27
|
initialize_property(attribute, value)
|
|
29
28
|
end
|
|
30
29
|
initialize_missing_flat_store_attributes if respond_to? :flat_store_attributes
|
|
@@ -106,10 +105,6 @@ module Intercom
|
|
|
106
105
|
self.send(setter_method, value)
|
|
107
106
|
end
|
|
108
107
|
|
|
109
|
-
def type_field?(attribute)
|
|
110
|
-
attribute.to_s == 'type'
|
|
111
|
-
end
|
|
112
|
-
|
|
113
108
|
def initialize_missing_flat_store_attributes
|
|
114
109
|
flat_store_attributes.each do |attribute|
|
|
115
110
|
unless instance_variables_excluding_dirty_tracking_field.map(&:to_s).include? "@#{attribute}"
|
data/lib/intercom/version.rb
CHANGED
|
@@ -41,10 +41,6 @@ describe Intercom::Traits::ApiResource do
|
|
|
41
41
|
|
|
42
42
|
before(:each) { api_resource.from_response(object_json) }
|
|
43
43
|
|
|
44
|
-
it "does not set type on parsing json" do
|
|
45
|
-
api_resource.wont_respond_to :type
|
|
46
|
-
end
|
|
47
|
-
|
|
48
44
|
it "coerces time on parsing json" do
|
|
49
45
|
assert_equal Time.at(1374056196), api_resource.created_at
|
|
50
46
|
end
|
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: 3.5.
|
|
4
|
+
version: 3.5.22
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ben McRedmond
|
|
@@ -15,7 +15,7 @@ authors:
|
|
|
15
15
|
autorequire:
|
|
16
16
|
bindir: bin
|
|
17
17
|
cert_chain: []
|
|
18
|
-
date: 2017-
|
|
18
|
+
date: 2017-11-08 00:00:00.000000000 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
name: minitest
|
|
@@ -140,6 +140,7 @@ files:
|
|
|
140
140
|
- RELEASING.md
|
|
141
141
|
- Rakefile
|
|
142
142
|
- changes.txt
|
|
143
|
+
- circle.yml
|
|
143
144
|
- intercom.gemspec
|
|
144
145
|
- lib/data/cacert.pem
|
|
145
146
|
- lib/ext/sliceable_hash.rb
|
|
@@ -243,8 +244,30 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
243
244
|
version: '0'
|
|
244
245
|
requirements: []
|
|
245
246
|
rubyforge_project: intercom
|
|
246
|
-
rubygems_version: 2.
|
|
247
|
+
rubygems_version: 2.6.13
|
|
247
248
|
signing_key:
|
|
248
249
|
specification_version: 4
|
|
249
250
|
summary: Ruby bindings for the Intercom API
|
|
250
|
-
test_files:
|
|
251
|
+
test_files:
|
|
252
|
+
- spec/spec_helper.rb
|
|
253
|
+
- spec/unit/intercom/admin_spec.rb
|
|
254
|
+
- spec/unit/intercom/client_collection_proxy_spec.rb
|
|
255
|
+
- spec/unit/intercom/client_spec.rb
|
|
256
|
+
- spec/unit/intercom/company_spec.rb
|
|
257
|
+
- spec/unit/intercom/contact_spec.rb
|
|
258
|
+
- spec/unit/intercom/conversation_spec.rb
|
|
259
|
+
- spec/unit/intercom/count_spec.rb
|
|
260
|
+
- spec/unit/intercom/event_spec.rb
|
|
261
|
+
- spec/unit/intercom/job_spec.rb
|
|
262
|
+
- spec/unit/intercom/lib/flat_store_spec.rb
|
|
263
|
+
- spec/unit/intercom/message_spec.rb
|
|
264
|
+
- spec/unit/intercom/note_spec.rb
|
|
265
|
+
- spec/unit/intercom/request_spec.rb
|
|
266
|
+
- spec/unit/intercom/scroll_collection_proxy_spec.rb
|
|
267
|
+
- spec/unit/intercom/segment_spec.rb
|
|
268
|
+
- spec/unit/intercom/subscription_spec.rb
|
|
269
|
+
- spec/unit/intercom/tag_spec.rb
|
|
270
|
+
- spec/unit/intercom/traits/api_resource_spec.rb
|
|
271
|
+
- spec/unit/intercom/user_spec.rb
|
|
272
|
+
- spec/unit/intercom/visitors_spec.rb
|
|
273
|
+
- spec/unit/intercom_spec.rb
|