Update Gemfile.lock and remove unnecessary code