rubylabs 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/hashlab.rb +5 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4a37f158acc1a78c47cc98c2e28fdfdd039041aa
4
- data.tar.gz: 5cacbad6cc3c4cbbf0a8c8b0055ccbd8b8240fab
3
+ metadata.gz: 14b283f4e1b277f165c6fbcafd8a42e4497a5a90
4
+ data.tar.gz: 8f4b063d0c1bd5556f34a7eac0d12029d7cf3251
5
5
  SHA512:
6
- metadata.gz: 16ebf839dd3bd5ebf8823265cf9b48b13a75798d69dcc127259dc2660da7330b529737026aaa3d6d8a504442d5527a2382388f48496a1186ffa0c92e4e35a1d7
7
- data.tar.gz: 108bbb297f34f25519863f534f44ea880bfcad617318250a0949c6cfdca478e35ee28629e8487b9eb4d620fa87ddfd5dbc23714f6e14e3e9443030b8e57df128
6
+ metadata.gz: 92ac119862915b45acc5f0fcea5b73ca79e9e9eced3a4950244e2e3bb5e9883f480b55fd4a92974f21aafaea871cad52a2a6416d95f6f1cb30bf012b130b5091
7
+ data.tar.gz: 38660108ac0d6b07d1ebd1a5b4e4cb45f2db527ccc7cf2f4e614ac0a78521ba29b6eabfbf4d53da3d9787349a2c215bbac1d60ee3cbe2a3d6006ac7235c022d3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
data/lib/hashlab.rb CHANGED
@@ -256,11 +256,13 @@ module HashLab
256
256
  buckets << Canvas::Text.new(tbl[i].join(", "), options[:textX], y0, {:font => :bucketfont})
257
257
  cells[i].fill = 'white'
258
258
  else
259
+ buckets << nil
259
260
  cells[i].fill = options[:cellColor]
260
261
  end
261
262
  end
262
263
 
263
264
  t.drawing = TableView.new(cells, buckets, nrows, options)
265
+ # sprintf "viewing table with %d cells, %d buckets", cells.length, buckets.length
264
266
  return true
265
267
 
266
268
  end
@@ -329,10 +331,12 @@ Example:
329
331
  if @drawing
330
332
  options = @drawing.options
331
333
  if @drawing.buckets[i]
334
+ # sprintf "adding '%s' to bucket %d", s, i
332
335
  @drawing.buckets[i].update( @table[i].join(", ") )
333
336
  else
337
+ # sprintf "new bucket for '%s' in row %d", s, i
334
338
  y0 = options[:tableY] + i * (options[:cellHeight] + options[:cellYSpace])
335
- @drawing.buckets[i] = Canvas::Text.new(@table[i], options[:textX], y0, {:font => :bucketfont})
339
+ @drawing.buckets[i] = Canvas::Text.new(@table[i].join(", "), options[:textX], y0, {:font => :bucketfont})
336
340
  @drawing.cells[i].fill = 'white'
337
341
  end
338
342
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubylabs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - conery
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  requirements: []
123
123
  rubyforge_project: rubylabs
124
- rubygems_version: 2.4.6
124
+ rubygems_version: 2.6.2
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: Software and data for lab projects for Explorations in Computing.