Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage example #1

Merged
merged 3 commits into from Apr 2, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions Gemfile
@@ -1,4 +1,4 @@
source :rubygems
source "http://rubygems.org"

gem 'sinatra'
gem 'split'
gem "sinatra"
gem "split", github: "andrew/split"
19 changes: 12 additions & 7 deletions Gemfile.lock
@@ -1,27 +1,32 @@
GIT
remote: git://github.com/andrew/split.git
revision: 0b8d8c79a4e449c18e4d691ec01715f1ed5a426f
specs:
split (0.5.0)
redis (>= 2.1)
redis-namespace (>= 1.1.0)
simple-random
sinatra (>= 1.2.6)

GEM
remote: http://rubygems.org/
specs:
rack (1.5.2)
rack-protection (1.3.2)
rack
redis (3.0.2)
redis (3.0.3)
redis-namespace (1.2.1)
redis (~> 3.0.0)
simple-random (0.9.3)
sinatra (1.3.4)
rack (~> 1.4)
rack-protection (~> 1.3)
tilt (~> 1.3, >= 1.3.3)
split (0.5.0)
redis (>= 2.1)
redis-namespace (>= 1.1.0)
simple-random
sinatra (>= 1.2.6)
tilt (1.3.3)

PLATFORMS
ruby

DEPENDENCIES
sinatra
split
split!
12 changes: 12 additions & 0 deletions Readme.mdown
Expand Up @@ -2,6 +2,18 @@

This example app shows how easily you can integrate the a/b testing framework [Split](https://github.com/andrew/split) into your Sinatra based projects.

# Usage

Run the Sinatra app through Rack:

```
rackup config.ru
```

The app should now run on [http://localhost:9292/](http://localhost:9292/) and the Split Dashboard is mounted at [http://localhost:9292/split/](http://localhost:9292/split/).

# Contribution

## Note on Patches/Pull Requests

* Fork the project.
Expand Down