diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-04-26 18:15:31 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-04-26 18:15:31 +0100 |
commit | 495a8590505b434749ddebe6aa159b4d707ed846 (patch) | |
tree | 92ac28e766f0203e2bd3c5f46b491944cdf03907 /dev-ruby/sparklines/files/sparklines-0.5.2-rmagick4-deprecation.patch | |
parent | 218cd7b08b8b97198d02f1ba811d540421367139 (diff) |
gentoo auto-resync : 26:04:2023 - 18:15:30
Diffstat (limited to 'dev-ruby/sparklines/files/sparklines-0.5.2-rmagick4-deprecation.patch')
-rw-r--r-- | dev-ruby/sparklines/files/sparklines-0.5.2-rmagick4-deprecation.patch | 20 |
1 files changed, 20 insertions, 0 deletions
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 |