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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b286870e4f38070a1acaa7615b27f86b466bf1b
4
- data.tar.gz: 34de2761c664a58dc048ab7d383c97ea30eabfbc
3
+ metadata.gz: 683ea3cbe291a8c10f55736a44ef56b26939c27a
4
+ data.tar.gz: e346f7efbfc5671b09caba2285b292a7b8e0fca9
5
5
  SHA512:
6
- metadata.gz: 2b72a229d83cb9bc80add2b61a6e208657f3cafdaf29ef10b103b2daa9f054f4fc98135a0b3d63323a51908d1b6bf781daa84d7e5b9bc6fe1117a2e7673b45c3
7
- data.tar.gz: c4cdf30fb6068b17aeba033b6cac2171ad23862e3ec3c62b9c0339433ec5fcba3cf8b54e38f537e3b61c19432ae743ca46f63f0fdb8907f56cf850400a3d3072
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/initialize/zopim.rb` and add
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'
@@ -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);zopim_chat();</script>
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
@@ -1,3 +1,3 @@
1
1
  module ZopimRails
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -5,6 +5,6 @@ describe ZopimRails do
5
5
 
6
6
  it "should return version correctly" do
7
7
  expect(ZopimRails::VERSION).to be_a_kind_of(String)
8
- expect(ZopimRails::VERSION).to eq '0.0.7'
8
+ expect(ZopimRails::VERSION).to eq '0.0.8'
9
9
  end
10
- end
10
+ end
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.7
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: 2015-10-15 00:00:00.000000000 Z
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.5.1
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.