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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/hashlab.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14b283f4e1b277f165c6fbcafd8a42e4497a5a90
|
4
|
+
data.tar.gz: 8f4b063d0c1bd5556f34a7eac0d12029d7cf3251
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92ac119862915b45acc5f0fcea5b73ca79e9e9eced3a4950244e2e3bb5e9883f480b55fd4a92974f21aafaea871cad52a2a6416d95f6f1cb30bf012b130b5091
|
7
|
+
data.tar.gz: 38660108ac0d6b07d1ebd1a5b4e4cb45f2db527ccc7cf2f4e614ac0a78521ba29b6eabfbf4d53da3d9787349a2c215bbac1d60ee3cbe2a3d6006ac7235c022d3
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.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.
|
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.
|
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.
|