Browse Source

ability to specify rails version on command line

master
Ross Kaffenberger 11 years ago
parent
commit
5c000fe605
  1. 13
      Gemfile

13
Gemfile

@ -3,7 +3,18 @@ source "http://rubygems.org"
# Specify your gem's dependencies in devise_ip_filter.gemspec # Specify your gem's dependencies in devise_ip_filter.gemspec
gemspec gemspec
gem 'rails', '~> 3.2' rails_version = ENV["RAILS_VERSION"] || "default"
rails = case rails_version
when "master"
{github: "rails/rails"}
when "default"
"~> 3.2"
else
"~> #{rails_version}"
end
gem "rails", rails
group :test do group :test do
gem "sqlite3" gem "sqlite3"

Loading…
Cancel
Save