term-slides 0.5.0 → 0.6.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: '09ce508cc1cd157ef1e91e5e73804df65b61012f82bb269cae3043b092940c54'
|
4
|
+
data.tar.gz: 3f9a184351aae31f1972e09ac72bba6d0030967c19ee5f8a9733bb27d216b1d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8e0dc70a1bdcff3c1fdf710fc264d356c8523d08c1a5778c8e08630de8e5359ce55d37dae3149bdf27abcd3d151d9c8a0d91f05738d9393150871e7a6bcd268
|
7
|
+
data.tar.gz: 624fad869065f033aaf37942fa97d1928c7dfd37652adf8d3a7bb48d916e86026b37da7b132efba5ec4d4f24ba8075c64610df384f68bdb83c24019acb1474b9
|
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
|
21
|
+
width = HighLine.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