tabulo 0.3.0 → 0.3.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/CHANGELOG.md +4 -0
- data/TODO.md +3 -0
- data/lib/tabulo/table.rb +1 -1
- data/lib/tabulo/version.rb +1 -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: 693e05e168841c6a0e0b615025c6afce4e6a2c78
|
4
|
+
data.tar.gz: 51cf627f60299c912a5cb94f6bf29c2ae69435b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dadb888b2dad1bc4e64729fd2caad40bc83787411ce80b305d1d5743b15b5c59ac3e0fe531a297d1789dc4801d06664bbbedaad7f1cfbea5095a41ec7db86c5
|
7
|
+
data.tar.gz: 51a5a75a4efd0f6fb487784a97682793ac43d29d986496d14ebb63cadf8662077cbed3b1ca3a2523ca49ca461ac5549855b2f71faa303f40e9db5c8b627f5459
|
data/CHANGELOG.md
CHANGED
data/TODO.md
CHANGED
@@ -6,3 +6,6 @@
|
|
6
6
|
* Document :formatter option in README.
|
7
7
|
* Allow default column width to be configured at level of Table.
|
8
8
|
* Column#initialize should have the same signature as Table#add_column.
|
9
|
+
* Handle multiline cell content (i.e. when the calculated cell value
|
10
|
+
itself contains a newline).
|
11
|
+
* Pending specs.
|
data/lib/tabulo/table.rb
CHANGED
@@ -89,7 +89,7 @@ module Tabulo
|
|
89
89
|
# called on each source item to determine each cell's value.
|
90
90
|
#
|
91
91
|
def add_column(label, options = { }, &extractor)
|
92
|
-
@columns << make_column(label, extractor: extractor)
|
92
|
+
@columns << make_column(label, options.merge(extractor: extractor))
|
93
93
|
end
|
94
94
|
|
95
95
|
# @return [String] a graphical "ASCII" representation of the Table, suitable for
|
data/lib/tabulo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tabulo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Harvey
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|