intercom-rails 0.4.0 → 0.4.1

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
  SHA256:
3
- metadata.gz: 253fda3b6f83f376ead3c83360c0961be21060cab192d6d6ca49b0f3308fc607
4
- data.tar.gz: 2cd892059becff0f29dc82d6aa9e85979ba2bb1da03feec6257972342e893169
3
+ metadata.gz: ff3876d40d57f39f1867e5a85924bb95b37881f0f412f55d62b6aaafdd4bd137
4
+ data.tar.gz: 57411d70e56d4aca7ec19c8e99f891527819c8d878ca8354de7d9750f8b48bae
5
5
  SHA512:
6
- metadata.gz: 87baa5f81d73eac5cec417df64b1d3884e75e4fcb98a7397be636409479f12dab4b5ea6d601db335a6012820d05c503892c275014194cf763fa3ebcde9d4f687
7
- data.tar.gz: bfa0536a645fa87c1af4720465aad50279c44b2edaaf245236a12efe9270406f9dd6d9ff6021f77df8d33b2b2156b788a243d5da59d326cf665fad5cf6a33b64
6
+ metadata.gz: 3baa59dfce787f287e1442da9cbc63d9d564e720cf445a930dfe7c1351cfd5982b46184af342e51454a034910e6966487b7c0029db495e3018bb63c2ddba25bb
7
+ data.tar.gz: f2f35de9546ef409652ef7956161eb05ad5798c23808b8320764e49519648c5f0aa0b01ee276efc98f2f0982bd0e5dfc3036910d4b97c574ff2a7f8900904d08
data/README.md CHANGED
@@ -4,7 +4,7 @@ The easiest way to install Intercom in a rails app.
4
4
 
5
5
  For interacting with the Intercom REST API, use the `intercom` gem (https://github.com/intercom/intercom-ruby)
6
6
 
7
- Requires ruby 2.0 or higher for `intercom-rails >= 4.0`
7
+ Requires ruby 2.0 or higher for `intercom-rails >= 0.4.0`
8
8
 
9
9
  ## Installation
10
10
  Add this to your Gemfile:
@@ -55,7 +55,7 @@ If your users can be defined in different ways in your app you can also pass an
55
55
  ```ruby
56
56
  config.user.current = [Proc.new { current_user_object }, Proc.new { @user_object }]
57
57
  ```
58
- * If you want the Intercom Messenger to be available when there is no current user, set `config.include_for_logged_out_users = true` in your config and sign up for the [Respond](https://www.intercom.io/live-chat) package.
58
+ * If you want the Intercom Messenger to be available when there is no current user, set `config.include_for_logged_out_users = true` in your config and sign up for the [Inbox](https://www.intercom.io/live-chat) package.
59
59
 
60
60
  Feel free to mail us: team@intercom.io, if you're still having trouble.
61
61
 
@@ -71,7 +71,7 @@ It is possible to enable Identity Verification for the Intercom Messenger and yo
71
71
 
72
72
  ### Shutdown
73
73
 
74
- If you use Intercom Respond combined with another product like Engage, any user that uses a shared computer and browser with someone else will be able to see the most recently logged in user’s conversation history until the cookie expires.
74
+ If you use Intercom Inbox combined with another product like Messages, any user that uses a shared computer and browser with someone else will be able to see the most recently logged in user’s conversation history until the cookie expires.
75
75
  Because of this, it’s very important to properly shutdown Intercom when a user’s session on your app ends (via manually or automatically logging out).
76
76
 
77
77
  #### Using Devise
@@ -55,7 +55,11 @@ module IntercomRails
55
55
  end
56
56
 
57
57
  def html_content_type?
58
- response.content_type == 'text/html'
58
+ if response.respond_to?(:media_type)
59
+ response.media_type == 'text/html'
60
+ else
61
+ response.content_type == 'text/html'
62
+ end
59
63
  end
60
64
 
61
65
  def response_has_closing_body_tag?
@@ -29,7 +29,7 @@ module IntercomRails
29
29
  self.company_details = if options[:find_current_company_details]
30
30
  find_current_company_details
31
31
  elsif options[:user_details]
32
- options[:user_details].delete(:company) if options[:user_details]
32
+ options[:user_details].delete(:company)
33
33
  end
34
34
  self.nonce = options[:nonce]
35
35
  end
@@ -1,3 +1,3 @@
1
1
  module IntercomRails
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intercom-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben McRedmond
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-05-23 00:00:00.000000000 Z
13
+ date: 2019-08-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -203,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
203
203
  version: '0'
204
204
  requirements: []
205
205
  rubyforge_project: intercom-rails
206
- rubygems_version: 2.7.4
206
+ rubygems_version: 2.7.6.2
207
207
  signing_key:
208
208
  specification_version: 4
209
209
  summary: Rails helper for emitting javascript script tags for Intercom