Remove a deprecation warning and update Gemfile.lock