This commit is contained in:
Mamoru TASAKA 2023-07-02 09:28:42 +09:00
commit 41cbcc573e
5 changed files with 7 additions and 61 deletions

View file

@ -1,15 +0,0 @@
diff -urp 3.0.0.dep/lib/rabbit/parser/markdown.rb 3.0.0/lib/rabbit/parser/markdown.rb
--- 3.0.0.dep/lib/rabbit/parser/markdown.rb 2019-09-06 06:24:48.000000000 +0900
+++ 3.0.0/lib/rabbit/parser/markdown.rb 2019-09-09 14:50:10.995800735 +0900
@@ -1,5 +1,10 @@
require "kramdown"
-require "kramdown-parser-gfm"
+begin
+ require "kramdown-parser-gfm"
+rescue LoadError
+ require "kramdown/parser/kramdown"
+ require "kramdown/parser/gfm"
+end
require "rabbit/parser/base"

View file

@ -1,22 +0,0 @@
From befb9f8cdc63b39b9e778b36ffd2c1d53e1d91ee Mon Sep 17 00:00:00 2001
From: kojix2 <2xijok@gmail.com>
Date: Fri, 31 Jan 2020 14:12:53 +0900
Subject: [PATCH] Use URI.open (#133)
---
lib/rabbit/parser/ext/image.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/rabbit/parser/ext/image.rb b/lib/rabbit/parser/ext/image.rb
index 20d517de..46f33e05 100644
--- a/lib/rabbit/parser/ext/image.rb
+++ b/lib/rabbit/parser/ext/image.rb
@@ -109,7 +109,7 @@ def other_uri_filename(canvas, uri)
def setup_image_file(canvas, uri, filename)
begin
- open(uri, "rb") do |in_file|
+ URI.open(uri, "rb") do |in_file|
File.open(filename, "wb") do |out|
out.print(in_file.read)
end

View file

@ -1,18 +0,0 @@
--- rabbit-3.0.2/lib/rabbit/image/mermaid.rb.orig 2023-07-01 16:24:20.184695994 +0900
+++ rabbit-3.0.2/lib/rabbit/image/mermaid.rb 2023-07-01 17:04:51.861639445 +0900
@@ -15,6 +15,7 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
require "rabbit/image/pdf"
+require "rabbit/gettext"
module Rabbit
module ImageManipulable
@@ -23,6 +24,7 @@
unshift_loader(self)
include SystemRunner
+ include GetText
class << self
def match?(filename)

View file

@ -5,8 +5,8 @@ BuildRequires: %1 \
%{nil}
Name: rubygem-%{gem_name}
Version: 3.0.2
Release: 2%{?dist}
Version: 3.0.3
Release: 1%{?dist}
Summary: RD-document-based presentation application
# GPL-2.0-or-later: overall
@ -27,8 +27,6 @@ Source1: %{name}-%{version}-test-missing-files.tar.gz
Source2: rabbit-create-missing-test-files.sh
Source10: rabbit.desktop
Source11: rabbit.xml
# https://github.com/rabbit-shocker/rabbit/issues/153
Patch0: rubygem-rabbit-3.0.2-mermaid-gettext.patch
%BothRequires ruby(release)
BuildRequires: rubygems-devel
@ -171,6 +169,9 @@ popd
%doc %{gem_instdir}/sample/
%changelog
* Sun Jul 2 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0.3-1
- 3.0.3
* Sat Jul 1 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.0.2-2
- SPDX migration

View file

@ -1,2 +1,2 @@
SHA512 (rabbit-3.0.2.gem) = 23e5471e9bf3cdb92f460f2ef9f1324f6b8ddb2124930e1666faaee7cb5a83eaeb31b93d71ecdeb371a8eb60c392737f07cd63cd6aa2b0b89293d1bd3afe15e9
SHA512 (rubygem-rabbit-3.0.2-test-missing-files.tar.gz) = e2670424eb0b6cc7bf4cf1b3fc9c99875d912fc113c5b650d66ad1ae40eebe4b2b51b74b35126d5c62ecc96f931661fefc9bba2e4f0528de89745c8e8ac06449
SHA512 (rabbit-3.0.3.gem) = 9ac6e551f111f489c13793759f1eed093d06ff861920ff73754ad3236d0ff8067d8b0e81124e1a251a69ea1042b73fd97a377065338cc4e5e9fdb1551abfda35
SHA512 (rubygem-rabbit-3.0.3-test-missing-files.tar.gz) = 796b4506f2fcfa4f72dc95978c49fb89e2f64fcc42c04883fea83fa46ea538adc17d08b829052752803ddab3bd378003390248a2f364d4f60e8e5b4f9770afee