Use the latest RubyGems API

GitHub: fix #1

Reported by Tomoatsu Shimada. Thanks!!!