Fix rails 4.0.x build
Dont allow failures on 4.0.x
Add .ruby-version to gitignore
Merge pull request #614 from arthurnn/fix_build_40

Fix rails 4.0.x build.