!10 update to 10.1.0

From: @lyn1001 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2023-01-28 02:10:17 +00:00 committed by Gitee
commit 0699824469
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
5 changed files with 13 additions and 38 deletions

View File

@ -1,26 +0,0 @@
From 320b6fc7ed593311340313a1ed15ce07b7f5217f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@riseup.net>
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

BIN
cucumber-core-10.1.0.gem Normal file

Binary file not shown.

Binary file not shown.

View File

@ -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 <liyanan32@h-partners.com> - 10.1.0-1
- Update to 10.1.0
* Tue Mar 1 2022 baizhonggui <baizhonggui@huawei.com> -3.2.0-3
- Remove unintended private call for fixing build error

Binary file not shown.