if Rails.gem_version < Gem::Version.new('6') gsub_file "Gemfile", /^gem 'sqlite3'$/, 'gem "sqlite3", "~> 1.3.6"' end gsub_file "Gemfile", /gem 'spring'$/, 'gem "spring", github: "composerinteralia/spring", branch: "factory_bot_rails_debugging"'