fix Gemfile RAILS_GEM_SPEC trickery to work more reliably
tag 4.0.0 final release