kakra-rvideo 0.9.6.8 → 0.9.6.9

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.
@@ -74,7 +74,7 @@ module RVideo # :nodoc:
74
74
  RVideo.logger.info("\nNew transcoder job\n================\nTask: #{task}\nOptions: #{options.inspect}")
75
75
  parse_and_execute(task, options)
76
76
  @processed = Inspector.new(:file => options[:output_file])
77
- result = check_integrity
77
+ result = check_integrity(options[:skip_time_validations])
78
78
  RVideo.logger.info("\nFinished task. Total errors: #{@errors.size}\n")
79
79
  @total_time = Time.now - t1
80
80
  result
@@ -94,12 +94,12 @@ module RVideo # :nodoc:
94
94
  end
95
95
  end
96
96
 
97
- def check_integrity
97
+ def check_integrity(skip_time_validations = false)
98
98
  precision = 1.1
99
99
  if @processed.invalid?
100
100
  @errors << "Output file invalid"
101
101
  elsif (@processed.duration >= (original.duration * precision) or @processed.duration <= (original.duration / precision))
102
- @errors << "Original file has a duration of #{original.duration}, but processed file has a duration of #{@processed.duration}"
102
+ @errors << "Original file has a duration of #{original.duration}, but processed file has a duration of #{@processed.duration}" unless skip_time_validations
103
103
  end
104
104
  return @errors.size == 0
105
105
  end
data/rvideo.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{rvideo}
5
- s.version = "0.9.6.8"
5
+ s.version = "0.9.6.9"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Peter Boling, Jonathan Dahl (Slantwise Design), Seth Thomas Rasmussen, Kai Krakow"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kakra-rvideo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6.8
4
+ version: 0.9.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling, Jonathan Dahl (Slantwise Design), Seth Thomas Rasmussen, Kai Krakow