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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b63d694608052e887a021c0c0e0eb4c9e77512a
4
- data.tar.gz: e2781dc44f766676c25fa2148a867e14cf49795f
3
+ metadata.gz: 693e05e168841c6a0e0b615025c6afce4e6a2c78
4
+ data.tar.gz: 51cf627f60299c912a5cb94f6bf29c2ae69435b1
5
5
  SHA512:
6
- metadata.gz: 33b5af849750ab1ba36c4212b835193d50592f524f7055c3236043f81dcce5b1bffb56c0770651fd9ca5e6c89df935073e4018cbe3029ac1215f7efd6e805e4f
7
- data.tar.gz: f9563b27c2a150ea1544e3705c5fbac6c77163e2f23d9187f50310c71ac66a13b2066d04223907707cef698fa3d024112a981edc25245e6f372d2dfc29ab8c2f
6
+ metadata.gz: 9dadb888b2dad1bc4e64729fd2caad40bc83787411ce80b305d1d5743b15b5c59ac3e0fe531a297d1789dc4801d06664bbbedaad7f1cfbea5095a41ec7db86c5
7
+ data.tar.gz: 51a5a75a4efd0f6fb487784a97682793ac43d29d986496d14ebb63cadf8662077cbed3b1ca3a2523ca49ca461ac5549855b2f71faa303f40e9db5c8b627f5459
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.3.1
4
+
5
+ * Fix width and other options ignored by Table#add_column.
6
+
3
7
  ## v0.3.0
4
8
 
5
9
  * Rename Table#header_row to Table#formatted_header
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
@@ -1,3 +1,3 @@
1
1
  module Tabulo
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
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.0
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-24 00:00:00.000000000 Z
11
+ date: 2017-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler