From ebcc89c3f72b5cb4fd871577829cc75c9fe19b45 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Mon, 28 Oct 2024 19:18:32 +0100 Subject: [PATCH] Test beaker on Ruby 3.1 --- Gemfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index 2ac98f8..af73332 100644 --- a/Gemfile +++ b/Gemfile @@ -15,8 +15,13 @@ group :development do gem 'overcommit', '>= 0.39.1', :require => false end -group :system_tests do - gem 'voxpupuli-acceptance', '~> 3.0', :require => false +# only enable this gem group when we're on Ruby 3.1 or newer +# beaker depends on Ruby 3.1 and bundler will poop itself when you're on an older Ruby (even when the gem group is ignored) +if Gem::Requirement.create('>= 3.1.0').satisfied_by?(Gem::Version.new(RUBY_VERSION.dup)) + group :system_tests do + gem 'beaker', git: 'https://github.com/bastelfreak/beaker', branch: 'ruby31' + gem 'voxpupuli-acceptance', '~> 3.0', :require => false + end end group :release do