cf3ruby

context-free DSL for ruby-1.9 and CF3 syntax

Very much derived from context-free.rb by Jeremy Ashkenas this version is updated to be more in line with CF3 and ruby 1.9 syntax. Tested as working with last rubygems release of ruby-processing (v 1.0.11) as well as the current version (v 2.1.4).

Installation

To use this library you need install jruby (preferably jruby-1.7.4+), you will also need [ruby-processing][] to be installed (minimum version 1.0.11, preferred version 2.1.4). There are three ways you can install this library:-

rake test and gem install

Either clone this repository, or download a snapshot.

cd cf3ruby 
jruby -S rake test # builds and tests gem (mouse click on frame for test image to show)
jruby -S gem install cf3-0.0.3.gem # may need sudo access

local bundle install

Either clone this repository, or download a snapshot.

cd cf3
bundle install          # using regular installed bundler may need to set GEM_PATH
jruby -S bundle install # if you installed bundler with jruby

gem install from rubygems

gem install cf3            # regular install may need to set GEM_PATH env variable
jruby -S gem install cf3   # jruby install 

it couldn't be easier could it?

Usage

Extract the included samples to your home directory (HOME/cf3work/samples)

cf3samples           # should work
jruby -S cf3samples  # else if installed with jruby this should also work

As for running ruby-processing, ( it requires the external jruby flag prior to ruby-processing-2.1.2 )

rp5 run city.rb # providing you installed both ruby-processing and cf3ruby using jruby

You should read the ruby-processing_documentation on using rubygems.

Contributing

Contributing

Y