Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Usage example #1

Merged
merged 3 commits into from

2 participants

@phoet

No description provided.

@andrew
Owner

Awesome, cheers!

@andrew andrew merged commit 4530953 into splitrb:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 2, 2013
  1. @phoet

    use latest split

    phoet authored
  2. @phoet

    add usage example

    phoet authored
  3. @phoet

    fix the links

    phoet authored
This page is out of date. Refresh to see the latest.
Showing with 27 additions and 10 deletions.
  1. +3 −3 Gemfile
  2. +12 −7 Gemfile.lock
  3. +12 −0 Readme.mdown
View
6 Gemfile
@@ -1,4 +1,4 @@
-source :rubygems
+source "http://rubygems.org"
-gem 'sinatra'
-gem 'split'
+gem "sinatra"
+gem "split", github: "andrew/split"
View
19 Gemfile.lock
@@ -1,10 +1,20 @@
+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)
@@ -12,11 +22,6 @@ GEM
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
@@ -24,4 +29,4 @@ PLATFORMS
DEPENDENCIES
sinatra
- split
+ split!
View
12 Readme.mdown
@@ -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.
Something went wrong with that request. Please try again.