gabbara 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gabbara (0.0.3)
4
+ gabbara (0.0.4)
5
5
  activesupport
6
6
 
7
7
  GEM
data/lib/gabbara/gabba.rb CHANGED
@@ -83,7 +83,7 @@ module Gabbara
83
83
  end
84
84
 
85
85
  def event_data(category, action, label = nil, value = nil)
86
- "5(#{category}*action".tap do |data|
86
+ "5(#{category}*#{action}".tap do |data|
87
87
  data << "*#{label}" if label
88
88
  data << ")"
89
89
  data << "(#{value})" if value
@@ -1,3 +1,3 @@
1
1
  module Gabbara
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
data/spec/gabba_spec.rb CHANGED
@@ -52,7 +52,7 @@ describe Gabbara::Gabba do
52
52
 
53
53
  describe "when tracking custom events with two params" do
54
54
  before do
55
- stub_analytics "utme"=>"5(cat1*action)", "utmt"=>"event"
55
+ stub_analytics "utme"=>"5(cat1*act1)", "utmt"=>"event"
56
56
  @gabba = Gabbara::Gabba.new("UC-123", "domain", :utmn => "1009731272", :utmcc => '')
57
57
  end
58
58
 
@@ -63,7 +63,7 @@ describe Gabbara::Gabba do
63
63
 
64
64
  describe "when tracking custom events with label without value" do
65
65
  before do
66
- stub_analytics "utme"=>"5(cat1*action*lab1)", "utmt"=>"event"
66
+ stub_analytics "utme"=>"5(cat1*act1*lab1)", "utmt"=>"event"
67
67
  @gabba = Gabbara::Gabba.new("UC-123", "domain", :utmn => "1009731272", :utmcc => '')
68
68
  end
69
69
 
@@ -74,7 +74,7 @@ describe Gabbara::Gabba do
74
74
 
75
75
  describe "when tracking custom events with value without label" do
76
76
  before do
77
- stub_analytics "utme"=>"5(cat1*action)(val1)", "utmt"=>"event"
77
+ stub_analytics "utme"=>"5(cat1*act1)(val1)", "utmt"=>"event"
78
78
  @gabba = Gabbara::Gabba.new("UC-123", "domain", :utmn => "1009731272", :utmcc => '')
79
79
  end
80
80
 
@@ -85,7 +85,7 @@ describe Gabbara::Gabba do
85
85
 
86
86
  describe "when tracking custom events with all params" do
87
87
  before do
88
- stub_analytics "utme"=>"5(cat1*action*lab1)(val1)", "utmt"=>"event"
88
+ stub_analytics "utme"=>"5(cat1*act1*lab1)(val1)", "utmt"=>"event"
89
89
  @gabba = Gabbara::Gabba.new("UC-123", "domain", :utmn => "1009731272", :utmcc => '')
90
90
  end
91
91
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gabbara
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Reinsch