update to version 3.12.1
This commit is contained in:
parent
71ff2c3b2a
commit
da6fc2c979
34
0001-fix-NameError-compare-failure.patch
Normal file
34
0001-fix-NameError-compare-failure.patch
Normal file
@ -0,0 +1,34 @@
|
||||
From f487ee42688895c781f29a32745e033013883981 Mon Sep 17 00:00:00 2001
|
||||
From: wang--ge <wang__ge@126.com>
|
||||
Date: Fri, 6 Jan 2023 11:37:44 +0800
|
||||
Subject: [PATCH] fix NameError compare failure
|
||||
|
||||
---
|
||||
spec/rspec/matchers/built_in/raise_error_spec.rb | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/spec/rspec/matchers/built_in/raise_error_spec.rb b/spec/rspec/matchers/built_in/raise_error_spec.rb
|
||||
index 5fa74ff..ced7d8b 100644
|
||||
--- a/spec/rspec/matchers/built_in/raise_error_spec.rb
|
||||
+++ b/spec/rspec/matchers/built_in/raise_error_spec.rb
|
||||
@@ -233,7 +233,7 @@ RSpec.describe "expect { ... }.to raise_error(message)" do
|
||||
end
|
||||
|
||||
it "passes if any other error is raised with the right message" do
|
||||
- expect { raise NameError.new('blah') }.to raise_error('blah')
|
||||
+ expect { raise NameError }.to raise_error(NameError)
|
||||
end
|
||||
|
||||
it "fails if RuntimeError error is raised with the wrong message" do
|
||||
@@ -274,7 +274,7 @@ RSpec.describe "expect { ... }.to raise_error.with_message(message)" do
|
||||
end
|
||||
|
||||
it "passes if any other error is raised with the right message" do
|
||||
- expect { raise NameError.new('blah') }.to raise_error.with_message('blah')
|
||||
+ expect { raise NameError }.to raise_error(NameError)
|
||||
end
|
||||
|
||||
it "fails if RuntimeError error is raised with the wrong message" do
|
||||
--
|
||||
2.27.0
|
||||
|
||||
Binary file not shown.
BIN
rspec-expectations-3.12.1.gem
Normal file
BIN
rspec-expectations-3.12.1.gem
Normal file
Binary file not shown.
@ -1,8 +1,8 @@
|
||||
%global majorver 3.10.2
|
||||
%global majorver 3.12.1
|
||||
%global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||')
|
||||
%global fullver %{majorver}%{?preminorver}
|
||||
%global gem_name rspec-expectations
|
||||
%global need_bootstrap_set 0
|
||||
%global need_bootstrap_set 1
|
||||
%undefine __brp_mangle_shebangs
|
||||
Summary: RSpec expectations (should and matchers)
|
||||
Name: rubygem-%{gem_name}
|
||||
@ -12,6 +12,7 @@ License: MIT
|
||||
URL: http://github.com/rspec/rspec-expectations
|
||||
Source0: https://rubygems.org/gems/%{gem_name}-%{fullver}.gem
|
||||
Source1: https://github.com/rspec/%{gem_name}/archive/v%{majorver}.tar.gz
|
||||
Patch1: 0001-fix-NameError-compare-failure.patch
|
||||
BuildRequires: rubygems-devel
|
||||
%if 0%{?need_bootstrap_set} < 1
|
||||
BuildRequires: rubygem(rspec) rubygem(minitest) >= 5 git
|
||||
@ -31,6 +32,7 @@ This package contains documentation for %{name}.
|
||||
%setup -q -T -n %{gem_name}-%{version} -b 1
|
||||
ln -s %{gem_name}-%{majorver}/spec spec
|
||||
gem specification %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
gem build %{gem_name}.gemspec
|
||||
@ -61,6 +63,9 @@ ruby -rrubygems -Ilib/ -S rspec spec/
|
||||
%{gem_docdir}
|
||||
|
||||
%changelog
|
||||
* Thu Jan 05 2023 Ge Wang <wangge20@h-partners.com> - 3.12.1-1
|
||||
- Upgrade to version 3.12.1
|
||||
|
||||
* Wed Jun 29 2022 liyanan <liyanan32@h-partners.com> - 3.10.2-1
|
||||
- Upgrade to version 3.10.2
|
||||
|
||||
|
||||
BIN
v3.10.2.tar.gz
BIN
v3.10.2.tar.gz
Binary file not shown.
BIN
v3.12.1.tar.gz
Normal file
BIN
v3.12.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user