intercom-rails 0.2.28 → 0.2.29
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.mdown +1 -2
- data/lib/intercom-rails/auto_include_filter.rb +2 -0
- data/lib/intercom-rails/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9c6d7c7465ed41a57577b0780f243224a7d678ca
|
|
4
|
+
data.tar.gz: 86dbf0fe02d72ab8891670e78a7491dd50b5da42
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 365a12c308a3e5040fef8a45e798933381d3a752fea0eb68320dc1b5239dbf46938f3e34ae076d2311985eee8e52366ad348a3ccd52e9e0f61053c1161b2c21c
|
|
7
|
+
data.tar.gz: dd94d155b10879c11689409fe95a46ad8976091dcf2eb5328a99588c64acea94b2a3aadaadc73b90ea1f6e35943903e6d14d27330cdc4afaa3c3ce705d026a41
|
data/README.mdown
CHANGED
|
@@ -39,11 +39,10 @@ If it's not working make sure:
|
|
|
39
39
|
* You've generated a config file with your `app_id` as detailed above.
|
|
40
40
|
* Your user object responds to an `id` or `email` method.
|
|
41
41
|
* Your current user is accessible in your controllers as `current_user` or `@user`, if not in `config/initializers/intercom.rb`:
|
|
42
|
-
* 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 [Acquire](https://www.intercom.io/live-chat) package.
|
|
43
|
-
|
|
44
42
|
```ruby
|
|
45
43
|
config.user.current = Proc.new { current_user_object }
|
|
46
44
|
```
|
|
45
|
+
* 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 [Acquire](https://www.intercom.io/live-chat) package.
|
|
47
46
|
|
|
48
47
|
Feel free to mail us: team@intercom.io, if you're still having trouble.
|
|
49
48
|
|
|
@@ -10,8 +10,10 @@ module IntercomRails
|
|
|
10
10
|
class Filter
|
|
11
11
|
|
|
12
12
|
CLOSING_BODY_TAG = %r{</body>}
|
|
13
|
+
BLACKLISTED_CONTROLLER_NAMES = ["Devise::PasswordsController"]
|
|
13
14
|
|
|
14
15
|
def self.filter(controller)
|
|
16
|
+
return if BLACKLISTED_CONTROLLER_NAMES.include?(controller.class.name)
|
|
15
17
|
auto_include_filter = new(controller)
|
|
16
18
|
return unless auto_include_filter.include_javascript?
|
|
17
19
|
|
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.2.
|
|
4
|
+
version: 0.2.29
|
|
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: 2015-
|
|
13
|
+
date: 2015-10-02 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: activesupport
|
|
@@ -163,10 +163,7 @@ executables: []
|
|
|
163
163
|
extensions: []
|
|
164
164
|
extra_rdoc_files: []
|
|
165
165
|
files:
|
|
166
|
-
- README.mdown
|
|
167
|
-
- Rakefile
|
|
168
166
|
- lib/data/cacert.pem
|
|
169
|
-
- lib/intercom-rails.rb
|
|
170
167
|
- lib/intercom-rails/auto_include_filter.rb
|
|
171
168
|
- lib/intercom-rails/config.rb
|
|
172
169
|
- lib/intercom-rails/custom_data_helper.rb
|
|
@@ -174,15 +171,18 @@ files:
|
|
|
174
171
|
- lib/intercom-rails/exceptions.rb
|
|
175
172
|
- lib/intercom-rails/import.rb
|
|
176
173
|
- lib/intercom-rails/intercom.rake
|
|
177
|
-
- lib/intercom-rails/proxy.rb
|
|
178
174
|
- lib/intercom-rails/proxy/company.rb
|
|
179
175
|
- lib/intercom-rails/proxy/user.rb
|
|
176
|
+
- lib/intercom-rails/proxy.rb
|
|
180
177
|
- lib/intercom-rails/railtie.rb
|
|
181
178
|
- lib/intercom-rails/script_tag.rb
|
|
182
179
|
- lib/intercom-rails/script_tag_helper.rb
|
|
183
180
|
- lib/intercom-rails/version.rb
|
|
181
|
+
- lib/intercom-rails.rb
|
|
184
182
|
- lib/rails/generators/intercom/config/config_generator.rb
|
|
185
183
|
- lib/rails/generators/intercom/config/intercom.rb.erb
|
|
184
|
+
- Rakefile
|
|
185
|
+
- README.mdown
|
|
186
186
|
homepage: http://www.intercom.io
|
|
187
187
|
licenses: []
|
|
188
188
|
metadata: {}
|
|
@@ -202,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
202
202
|
version: '0'
|
|
203
203
|
requirements: []
|
|
204
204
|
rubyforge_project: intercom-rails
|
|
205
|
-
rubygems_version: 2.
|
|
205
|
+
rubygems_version: 2.0.14
|
|
206
206
|
signing_key:
|
|
207
207
|
specification_version: 4
|
|
208
208
|
summary: Rails helper for emitting javascript script tags for Intercom
|