analytical 1.0.0 → 1.1.0
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.
- data/VERSION +1 -1
- data/analytical.gemspec +1 -1
- data/lib/analytical/base.rb +1 -1
- data/lib/analytical/console.rb +4 -0
- data/lib/analytical/kiss_metrics.rb +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.1.0
|
data/analytical.gemspec
CHANGED
data/lib/analytical/base.rb
CHANGED
@@ -26,7 +26,7 @@ module Analytical
|
|
26
26
|
# Set passes some data to the analytics service that should be attached to the current user identity
|
27
27
|
# It can be used to set AB-testing choices and other unique data, so that split testing results can be
|
28
28
|
# reported by an analytics service
|
29
|
-
def set(data
|
29
|
+
def set(data); ''; end
|
30
30
|
|
31
31
|
# This method generates the initialization javascript that an analytics service uses to track your site
|
32
32
|
def init_javascript(location); {}; end
|
data/lib/analytical/console.rb
CHANGED
@@ -33,6 +33,10 @@ module Analytical
|
|
33
33
|
"console.log(\"Analytical Event: \"+\"#{name}\"+\" \"+$H(#{data.to_json}).toJSON());"
|
34
34
|
end
|
35
35
|
|
36
|
+
def set(data)
|
37
|
+
"console.log(\"Analytical Set: \"+$H(#{data.to_json}).toJSON());"
|
38
|
+
end
|
39
|
+
|
36
40
|
private
|
37
41
|
|
38
42
|
CONSOLE_JS_ESCAPE_MAP = {
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: analytical
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 1.0.0
|
10
|
+
version: 1.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Joshua Krall
|