zopim_rails 1.9.0 → 1.9.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 +5 -5
- data/README.md +3 -2
- data/lib/zopim_rails/chatbox.rb +0 -1
- data/lib/zopim_rails/rails/railtie.rb +1 -2
- data/lib/zopim_rails/rails/view_helpers.rb +1 -6
- data/lib/zopim_rails/version.rb +1 -1
- data/spec/zopim_rails/chatbox_spec.rb +1 -2
- data/spec/zopim_rails/configuration_spec.rb +1 -4
- data/spec/zopim_rails/version_spec.rb +1 -2
- data/zopim_rails.gemspec +2 -2
- metadata +9 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7307c5d2ac156daf01b54ad9780f239132ad8b8276b35d500fc26acad6751238
|
4
|
+
data.tar.gz: fc108b3034b2faba84363d24b96a3ff1917724172c0d9d76661fa00dd2dae237
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e28773ae03f244f24d7609087ff5a2a97f725a03b9716a5a053f869cd50ee2f57bebe036ddc5af2337292214b7e1ca9c0cbfaaeea05051482f2b748b8217669c
|
7
|
+
data.tar.gz: 0c3ea4079fc38f544ed9184654a7abb898bda38da513e1cbdd509445f9d9f8fe31767ea4d393b0b81c2c28a3be5a94a88ac88ede239a58d21a60f6e3ee6f0368
|
data/README.md
CHANGED
@@ -2,8 +2,9 @@
|
|
2
2
|
[](https://badge.fury.io/rb/zopim_rails)
|
3
3
|
[](https://travis-ci.org/wittawasw/zopim_rails)
|
4
4
|
|
5
|
-
Rails simple helper for [Zopim](https://www.zopim.com/) live chat script.
|
6
|
-
Now support turbolink with help from [
|
5
|
+
Rails simple helper for [Zopim](https://www.zopim.com/) live chat script.
|
6
|
+
Now support turbolink 2.5.3+ with help from [Contributing](https://github.com/wittawasw/zopim_rails/graphs/contributors)
|
7
|
+
|
7
8
|
|
8
9
|
## Installation
|
9
10
|
|
data/lib/zopim_rails/chatbox.rb
CHANGED
@@ -1,17 +1,12 @@
|
|
1
1
|
# coding: utf-8
|
2
|
-
|
3
2
|
require 'active_support/core_ext/string/output_safety'
|
4
3
|
require 'active_support/core_ext/object/blank'
|
5
4
|
|
6
5
|
module ZopimRails::Rails
|
7
|
-
|
8
6
|
module ViewHelpers
|
9
|
-
|
10
7
|
def zopim_init
|
11
|
-
|
12
8
|
queue = ZopimRails::Chatbox.new
|
13
9
|
queue.render_script.html_safe
|
14
|
-
|
15
10
|
end
|
16
11
|
end
|
17
|
-
end
|
12
|
+
end
|
data/lib/zopim_rails/version.rb
CHANGED
@@ -2,7 +2,6 @@ require 'spec_helper'
|
|
2
2
|
require_relative '../../lib/zopim_rails/chatbox'
|
3
3
|
|
4
4
|
describe ZopimRails::Chatbox do
|
5
|
-
|
6
5
|
before do
|
7
6
|
ZopimRails.configure do |config|
|
8
7
|
config.api_key = 'replace-me-with-your-api_key'
|
@@ -15,4 +14,4 @@ describe ZopimRails::Chatbox do
|
|
15
14
|
expect(chatbox.render_script).to be_a_kind_of(String)
|
16
15
|
expect(chatbox.render_script).to include('replace-me-with-your-api_key')
|
17
16
|
end
|
18
|
-
end
|
17
|
+
end
|
@@ -1,9 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
require_relative '../../lib/zopim_rails/configuration'
|
3
|
-
# require_relative '../../lib/zopim_rails/configuration'
|
4
3
|
|
5
4
|
describe ZopimRails::Configuration do
|
6
|
-
|
7
5
|
before do
|
8
6
|
ZopimRails.configure do |config|
|
9
7
|
config.api_key = 'replace-me-with-your-api_key'
|
@@ -14,5 +12,4 @@ describe ZopimRails::Configuration do
|
|
14
12
|
expect(ZopimRails.configuration.api_key).to be_a_kind_of(String)
|
15
13
|
expect(ZopimRails.configuration.api_key).to eq 'replace-me-with-your-api_key'
|
16
14
|
end
|
17
|
-
|
18
|
-
end
|
15
|
+
end
|
@@ -2,9 +2,8 @@ require 'spec_helper'
|
|
2
2
|
require_relative '../../lib/zopim_rails/version'
|
3
3
|
|
4
4
|
describe ZopimRails do
|
5
|
-
|
6
5
|
it "should return version correctly" do
|
7
6
|
expect(ZopimRails::VERSION).to be_a_kind_of(String)
|
8
|
-
expect(ZopimRails::VERSION).to eq '1.9.
|
7
|
+
expect(ZopimRails::VERSION).to eq '1.9.1'
|
9
8
|
end
|
10
9
|
end
|
data/zopim_rails.gemspec
CHANGED
@@ -18,8 +18,8 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_development_dependency "bundler", "
|
22
|
-
spec.add_development_dependency 'rake', '
|
21
|
+
spec.add_development_dependency "bundler", ">= 1.5"
|
22
|
+
spec.add_development_dependency 'rake', '>= 12.3.3'
|
23
23
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
24
24
|
spec.add_dependency 'jquery-rails', ['>= 3.0', '< 5']
|
25
25
|
end
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zopim_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.1
|
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: 2020-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.5'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.5'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 12.3.3
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 12.3.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -117,8 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
117
|
- !ruby/object:Gem::Version
|
118
118
|
version: '0'
|
119
119
|
requirements: []
|
120
|
-
|
121
|
-
rubygems_version: 2.5.1
|
120
|
+
rubygems_version: 3.1.4
|
122
121
|
signing_key:
|
123
122
|
specification_version: 4
|
124
123
|
summary: Rails helper for Zopim live chat script.
|