RubyGems: switch to new api