mediainfo-native 0.2.1 → 0.2.2

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: 257c92b32c0c4df884743a42dda462376811d041
4
- data.tar.gz: 5d64b60a1bfc24079da558268782f3cb5e56a287
3
+ metadata.gz: a0f56b4c58101337bd45b648203546d54f092327
4
+ data.tar.gz: b81cf0c184cffefc4c1a1d63054a7d153c36f7e3
5
5
  SHA512:
6
- metadata.gz: 7208a5117c0692210934cb8f36d4c8b35b4f238badf1f9aa6e2011901487672bf210afde64d490c748b114dc8bacb3a88b6245ead621a235286325acf47a0ee6
7
- data.tar.gz: 39b534822659817a3565ec971313228fd6b6d6105ac582f4d1688c67f6df6270743602b06976eabce0f498683b46d64daf12be31f31621c05725f051622afd67
6
+ metadata.gz: f8c714cabd82f191654d64a501af61c53b8814a725e35109ea219ca343d3142fb8179715ff689f5ccbcfc01382292a2c2d45291c8f0505ab3128c5944bc3c366
7
+ data.tar.gz: 88879bd09a869d7a9c0cbb20dcbdd8386c016d97fbfc7b45f7fd4f34f03625ce0ce62c78dd20d40a71733af3738693f072d76a1bc6677251cff7246d8d6022f7
@@ -11,5 +11,9 @@ MediaInfoDLL::String value_to_ansi_string(VALUE s)
11
11
 
12
12
  VALUE ansi_string_to_value(MediaInfoDLL::String s)
13
13
  {
14
+ #ifdef RBX_RUBY_VERSION
14
15
  return rb_external_str_new_with_enc(s.c_str(), s.length(), rb_enc_find("ANSI"));
16
+ #else
17
+ return rb_external_str_new_with_enc(s.c_str(), s.length(), rb_ascii8bit_encoding());
18
+ #endif
15
19
  }
@@ -10,8 +10,16 @@ module MediaInfoNative
10
10
  mediainfo_attr_reader :format_info, 'Format_Info'
11
11
  mediainfo_attr_reader :codec, 'Codec'
12
12
  mediainfo_attr_reader :overall_bit_rate, 'OverallBitRate'
13
+ mediainfo_attr_reader :encoded_application_string, 'Encoded_Application/String'
13
14
  mediainfo_attr_reader :encoded_application, 'Encoded_Application'
14
- alias_method :writing_application, :encoded_application
15
+ alias_method :writing_application, :encoded_application_string
16
+
17
+ # Since MediaInfo v0.7.76 encoded_application is replaced by
18
+ # encoded_application_string. So lets check which one is empty.
19
+ def writing_application
20
+ encoded_application.empty? ? encoded_application_string : encoded_application
21
+ end
22
+
15
23
  mediainfo_attr_reader :encoded_library, 'Encoded_Library'
16
24
  alias_method :writing_library, :encoded_library
17
25
 
@@ -1,3 +1,3 @@
1
1
  module MediaInfoNative
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mediainfo-native
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - FlavourSys Technology GmbH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-26 00:00:00.000000000 Z
11
+ date: 2015-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler