diff --git a/rspec-core-3.13.2-issue3125-ruby34-syntax_suggest_202.patch b/rspec-core-3.13.2-issue3125-ruby34-syntax_suggest_202.patch new file mode 100644 index 0000000..96eb999 --- /dev/null +++ b/rspec-core-3.13.2-issue3125-ruby34-syntax_suggest_202.patch @@ -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 diff --git a/rubygem-rspec-core.spec b/rubygem-rspec-core.spec index fd6b76f..af100de 100644 --- a/rubygem-rspec-core.spec +++ b/rubygem-rspec-core.spec @@ -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 - 3.13.2-4 +- Workaround syntax_suggest 2.0.2 change + * Fri Nov 15 2024 Mamoru TASAKA - 3.13.2-3 - Fix for ruby34 string behavior to be chilled