term-slides 0.8.0 → 0.9.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: be7097f73c2b5bd30e47b977428ca992665f2004c7a14cadd9c39f27704c7e5f
|
4
|
+
data.tar.gz: 0d78f89df16f3598fa73dce2ea1982109f3915b398e37406167b529b068724d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 442967646aee68f98a54d11f75781ff2f90acd4fb12c07fc0da3ab9bad72b0a135325e3f4a22facd63e82732e3f3666dc09b93f8998957a93eca621f8ae93f25
|
7
|
+
data.tar.gz: 9982f7e052fb2460051d8437af7f4eb1d71d5af9a35e376649a126799af875104e6f1613905ee28e55d3aaec802655c0c60f18eddeb0b9f595d07fb49dea8e03
|
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.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