Require RubyGems before using Gem::Version

Ruby v1.8.7 does not load RubyGems automatically.