1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
source "https://rubygems.org"
gemspec
# if ::File.directory?(gem_path = "../redis-store")
# gem "redis-store", [">= 1.2.0", "< 1.4"], path: gem_path
# end
# if ::File.directory?(gem_path = "../redis-rack")
# gem "redis-rack", "~> 2.0.0.pre", path: gem_path
# end
# if ::File.directory?(gem_path = "../redis-activesupport")
# gem "redis-activesupport", '>= 4.0.0', '< 5.1', path: gem_path
# end
# if ::File.directory?(gem_path = "../redis-actionpack")
# gem "redis-actionpack", ">= 4.0.0", '< 5.1', path: gem_path
# end
version = ENV["RAILS_VERSION"] || '5'
rails = case version
when "master"
{:github => "rails/rails"}
else
"~> #{version}.0"
end
gem "rails", rails
|