ga_events 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,10 +29,14 @@ class GaEvents.Event
29
29
  @klass.flush()
30
30
 
31
31
  push_to_adapter: ->
32
+ # https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide#SettingUpEventTracking
33
+ # Category, Action and Label must be of type string.
34
+ # Value must be a positive integer.
35
+
32
36
  data =
33
- action: @action
34
- category: @category
35
- data.label = @label if @is_present @label
37
+ action: "#{@action}"
38
+ category: "#{@category}"
39
+ data.label = "#{@label}" if @is_present @label
36
40
 
37
41
  if @is_present @value
38
42
  # @value is a number and of type integer.
@@ -1,3 +1,3 @@
1
1
  module GaEvents
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ga_events
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-02-13 00:00:00.000000000 Z
14
+ date: 2013-02-15 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -66,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
66
  version: '0'
67
67
  segments:
68
68
  - 0
69
- hash: 4045941152351364033
69
+ hash: -622634441041131109
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  none: false
72
72
  requirements:
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  segments:
77
77
  - 0
78
- hash: 4045941152351364033
78
+ hash: -622634441041131109
79
79
  requirements: []
80
80
  rubyforge_project:
81
81
  rubygems_version: 1.8.24