zopim_rails 0.0.7 → 0.0.8
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 +1 -1
- data/lib/zopim_rails/chatbox.rb +1 -1
- data/lib/zopim_rails/version.rb +1 -1
- data/spec/zopim_rails/version_spec.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 683ea3cbe291a8c10f55736a44ef56b26939c27a
|
|
4
|
+
data.tar.gz: e346f7efbfc5671b09caba2285b292a7b8e0fca9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7da59c8cd7fd72574b4f104b25045da21a9c3f02eb9d9600c4a467e8ed9d84679ccc373f66c058d062d62fea2eedc6e8c3a6e75004a3d85041de35e33366a492
|
|
7
|
+
data.tar.gz: 9068508ca0cb58a1edda71cb5942395298798e157cb20eb02205fbb5b08835dd8bf37b36cf02cf5ca0788a119f273ee9be8102e1db9529667f0c0eb285c0d368
|
data/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Or install it yourself as:
|
|
|
20
20
|
|
|
21
21
|
## Usage
|
|
22
22
|
|
|
23
|
-
Create file `zopim.rb` in `config/
|
|
23
|
+
Create file `zopim.rb` in `config/initializers/zopim.rb` and add
|
|
24
24
|
|
|
25
25
|
ZopimRails.configure do |config|
|
|
26
26
|
config.api_key = 'replace-me-with-your-api_key'
|
data/lib/zopim_rails/chatbox.rb
CHANGED
|
@@ -4,7 +4,7 @@ module ZopimRails
|
|
|
4
4
|
class Chatbox
|
|
5
5
|
def render_script
|
|
6
6
|
<<-JAVASCRIPT
|
|
7
|
-
<script type="text/javascript">function zopim_chat(){$('[__jx__id]').remove();window.$zopim = null;(function(d,s){var z=$zopim=function(c){z._.push(c)},$=z.s=d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set._.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute('charset','utf-8');$.src='//v2.zopim.com/?#{ZopimRails.configuration.api_key}';z.t=+new Date;$.type='text/javascript';e.parentNode.insertBefore($,e)})(document,'script')};$(window).off('page:change.zopim').on('page:change.zopim', zopim_chat)
|
|
7
|
+
<script type="text/javascript">function zopim_chat(){$('[__jx__id]').remove();window.$zopim = null;(function(d,s){var z=$zopim=function(c){z._.push(c)},$=z.s=d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set._.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute('charset','utf-8');$.src='//v2.zopim.com/?#{ZopimRails.configuration.api_key}';z.t=+new Date;$.type='text/javascript';e.parentNode.insertBefore($,e)})(document,'script')};$(window).off('page:change.zopim').on('page:change.zopim', zopim_chat);</script>
|
|
8
8
|
JAVASCRIPT
|
|
9
9
|
end
|
|
10
10
|
end
|
data/lib/zopim_rails/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zopim_rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Wittawas Wisarnkanchana
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-04-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
118
118
|
version: '0'
|
|
119
119
|
requirements: []
|
|
120
120
|
rubyforge_project:
|
|
121
|
-
rubygems_version: 2.4.
|
|
121
|
+
rubygems_version: 2.4.8
|
|
122
122
|
signing_key:
|
|
123
123
|
specification_version: 4
|
|
124
124
|
summary: Rails helper for Zopim live chat script.
|