Apparently there is now a collision with some other GEM. Patched the internal def "loop" to "sr_loop".
diff attached. Hope this helps Chris
--- utils/addons_ruby.rb 2019-03-12 14:28:42.054424340 +0100
+++ utils/addons_ruby.rb 2019-03-12 14:26:47.553463725 +0100
@@ -59,7 +59,7 @@
list.each { |file| orig_require(file) }
end
- def loop(from, to, step=1)
+ def sr_loop(from, to, step=1)
i = from
while i <= to
yield i
--- ruler_window.rb 2019-03-12 14:28:20.186240717 +0100
+++ ruler_window.rb 2019-03-12 14:29:51.403007080 +0100
@@ -244,7 +244,7 @@
# Loop, drawing ticks (top and bottom) and labels
repetitions, tick_index = 0, 0
- loop(pixels_per_tick, length + OVERDRAW, pixels_per_tick) { |x|
+ sr_loop(pixels_per_tick, length + OVERDRAW, pixels_per_tick) { |x|
x = x.floor + 0.5 # Cairo likes lines in the 'center' of pixels
tick_size = @@tick_sizes[ unit.tick_pattern[tick_index, 1].to_s ]
@@ -333,7 +333,7 @@
# Fill with 'horizontal' lines
cr.set_source_color($preferences_window.foreground_color)
- loop(@menu_box.y + 2.5, @menu_box.y + @menu_box.height + -1.5, 2) { |y|
+ sr_loop(@menu_box.y + 2.5, @menu_box.y + @menu_box.height + -1.5, 2) { |y|
cr.move_to(@menu_box.x + 2.0, y)
cr.line_to(@menu_box.x + @menu_box.width - 1, y)
}
signature.asc
Description: This is a digitally signed message part
smime.p7s
Description: S/MIME cryptographic signature

