source "https://rubygems.org" # Ruby < 2.3 only support Bundler 1, which no longer works with gem github: if RUBY_VERSION >= '2.3' unless Gem::Version.new(Bundler::VERSION) >= Gem::Version.new("2.2.0") raise "Expected Bundler 2.2+ is used on Ruby >= 2.3" end # From https://github.com/ruby/setup-ruby/issues/358#issuecomment-1195899304 # Tests using github: and the repository uses a non-master default branch. gem 'rack-test', github: 'rack/rack-test' end