Skip to content

Ruby on MacOS

Joshua Moody edited this page Jun 17, 2015 · 12 revisions

Ruby Versions

recommended => ruby 2.0
    minimum => ruby 1.8.7

We plan on dropping ruby 1.8.7 support in the near future (as of Q1 of 2014).

MacOS 10.9 Mavericks

Mavericks ships with ruby 2.0 pre-installed.

MacOS 10.8 and 10.7

These versions of MacOS ship with ruby 1.8.7 pre-installed.

ruby managers on MacOS

If you want to upgrade your ruby version there are a couple of alternatives.

rbenv

rbenv is a system for managing ruby versions.

You can also install rbenv with homebrew.

rvm

rvm is another ruby management system.

There are many users who use rvm with success, but we have had some users report problems using rvm + calabash-ios.

Tip - gems and sudo

If you are using ruby manager (rbenv or rvm), you should not install gems with sudo.

Tip - gems installing slowly?

This tip might help you.

$ gem source -r http://gems.rubyonrails.org
http://gems.rubyonrails.org removed from sources

Tip - use bundler

http://bundler.io/

Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.

Clone this wiki locally