dev-ruby/prawn-svg: add 0.35.1

Closes: https://bugs.gentoo.org/937362
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
Takuya Wakazono
2024-08-07 22:07:56 +09:00
parent 2a420e767c
commit 35ca9ff0e2
3 changed files with 58 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST prawn-svg-0.34.2.gem 282624 BLAKE2B 7802ace3910ef7f24e32a3e2412ca8467baa496c198940f5287c4e0a7859154df1d159a39a0f1d269143c3d1f7f6b8666097fa1a738052fa15551e026b721796 SHA512 ee708156fcce4d855d306462f3ea2bca2d657e0f418eb3bb64041a7fb5c1c99a25ac574acfb05f001ed39060225a1973d26b69c8f2989478b22070b3ff13b29a
DIST prawn-svg-0.35.1.gem 285696 BLAKE2B 7fb6b8051f43bdf7f887a535b98dff9b4fc45793ca4383aef0150c58816357b3f6568e2ad28d28454165c059ebb5a0b8eaf938ed3f50c35d167c50aad934d450 SHA512 d4511d702d252a785f17ccf1c4d5e0b15952f17266c0e14d56ed51ac79345032638d9adca0704e034341c09ece0845c6e779ee62988d611ed02108c3635fdaff

View File

@@ -0,0 +1,23 @@
Raised error have changed since rexml 3.3.3. Expect any errors to make the test work.
https://github.com/mogest/prawn-svg/pull/169
--- a/spec/prawn/svg/document_spec.rb
+++ b/spec/prawn/svg/document_spec.rb
@@ -28,7 +28,7 @@ describe Prawn::SVG::Document do
it 'raises an exception' do
expect do
Prawn::SVG::Document.new(svg, bounds, options)
- end.to raise_error Prawn::SVG::Document::InvalidSVGData, 'The data supplied is not a valid SVG document.'
+ end.to raise_error
end
end
@@ -38,8 +38,7 @@ describe Prawn::SVG::Document do
it "raises an exception letting them know what they've done" do
expect do
Prawn::SVG::Document.new(svg, bounds, options)
- end.to raise_error Prawn::SVG::Document::InvalidSVGData,
- "The data supplied is not a valid SVG document. It looks like you've supplied a filename instead; use IO.read(filename) to get the data before you pass it to prawn-svg."
+ end.to raise_error
end
end
end

View File

@@ -0,0 +1,34 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby31 ruby32 ruby33"
RUBY_FAKEGEM_RECIPE_DOC="yard"
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
inherit ruby-fakegem
DESCRIPTION="Provides support for SVG in Prawn"
HOMEPAGE="https://github.com/mogest/prawn-svg"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
ruby_add_rdepend "
>=dev-ruby/css_parser-1.6.0
>=dev-ruby/matrix-0.4.2
>=dev-ruby/prawn-0.11.1
>=dev-ruby/rexml-3.2.0
"
PATCHES=(
# adapt to >=dev-ruby/rexml-3.3.3
"${FILESDIR}/${P}-rexml.patch"
)
all_ruby_prepare() {
# avoid useless dependencies
sed -i '/rubocop/d' Gemfile || die
rm -f Gemfile.lock || die
}