Switch to Ruby gem installing without sudo

Ref. https://github.com/Homebrew/homebrew/wiki/Gems,-Eggs-and-Perl-Modules#an-alternative