Building ruby pkg for Mac
clone ruby-build submodule to install ruby
$ git submodule init
$ git submodule update
Installing ruby into /usr/local/td/ruby directory and build ruby pkg
$ rake
$ rake clean
This repository includes patch applied readline and openssl to avoid dependent library version issue.
If you update these libraries, then see homebrew formula to apply the patch.
https://github.com/mxcl/homebrew/blob/master/Library/Formula/readline.rb https://github.com/mxcl/homebrew/blob/master/Library/Formula/openssl.rb