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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ead5a372d8e5957d42ef6866502756a81f3a3f17f5876b4b04b97110dceef6f6
4
- data.tar.gz: ba19ee549185cdc979f9b49560c13955c5ebcfad525b2988d044cff80ffdd9aa
3
+ metadata.gz: 227de5f2ac39e4cd59f40207d296bd6a74060ee496892dac1fc2ace78451fc03
4
+ data.tar.gz: 6ccd07873d0c33f54a5fd7edc5a65617134685b260043df13d04d94242c3a665
5
5
  SHA512:
6
- metadata.gz: 3d63c148a389d446145a991795f7dabc0b3f2cb31d01f3b87938d25d23bd49f36ea7d9ec07c073d619c421f45d2dbd56db0870db7330aa8f6b5775a2c42dc5ae
7
- data.tar.gz: eeafa7d02e20c893849855e7f7ae17b75158158099ee66f9c8fe813eaae4e5b62dc5429209c1277fb6bd6cd80b1170750aaee7387fb5ce89d9ac6c7f010774a6
6
+ metadata.gz: c1b4133ae4b3102efc68b1a20f41807964cfd2cde6022167d7830144d84c250543996347826fa46e48d770ff023fbe1a09aacbe541c48c98ee221a81fb6a602f
7
+ data.tar.gz: 6090fb1bd08ec12bafe906770ec08f825707cf026df40bb4ec6d9be6c3c10414881f0d1ee27bc26f9e9cfb8b751644e83f335fd2dc18d396270f1ff99333e219
@@ -2,7 +2,6 @@
2
2
 
3
3
  require "terminal_slides"
4
4
 
5
-
6
5
  if ARGV[0].nil?
7
6
  puts "File name not provided! Exiting.."
8
7
  exit
@@ -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.1
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: