video_to_ascii 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  class VideoToAscii
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -33,16 +33,12 @@ class VideoToAscii
33
33
  end
34
34
 
35
35
  def capture_video
36
-
37
36
  @video_length = ask("How long would you like the video to be?", Integer)
37
+ path = File.expand_path('../bin/wacaw', File.dirname(__FILE__))
38
38
 
39
- if @video_length
40
- puts "Recording Video for #{@video_length} seconds ..."
41
- `./bin/wacaw --video --duration #{@video_length} videos/video`
42
- else
43
- puts "Recording Video for 15s ..."
44
- `./bin/wacaw --video videos/video`
45
- end
39
+ puts "Recording Video for #{@video_length} seconds ..."
40
+
41
+ `#{path} --video --duration #{@video_length} videos/video`
46
42
  end
47
43
 
48
44
  def screenshots_from_video(video)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: video_to_ascii
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: