Add ruby porting.
Merge pull request #1 from haruyama/ruby-porting

add ruby porting.