You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d97fb57
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.mdown
+34-31Lines changed: 34 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
-
# Multivariate
2
-
## Rack based multivariate testing framework
1
+
# Split
2
+
## Rack based split testing framework
3
3
4
-
Multivariate is a rack based ab testing framework designed to work with Rails, Sinatra or any other rack based app.
4
+
Split is a rack based ab testing framework designed to work with Rails, Sinatra or any other rack based app.
5
5
6
-
Multivariate is heavily inspired by the Abingo and Vanity rails ab testing plugins and Resque in its use of Redis.
6
+
Split is heavily inspired by the Abingo and Vanity rails ab testing plugins and Resque in its use of Redis.
7
7
8
8
## Requirements
9
9
10
-
Multivariate uses redis as a datastore.
10
+
Split uses redis as a datastore.
11
11
12
12
If you're on OS X, Homebrew is the simplest way to install Redis:
13
13
@@ -18,33 +18,33 @@ You now have a Redis daemon running on 6379.
18
18
19
19
## Setup
20
20
21
-
If you are using bundler add multivariate to your Gemfile:
21
+
If you are using bundler add split to your Gemfile:
22
22
23
-
gem 'multivariate'
23
+
gem 'split'
24
24
25
25
Then run:
26
26
27
27
bundle install
28
28
29
29
Otherwise install the gem:
30
30
31
-
gem install multivariate
31
+
gem install split
32
32
33
33
and require it in your project:
34
34
35
-
require 'multivariate'
35
+
require 'split'
36
36
37
37
### Rails
38
38
39
-
Multivariate is autoloaded when rails starts up, as long as you've configured redis it will 'just work'.
39
+
Split is autoloaded when rails starts up, as long as you've configured redis it will 'just work'.
40
40
41
41
### Sinatra
42
42
43
-
To configure sinatra with Multivariate you need to enable sessions and mix in the helper methods. Add the following lines at the top of your sinatra app:
43
+
To configure sinatra with Split you need to enable sessions and mix in the helper methods. Add the following lines at the top of your sinatra app:
44
44
45
45
class MySinatraApp < Sinatra::Base
46
46
enable :sessions
47
-
helpers Multivariate::Helper
47
+
helpers Split::Helper
48
48
49
49
get '/' do
50
50
...
@@ -86,40 +86,40 @@ Example: Conversion tracking (in a view)
86
86
87
87
## Web Interface
88
88
89
-
Multivariate comes with a Sinatra-based front end to get an overview of how your experiments are doing.
89
+
Split comes with a Sinatra-based front end to get an overview of how your experiments are doing.
90
90
91
91
You can mount this inside your app using Rack::URLMap in your `config.ru`
92
92
93
-
require 'multivariate/dashboard'
93
+
require 'split/dashboard'
94
94
95
95
run Rack::URLMap.new \
96
96
"/" => Your::App.new,
97
-
"/multivariate" => Multivariate::Dashboard.new
97
+
"/split" => Split::Dashboard.new
98
98
99
99
You may want to password protect that page, you can do so with `Rack::Auth::Basic`
100
100
101
-
Multivariate::Dashboard.use Rack::Auth::Basic do |username, password|
101
+
Split::Dashboard.use Rack::Auth::Basic do |username, password|
102
102
username == 'admin' && password == 'p4s5w0rd'
103
103
end
104
104
105
105
## Configuration
106
106
107
-
You may want to change the Redis host and port Multivariate connects to, or
107
+
You may want to change the Redis host and port Split connects to, or
108
108
set various other options at startup.
109
109
110
-
Multivariate has a `redis` setter which can be given a string or a Redis
111
-
object. This means if you're already using Redis in your app, Multivariate
110
+
Split has a `redis` setter which can be given a string or a Redis
111
+
object. This means if you're already using Redis in your app, Split
112
112
can re-use the existing connection.
113
113
114
-
String: `Multivariate.redis = 'localhost:6379'`
114
+
String: `Split.redis = 'localhost:6379'`
115
115
116
-
Redis: `Multivariate.redis = $redis`
116
+
Redis: `Split.redis = $redis`
117
117
118
-
For our rails app we have a `config/initializers/multivariate.rb` file where
119
-
we load `config/multivariate.yml` by hand and set the Redis information
118
+
For our rails app we have a `config/initializers/split.rb` file where
119
+
we load `config/split.yml` by hand and set the Redis information
Copy file name to clipboardExpand all lines: lib/split/dashboard/views/index.erb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
<h1>Multivariate Dashboard</h1>
1
+
<h1>Split Dashboard</h1>
2
2
<pclass="intro">The list below contains all the registered experiments along with the number of test participants, completed and conversion rate currently in the system.</p>
0 commit comments