Refactored from JRuby to Ruby source to RVM