intercom-rails 0.2.20 → 0.2.21
Sign up to get free protection for your applications and to get access to all the features.
@@ -43,7 +43,7 @@ module IntercomRails
|
|
43
43
|
<script id="IntercomSettingsScriptTag">
|
44
44
|
window.intercomSettings = #{intercom_settings_json};
|
45
45
|
</script>
|
46
|
-
<script>(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='#{Config.library_url || 'https://
|
46
|
+
<script>(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='#{Config.library_url || 'https://static.intercomcdn.com/intercom.v1.js'}';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}};})()</script>
|
47
47
|
INTERCOM_SCRIPT
|
48
48
|
|
49
49
|
str.respond_to?(:html_safe) ? str.html_safe : str
|
@@ -115,7 +115,7 @@ class AutoIncludeFilterTest < ActionController::TestCase
|
|
115
115
|
def test_library_url_default
|
116
116
|
get :with_current_user_method, :body => "<body>Hello world</body>"
|
117
117
|
assert_includes @response.body, "<script>"
|
118
|
-
assert_includes @response.body, "s.src='https://
|
118
|
+
assert_includes @response.body, "s.src='https://static.intercomcdn.com/intercom.v1.js"
|
119
119
|
end
|
120
120
|
|
121
121
|
def test_library_url_override
|
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.21
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-05-
|
14
|
+
date: 2013-05-28 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activesupport
|