Skip to content

Instantly share code, notes, and snippets.

@shayfrendt
Last active August 29, 2015 14:06
Show Gist options
  • Save shayfrendt/4dbb3d3ca20153b7d80f to your computer and use it in GitHub Desktop.
Save shayfrendt/4dbb3d3ca20153b7d80f to your computer and use it in GitHub Desktop.
source "https://rubygems.org"
def rails3?
ENV["RAILS3"]
end
if rails3?
gem "rails", "3.0.20.github11"
else
gem "rails", "2.3.14.github50"
gem "actionmailer", "2.3.14.github50"
gem "actionpack", "2.3.14.github50"
gem "activerecord", "2.3.14.github50"
gem "activesupport", "2.3.14.github50"
end
...
# Gemfile for Rails 3
#
# …but don't actually declare any dependencies here. Put them in `Gemfile`. This
# file is is necessary to generate a separate lockfile for the Rails 3
# dependencies.
ENV["RAILS3"] ||= "true"
eval_gemfile "Gemfile"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment