ab_panel 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/ab_panel/controller_additions.rb +2 -2
- data/lib/ab_panel/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -34,7 +34,7 @@ Then track any event you want from your controller:
|
|
34
34
|
|
35
35
|
```ruby
|
36
36
|
class CoursesController < ApplicationController
|
37
|
-
|
37
|
+
track_visit '[visits] Booking form', { :only => :book_now, :course => :id }
|
38
38
|
|
39
39
|
# controller code here
|
40
40
|
end
|
@@ -40,7 +40,7 @@ module AbPanel
|
|
40
40
|
# This makes sure an ab_panel session is re-initialized on every
|
41
41
|
# request. Experiment conditions and unique user id are preserved
|
42
42
|
# in the user's session.
|
43
|
-
def initialize_ab_panel!
|
43
|
+
def initialize_ab_panel!(options={})
|
44
44
|
self.before_filter(options.slice(:only, :except)) do |controller|
|
45
45
|
# Persist the conditions.
|
46
46
|
AbPanel.conditions = controller.session['ab_panel_conditions']
|
@@ -61,7 +61,7 @@ module AbPanel
|
|
61
61
|
#
|
62
62
|
# Example:
|
63
63
|
#
|
64
|
-
#
|
64
|
+
# track_visit '[visits] Booking form', { :only => :book_now, :course => :id }
|
65
65
|
#
|
66
66
|
# This will track the event with the given name on CoursesController#book_now
|
67
67
|
# and assign an options hash:
|
data/lib/ab_panel/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ab_panel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -146,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
146
146
|
version: '0'
|
147
147
|
segments:
|
148
148
|
- 0
|
149
|
-
hash:
|
149
|
+
hash: 863994262181660541
|
150
150
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
151
|
none: false
|
152
152
|
requirements:
|
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
155
|
version: '0'
|
156
156
|
segments:
|
157
157
|
- 0
|
158
|
-
hash:
|
158
|
+
hash: 863994262181660541
|
159
159
|
requirements: []
|
160
160
|
rubyforge_project:
|
161
161
|
rubygems_version: 1.8.23
|