Workaround syntax_suggest 2.0.2 change

This commit is contained in:
Mamoru TASAKA 2024-11-17 16:59:26 +09:00
commit cdd2413fa0
2 changed files with 19 additions and 1 deletions

View file

@ -0,0 +1,11 @@
diff -urp -x examples.txt rspec-core-3.13.2.orig/spec/integration/spec_file_load_errors_spec.rb rspec-core-3.13.2/spec/integration/spec_file_load_errors_spec.rb
--- rspec-core-3.13.2.orig/spec/integration/spec_file_load_errors_spec.rb 2024-11-17 15:44:24.856119952 +0900
+++ rspec-core-3.13.2/spec/integration/spec_file_load_errors_spec.rb 2024-11-17 16:39:55.929770026 +0900
@@ -224,6 +224,7 @@ RSpec.describe 'Spec file load errors' d
# A fix was backported to 3.2.3
if RUBY_VERSION > '3.2.2'
+ formatted_output.gsub!(/\n+/m, "\n")
expect(formatted_output).to include unindent(<<-EOS)
SyntaxError:
--> ./tmp/aruba/broken_file.rb

View file

@ -3,7 +3,7 @@
%global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||')
%global fullver %{majorver}%{?preminorver}
%global baserelease 3
%global baserelease 4
%global gem_name rspec-core
@ -39,6 +39,9 @@ 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
# https://github.com/rspec/rspec-core/issues/3125
# <- by syntax_suggest 2.0.2 https://github.com/ruby/syntax_suggest/pull/232
Patch2: rspec-core-3.13.2-issue3125-ruby34-syntax_suggest_202.patch
#BuildRequires: ruby(release)
BuildRequires: rubygems-devel
@ -94,6 +97,7 @@ This package contains documentation for %{name}.
%setup -q -T -n %{gem_name}-%{version} -b 1
%patch -P0 -p1
%patch -P1 -p1
%patch -P2 -p1
gem specification %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%build
@ -213,6 +217,9 @@ done
%{gem_docdir}
%changelog
* Sun Nov 17 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.13.2-4
- Workaround syntax_suggest 2.0.2 change
* Fri Nov 15 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.13.2-3
- Fix for ruby34 string behavior to be chilled