intercom 3.5.21 → 3.5.22

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1ea6f75d92d9202cfbc6fe25b4336c3a4081efb1
4
- data.tar.gz: e3444b8fec87362f93ba4fa6a7f59d7960edf557
3
+ metadata.gz: 351f478fa4497d87d46e4aca16fa39f35d03f5fe
4
+ data.tar.gz: 714050f873df45bdd8d4f213cce69d212a5dc978
5
5
  SHA512:
6
- metadata.gz: 9940e952b926c8c918507e27fd7a01a58318f0994ca8e25a1a61a88c63d5ddcf0b2b7b3cb5e5e911eed3a4752903ae9e24468ac23885b2bcbea41206f34509b2
7
- data.tar.gz: 11ede13348d1697930f2b6c7198dbda65efd3235491b79552e1b62a1f9ec39811f17dad25e7608756f8cb47d8a25c28fa6081f104da0d1262bf00adb5fbdb4c0
6
+ metadata.gz: 08df6d6c19a5cbfcb6c59407ba644dfdf7a6f0b09f1fee494d7f34567318b199b4f67c60c74fba0247dd412a5d1d2d008c239975188cd2fec3ac60571a0db3a2
7
+ data.tar.gz: d1d86a6f4470a294e106d560eb31a58a31425a39756ae3ff48d5c68cac106d8a2af64e70e46ea21f38b55ba65a5e57e70636a93429b12dea212537de7f373f27
data/README.md CHANGED
@@ -22,7 +22,7 @@ This version of the gem is compatible with `Ruby 2.1` and above.
22
22
 
23
23
  Using bundler:
24
24
 
25
- gem 'intercom', '~> 3.5.21'
25
+ gem 'intercom', '~> 3.5.22'
26
26
 
27
27
  ## Basic Usage
28
28
 
@@ -1,3 +1,6 @@
1
+ 3.5.22
2
+ - Return object type
3
+
1
4
  3.5.21
2
5
  - Fix for PR-353 which addressed "NoMethodError in intercom/request"
3
6
  - There were issues on older versions of Ruby (<2.3)
@@ -0,0 +1,6 @@
1
+ machine:
2
+ ruby:
3
+ version: 2.1.0
4
+ test:
5
+ post:
6
+ - bundle exec rake
@@ -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}"
@@ -1,3 +1,3 @@
1
1
  module Intercom #:nodoc:
2
- VERSION = "3.5.21"
2
+ VERSION = "3.5.22"
3
3
  end
@@ -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.21
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-10-16 00:00:00.000000000 Z
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.5.1
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