mxfinfo 0.0.7 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ce5a7260ebc7d0657a16a137f2ce53cdb7fe663
4
- data.tar.gz: fbbd22481926952429b5dc6f6a38f0ba2b2fd4cd
3
+ metadata.gz: 04f2a628fdfb8dcb1e11e86e810b1e1d2997b7f1
4
+ data.tar.gz: d119c5a3daceb9b5d21b6b4c5233719637337c73
5
5
  SHA512:
6
- metadata.gz: eb70c65927e434c773ace50587b1027d6c390e6f06cbd1f92d27f5bae6a4289971507f6622a83bf97ce4a14aef0932c8b1bc8ec070cded2c9de6350bde5a294c
7
- data.tar.gz: 37e75c0627ca9792606ee3bbd8a7db8d60c03ff03144355e269ca40e8cbe7e08d40143c1201295f17785b43c7e5a8b9fc6564aae7f274d365b13beb8ca565cd4
6
+ metadata.gz: 0327bfcf08e67ad75439cfe96ef602f4ffd03a9d7495427404fcf62758939c8eb16bdb7e12d75ecb8a5ffab6c6ef4c0ab534de33989631daac4bb854a53ec32b
7
+ data.tar.gz: eb63696cd53097e802306e7ea7a44f2f0d253de2d4584394c6195938e1ce90db76a2cd87e5fe05de3a9d08caae5657c863858c41782c723e197c9f096e6ab4e0
data/Rakefile CHANGED
@@ -3,4 +3,5 @@ require 'rspec/core/rake_task'
3
3
  require 'rake/extensiontask'
4
4
 
5
5
  RSpec::Core::RakeTask.new('spec')
6
+ task spec: [:compile]
6
7
  Rake::ExtensionTask.new('mxfinfo')
@@ -1,4 +1,4 @@
1
1
  module MXFInfo
2
- VERSION = '0.0.7'
2
+ VERSION = '0.1.0'
3
3
  end
4
4
 
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', '~> 2.14'
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
 
@@ -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
@@ -1,4 +1,5 @@
1
1
  require 'mxfinfo'
2
+ require 'rspec/its'
2
3
 
3
4
  RSpec.configure do |config|
4
5
  config.order = 'random'
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.7
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: 2014-07-17 00:00:00.000000000 Z
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: '2.14'
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: '2.14'
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.2.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.