You can check what dependencies a gem has with the dependency command:
$ gem dep rails Gem rails-1.2.3 rake (>= 0.7.2) activesupport (= 1.4.2) activerecord (= 1.15.3) actionpack (= 1.13.3) actionmailer (= 1.3.3) actionwebservice (= 1.2.3)