Update gems to Rails 4.0.4 version