Skip to content

Setting up Ruby

Jeanine Adkisson edited this page Jul 5, 2016 · 3 revisions

If you don't already have a ruby setup on your machine, here's a quick guide to get you up and running.

Install Ruby

The recommended way to install ruby is through ry. Follow the instructions to install ry, then install a stable version of ruby with

$ ry install $tarball_url ruby

where $tarball_url is one of the tarballs found here: http://www.ruby-lang.org/en/downloads/

Note: this requires autoconf and standard C build tools to be available.

Install Bundler

Bundler is the standard Ruby tool for managing dependencies. Install it with

$ gem install bundler

Use bundler to install the dev dependencies

Just run bundle.

Run the tests, and look at the visual specs

rake will run the unit tests, and bundle exec rackup will start a server for visually inspecting lexer output.

:)