* [gentoo-commits] repo/gentoo:master commit in: dev-ruby/sparklines/files/
@ 2023-04-26 12:48 Hans de Graaff
0 siblings, 0 replies; only message in thread
From: Hans de Graaff @ 2023-04-26 12:48 UTC (permalink / raw
To: gentoo-commits
commit: c36602f3e9faf4586fc760cdf906a2cdb4a8bba5
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 26 12:47:54 2023 +0000
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Wed Apr 26 12:48:16 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c36602f3
dev-ruby/sparklines: add missing patch
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
.../sparklines-0.5.2-rmagick4-deprecation.patch | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/dev-ruby/sparklines/files/sparklines-0.5.2-rmagick4-deprecation.patch b/dev-ruby/sparklines/files/sparklines-0.5.2-rmagick4-deprecation.patch
new file mode 100644
index 000000000000..5dcb556318be
--- /dev/null
+++ b/dev-ruby/sparklines/files/sparklines-0.5.2-rmagick4-deprecation.patch
@@ -0,0 +1,20 @@
+--- a/lib/sparklines.rb 2023-04-26 07:46:30.263829168 +0200
++++ b/lib/sparklines.rb 2023-04-26 07:48:47.140656193 +0200
+@@ -685,7 +685,7 @@
+ @draw = Magick::Draw.new
+ @draw.pointsize = @@pointsize # TODO Use height
+ @draw.pointsize = @options[:font_size] if @options.has_key?(:font_size)
+- @canvas = Magick::Image.new(w , h) { self.background_color = bkg_col }
++ @canvas = Magick::Image.new(w , h) { |image| image.background_color = bkg_col }
+
+ # Make room for label and last value
+ unless @options[:label].nil?
+@@ -697,7 +697,7 @@
+ w += @label_and_data_last_width
+ end
+
+- @canvas = Magick::Image.new(w , h) { self.background_color = bkg_col }
++ @canvas = Magick::Image.new(w , h) { |image| image.background_color = bkg_col }
+ @canvas.format = "PNG"
+
+ # Draw label and last value
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-26 12:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-26 12:48 [gentoo-commits] repo/gentoo:master commit in: dev-ruby/sparklines/files/ Hans de Graaff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox