In which I share what I did to get it working.
I like rbenv as my ruby version manager. I plan on deploying a Rails 4 app to my own server, that is, not Heroku or Engine Yard. I want to try puma as the Web server for that Rails installation. So, here’s what I did to get everything working correctly on my Mountain Lion MacBook Pro.
- Install rbenv following the instructions of Basic GitHub Checkout
- Install ruby-build as an rbenv plugin
- Restart your shell
- Start a shell (if you didn’t restart it from the last step in the previous section)
- Set the PATH variable to the PATH variable without any part of the PATH that points to the $HOME/.rbenv directory
- Install Rubinius 2
rbenv install rbx-2.0.0-rc1
- Add the following line to your .bash_profile to force Rubinius to use
the version 1.9 interpreter.
RBENV_VERSION=rbx-2.0.0-rc1 rbenv exec gem install rails RBENV_VERSION=rbx-2.0.0-rc1 rbenv exec rails new «your_project» cd «your_project» rbenv local rbx-2.0.0-rc1
In which I provide a link to a code repo for pyvisitor.
I created the pyvisitor repository over on GitHub in case you want to use my implementation of the visitor pattern in Python.
I’ve released it under the MIT license, so you can do whatever you want with it.
It now occur to me that I should have released it under the WTFPL, but I don’t have the heart to change the LICENSE file.
Hope you enjoy it.