[gem] minor gem updates.

The `main` gem fixed its dependencies list, so they are no longer needed in the Gemfile.
[Rails] upgrade Rails to 4.0.3.