Rewrite Rubygems syncer in Ruby