texttable 0.8.0 → 0.8.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/lib/texttable.rb +5 -4
- data/texttable.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca9b078035a8055ccdfca78776f872fd5b5d937c5298705c8c1119584950620f
|
4
|
+
data.tar.gz: 80bca4dbf7c0e9c954845f04acc82e6fd7581262788690077e006a57fbbea246
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 899aebab8ceffdc4b3f3e941c961298247a9da39e5a072b3b3cc82a5b236986cf9a10e613d3958dd07cf0a1e90be58955e568e7f8aa06f2ad6a140589e530f01
|
7
|
+
data.tar.gz: ac90dcfd90a623859d6b7871dc4fc292538d6e79efd16154a8ae07a99f5c63158417bc49d550644a9012ae11d9fa7ac04a72948d530cdfdc8e41739c1d22b59a
|
data/lib/texttable.rb
CHANGED
@@ -57,11 +57,12 @@ class TextTable
|
|
57
57
|
value = vals[index] = args.first
|
58
58
|
elsif index
|
59
59
|
raise "variable lookup ignores arguments" unless args.empty?
|
60
|
-
value = vals
|
61
|
-
else
|
62
|
-
|
60
|
+
value = vals&.slice(index)
|
61
|
+
# else
|
62
|
+
# value = "" # failover to ""
|
63
63
|
end
|
64
|
-
value == false ? value : (value || "")
|
64
|
+
# value == false ? value : (value || "") # failover to ""
|
65
|
+
value
|
65
66
|
end
|
66
67
|
|
67
68
|
def add(hash)
|
data/texttable.gemspec
CHANGED