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 +5 -5
- data/Gemfile +1 -1
- data/lib/tracker_inject/injector.rb +5 -16
- 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: a6a2dfd1d347a67d5f145050d0ba19f4cb999546cbc2540a77c90114513a500d
|
4
|
+
data.tar.gz: f0fbc6c9af5e287a6bb1a61add672f130af8ea2c5ef3fb71764f6a2358ef9cd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e357f68efa8b0ec6ebdbf62f6127038a09ce49dbb15b7afebbc88ceb463603d65dd2ca280c5bfc01984580d674003c031bb7faff77ecd6a41671a266209ec6ed
|
7
|
+
data.tar.gz: a72610d6642253afea4dcd88b424fdf9bc39d8dc5d6cf00fdbfd12126acaaf6d37d9d7ae7013b6efd3d20d33bee722233715a8e3bcfe938222bc52df682f45b4
|
data/Gemfile
CHANGED
@@ -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
|
-
|
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(
|
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.
|
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-
|
11
|
+
date: 2020-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |-
|
14
|
-
GoSquared is the
|
15
|
-
This gem is for quickly installing the GoSquared Assistant, GoSquared Real-time Analytics and the People
|
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
|
-
|
65
|
-
|
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
|