intercom-rails 0.4.0 → 0.4.1
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 +3 -3
- data/lib/intercom-rails/auto_include_filter.rb +5 -1
- data/lib/intercom-rails/script_tag.rb +1 -1
- data/lib/intercom-rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ff3876d40d57f39f1867e5a85924bb95b37881f0f412f55d62b6aaafdd4bd137
|
|
4
|
+
data.tar.gz: 57411d70e56d4aca7ec19c8e99f891527819c8d878ca8354de7d9750f8b48bae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 [
|
|
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
|
|
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.
|
|
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)
|
|
32
|
+
options[:user_details].delete(:company)
|
|
33
33
|
end
|
|
34
34
|
self.nonce = options[:nonce]
|
|
35
35
|
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.
|
|
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:
|
|
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.
|
|
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
|