fix gems for Rails 4
Merge pull request #204 from le0pard/rails4

Fix gems for Rails 4 support