Removed requiring rubygems and using the gem command.

See http://weblog.rubyonrails.org/2009/9/1/gem-packaging-best-practices/
for reasons why requiring rubygems and using the gem command inside
a gem isn't the best idea.