gosquared-rails 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: cc94758100bae2a4d86eaf9ef7ce726fcb61fc4a
4
- data.tar.gz: df209f0eaa87092c1b0d55e20c7fa991c3982719
2
+ SHA256:
3
+ metadata.gz: a6a2dfd1d347a67d5f145050d0ba19f4cb999546cbc2540a77c90114513a500d
4
+ data.tar.gz: f0fbc6c9af5e287a6bb1a61add672f130af8ea2c5ef3fb71764f6a2358ef9cd3
5
5
  SHA512:
6
- metadata.gz: 69b0c2bca9dc932bf98a312f9ba4a09f7f89360663d82a254ed34f6006f03819a9c40dd9ed1981bda990c378bd261b0dafa80096a03763baea3afc97fdc5dd79
7
- data.tar.gz: 2cef301fc6f9563e33782c9b485f44c731f59e6ec9d9fb91532cd85f54c0993aa0001b7efc02751e161e37dc4246b1273222dd8afb16f3cd8f53cfbaff659d60
6
+ metadata.gz: e357f68efa8b0ec6ebdbf62f6127038a09ce49dbb15b7afebbc88ceb463603d65dd2ca280c5bfc01984580d674003c031bb7faff77ecd6a41671a266209ec6ed
7
+ data.tar.gz: a72610d6642253afea4dcd88b424fdf9bc39d8dc5d6cf00fdbfd12126acaaf6d37d9d7ae7013b6efd3d20d33bee722233715a8e3bcfe938222bc52df682f45b4
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- ruby '2.3.0'
3
+ ruby '2.7.2'
4
4
 
5
5
  group :development, :test do
6
6
  gem 'combustion', '~> 0.5.5', :group => :test
@@ -25,26 +25,14 @@ class Injector
25
25
  _gs('track');
26
26
  }
27
27
 
28
- document.addEventListener('page:load', track);
28
+ document.addEventListener('page:load', track());
29
+
29
30
  document.addEventListener('turbolinks:load', function(){
30
31
  track();
31
32
  });
32
33
 
33
- let chat;
34
-
35
- document.addEventListener('turbolinks:before-cache', function () {
36
- chat = $('[id=gs]');
37
- chat.detach();
38
- })
39
-
40
- document.addEventListener('turbolinks:before-render', function(event){
41
- chat.appendTo(event.originalEvent.data.newBody);
42
- });
43
-
44
34
  document.addEventListener('turbolinks:render', function() {
45
- try {
46
- window.dispatchEvent(new Event('resize'));
47
- } catch (e) {}
35
+ _gs('chat', 'reattach')
48
36
  })
49
37
  })();
50
38
 
@@ -67,8 +55,9 @@ private
67
55
 
68
56
  def populate_script(property_config=PropertyConfig.new)
69
57
  unless GosquaredRails.configure.custom_properties.nil?
58
+ add_gosquared_script
70
59
  property_config.sort_property_fields(GosquaredRails.configure.custom_properties)
71
- response.body = response.body.gsub(CLOSING_BODY_TAG, "<script>
60
+ response.body = response.body.gsub(CLOSING_HEAD_TAG, "<script>
72
61
  _gs('identify',
73
62
  #{property_config.gosquared_standard_properties}
74
63
  #{property_config.gosquared_custom_properties}
metadata CHANGED
@@ -1,18 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gosquared-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Russell Vaughan
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-28 00:00:00.000000000 Z
11
+ date: 2020-12-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |-
14
- GoSquared is the Intelligent live chat software designed to engage with visitors at the perfect time.
15
- This gem is for quickly installing the GoSquared Assistant, GoSquared Real-time Analytics and the People CRM in your Rails App .
14
+ GoSquared is the All-in-one growth software for SaaS businesses.
15
+ This gem is for quickly installing the GoSquared intelligent in-app messaging and live chat Assistant, GoSquared Real-time Analytics and the People Customer Data Hub in your Rails App .
16
16
  email:
17
17
  - russell@gosquared.com
18
18
  executables: []
@@ -46,7 +46,7 @@ homepage: https://github.com/gosquared/gosquared-rails
46
46
  licenses:
47
47
  - MIT
48
48
  metadata: {}
49
- post_install_message:
49
+ post_install_message:
50
50
  rdoc_options: []
51
51
  require_paths:
52
52
  - lib
@@ -61,11 +61,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  requirements: []
64
- rubyforge_project:
65
- rubygems_version: 2.5.1
66
- signing_key:
64
+ rubygems_version: 3.1.4
65
+ signing_key:
67
66
  specification_version: 4
68
- summary: Gem for injecting and configuring the GoSquared Assistant via our JavaScript
67
+ summary: Gem for injecting and configuring the new GoSquared Assistant via our JavaScript
69
68
  tracking code and Identify method
70
69
  test_files:
71
70
  - spec/spec_helper.rb