updated to latest ruby_gem syntax