Permalink
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (28 sloc) 964 Bytes
gem 'split', :require => 'split/dashboard'
after_bundler do
route %{match '/split/#{config['split_admin_secret']}', :to => Split::Dashboard, :anchor => false}
initializer "split_config.rb", <<-RUBY
Split.configure do |config|
config.db_failover = true # handle redis errors gracefully
config.db_failover_on_db_error = proc{|error| Rails.logger.error(error.message) }
config.allow_multiple_experiments = true
# config.robot_regex = /my_custom_robot_regex/
# config.ignore_ip_addresses << '81.19.48.130'
end
RUBY
end
__END__
name: Split
description: Rack Based AB testing framework
author: drnic
website: https://github.com/andrew/split
screencast: http://railscasts.com/episodes/331-a-b-testing-with-split
requires: [redis]
run_after: [redis]
run_before: []
category: other
exclusive: ab-testing
config:
- split_admin_secret:
type: string
prompt: "Enter a secret string for the Split dashboard route /split/YOUR-SECRET-STRING:"