Add a gemfile for rails 4-2 stable branch

Now that Rails master is aimed towards 5.0, let's keep this one so we
cover 4-2-stable in the tests.