Update mac

Remove brew cask function. Switch to Ruby 2.1.2 after installing JRuby.