diff --git a/0001-remove-unintended-private-call.patch b/0001-remove-unintended-private-call.patch deleted file mode 100644 index a940f41..0000000 --- a/0001-remove-unintended-private-call.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 320b6fc7ed593311340313a1ed15ce07b7f5217f Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?David=20Rodr=C3=ADguez?= -Date: Sun, 12 Jan 2020 13:41:59 +0100 -Subject: [PATCH] Remove unintended `private` call - -From reading https://bugs.ruby-lang.org/issues/13249, I don't think -`private` is having any effect here, since it's only supposed to affect -further methods defined inside the current class method (if at all), and -this method does not define any method inside itself. ---- - lib/cucumber/core/test/result.rb | 1 - - 1 file changed, 1 deletion(-) - -diff --git a/lib/cucumber/core/test/result.rb b/lib/cucumber/core/test/result.rb -index 136002a..21d06c8 100644 ---- a/lib/cucumber/core/test/result.rb -+++ b/lib/cucumber/core/test/result.rb -@@ -9,7 +9,6 @@ module Result - STRICT_AFFECTED_TYPES = [:flaky, :undefined, :pending].freeze - - def self.ok?(type, be_strict = StrictConfiguration.new) -- private - class_name = type.to_s.slice(0, 1).capitalize + type.to_s.slice(1..-1) - const_get(class_name).ok?(be_strict.strict?(type)) - end - diff --git a/cucumber-core-10.1.0.gem b/cucumber-core-10.1.0.gem new file mode 100644 index 0000000..253235f Binary files /dev/null and b/cucumber-core-10.1.0.gem differ diff --git a/cucumber-core-3.2.0.gem b/cucumber-core-3.2.0.gem deleted file mode 100644 index 848f14b..0000000 Binary files a/cucumber-core-3.2.0.gem and /dev/null differ diff --git a/rubygem-cucumber-core.spec b/rubygem-cucumber-core.spec index 4182cbc..7209170 100644 --- a/rubygem-cucumber-core.spec +++ b/rubygem-cucumber-core.spec @@ -1,16 +1,14 @@ %global gem_name cucumber-core Name: rubygem-%{gem_name} -Version: 3.2.0 -Release: 3 +Version: 10.1.0 +Release: 1 Summary: Core library for the Cucumber BDD app License: MIT URL: https://cucumber.io Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem -Source1: https://github.com/cucumber/cucumber-ruby-core/archive/v%{version}.tar.gz -Patch0: 0001-remove-unintended-private-call.patch -BuildRequires: ruby(release) rubygems-devel ruby rubygem(gherkin) rubygem(rspec) -BuildRequires: rubygem(kramdown) rubygem(cucumber-tag_expressions) rubygem(backports) -BuildRequires: rubygem(kramdown-parser-gfm) +BuildRequires: ruby(release) rubygems-devel ruby rubygem-cucumber-gherkin rubygem(rspec) +BuildRequires: rubygem(kramdown) rubygem-cucumber-tag-expressions rubygem(backports) +BuildRequires: rubygem(kramdown-parser-gfm) rubygem(cucumber-messages) BuildArch: noarch %description Core library for the Cucumber BDD app. @@ -23,10 +21,10 @@ BuildArch: noarch Documentation for %{name}. %prep -%setup -q -n %{gem_name}-%{version} -b 1 -%patch0 -p1 -%gemspec_remove_dep -s ../%{gem_name}-%{version}.gemspec -g gherkin '>= 5.0.0' -%gemspec_add_dep -s ../%{gem_name}-%{version}.gemspec -g gherkin '>= 4.1.0' +%setup -q -n %{gem_name}-%{version} + +%gemspec_remove_dep -g cucumber-messages "~> 17.1", ">= 17.1.1" +%gemspec_add_dep -g cucumber-messages ">= 17.0" %build gem build ../%{gem_name}-%{version}.gemspec @@ -39,7 +37,6 @@ cp -a .%{gem_dir}/* \ %check pushd .%{gem_instdir} -ln -s %{_builddir}/cucumber-ruby-core-%{version}/spec spec for file in $(grep -Rl unindent spec); do sed -i "/require 'unindent'/ s/^/#/" "${file}" sed -i '/^ *expect.*unindent$/ i \pending' "${file}" @@ -60,8 +57,12 @@ popd %doc %{gem_instdir}/CONTRIBUTING.md %doc %{gem_instdir}/README.md %doc %{gem_instdir}/CHANGELOG.md +%{gem_instdir}/spec %changelog +* Mon Jan 9 2023 liyanan - 10.1.0-1 +- Update to 10.1.0 + * Tue Mar 1 2022 baizhonggui -3.2.0-3 - Remove unintended private call for fixing build error diff --git a/v3.2.0.tar.gz b/v3.2.0.tar.gz deleted file mode 100644 index e6766df..0000000 Binary files a/v3.2.0.tar.gz and /dev/null differ