table-formatter 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 263c3df0bf2ecb043e77af1692a4db26909e31f7
4
- data.tar.gz: 349fb9c3201bd0f7ec07f2285e33360e9f89f9ad
3
+ metadata.gz: 1e3b96eba902e550087ee77b0701fc50b2b3ff1c
4
+ data.tar.gz: 3eff237f64d0ee0472315d71e7c27272df8802cc
5
5
  SHA512:
6
- metadata.gz: 9feae5c5a65d0edf8dd1c83be56232e5af04ff945ac082fb5ed3d1cdb4af6f3f8b0915a8bca9cfb6f18edd41ea5260aa527db35438a3a07fb1e8e6ae058a07e8
7
- data.tar.gz: 67bf8b8467a3923951a0d4705672c2800574eacaff86ae65a5be1eac6f78d7147626ada1832c4f6d6a5c3b4be570df7a9c88896f2b96cae1759a4d3d92e66bf9
6
+ metadata.gz: 898014ae59081c32c8ea468e222a397eb56e99f47f9ebf25ca824e76c602d0ff288cebb6e26b817a41282eb7fdbf2ef6e239bd906afd81237dda593b2c25a7af
7
+ data.tar.gz: ee444b16ede63b45b3d02a9c37f8e35769d405682972d35a69eca587efc79210544a094b5790e70b769919477ca747c0056c5e27bd7f12f042a3824f9a486b7e
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -65,7 +65,7 @@ class TableFormatter
65
65
 
66
66
  @width = col_widths.inject(&:+)
67
67
 
68
- col_widths[-1] -= col_widths.inject(&:+) - @maxwidth
68
+ col_widths[-1] -= col_widths.inject(&:+) - @maxwidth if @width > @maxwidth
69
69
 
70
70
  a.each_with_index do |x,i|
71
71
  col_rows = wrap(x[-1], col_widths[-1]).split(/\n/)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: table-formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file