I followed these steps:
Download MacRuby.
Double-click on the zip file to extract it and double-click on the package inside the extracted directory to start the install. Just go with the defaults.
You may want to kill off terminal.app if you have it running and restart it, just in case the install put anything into the environment.
Use the following to install the hotcocoa macgem:
sudo macgem install hotcocoa
Change to the directory that you want your project directory to reside in:
mkdir -p /path/to/my/projects/
cd /path/to/my/projects/
Create a sample hotcocoa app:
hotcocoa nameofyourapp
But I get this error:
/usr/bin/hotcocoa:18:in `<main>': Could not find RubyGem hotcocoa (>= 0)
When I had the hotcocoa gem (not the macgem) installed, I got this error:
/Users/jeremysmith/.rvm/gems/ruby-1.9.2-p180/gems/hotcocoa- 0.5.1/lib/hotcocoa/template.rb:20:in
`gsub!': invalid byte sequence in UTF-8 (ArgumentError)
I fixed the problem with the help of ferrous26. I needed to:
Turn RVM off with
rvm use system