mxfinfo 0.0.7 → 0.1.0
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.
- checksums.yaml +4 -4
- data/Rakefile +1 -0
- data/lib/mxfinfo/version.rb +1 -1
- data/lib/mxfinfo.rb +8 -0
- data/mxfinfo.gemspec +2 -1
- data/spec/info_object_spec.rb +2 -8
- data/spec/spec_helper.rb +1 -0
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04f2a628fdfb8dcb1e11e86e810b1e1d2997b7f1
|
4
|
+
data.tar.gz: d119c5a3daceb9b5d21b6b4c5233719637337c73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0327bfcf08e67ad75439cfe96ef602f4ffd03a9d7495427404fcf62758939c8eb16bdb7e12d75ecb8a5ffab6c6ef4c0ab534de33989631daac4bb854a53ec32b
|
7
|
+
data.tar.gz: eb63696cd53097e802306e7ea7a44f2f0d253de2d4584394c6195938e1ce90db76a2cd87e5fe05de3a9d08caae5657c863858c41782c723e197c9f096e6ab4e0
|
data/Rakefile
CHANGED
data/lib/mxfinfo/version.rb
CHANGED
data/lib/mxfinfo.rb
CHANGED
@@ -3,7 +3,14 @@ require 'mxfinfo/version.rb'
|
|
3
3
|
|
4
4
|
module MXFInfo
|
5
5
|
def self.scan(path)
|
6
|
+
io = IO.new(2)
|
7
|
+
stderr = io.dup
|
8
|
+
io.reopen(IO::NULL)
|
6
9
|
InfoObject.new path
|
10
|
+
rescue => e
|
11
|
+
io.reopen stderr
|
12
|
+
stderr.close
|
13
|
+
raise e
|
7
14
|
end
|
8
15
|
|
9
16
|
class InfoObject
|
@@ -20,6 +27,7 @@ module MXFInfo
|
|
20
27
|
alias_method :channelcount, :channel_count
|
21
28
|
alias_method :c_count, :channel_count
|
22
29
|
alias_method :file_package_uid, :file_source_package_uid
|
30
|
+
alias_method :clip_edit_rate, :project_edit_rate
|
23
31
|
|
24
32
|
def render_file?
|
25
33
|
physical_package_name == "Precompute Source Mob"
|
data/mxfinfo.gemspec
CHANGED
@@ -18,7 +18,8 @@ Gem::Specification.new do |gem|
|
|
18
18
|
|
19
19
|
gem.required_ruby_version = '>= 1.9.3'
|
20
20
|
|
21
|
-
gem.add_development_dependency 'rspec', '~>
|
21
|
+
gem.add_development_dependency 'rspec', '~> 3'
|
22
|
+
gem.add_development_dependency 'rspec-its', '1.2.0'
|
22
23
|
gem.add_development_dependency 'rake-compiler', '~> 0.9'
|
23
24
|
end
|
24
25
|
|
data/spec/info_object_spec.rb
CHANGED
@@ -11,6 +11,7 @@ describe 'MXFInfo::InfoObject' do
|
|
11
11
|
its(:clip_created_at) { should eq(Time.parse('2011-05-08 22:02:53.000')) }
|
12
12
|
its(:project_edit_rate) { should eq((25/1)) }
|
13
13
|
its(:clip_duration) { should eq(287) }
|
14
|
+
its(:clip_edit_rate) { should eq((25/1)) }
|
14
15
|
its(:video_tracks) { should eq(1) }
|
15
16
|
its(:audio_tracks) { should eq(1) }
|
16
17
|
its(:clip_track_string) { should eq('V1 A1') }
|
@@ -22,7 +23,6 @@ describe 'MXFInfo::InfoObject' do
|
|
22
23
|
its(:segment_duration) { should eq(551040) }
|
23
24
|
its(:segment_offset) { should eq(0) }
|
24
25
|
its(:start_timecode) { should eq(0) }
|
25
|
-
# its_converted(:start_timecode) { should eq('00:00:00:00') }
|
26
26
|
its(:audio_sampling_rate) { should eq((48000/1)) }
|
27
27
|
its(:quantization_bits) { should eq(16) }
|
28
28
|
its(:channel_count) { should eq(1) }
|
@@ -32,11 +32,5 @@ describe 'MXFInfo::InfoObject' do
|
|
32
32
|
its(:physical_package_type) { should eq(:import) }
|
33
33
|
its(:physical_package_name) { should eq('IMG_0395.MOV') }
|
34
34
|
its(:physical_package_locator) { should eq('file:///Macintosh%20HD/Users/susannehassepass/Desktop/London%201video/IMG_0395.MOV') }
|
35
|
-
|
36
|
-
# Left-overs from the previous version (0.3.6) of mxfinfo
|
37
|
-
|
38
|
-
# its(:unc_path) { should('Macintosh HD:Users:susannehassepass:Desktop:London 1video:IMG_0395.MOV') }
|
39
|
-
# => Isn't exported from libmxf.
|
40
|
-
|
41
35
|
end
|
42
|
-
end
|
36
|
+
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mxfinfo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Dierker
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-04-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -17,14 +17,28 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
20
|
+
version: '3'
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '
|
27
|
+
version: '3'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rspec-its
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - '='
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 1.2.0
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - '='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: 1.2.0
|
28
42
|
- !ruby/object:Gem::Dependency
|
29
43
|
name: rake-compiler
|
30
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -85,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
99
|
version: '0'
|
86
100
|
requirements: []
|
87
101
|
rubyforge_project:
|
88
|
-
rubygems_version: 2.
|
102
|
+
rubygems_version: 2.5.2
|
89
103
|
signing_key:
|
90
104
|
specification_version: 4
|
91
105
|
summary: MXFinfo is a gem that wraps avidmxfinfo from libmxf in a native ruby extension.
|