depix 1.1.1 → 1.1.2

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.
Files changed (3) hide show
  1. data/History.txt +4 -0
  2. data/lib/depix.rb +6 -2
  3. metadata +1 -1
@@ -1,3 +1,7 @@
1
+ === 1.1.2 / 2009-12-27
2
+
3
+ * Do not try to work with timecode data if it's nil
4
+
1
5
  === 1.1.1 / 2009-12-27
2
6
 
3
7
  * Return nil for flame_reel if the header was empty
@@ -10,7 +10,7 @@ require File.dirname(__FILE__) + '/depix/editor'
10
10
 
11
11
 
12
12
  module Depix
13
- VERSION = '1.1.1'
13
+ VERSION = '1.1.2'
14
14
 
15
15
  class InvalidHeader < RuntimeError; end
16
16
 
@@ -42,7 +42,11 @@ module Depix
42
42
  # writes different rates for television and film time code
43
43
  def time_code
44
44
  framerate = television.frame_rate || film.frame_rate || DEFAULT_DPX_FPS
45
- Timecode.from_uint(television.time_code, framerate)
45
+ if television.time_code
46
+ Timecode.from_uint(television.time_code, framerate)
47
+ else
48
+ Timecode.new(0, framerate)
49
+ end
46
50
  end
47
51
 
48
52
  # Assign frame rate and timecode from a Timecode object
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: depix
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julik Tarkhanov