rvideo 0.9.2 → 0.9.3

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.
@@ -1,3 +1,8 @@
1
+ == 0.9.3 2007-10-30
2
+
3
+ One minor enhancement:
4
+ * Reraise all unhandled RVideo exceptions as TranscoderErrors
5
+
1
6
  == 0.9.2 2007-10-30
2
7
 
3
8
  One minor bug fix:
@@ -17,5 +17,8 @@ module RVideo
17
17
 
18
18
  class ParameterError < TranscoderError
19
19
  end
20
+
21
+ class UnknownError < TranscoderError
22
+ end
20
23
  end
21
24
  end
@@ -91,6 +91,11 @@ module RVideo # :nodoc:
91
91
  Transcoder.logger.info("\nFinished task. Total errors: #{@errors.size}\n")
92
92
  @total_time = Time.now - t1
93
93
  result
94
+ rescue TranscoderError => e
95
+ raise e
96
+ rescue Exception => e
97
+ Transcoder.logger.error("[ERROR] Unhandled RVideo exception: #{e.class} - #{e.message}\n#{e.backtrace}")
98
+ raise TranscoderError::UnknownError, "#{e.class} - #{e.message}"
94
99
  end
95
100
 
96
101
  private
@@ -2,7 +2,7 @@ module Rvideo #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 9
5
- TINY = 2
5
+ TINY = 3
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -133,7 +133,7 @@ module RVideo
133
133
  [String, 1, 1.0, true, nil, :foo].each do |obj|
134
134
  lambda {
135
135
  @transcoder.execute(obj)
136
- }.should raise_error(ArgumentError, /first argument must/)
136
+ }.should raise_error(TranscoderError::UnknownError, /ArgumentError.*first/)
137
137
  end
138
138
  end
139
139
  end
@@ -35,7 +35,7 @@
35
35
  <h1>Ruby Video Processing</h1>
36
36
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/rvideo"; return false'>
37
37
  <p>Get Version</p>
38
- <a href="http://rubyforge.org/projects/rvideo" class="numbers">0.9.2</a>
38
+ <a href="http://rubyforge.org/projects/rvideo" class="numbers">0.9.3</a>
39
39
  </div>
40
40
  <h1>&#x2192; &#8216;rvideo&#8217;</h1>
41
41
 
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: rvideo
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.9.2
6
+ version: 0.9.3
7
7
  date: 2007-10-30 00:00:00 -05:00
8
8
  summary: Inspect and process video or audio files
9
9
  require_paths: