Update activerecord queries for rails 4

Conflicts:
	app/models/rubygem.rb
	app/models/version.rb
	db/migrate/20091026234707_fix_dependencies.rb
	features/support/factory_girl_step_definitions.rb
Don't use update_all on one record

Conflicts:
	app/models/rubygem.rb
Use update_attributes for now to be compatible with rails 3 and 4
Merge pull request #799 from arthurnn/queries_for_rails4

Queries for rails4