mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 03:53:22 -04:00
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:
23
dev-ruby/prawn-svg/files/prawn-svg-0.35.1-rexml.patch
Normal file
23
dev-ruby/prawn-svg/files/prawn-svg-0.35.1-rexml.patch
Normal 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
|
||||
Reference in New Issue
Block a user