term-slides 0.17.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +2 -1
- data/lib/term-slides.rb +4 -3
- data/lib/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6d1234ca33a415bca5dd9aba62741d7f2c4f9b70
|
4
|
+
data.tar.gz: 11b0b665445477f48285ed678dda8f8647562246
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90c03ce724df9f639cbda8eeb4a33bebd5e10b1cc9f6043e16e051e6af78f269e254680b0dcf34daf736ee7847db8ee7cbd4283a32f3412ef34780a5c2d3316d
|
7
|
+
data.tar.gz: 90448db815c28ab0a7970efb2386b7bf9f8fbf588208ac0f3b9b386d9f01da90f6a467f97cdec7b9da3a9ea00a53c5fa641f5b5e612de415f4522d1face66f06
|
data/README.md
CHANGED
@@ -47,7 +47,8 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
47
47
|
|
48
48
|
## Contributing
|
49
49
|
|
50
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/term-slides.
|
50
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/term-slides.
|
51
|
+
This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
51
52
|
|
52
53
|
## License
|
53
54
|
|
data/lib/term-slides.rb
CHANGED
@@ -11,6 +11,7 @@ module TermSlides
|
|
11
11
|
require 'tempfile'
|
12
12
|
require 'os'
|
13
13
|
require 'term-images'
|
14
|
+
require 'tmpdir'
|
14
15
|
|
15
16
|
module MakeMakefile::Logging
|
16
17
|
@logfile = File::NULL
|
@@ -75,14 +76,14 @@ module TermSlides
|
|
75
76
|
puts
|
76
77
|
end
|
77
78
|
def render_slide slide
|
79
|
+
puts "----"
|
80
|
+
puts
|
78
81
|
puts
|
79
82
|
puts slide.name
|
80
83
|
puts slide.name.gsub(/./, "=")
|
81
84
|
puts
|
82
85
|
slide.content.each { |c| c.render }
|
83
86
|
puts
|
84
|
-
puts "----"
|
85
|
-
puts
|
86
87
|
end
|
87
88
|
end
|
88
89
|
|
@@ -136,7 +137,7 @@ module TermSlides
|
|
136
137
|
end
|
137
138
|
def build
|
138
139
|
$i ||= 0
|
139
|
-
path =
|
140
|
+
path = Dir.tmpdir() + "/term_slide_graph#{$i}.png"
|
140
141
|
dot = 'dot'
|
141
142
|
if find_executable dot
|
142
143
|
`echo "#{@dot.gsub('"', '\\"')}" | #{dot} -Tpng > #{path}`
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: term-slides
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yazgoo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -192,7 +192,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
192
|
- !ruby/object:Gem::Version
|
193
193
|
version: '0'
|
194
194
|
requirements: []
|
195
|
-
|
195
|
+
rubyforge_project:
|
196
|
+
rubygems_version: 2.6.14
|
196
197
|
signing_key:
|
197
198
|
specification_version: 4
|
198
199
|
summary: run presentations in your terminal
|