public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/rubygem-cucumber] rawhide: Update to Cucumber 11.1.1.
Date: Thu, 27 Aug 2026 07:54:15 GMT	[thread overview]
Message-ID: <178781725525.1.15692531881511965009.rpms-rubygem-cucumber-aa10380f9c3b@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/rubygem-cucumber
            Branch : rawhide
            Commit : aa10380f9c3b83b555ee62720993a24b453cbabf
            Author : Vít Ondruch <vondruch@redhat.com>
            Date   : 2026-08-26T12:19:47+02:00
            Stats  : +152/-240 in 10 file(s)
            URL    : https://src.fedoraproject.org/rpms/rubygem-cucumber/c/aa10380f9c3b83b555ee62720993a24b453cbabf?branch=rawhide

            Log:
            Update to Cucumber 11.1.1.

Resolves: rhbz#2088458

---
diff --git a/.gitignore b/.gitignore
index 8e5cc8e..b2be6ea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,3 @@
 /cucumber-*.gem
-/rubygem-cucumber-*-features.txz
-/rubygem-cucumber-*-spec.txz
+/rubygem-cucumber-*-features.tar.gz
+/rubygem-cucumber-*-spec.tar.gz

diff --git a/ci_environment.rb b/ci_environment.rb
new file mode 100644
index 0000000..e1a6324
--- /dev/null
+++ b/ci_environment.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+module Cucumber
+  class CiEnvironment
+    class << self
+      def detect_ci_environment(env)
+        # Stub this out until Fedora provides
+        # real rubygem-cucumber-ci-environment
+        nil
+      end
+    end
+  end
+end

diff --git a/rubygem-cucumber-10.0.0-Fix-up-references-to-old-id-generator-classes.patch b/rubygem-cucumber-10.0.0-Fix-up-references-to-old-id-generator-classes.patch
deleted file mode 100644
index c5368cb..0000000
--- a/rubygem-cucumber-10.0.0-Fix-up-references-to-old-id-generator-classes.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From 1e0e347aafffc37893ffe2c2822103e3962d2b7d Mon Sep 17 00:00:00 2001
-From: Luke Hill <lukehill_uk@hotmail.com>
-Date: Mon, 6 Jan 2025 17:54:53 +0000
-Subject: [PATCH] Fix up latent references to old time conversion and id
- generator classes
-
----
- spec/cucumber/runtime/hooks_examples.rb    | 5 ++---
- 1 file changed, 2 insertions(+), 3 deletions(-)
-
-diff --git a/spec/cucumber/runtime/hooks_examples.rb b/spec/cucumber/runtime/hooks_examples.rb
-index c70a80893..dcb513221 100644
---- a/spec/cucumber/runtime/hooks_examples.rb
-+++ b/spec/cucumber/runtime/hooks_examples.rb
-@@ -1,5 +1,12 @@
- require 'spec_helper'
--require 'cucumber/messages/id_generator'
-+begin
-+  require 'cucumber/messages/helpers/id_generator'
-+
-+  Cucumber::Messages::IdGenerator = Cucumber::Messages::Helpers::IdGenerator unless defined? Cucumber::Messages::IdGenerator
-+  Cucumber::Messages::IdGenerator::Incrementing = Cucumber::Messages::Helpers::IdGenerator::Incrementing unless defined? Cucumber::Messages::IdGenerator::Incrementing
-+rescue LoadError
-+  require "cucumber/messages/id_generator"
-+end
- 
- RSpec.shared_examples 'events are fired when applying hooks' do
-   let(:id_generator) { Cucumber::Messages::IdGenerator::Incrementing.new }

diff --git a/rubygem-cucumber-11.1.1-Compatibility-shim-for-cucumber-core-16.patch b/rubygem-cucumber-11.1.1-Compatibility-shim-for-cucumber-core-16.patch
new file mode 100644
index 0000000..b66dc22
--- /dev/null
+++ b/rubygem-cucumber-11.1.1-Compatibility-shim-for-cucumber-core-16.patch
@@ -0,0 +1,50 @@
+From 5ef25841d583ad7c234e2efa07a9a597430d6b9e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
+Date: Tue, 18 Aug 2026 18:03:45 +0200
+Subject: [PATCH] Compatibility shim for cucumber-core < 16
+
+This prevents test errors such as:
+
+~~~
+  13) Cucumber::Runtime::BeforeHooks#apply_to when multiple hooks are applied fires a :hook_test_step_created event for each step
+      Failure/Error: build_hook_step(id, location, block, BeforeHook, Core::Test::Action::Unskippable)
+
+      NameError:
+        uninitialized constant Cucumber::Core::Test::Action::Unskippable
+      Shared Example Group: "events are fired when applying hooks" called from ./spec/cucumber/runtime/before_hooks_spec.rb:13
+      # ./lib/cucumber/hooks.rb:13:in 'Cucumber::Hooks.before_hook'
+      # ./lib/cucumber/runtime/before_hooks.rb:26:in 'block in Cucumber::Runtime::BeforeHooks#before_hooks'
+      # ./lib/cucumber/runtime/before_hooks.rb:24:in 'Array#map'
+      # ./lib/cucumber/runtime/before_hooks.rb:24:in 'Cucumber::Runtime::BeforeHooks#before_hooks'
+      # ./lib/cucumber/runtime/before_hooks.rb:17:in 'Cucumber::Runtime::BeforeHooks#apply_to'
+      # /builddir/build/BUILD/rubygem-cucumber-11.1.1-build/spec/cucumber/runtime/hooks_examples.rb:31:in 'block (3 levels) in <top (required)>'
+      # /usr/share/rubygems/rubygems.rb:305:in 'Kernel#load'
+      # /usr/share/rubygems/rubygems.rb:305:in 'Gem.activate_and_load_bin_path'
+~~~
+---
+ lib/cucumber/hooks.rb | 14 ++++++++++++++
+ 1 file changed, 14 insertions(+)
+
+diff --git a/lib/cucumber/hooks.rb b/lib/cucumber/hooks.rb
+index e05bb4bdf..968f6b3df 100644
+--- a/lib/cucumber/hooks.rb
++++ b/lib/cucumber/hooks.rb
+@@ -4,6 +4,18 @@ require 'pathname'
+ require 'cucumber/core/test/location'
+ require 'cucumber/core/test/around_hook'
+ 
++module Cucumber
++  module Core
++    module Test
++      class Action
++        # Compatibility shim for cucumber-core < 16
++          Unskippable = ::Cucumber::Core::Test::UnskippableAction unless defined?(Unskippable)
++          Defined = ::Cucumber::Core::Test::Action unless defined?(Defined)
++      end
++    end
++  end
++end
++
+ module Cucumber
+   # Hooks quack enough like `Cucumber::Core::Ast` source nodes that we can use them as
+   # source for test steps

diff --git a/rubygem-cucumber-11.1.1-Drop-HTML-formatter.patch b/rubygem-cucumber-11.1.1-Drop-HTML-formatter.patch
new file mode 100644
index 0000000..3b8d0e5
--- /dev/null
+++ b/rubygem-cucumber-11.1.1-Drop-HTML-formatter.patch
@@ -0,0 +1,22 @@
+From 37963e7c27c982c2d5c408f45ebb2998409aa91a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
+Date: Mon, 17 Aug 2026 15:28:41 +0200
+Subject: [PATCH] Drop HTML formatter
+
+This needs `cucumber-html-formatter` which is not available in Fedora.
+---
+ lib/cucumber/cli/options.rb           |  1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/lib/cucumber/cli/options.rb b/lib/cucumber/cli/options.rb
+index e3969568d..6da64839c 100644
+--- a/lib/cucumber/cli/options.rb
++++ b/lib/cucumber/cli/options.rb
+@@ -30,7 +30,6 @@ module Cucumber
+           "#{INDENT}with the standalone json-formatter\n" \
+           "#{INDENT}(https://github.com/cucumber/cucumber/tree/master/json-formatter)."],
+         'message' => ['Cucumber::Formatter::Message', 'Prints each message in NDJSON form, which can then be consumed by other tools.'],
+-        'html' => ['Cucumber::Formatter::HTML', 'Outputs HTML report'],
+         'summary' => ['Cucumber::Formatter::Summary', 'Summary output of feature and scenarios']
+       }.freeze
+       max = BUILTIN_FORMATS.keys.map(&:length).max

diff --git a/rubygem-cucumber-9.2.0-CI-support-Ruby-3-4-Hash-inspect.patch b/rubygem-cucumber-9.2.0-CI-support-Ruby-3-4-Hash-inspect.patch
deleted file mode 100644
index 4eaab98..0000000
--- a/rubygem-cucumber-9.2.0-CI-support-Ruby-3-4-Hash-inspect.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-From b9065c96098b893c75fcbb41b7558332b3bfd23b Mon Sep 17 00:00:00 2001
-From: Orien Madgwick <497874+orien@users.noreply.github.com>
-Date: Fri, 27 Dec 2024 23:10:07 +1100
-Subject: [PATCH] CI: support Ruby 3.4+ Hash#inspect
-
----
- .../extending_cucumber/custom_formatter.feature     |  4 ++--
- spec/cucumber/glue/proto_world_spec.rb              | 13 ++++++++++---
- 2 files changed, 12 insertions(+), 5 deletions(-)
-
-diff --git a/features/docs/extending_cucumber/custom_formatter.feature b/features/docs/extending_cucumber/custom_formatter.feature
-index a5728db932..187996c9da 100644
---- a/features/docs/extending_cucumber/custom_formatter.feature
-+++ b/features/docs/extending_cucumber/custom_formatter.feature
-@@ -45,7 +45,7 @@ Feature: Custom Formatter
-           def initialize(config, options)
-             @io = config.out_stream
-             config.on_event :test_run_finished do |event|
--              @io.print options.inspect
-+              @io.print options.to_json
-             end
-           end
-         end
-@@ -54,5 +54,5 @@ Feature: Custom Formatter
-     When I run `cucumber features/f.feature --format MyCustom::Formatter,foo=bar,one=two --publish-quiet`
-     Then it should pass with exactly:
-     """
--    {"foo"=>"bar", "one"=>"two"}
-+    {"foo":"bar","one":"two"}
-     """
-diff --git a/spec/cucumber/glue/proto_world_spec.rb b/spec/cucumber/glue/proto_world_spec.rb
-index c9f37b0730..41158cd5cc 100644
---- a/spec/cucumber/glue/proto_world_spec.rb
-+++ b/spec/cucumber/glue/proto_world_spec.rb
-@@ -72,8 +72,9 @@ module Glue
-             end
-           end
- 
--          it 'attached the styring version on the object' do
--            expect(@out.string).to include '{:a=>1, :b=>2, :c=>3}'
-+          it 'attached the string version on the object' do
-+            expected_string = RUBY_VERSION >= '3.4' ? '{a: 1, b: 2, c: 3}' : '{:a=>1, :b=>2, :c=>3}'
-+            expect(@out.string).to include expected_string
-           end
-         end
- 
-@@ -92,11 +93,17 @@ module Glue
-           end
- 
-           it 'logs each parameter independently' do
-+            expected_hash =
-+              if RUBY_VERSION >= '3.4'
-+                '{subject: "monkey", verb: "eats", complement: "banana"}'
-+              else
-+                '{:subject=>"monkey", :verb=>"eats", :complement=>"banana"}'
-+              end
-             expect(@out.string).to include [
-               '      subject: monkey',
-               '      verb: eats',
-               '      complement: banana',
--              '      {:subject=>"monkey", :verb=>"eats", :complement=>"banana"}'
-+              "      #{expected_hash}"
-             ].join("\n")
-           end
-         end

diff --git a/rubygem-cucumber-9.2.0-Fix-error-backtrace-formatting-on-Ruby-3-4.patch b/rubygem-cucumber-9.2.0-Fix-error-backtrace-formatting-on-Ruby-3-4.patch
deleted file mode 100644
index 596b908..0000000
--- a/rubygem-cucumber-9.2.0-Fix-error-backtrace-formatting-on-Ruby-3-4.patch
+++ /dev/null
@@ -1,55 +0,0 @@
-From 398eb7080936481b6b8c4921ff59aea7a8951883 Mon Sep 17 00:00:00 2001
-From: Orien Madgwick <497874+orien@users.noreply.github.com>
-Date: Fri, 27 Dec 2024 23:09:58 +1100
-Subject: [PATCH] Fix error backtrace formatting on Ruby 3.4+
-
-Accomodate the new Ruby 3.4+ backtrace display format
----
- lib/cucumber/formatter/backtrace_filter.rb |  2 +-
- lib/cucumber/glue/invoke_in_world.rb       | 12 ++++++++++--
- 2 files changed, 11 insertions(+), 3 deletions(-)
-
-diff --git a/lib/cucumber/formatter/backtrace_filter.rb b/lib/cucumber/formatter/backtrace_filter.rb
-index 82c0628f73..b4dafa4b24 100644
---- a/lib/cucumber/formatter/backtrace_filter.rb
-+++ b/lib/cucumber/formatter/backtrace_filter.rb
-@@ -43,7 +43,7 @@ def exception
-         if ::ENV['CUCUMBER_TRUNCATE_OUTPUT']
-           # Strip off file locations
-           filtered = filtered.map do |line|
--            line =~ /(.*):in `/ ? Regexp.last_match(1) : line
-+            line =~ /(.*):in ('|`)/ ? Regexp.last_match(1) : line
-           end
-         end
- 
-diff --git a/lib/cucumber/glue/invoke_in_world.rb b/lib/cucumber/glue/invoke_in_world.rb
-index 6e957d1b88..667afdf3c0 100644
---- a/lib/cucumber/glue/invoke_in_world.rb
-+++ b/lib/cucumber/glue/invoke_in_world.rb
-@@ -13,7 +13,10 @@ def self.replace_instance_exec_invocation_line!(backtrace, instance_exec_invocat
-         instance_exec_pos = backtrace.index(instance_exec_invocation_line)
-         return unless instance_exec_pos
-         replacement_line = instance_exec_pos + INSTANCE_EXEC_OFFSET
--        backtrace[replacement_line].gsub!(/`.*'/, "`#{pseudo_method}'") if pseudo_method
-+        if pseudo_method
-+          pattern = RUBY_VERSION >= '3.4' ? /'.*'/ : /`.*'/
-+          backtrace[replacement_line].gsub!(pattern, "`#{pseudo_method}'")
-+        end
- 
-         depth = backtrace.count { |line| line == instance_exec_invocation_line }
-         end_pos = depth > 1 ? instance_exec_pos : -1
-@@ -49,7 +52,12 @@ def self.cucumber_compatible_arity?(args, block)
-       def self.cucumber_run_with_backtrace_filtering(pseudo_method)
-         yield
-       rescue Exception => e # rubocop:disable Lint/RescueException
--        instance_exec_invocation_line = "#{__FILE__}:#{__LINE__ - 2}:in `cucumber_run_with_backtrace_filtering'"
-+        instance_exec_invocation_line =
-+          if RUBY_VERSION >= '3.4'
-+            "#{__FILE__}:#{__LINE__ - 4}:in '#{name}.#{__method__}'"
-+          else
-+            "#{__FILE__}:#{__LINE__ - 6}:in `#{__method__}'"
-+          end
-         replace_instance_exec_invocation_line!((e.backtrace || []), instance_exec_invocation_line, pseudo_method)
-         raise e
-       end
-

diff --git a/rubygem-cucumber-9.2.0-Pass-hash-through-as-explicit-hash-to-avoid-unknown-keyword.patch b/rubygem-cucumber-9.2.0-Pass-hash-through-as-explicit-hash-to-avoid-unknown-keyword.patch
deleted file mode 100644
index d36d66a..0000000
--- a/rubygem-cucumber-9.2.0-Pass-hash-through-as-explicit-hash-to-avoid-unknown-keyword.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 87a375822f0f1d76fa464423f9743e36c5036713 Mon Sep 17 00:00:00 2001
-From: Jon Rowe <mail@jonrowe.co.uk>
-Date: Sun, 14 Jul 2024 23:21:43 +0100
-Subject: [PATCH] Pass hash through as explicit hash to avoid unknown keyword
- argument error.
-
----
- lib/cucumber/multiline_argument/data_table.rb | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/lib/cucumber/multiline_argument/data_table.rb b/lib/cucumber/multiline_argument/data_table.rb
-index 4914b9478..1261ac585 100644
---- a/lib/cucumber/multiline_argument/data_table.rb
-+++ b/lib/cucumber/multiline_argument/data_table.rb
-@@ -75,7 +75,9 @@ def row(row)
-         def eof; end
-       end
- 
--      NULL_CONVERSIONS = Hash.new(strict: false, proc: ->(cell_value) { cell_value }).freeze
-+      # This is a Hash being initialized with a default value of a Hash, DO NOT REFORMAT TO REMOVE {}
-+      # Future versions [3.4.0+] of ruby will interpret these as keywords and break.
-+      NULL_CONVERSIONS = Hash.new({ strict: false, proc: ->(cell_value) { cell_value } }).freeze
- 
-       # @param data [Core::Test::DataTable] the data for the table
-       # @param conversion_procs [Hash] see map_columns!

diff --git a/rubygem-cucumber.spec b/rubygem-cucumber.spec
index b9f9b40..8627613 100644
--- a/rubygem-cucumber.spec
+++ b/rubygem-cucumber.spec
@@ -1,51 +1,42 @@
 %global gem_name cucumber
 
-%bcond_with bootstrap
-
 Name: rubygem-%{gem_name}
-Version: 7.1.0
-Release: 19%{?dist}
+Version: 11.1.1
+Release: 1%{?dist}
 Summary: Tool to execute plain-text documents as functional tests
 License: MIT
 URL: https://cucumber.io/
 Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
-# git clone --no-checkout https://github.com/cucumber/cucumber-ruby.git
-# git -C cucumber-ruby archive -v -o rubygem-cucumber-7.1.0-spec.txz v7.1.0 spec/ cucumber.yml
-Source1: %{name}-%{version}-spec.txz
-# git clone --no-checkout https://github.com/cucumber/cucumber-ruby.git
-# git -C cucumber-ruby archive -v -o rubygem-cucumber-7.1.0-features.txz v7.1.0 features/
-Source2: %{name}-%{version}-features.txz
-# Fix Ruby 3.4 compatibility due to `Hash.new` now accepting `:capacity`
-# keyword option.
-# https://github.com/cucumber/cucumber-ruby/pull/1757/commits/87a375822f0f1d76fa464423f9743e36c5036713
-Patch0: rubygem-cucumber-9.2.0-Pass-hash-through-as-explicit-hash-to-avoid-unknown-keyword.patch
-# Fix Ruby 3.4 backtrace formatting compatibility.
-# https://github.com/cucumber/cucumber-ruby/pull/1771/commits/398eb7080936481b6b8c4921ff59aea7a8951883
-Patch1: rubygem-cucumber-9.2.0-Fix-error-backtrace-formatting-on-Ruby-3-4.patch
-# Fix Ruby 3.4 Hash#inspect compatibility.
-# https://github.com/cucumber/cucumber-ruby/pull/1771/commits/b9065c96098b893c75fcbb41b7558332b3bfd23b
-Patch2: rubygem-cucumber-9.2.0-CI-support-Ruby-3-4-Hash-inspect.patch
-# Fix compatibility with Cucumber Messages 25.0.0+
-# https://github.com/cucumber/cucumber-ruby/pull/1759/changes/1e0e347aafffc37893ffe2c2822103e3962d2b7d
-Patch3: rubygem-cucumber-10.0.0-Fix-up-references-to-old-id-generator-classes.patch
+# git clone https://github.com/cucumber/cucumber-ruby.git && cd cucumber-ruby
+# git archive -v -o rubygem-cucumber-11.1.1-spec.tar.gz v11.1.1 spec/ compatibility/support/cucumber/compatibility_kit/helpers.rb cucumber.yml
+Source1: %{name}-%{version}-spec.tar.gz
+# git clone https://github.com/cucumber/cucumber-ruby.git && cd cucumber-ruby
+# git archive -v -o rubygem-cucumber-11.1.1-features.tar.gz v11.1.1 features/
+Source2: %{name}-%{version}-features.tar.gz
+# This is just stub file, until the rubygem-cucumber-ci-environment package
+# is in Fedora.
+# https://raw.githubusercontent.com/cucumber/ci-environment/refs/heads/main/ruby/lib/cucumber/ci_environment.rb
+Source3: ci_environment.rb
+# Remove the HTML formatter bits until `html-formatter` is available in Fedora
+# https://github.com/cucumber/html-formatter
+Patch0: rubygem-cucumber-11.1.1-Drop-HTML-formatter.patch
+# Provide compotibility with cucumber-core < 16
+Patch1: rubygem-cucumber-11.1.1-Compatibility-shim-for-cucumber-core-16.patch
 BuildRequires: ruby(release)
 BuildRequires: rubygems-devel
 BuildRequires: ruby
-# Aruba has circular dependency with Cucumber.
-%if %{without bootstrap}
-BuildRequires: rubygem(aruba)
-%endif
 BuildRequires: rubygem(base64)
 BuildRequires: rubygem(builder)
 BuildRequires: rubygem(cucumber-core)
-BuildRequires: rubygem(cucumber-wire)
-BuildRequires: rubygem(cucumber-create-meta)
+BuildRequires: rubygem(cucumber-cucumber-expressions)
+BuildRequires: rubygem(cucumber-messages)
 BuildRequires: rubygem(multi_test)
-BuildRequires: rubygem(mime-types)
+BuildRequires: rubygem(mini_mime)
 BuildRequires: rubygem(webrick)
 BuildRequires: rubygem(nokogiri)
 BuildRequires: rubygem(rspec)
 BuildRequires: rubygem(rake)
+BuildRequires: rubygem(sys-uname)
 BuildArch: noarch
 
 %description
@@ -68,33 +59,34 @@ Documentation for %{name}.
 %patch 0 -p1
 %patch 1 -p1
 
-(
-cd %{builddir}
-%patch 2 -p1
-%patch 3 -p1
-)
+# This restores compatiblity with older cucumber-core, prior keyword arguments
+# were introduced cucumber-core 13+:
+# https://github.com/cucumber/cucumber-ruby-core/pull/261/changes/bc7174d641860267495f48d09a6e400cf2988738
+# https://github.com/cucumber/cucumber-ruby/pull/1751
+for i in lib/cucumber/{runtime,formatter/{console_issues,fail_fast,junit,pretty,rerun}}.rb; do
+  echo $i; sed -i 's/strict: //' $i
+done
 
 # The rubygem-cucumber-html-formatter is currently not packaged in Fedora.
 %gemspec_remove_dep -g cucumber-html-formatter
+%gemspec_remove_file 'lib/cucumber/formatter/html.rb'
 
-# Relax requires.
-%gemspec_remove_dep -g diff-lcs "~> 1.4", ">= 1.4.4"
-%gemspec_add_dep -g diff-lcs ">= 1.3"
-
-%gemspec_remove_dep -g cucumber-core "~> 10.1"
-
-%gemspec_remove_dep -g cucumber-gherkin "~> 22.0", ">= 22.0.0"
-%gemspec_add_dep -g cucumber-gherkin ">= 20.0"
-
-%gemspec_remove_dep -g cucumber-cucumber-expressions "~> 14.0", ">= 14.0.0"
-%gemspec_add_dep -g cucumber-cucumber-expressions ">= 12.1"
+# TODO: The rubygem-cucumber-ci-environment is currently not available in
+# Fedora. This is the new name for rubygem-cucumber-create-meta. Fake the
+# required bits for a moment.
+%gemspec_remove_dep -g cucumber-ci-environment
+%gemspec_add_file 'lib/cucumber/ci_environment.rb'
+install -m 0644 %{SOURCE3} lib/cucumber/ci_environment.rb
 
-%gemspec_remove_dep -g cucumber-messages "~> 17.1", ">= 17.1.1"
-%gemspec_add_dep -g cucumber-messages ">= 17.0"
+# Relax requires.
+%gemspec_remove_dep -g cucumber-core ">= 16.2.0", "< 17"
+%gemspec_add_dep -g cucumber-core
 
-%gemspec_remove_dep -g cucumber-wire "~> 6.2"
+%gemspec_remove_dep -g multi_test "~> 1.1"
+%gemspec_add_dep -g multi_test
 
-%gemspec_add_dep -g base64 ">= 0.2.0"
+%gemspec_remove_dep -g sys-uname "~> 1.5"
+%gemspec_add_dep -g sys-uname
 
 %build
 # Create the gem as gem install only works on a gem file
@@ -111,41 +103,47 @@ cp -a .%{gem_dir}/* \
 
 
 mkdir -p %{buildroot}%{_bindir}
-cp -pa .%{_bindir}/* \
+cp -a .%{_bindir}/* \
         %{buildroot}%{_bindir}/
 
 find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
 
 %check
 pushd .%{gem_instdir}
+ln -s %{builddir}/compatibility compatibility
+
 # Cucumber.yml is needed for both test suites.
 # Used as fixture for rspec and options for cucumber.
-ln -s %{_builddir}/cucumber.yml cucumber.yml
+ln -s %{builddir}/cucumber.yml cucumber.yml
 
-ln -s %{_builddir}/spec spec
-# We don't need Pry.
-sed -i '/require.*pry/ s/^/#/' spec/spec_helper.rb
+ln -s %{builddir}/spec spec
 
-rspec -Ilib spec
+rspec -Ilib -rspec_helper spec
 
-%if %{without bootstrap}
-ln -s %{_builddir}/features features
+ln -s %{builddir}/features features
 
 # Skip the test that requires rubygem-cucumber-html-formatter,
 # which is currently not packaged in Fedora.
 sed -i -e '/^  Scenario: output html to stdout$/i @skip' \
     features/docs/formatters/html.feature
 
+# With cucumber-core < 16.2, ambiguous test might cause crash. However, for
+# test suites which have passed their CI, this should not cause any troubles.
+# Therefore this might minor issue for development, but should not be an issue
+# for Fedora packages.
+# https://github.com/cucumber/cucumber-ruby-core/pull/311
+mv features/docs/defining_steps/ambiguous_steps.feature{,.disable}
+
 # Use RUBYOPT to make sure that the Cucumber from current directory has
 # precedence over system Cucumber, which is pulled in as Aruba dependency.
-RUBYOPT=-Ilib cucumber --tags 'not @skip'
-%endif
+RUBYOPT=-Ilib ./bin/cucumber --tags 'not @skip'
 popd
 
 %files
 %dir %{gem_instdir}
 %{_bindir}/cucumber
 %license %{gem_instdir}/LICENSE
+%{gem_instdir}/VERSION
 %{gem_instdir}/bin
 %{gem_libdir}
 %exclude %{gem_cache}
@@ -153,11 +151,13 @@ popd
 
 %files doc
 %doc %{gem_docdir}
-%doc %{gem_instdir}/CONTRIBUTING.md
 %doc %{gem_instdir}/README.md
-%doc %{gem_instdir}/CHANGELOG.md
 
 %changelog
+* Mon Aug 17 2026 Vít Ondruch <vondruch@redhat.com> - 11.1.1-1
+- Update to Cucumber 11.1.1.
+  Resolves: rhbz#2088458
+
 * Tue Aug 11 2026 Vít Ondruch <vondruch@redhat.com> - 7.1.0-19
 - Relax cucumber-wire dependency.
 

diff --git a/sources b/sources
index caf51b3..566312a 100644
--- a/sources
+++ b/sources
@@ -1,3 +1,3 @@
-SHA512 (cucumber-7.1.0.gem) = 3caa09e3872a72dee619eb29f82e24582b23e81674cf3ff5f53818f6c49b675a74a43755f4d606f2ef18e60037c6f7cf907831045dc4d154f76a629a9d9a6ae9
-SHA512 (rubygem-cucumber-7.1.0-spec.txz) = d1ef8caa8afce2ebd890de45fc42ceeb55148f47f04e7c558b0bf0542fd07400f26980e79e17e617678637f0aa257e6c0cea181ed115e19e7d323205241ec863
-SHA512 (rubygem-cucumber-7.1.0-features.txz) = cab65b7015afbeb4e5b473f42d82fd294ff8a243399a8bb1d57f20e9ad000a84803c5c9a8c1d2c07291318b897cabf41d5b4ca6d63264e1b2056d75b062c98c5
+SHA512 (cucumber-11.1.1.gem) = a22c3c49995bf87068e7e37c1d7490041bb0c73188036c6a86dc68e1ba9e99313f359bbf8603feae1a73427cc10e85749a1deb13b3ad59f30214736af2b33833
+SHA512 (rubygem-cucumber-11.1.1-features.tar.gz) = 03faed37fcf2f971f27b2125dad677e83daf03c1d50a1b57c1a5ea746ca3b8a30259f8b9eed1b9107dc224453c72d71b2a660b584725986557f63a1e276903fb
+SHA512 (rubygem-cucumber-11.1.1-spec.tar.gz) = e24b022b86b3079b2fa0d26b327e2e7e0435323f89652df3df8100a0426c8c4841a3bbc101281124eb8b1f4bc87296476c26faa00d82582ccc3c1fb1ba584501

                 reply	other threads:[~2026-08-27  7:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178781725525.1.15692531881511965009.rpms-rubygem-cucumber-aa10380f9c3b@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox