Created
February 7, 2010 17:11
-
-
Save ashmoran/297530 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Take off the .rb extension when you use this - it's only to trick Gist into using the Ruby highlighter. | |
source :gemcutter | |
rails_version = "3.0.0.beta" | |
thin_version = "1.2.5" | |
gem "rails", rails_version | |
gem "thin", thin_version | |
# Bundle edge Rails instead: | |
# gem "rails", :git => "git://github.com/rails/rails.git" | |
gem "pg" | |
# Bundle the extra gems: | |
# gem "bj" | |
# gem "hpricot", "0.6" | |
# gem "sqlite3-ruby", :require => "sqlite3" | |
# gem "aws-s3", :require => "aws/s3" | |
group :test do | |
# RSpec < 2.0.0 uses 'spec' as the binary name | |
gem 'rspec', :require => 'spec' | |
gem 'rspec-rails' | |
gem 'database_cleaner' | |
gem 'flay' | |
gem 'reek' | |
gem 'nokogiri' | |
end | |
group :cucumber do | |
gem 'cucumber' | |
gem 'cucumber-rails' | |
gem 'rspec', :require => 'spec' | |
gem 'rspec-rails' | |
gem 'capybara' | |
gem 'database_cleaner' | |
end | |
# We need these installed, but not loaded except by autospec | |
group :autotest do | |
gem 'autotest' | |
gem 'autotest-fsevent' | |
gem 'sys-uname' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########### | |
# Bundler # | |
########### | |
# To use the latest beta, as opposed to the current 0.9.3 gem | |
git clone git://github.com/carlhuda/bundler.git | |
cd bundler | |
rake install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######### | |
# Rails # | |
######### | |
mkdir railstest | |
cd railstest | |
# *** Create the Gemfile *** with the contents from the example | |
bundle install $GEM_HOME | |
rehash # on zsh at least | |
cd .. | |
rails railstest | |
# Say "n" when it asks you how to handle the Gemfile conflict | |
cd railstest | |
rails server thin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
####### | |
# rvm # | |
####### | |
# Install this into whatever Ruby installation you currently have | |
# eg Apple-bundled or MacPorts. | |
sudo gem install jeweler | |
git clone http://github.com/wayneeseguin/rvm.git | |
# Inside rvm | |
rake install | |
rvm-install | |
# This line is generated at the end of rvm-install | |
echo "if [[ -s /Users/<username>/.rvm/scripts/rvm ]] ; then source /Users/<username>/.rvm/scripts/rvm ; fi" >> ~/.zshrc | |
# *** Re-open the shell here *** | |
# As I'm targeting Heroku's 1.9.1 beta... | |
rvm install 1.9.1 | |
# You can also `rvm use 1.9.1%rails3` to silo the gemset | |
rvm use 1.9.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment