terminal-table 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/History.rdoc +5 -0
- data/lib/terminal-table/table.rb +2 -4
- data/lib/terminal-table/version.rb +1 -1
- metadata +2 -3
- data/Gemfile.lock +0 -49
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6213eea6e6bf691a9594f64660d97e3c56503c43bf2a95075f62aafca2b4d130
|
4
|
+
data.tar.gz: a3511ef514b25731d1753bc695e7066ac04c76d9ce5da62ac5d8d3f6208daa3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb49c90ce6d6edbfe07c2c335b2c5bf25df41f67a3d31b4d413febebc597ce47906575e738dd05be742d948bd854948c605414ad581ea033b36099c52dd1cf36
|
7
|
+
data.tar.gz: f49a1837097b5417887ba6eddd2deaad9e3dab933a67d22b23fd6028255dfd56d0e2d327dd80c87b6a99da94a5d00e2147feed2155b37590b72284610c3b408d
|
data/.gitignore
CHANGED
data/History.rdoc
CHANGED
data/lib/terminal-table/table.rb
CHANGED
@@ -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
|
-
|
31
|
-
column(n).
|
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
|
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.
|
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-
|
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
|