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 CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.0
data/analytical.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{analytical}
8
- s.version = "1.0.0"
8
+ s.version = "1.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Joshua Krall"]
@@ -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, *args); ''; end
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
@@ -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 = {
@@ -33,7 +33,7 @@ module Analytical
33
33
  "_kmq.push([\"record\", \"#{name}\", #{data.to_json}]);"
34
34
  end
35
35
 
36
- def set(data, *args)
36
+ def set(data)
37
37
  return '' if data.blank?
38
38
  "_kmq.push([\"set\", #{data.to_json}]);"
39
39
  end
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: 23
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
+ - 1
8
9
  - 0
9
- - 0
10
- version: 1.0.0
10
+ version: 1.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Joshua Krall