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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 03a27ee483431ddf603b668e15df223d15bf9a15f7be54463bb1f24a96275398
4
- data.tar.gz: 03b22ebf0fd115fe8c02751b90ab62f3dce8d0a98127a18aba7af38513de20aa
2
+ SHA1:
3
+ metadata.gz: 6d1234ca33a415bca5dd9aba62741d7f2c4f9b70
4
+ data.tar.gz: 11b0b665445477f48285ed678dda8f8647562246
5
5
  SHA512:
6
- metadata.gz: 4927fe553e068ec2ced3d08130dc3a9ca734cea178efe247d64f6fc973cf2d1fff9ea8caa4e355c7a9534ab262f7c8c59f8e4e481b3e8ed8af62554395ef798e
7
- data.tar.gz: 6913dc595f17f621ae392b307a3f00b3c807cd7d8f8dcc59dcd82fba255981fdc66f98b234646390e809b7c37c13fa264de5b182a7dd0d4a1c3b71839fac1552
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. 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.
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 = Tempfile.new(['graph', ".png"]).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
@@ -1,5 +1,5 @@
1
1
  module Term
2
2
  module Slides
3
- VERSION = "0.17.0"
3
+ VERSION = "0.18.0"
4
4
  end
5
5
  end
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.17.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-04-13 00:00:00.000000000 Z
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
- rubygems_version: 3.0.3
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