graster 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/bin/gtile +2 -2
  3. data/lib/graster.rb +3 -1
  4. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.5
1
+ 0.0.6
data/bin/gtile CHANGED
@@ -60,8 +60,8 @@ end # File.open
60
60
 
61
61
  print gcode(header)
62
62
 
63
- vert_count.times.map do |yc|
64
- horiz_count.times.map do |xc|
63
+ vert_count.times do |yc|
64
+ horiz_count.times do |xc|
65
65
  body.each do |nc|
66
66
  nc = nc.dup
67
67
  nc[:X] += xc*tile_width if nc[:X]
@@ -173,7 +173,9 @@ class Graster
173
173
 
174
174
  def build_tiled_rows
175
175
  forward = false
176
- @tiled_rows = @image.size[1].times.map {|y| tiled_row_spans y, (forward = !forward) }
176
+ @tiled_rows = []
177
+ @tiled_rows = @image.size[1].times {|y| @tiled_rows << tiled_row_spans(y, (forward = !forward)) }
178
+ @tiled_rows
177
179
  end
178
180
 
179
181
  # generate a unique id for this job
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jedediah Smith