mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 22:44:20 +02:00
13 lines
473 B
Ruby
13 lines
473 B
Ruby
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
|