From 8d64c61f5d070a00c96dd93dfbbee63a5bffc655 Mon Sep 17 00:00:00 2001 From: Matijs van Zuijlen Date: Fri, 1 Sep 2023 14:56:47 +0200 Subject: [PATCH] Support cucumber version 9.0 - Update cucumber dependency to allow version 9.0 - Add appraisal to test with cucumber 9.0 - Add cucumber 9.0 to the CI matrix --- .github/workflows/ruby.yml | 6 ++++-- Appraisals | 4 ++++ README.md | 2 +- aruba.gemspec | 2 +- gemfiles/cucumber_9.gemfile | 7 +++++++ 5 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 gemfiles/cucumber_9.gemfile diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index c98c8ea5a..a5ec46c9c 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -23,8 +23,8 @@ jobs: strategy: matrix: - ruby: ["3.1", "3.2", "jruby-9.3", "jruby-9.4"] - appraisal: [cucumber_8] + ruby: ["3.1", "3.2", "jruby-9.4"] + appraisal: [cucumber_8, cucumber_9] include: - ruby: "2.6" appraisal: cucumber_4 @@ -34,6 +34,8 @@ jobs: appraisal: cucumber_6 - ruby: "3.0" appraisal: cucumber_7 + - ruby: "jruby-9.3" + appraisal: cucumber_8 env: BUNDLE_GEMFILE: gemfiles/${{ matrix.appraisal }}.gemfile diff --git a/Appraisals b/Appraisals index 24a41a4d4..6557fef65 100644 --- a/Appraisals +++ b/Appraisals @@ -19,3 +19,7 @@ end appraise "cucumber_8" do gem "cucumber", "~> 8.0" end + +appraise "cucumber_9" do + gem "cucumber", ["~> 9.0", ">= 9.0.1"] +end diff --git a/README.md b/README.md index 07fcd86b2..3c73492e2 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ Aruba is supported on Ruby 2.6 and up, and tested against CRuby 2.6, 2.7, 3.0, ## Supported Cucumber versions -Aruba is supported on and tested with Cucumber versions 4 through 8. +Aruba is supported on and tested with Cucumber versions 4 through 9. ## Supported operating systems diff --git a/aruba.gemspec b/aruba.gemspec index 250e3f381..805399317 100644 --- a/aruba.gemspec +++ b/aruba.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |spec| spec.add_runtime_dependency "bundler", [">= 1.17", "< 3.0"] spec.add_runtime_dependency "contracts", [">= 0.16.0", "< 0.18.0"] - spec.add_runtime_dependency "cucumber", ">= 4.0", "< 9.0" + spec.add_runtime_dependency "cucumber", ">= 4.0", "< 10.0" spec.add_runtime_dependency "rspec-expectations", "~> 3.4" spec.add_runtime_dependency "thor", "~> 1.0" diff --git a/gemfiles/cucumber_9.gemfile b/gemfiles/cucumber_9.gemfile new file mode 100644 index 000000000..37a55d72e --- /dev/null +++ b/gemfiles/cucumber_9.gemfile @@ -0,0 +1,7 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "cucumber", ["~> 9.0", ">= 9.0.1"] + +gemspec path: "../"