Fix for ruby34 string behavior to be chilled

This commit is contained in:
Mamoru TASAKA 2024-11-15 15:07:10 +09:00
commit 91ba31bd1c
2 changed files with 20 additions and 1 deletions

View file

@ -0,0 +1,12 @@
diff -urp -x examples.txt '--exclude=*~' rspec-core-3.13.2.orig/lib/rspec/core/drb.rb rspec-core-3.13.2/lib/rspec/core/drb.rb
--- rspec-core-3.13.2.orig/lib/rspec/core/drb.rb 2024-10-21 14:23:30.000000000 +0900
+++ rspec-core-3.13.2/lib/rspec/core/drb.rb 2024-11-15 14:48:52.388539773 +0900
@@ -91,7 +91,7 @@ module RSpec
def add_filter(argv, name, hash)
hash.each_pair do |k, v|
next if CONDITIONAL_FILTERS.include?(k)
- tag = name == :inclusion ? k.to_s : "~#{k}".dup
+ tag = name == :inclusion ? k.to_s.dup : "~#{k}".dup
tag << ":#{v}" if v.is_a?(String)
argv << "--tag" << tag
end unless hash.empty?

View file

@ -3,7 +3,7 @@
%global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||')
%global fullver %{majorver}%{?preminorver}
%global baserelease 2
%global baserelease 3
%global gem_name rspec-core
@ -36,6 +36,9 @@ Source2: rspec-related-create-full-tarball.sh
# Adjust backtrace filter for Fedora placement of StdLib.
# https://github.com/rspec/rspec-core/pull/2881
Patch0: rubygem-rspec-core-3.10.1-Filter-content-of-usr-share-ruby.patch
# https://github.com/rspec/rspec-core/issues/3123
# <- by https://github.com/ruby/ruby/pull/12065
Patch1: rspec-core-3.13.2-issue3123-ruby34-string-chilled.patch
#BuildRequires: ruby(release)
BuildRequires: rubygems-devel
@ -90,6 +93,7 @@ This package contains documentation for %{name}.
%prep
%setup -q -T -n %{gem_name}-%{version} -b 1
%patch -P0 -p1
%patch -P1 -p1
gem specification %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%build
@ -209,6 +213,9 @@ done
%{gem_docdir}
%changelog
* Fri Nov 15 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.13.2-3
- Fix for ruby34 string behavior to be chilled
* Wed Nov 06 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.13.2-2
- add BR: rubygem(drb) for ruby34