video_screenshoter 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,12 +14,15 @@ module VideoScreenshoter
14
14
  time + chunk.first
15
15
  end
16
16
  times.each do |time|
17
- chunk_limit = chunk_limits.select { |c| time > c[:start] && time <= c[:end] }.first
18
- path = File.join(File.dirname(input), chunk_limit[:path])
19
- rel_time = time - chunk_limit[:start]
20
- cmd = command(path, output_fullpath(time), rel_time)
21
- puts cmd if verbose
22
- `#{cmd}`
17
+ if chunk_limit = chunk_limits.select { |c| time >= c[:start] && time <= c[:end] }.first
18
+ path = File.join(File.dirname(input), chunk_limit[:path])
19
+ rel_time = time - chunk_limit[:start]
20
+ cmd = command(path, output_fullpath(time), rel_time)
21
+ puts cmd if verbose
22
+ `#{cmd}`
23
+ else
24
+ puts "Time #{time} is incorrect" if verbose
25
+ end
23
26
  end
24
27
  end
25
28
 
@@ -1,3 +1,3 @@
1
1
  module VideoScreenshoter
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: video_screenshoter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-16 00:00:00.000000000 Z
12
+ date: 2013-05-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -110,7 +110,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
110
110
  version: '0'
111
111
  segments:
112
112
  - 0
113
- hash: -4324957323078991671
113
+ hash: -2399110922537615442
114
114
  required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  none: false
116
116
  requirements:
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  version: '0'
120
120
  segments:
121
121
  - 0
122
- hash: -4324957323078991671
122
+ hash: -2399110922537615442
123
123
  requirements:
124
124
  - ffmpeg
125
125
  rubyforge_project: