revert Gemfile to 4.1.7 for rails