SpaConf - Conditionals to Polymorphism Workshop

Note: my workshop version of https://github.com/skmetz/spaconf_2014.git.

Dependencies

You will need:

  • a modern version of Ruby (1.9.3 or greater)
  • the workshop code
    • cloned from github, or
    • copied from a USB drive.

Setup

Clone this repository:

$ git clone https://github.com/skmetz/spaconf_2014

Change directories into the project:

$ cd spaconf_2014

Install the dependencies:

$ gem install bundler # if you don't already have it
$ bundle install

Sanity Check

Verify your setup by running the following command:

$ ruby sanity_test.rb

You should see the following output.

$ ruby sanity_test.rb
Run options: --seed 62459

# Running:

.

Finished in 0.001317s, 759.3014 runs/s, 759.3014 assertions/s.

1 runs, 1 assertions, 0 failures, 0 errors, 0 skips

Task

You'll be in group 'A' or 'B'. Once you know what group you're in, cd into the corresponding directory (bottles_a or bottles_b) and look at the README.md there for further directions.