terminal-table 3.0.1 → 3.0.2

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
  SHA256:
3
- metadata.gz: beedfc15a1d047a36f3086b433e525c3b02d49e34922c76853bd2d16c006be31
4
- data.tar.gz: 844ec9d624be42cd0dfaa5f33a930e4d1353cd48c1f24a36bc47173c3809d38a
3
+ metadata.gz: 6213eea6e6bf691a9594f64660d97e3c56503c43bf2a95075f62aafca2b4d130
4
+ data.tar.gz: a3511ef514b25731d1753bc695e7066ac04c76d9ce5da62ac5d8d3f6208daa3a
5
5
  SHA512:
6
- metadata.gz: 0e649b65e3692f51cdefd96d1b472cce78df675e57ed02cb96bf5444211fb99778e911d6a2e80cab30b419941f7541a93f86376bb8eaaa6726d38bc1b93f6866
7
- data.tar.gz: e2982cd89c3255ac8d95b0ad2009ed35cd102c38c8c49fc6e8a01022a8f3c4a747eaa3918dd7ca0acf389c0748ac6fd5590d0c5b5d7d84bc2e4d70d134dfdd43
6
+ metadata.gz: bb49c90ce6d6edbfe07c2c335b2c5bf25df41f67a3d31b4d413febebc597ce47906575e738dd05be742d948bd854948c605414ad581ea033b36099c52dd1cf36
7
+ data.tar.gz: f49a1837097b5417887ba6eddd2deaad9e3dab933a67d22b23fd6028255dfd56d0e2d327dd80c87b6a99da94a5d00e2147feed2155b37590b72284610c3b408d
data/.gitignore CHANGED
@@ -5,6 +5,7 @@ tmp
5
5
  doc
6
6
  vendor
7
7
  /.bundle
8
+ Gemfile.lock
8
9
 
9
10
  # tempfiles
10
11
  *~
data/History.rdoc CHANGED
@@ -1,3 +1,8 @@
1
+ 3.0.2 / 2021-09-19
2
+ ==================
3
+
4
+ - fix align_column for nil values and colspan
5
+
1
6
  3.0.1 / 2021-05-10
2
7
  ==================
3
8
 
@@ -27,10 +27,8 @@ module Terminal
27
27
  # Align column _n_ to the given _alignment_ of :center, :left, or :right.
28
28
 
29
29
  def align_column n, alignment
30
- r = rows
31
- column(n).each_with_index do |col, i|
32
- cell = r[i][n]
33
- next unless cell
30
+ # nil forces the column method to return the cell itself
31
+ column(n, nil).each do |cell|
34
32
  cell.alignment = alignment unless cell.alignment?
35
33
  end
36
34
  end
@@ -1,5 +1,5 @@
1
1
  module Terminal
2
2
  class Table
3
- VERSION = '3.0.1'
3
+ VERSION = '3.0.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terminal-table
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - TJ Holowaychuk
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-05-10 00:00:00.000000000 Z
12
+ date: 2021-09-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -111,7 +111,6 @@ files:
111
111
  - ".github/workflows/ci.yml"
112
112
  - ".gitignore"
113
113
  - Gemfile
114
- - Gemfile.lock
115
114
  - History.rdoc
116
115
  - LICENSE.txt
117
116
  - Manifest
data/Gemfile.lock DELETED
@@ -1,49 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- terminal-table (3.0.1)
5
- unicode-display_width (>= 1.1.1, < 3)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- coderay (1.1.3)
11
- diff-lcs (1.4.4)
12
- method_source (1.0.0)
13
- pry (0.13.1)
14
- coderay (~> 1.1)
15
- method_source (~> 1.0)
16
- rake (13.0.1)
17
- rspec (3.10.0)
18
- rspec-core (~> 3.10.0)
19
- rspec-expectations (~> 3.10.0)
20
- rspec-mocks (~> 3.10.0)
21
- rspec-core (3.10.0)
22
- rspec-support (~> 3.10.0)
23
- rspec-expectations (3.10.0)
24
- diff-lcs (>= 1.2.0, < 2.0)
25
- rspec-support (~> 3.10.0)
26
- rspec-mocks (3.10.0)
27
- diff-lcs (>= 1.2.0, < 2.0)
28
- rspec-support (~> 3.10.0)
29
- rspec-support (3.10.0)
30
- term-ansicolor (1.7.1)
31
- tins (~> 1.0)
32
- tins (1.0.1)
33
- unicode-display_width (2.0.0)
34
-
35
- PLATFORMS
36
- ruby
37
- x86_64-linux
38
-
39
- DEPENDENCIES
40
- bundler (~> 2)
41
- pry
42
- rake (~> 13.0)
43
- rspec (>= 3.0)
44
- term-ansicolor
45
- terminal-table!
46
- tins (~> 1.0.0)
47
-
48
- BUNDLED WITH
49
- 2.2.3