Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-slim for openSUSE:Factory checked in at 2022-12-14 14:11:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-slim (Old) and /work/SRC/openSUSE:Factory/.rubygem-slim.new.1835 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-slim" Wed Dec 14 14:11:18 2022 rev:6 rq:1042829 version:4.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-slim/rubygem-slim.changes 2020-10-05 19:33:55.653247224 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-slim.new.1835/rubygem-slim.changes 2022-12-14 14:11:30.947652966 +0100 @@ -1,0 +2,6 @@ +Tue Dec 13 12:03:34 UTC 2022 - Marcus Rueckert <mrueck...@suse.de> + +- apply a modified version of the patch from PR 894 (894.patch) + to allow newer temple versions + +------------------------------------------------------------------- New: ---- 894.patch series ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-slim.spec ++++++ --- /var/tmp/diff_new_pack.5TwYYG/_old 2022-12-14 14:11:31.511655867 +0100 +++ /var/tmp/diff_new_pack.5TwYYG/_new 2022-12-14 14:11:31.515655887 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-slim # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -35,7 +35,11 @@ BuildRequires: update-alternatives URL: http://slim-lang.com/ Source: https://rubygems.org/gems/%{mod_full_name}.gem -Source1: gem2rpm.yml +Source1: series +Source2: gem2rpm.yml +# MANUAL +Patch0: 894.patch +# /MANUAL Summary: Slim is a template language License: MIT Group: Development/Languages/Ruby @@ -46,6 +50,10 @@ parts without becoming cryptic. %prep +%gem_unpack +%patch0 -p1 +find -type f -print0 | xargs -0 touch -r %{S:0} +%gem_build %build ++++++ 894.patch ++++++ >From 1176de67cfe70049e0d2556cabfc5e538ca92263 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashik...@gmail.com> Date: Tue, 25 Oct 2022 01:19:59 -0700 Subject: [PATCH] Support temple 0.9.1+ --- slim.gemspec | 2 +- test/core/test_commands.rb | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) Index: slim-4.1.0/slim-4.1.0.gemspec =================================================================== --- slim-4.1.0.orig/slim-4.1.0.gemspec +++ slim-4.1.0/slim-4.1.0.gemspec @@ -24,7 +24,7 @@ Gem::Specification.new do |s| end if s.respond_to? :add_runtime_dependency then - s.add_runtime_dependency(%q<temple>.freeze, [">= 0.7.6", "< 0.9"]) + s.add_runtime_dependency(%q<temple>.freeze, [">= 0.7.6", "!= 0.9.0"]) s.add_runtime_dependency(%q<tilt>.freeze, [">= 2.0.6", "< 2.1"]) else s.add_dependency(%q<temple>.freeze, [">= 0.7.6", "< 0.9"]) Index: slim-4.1.0/test/core/test_commands.rb =================================================================== --- slim-4.1.0.orig/test/core/test_commands.rb +++ slim-4.1.0/test/core/test_commands.rb @@ -58,7 +58,11 @@ class TestSlimCommands < Minitest::Test prepare_common_test DYNAMIC_TEMPLATE, '--rails' do |out, err| assert err.empty? - assert out.include? %Q{@output_buffer = ActiveSupport::SafeBuffer.new;} + if Gem::Version.new(Temple::VERSION) >= Gem::Version.new('0.9') + assert out.include? %Q{@output_buffer = output_buffer || ActionView::OutputBuffer.new;} + else + assert out.include? %Q{@output_buffer = ActiveSupport::SafeBuffer.new;} + end assert out.include? %Q{@output_buffer.safe_concat(("<p>Hello "#{STRING_FREEZER}));} assert out.include? %Q{@output_buffer.safe_concat(((::Temple::Utils.escape_html((name))).to_s));} assert out.include? %Q{@output_buffer.safe_concat(("!</p>"#{STRING_FREEZER}));} ++++++ gem2rpm.yml ++++++ --- /var/tmp/diff_new_pack.5TwYYG/_old 2022-12-14 14:11:31.555656093 +0100 +++ /var/tmp/diff_new_pack.5TwYYG/_new 2022-12-14 14:11:31.559656114 +0100 @@ -68,4 +68,8 @@ # :post: |- # /bin/echo foo # +:patches: + 894.patch: -p1 +:sources: + - series ++++++ series ++++++ 894.patch