Fix install error of rubygems without stdlib

Explicitly specify gems used by rubygems.