Setup Ruby (OS X and Windows) - acanyon/RubyTuesdays-ConnectFour GitHub Wiki
TODO: Linux instructions
Base Install - OS X
Install by hand
Follow these instructions for minimal cruft and if you're a little familiar with the command line already.
- Install Brew
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
- On a mac (Lion+ ?), you must have the Xcode Command Line Tools installed. Install this if you haven't already. You can find them on Apple's developer tools, and you have to sign up as an Apple developer. Look for the most recent version of Command Line Tools for your OS version.
- Start by installing git, and creating a github account if you don't have one already
brew install git
- Follow the [instructions] (http://help.github.com/set-up-git-redirect) to setup your github account with an ssh key
- We will be using RVM (Ruby Version Manager) to manage our ruby versions and gemsets.
- Install [RVM] (https://rvm.beginrescueend.com/) using
curl -L get.rvm.io | bash -s stable
- After installation, open your .bashrc and add this line to it.
open ~/.bashrc
- add =>
source ~/.rvm/scripts/rvm
to the bottom of the file - save and close
- Install Ruby 1.9.3 with
rvm install 1.9.3
- And set this version as the default
rvm 1.9.3 --default
- Install [RVM] (https://rvm.beginrescueend.com/) using
Install with RailsInstaller
Follow the instructions on Railsbridge's Installfest page, UNTIL the heroku instructions. Those are optional for the connect four project.
Sanity Check
Type the following lines into the command line and check for the expected responses. Version numbers don't have to be exactly the same.
which git
->/usr/bin/git
which ruby
->/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby
which rails
->/usr/local/rvm/gems/ruby-1.9.3-p194/bin/rails
ruby -v
->ruby 1.9.3p194
rails -v
->Rails 3.2.x
Base Install - Windows
- We recommend using the Railsbridge instructions for windows. They use the RailsInstaller for windows, which is the most recommended windows rails install. Go to the installfest page and follow the instructions UNTIL the heroku instructions. Those are optional for the connect four project.
- After forking & cloning this project, see if you can cd into the project directory & successfully run
bundle install
- If it doesn't run successfully, try commenting out (# at the beginning of the line) the line in the
Gemfile
about twitter bootstrap and trying again.
Working with this project
Start by forking this repo and cloning it to your computer.
To edit code, you'll need a text editor. Komodo Edit, and Sublime are two popular choices.
Then, head over to the [project starter page](Connectfour basics)!