term-slides 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/term-slides.rb +1 -1
- data/lib/version.rb +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: e15671f37e292b5aabed6dc8b1767a80d1936ec352d0569eb3fbd259d59506bb
|
4
|
+
data.tar.gz: 15c29d40e1aa9a859c5e5adf8085cec271e7c326567ab416faaa2f5587ba918b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 149144af612d53f62269b740d15cb8e9b9c3c15d6674168ccc077b22c7608e303f0ae9c4464800c6484750f33db7406d17c18f2ef26cb11c2854b066408baaab
|
7
|
+
data.tar.gz: 59107c50f4fd0a04d9c00e2fccbd00ffca9e2c2e99ddd762894d8dd0d9f24cd42954ade82f962ec57a3a5c1bf12db7ca8abd6df0871c7e1f9878283d85c83d65
|
data/lib/term-slides.rb
CHANGED
@@ -18,7 +18,7 @@ module TermSlide
|
|
18
18
|
puts center(TTY::Table.new(table.headers, table.rows).render(:unicode))
|
19
19
|
end
|
20
20
|
def center text
|
21
|
-
width = HighLine.terminal_size.first
|
21
|
+
width = HighLine.terminal.terminal_size.first
|
22
22
|
text.split("\n").map { |x| x.center(width) }.join("\n")
|
23
23
|
end
|
24
24
|
def render_text text
|
data/lib/version.rb
CHANGED