mxfinfo 0.1.2 → 0.1.3

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
- SHA1:
3
- metadata.gz: 0e4abd9b37563e6d66e69ec0aa294f371da985ef
4
- data.tar.gz: 8f928802c08546255e33dbfcb980b3be3aab80bd
2
+ SHA256:
3
+ metadata.gz: 40c3818cd8093fed50a65570f8e79c90aa5239c26faa6eaf4e88896452ffc670
4
+ data.tar.gz: 3726fef5774780d8e09a5afbdd8d16027800cad5247eb74c847c36e64920e095
5
5
  SHA512:
6
- metadata.gz: 167098a4a1b25c1d5a4369a9f20ad42406b2d6c30ec20c2faa70df3b6560be1f61df60737c172ac87a9e3ec576ddeedc59cc8702840418223f20e59d2d69b542
7
- data.tar.gz: f8e9f42b9b442acf1a54408723db8b516fc9d9b4f3c629f783964ac318a2f9390a907ec39ce6f0e9cce9d1601960aec5ffa8f727004717c5d4f85d165a045f3f
6
+ metadata.gz: 14f9e195f73eaf3ae355adec02a6411bcfd70a26d81d9d519a64961771509ac0c4f1f22931a1a2367993069a0211befdd51269efa694332dc5b94a75b0499c33
7
+ data.tar.gz: 956d1a30dfb4a3b2cceae263407a6f8130e0da14628e3267c0f51bc9ad0f99bb741943c5a1a8a989b347b773420128bd1df0511cf2cb9fc82b83a136c7293e78
@@ -295,7 +295,7 @@ void Init_mxfinfo()
295
295
  c_infoobject = rb_define_class_under(m_mxfinfo, "InfoObject", rb_cObject);
296
296
  rb_define_singleton_method(c_infoobject, "new", cio_new, 1);
297
297
 
298
- rb_define_method(c_infoobject, "clip_name", cio_get_clip_name, 0);
298
+ rb_define_method(c_infoobject, "_clip_name", cio_get_clip_name, 0);
299
299
  rb_define_method(c_infoobject, "project_name", cio_get_project_name, 0);
300
300
  rb_define_method(c_infoobject, "clip_created", cio_get_clip_created, 0);
301
301
  rb_define_method(c_infoobject, "project_edit_rate", cio_get_project_edit_rate, 0);
@@ -32,5 +32,9 @@ module MXFInfo
32
32
  def render_file?
33
33
  physical_package_name == "Precompute Source Mob"
34
34
  end
35
+
36
+ def clip_name
37
+ _clip_name.force_encoding('UTF-8')
38
+ end
35
39
  end
36
40
  end
@@ -1,4 +1,4 @@
1
1
  module MXFInfo
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
4
4
 
@@ -1,4 +1,5 @@
1
1
  require 'spec_helper'
2
+ require 'time'
2
3
 
3
4
  describe 'MXFInfo::InfoObject' do
4
5
  context 'when created from an valid MXF file' do
@@ -20,7 +20,11 @@ describe 'MXFInfo' do
20
20
  it 'should return an InfoObject instance' do
21
21
  expect(MXFInfo.scan File.expand_path('../fixtures/IMG_0395.MOV.A14DC7130D.mxf', __FILE__)).to be_a(MXFInfo::InfoObject)
22
22
  end
23
- end
23
+
24
+ it 'should return an UTF-8 clip_name' do
25
+ expect(MXFInfo.scan(File.expand_path('../fixtures/IMG_0395.MOV.A14DC7130D.mxf', __FILE__)).clip_name.encoding).to eq(Encoding::UTF_8)
26
+ end
27
+ end
24
28
  end
25
29
  end
26
30
 
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.1.2
4
+ version: 0.1.3
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: 2018-01-16 00:00:00.000000000 Z
12
+ date: 2018-07-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  version: '0'
100
100
  requirements: []
101
101
  rubyforge_project:
102
- rubygems_version: 2.6.11
102
+ rubygems_version: 2.7.6
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: MXFinfo is a gem that wraps avidmxfinfo from libmxf in a native ruby extension.