terminal_slides 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/terminal_slides +0 -1
- data/lib/terminal_slides/printer.rb +6 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 227de5f2ac39e4cd59f40207d296bd6a74060ee496892dac1fc2ace78451fc03
|
4
|
+
data.tar.gz: 6ccd07873d0c33f54a5fd7edc5a65617134685b260043df13d04d94242c3a665
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1b4133ae4b3102efc68b1a20f41807964cfd2cde6022167d7830144d84c250543996347826fa46e48d770ff023fbe1a09aacbe541c48c98ee221a81fb6a602f
|
7
|
+
data.tar.gz: 6090fb1bd08ec12bafe906770ec08f825707cf026df40bb4ec6d9be6c3c10414881f0d1ee27bc26f9e9cfb8b751644e83f335fd2dc18d396270f1ff99333e219
|
data/exe/terminal_slides
CHANGED
@@ -1,7 +1,10 @@
|
|
1
|
+
require "artii"
|
1
2
|
require "base64"
|
2
3
|
|
3
4
|
module TerminalSlides
|
4
5
|
class Printer
|
6
|
+
DEFAULT_ASCII_ART = "starwars".freeze
|
7
|
+
|
5
8
|
FONTS = {
|
6
9
|
standard: 0,
|
7
10
|
bold: 1,
|
@@ -45,6 +48,9 @@ module TerminalSlides
|
|
45
48
|
Kernel.puts "\033]1337;File=inline=1:#{Base64.strict_encode64(File.open(path).read)}\a"
|
46
49
|
end
|
47
50
|
|
51
|
+
def set_ascii_art(string)
|
52
|
+
print Artii::Base.new(font: DEFAULT_ASCII_ART).asciify(string)
|
53
|
+
end
|
48
54
|
|
49
55
|
def puts(string)
|
50
56
|
color = font || :standard
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: terminal_slides
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kamil Sopata
|
@@ -9,7 +9,21 @@ autorequire:
|
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
11
|
date: 2020-03-28 00:00:00.000000000 Z
|
12
|
-
dependencies:
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: artii
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
description:
|
14
28
|
email:
|
15
29
|
executables:
|
@@ -24,7 +38,7 @@ files:
|
|
24
38
|
- lib/terminal_slides/run.rb
|
25
39
|
- lib/terminal_slides/slide_loader.rb
|
26
40
|
- lib/terminal_slides/slide_reader.rb
|
27
|
-
homepage:
|
41
|
+
homepage: https://github.com/kamilsdz/terminal-slides
|
28
42
|
licenses: []
|
29
43
|
metadata: {}
|
30
44
|
post_install_message:
|