Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

another ruby 1.8.6 compat problem

  • Loading branch information...
commit 7ac227e195945914dd8a18f4319582250260633a 1 parent f600caa
@joshbuddy joshbuddy authored committed
Showing with 5 additions and 3 deletions.
  1. +2 −2 bin/gtile
  2. +3 −1 lib/graster.rb
View
4 bin/gtile
@@ -60,8 +60,8 @@ end # File.open
print gcode(header)
-vert_count.times.map do |yc|
- horiz_count.times.map do |xc|
+vert_count.times do |yc|
+ horiz_count.times do |xc|
body.each do |nc|
nc = nc.dup
nc[:X] += xc*tile_width if nc[:X]
View
4 lib/graster.rb
@@ -173,7 +173,9 @@ def tiled_row_spans y, forward=true
def build_tiled_rows
forward = false
- @tiled_rows = @image.size[1].times.map {|y| tiled_row_spans y, (forward = !forward) }
+ @tiled_rows = []
+ @tiled_rows = @image.size[1].times {|y| @tiled_rows << tiled_row_spans(y, (forward = !forward)) }
+ @tiled_rows
end
# generate a unique id for this job
Please sign in to comment.
Something went wrong with that request. Please try again.