videojoiner 0.0.3 → 0.0.4
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.
- data/VERSION +1 -1
- data/lib/videojoiner/ffmpeg/joiner_process.rb +1 -1
- data/lib/videojoiner/joiner.rb +1 -1
- data/spec/joiner_spec.rb +5 -0
- data/videojoiner.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
@@ -20,7 +20,7 @@ module Videojoiner
|
|
20
20
|
|
21
21
|
def make_ffmpeg_config( video_list, config_file )
|
22
22
|
File.open( "#{config_file}","w" ) do |file|
|
23
|
-
video_list.each_pair{ |source,
|
23
|
+
video_list.each_pair{ |source, value| file.puts( "file '#{source}'" ) unless value[ :status ] == "invalid" }
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
data/lib/videojoiner/joiner.rb
CHANGED
@@ -138,7 +138,7 @@ module Videojoiner
|
|
138
138
|
if inspector && ( inspector.valid? ) && ( inspector.duration > 0 )
|
139
139
|
output.store( source, { status: 'valid', size: File.size( source ) } )
|
140
140
|
else
|
141
|
-
output.store( source, 'invalid' )
|
141
|
+
output.store( source, { status: 'invalid' } )
|
142
142
|
end
|
143
143
|
end
|
144
144
|
output
|
data/spec/joiner_spec.rb
CHANGED
@@ -21,6 +21,11 @@ describe Videojoiner::FFMpeg::Joiner do
|
|
21
21
|
it "should return false when fetching an unexistent joiner job" do
|
22
22
|
Videojoiner::FFMpeg::Joiner.fetch( "unexistent_job" ).should be_false
|
23
23
|
end
|
24
|
+
|
25
|
+
it "should return 0 when getting the size of a joiner job with incorrect files only" do
|
26
|
+
@joiner = Videojoiner::FFMpeg::Joiner.new( "test", [ "features/support/unknown_format.mp4" ] )
|
27
|
+
@joiner.size.should be(0)
|
28
|
+
end
|
24
29
|
end
|
25
30
|
|
26
31
|
|
data/videojoiner.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "videojoiner"
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Rafael Perez", "Luis Ciudad"]
|
12
|
-
s.date = "2013-01-
|
12
|
+
s.date = "2013-01-29"
|
13
13
|
s.description = "This gem contains modules to create a single video file using a set of videos as input, via ffmpeg concat demuxer."
|
14
14
|
s.email = ["rperez@nosolosoftware.biz", "lciudad@nosolosoftware.biz"]
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: videojoiner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-01-
|
13
|
+
date: 2013-01-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: runnable
|
@@ -348,7 +348,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
348
348
|
version: '0'
|
349
349
|
segments:
|
350
350
|
- 0
|
351
|
-
hash:
|
351
|
+
hash: 2218664491050875539
|
352
352
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
353
353
|
none: false
|
354
354
|
requirements:
|