mediainfo-ruby 0.1.5 → 0.1.6

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.
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new("mediainfo-ruby", "0.1.5") do |p|
5
+ Echoe.new("mediainfo-ruby", "0.1.6") do |p|
6
6
  p.description = "MediaInfo Ruby Bridge. Call MediaInfo lib directly"
7
7
  p.url = "http://github.com/hackerdude/mediainfo-ruby"
8
8
  p.author = "David Martinez"
@@ -52,22 +52,22 @@ module MediaInfoRubyisms_Streams
52
52
  current = :general
53
53
  switching = true
54
54
  current_map = option_map[:general]
55
- option_defs = self.option("Info_Parameters_CSV", "").split("\r").each{|row|
55
+ option_defs = self.option("Info_Parameters_CSV", "").each_line{|row|
56
56
  if row.strip == ""
57
57
  switching = true
58
58
  else
59
59
  kv = row.split(";")
60
60
  if kv.length == 1 && switching
61
- topic = kv[0].downcase.to_sym
61
+ topic = kv[0].chomp.downcase.to_sym
62
62
  current_map = option_map[topic]
63
63
  if current_map.nil?
64
64
  option_map[topic] = current_map = {}
65
65
  end
66
66
  switching = false
67
- elsif kv.length > 1
68
- current_map[kv[0]] = kv[1] unless remove_deprecated && kv[1].nil? ? false : kv[1].include?("Deprecated")
69
67
  else
70
- # TODO Wouldn't know how to parse this. CHECK
68
+ key = kv[0]
69
+ value = kv[1].nil? ? nil : kv[1].chomp
70
+ current_map[key] = value unless remove_deprecated && kv[1].nil? ? false : kv[1].include?("Deprecated")
71
71
  end
72
72
  end
73
73
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{mediainfo-ruby}
5
- s.version = "0.1.5"
5
+ s.version = "0.1.6"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["David Martinez"]
data.tar.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- }���qI���P��wlzE��dKL�t |�۞49db� ��[�qrB3��.
2
- eQ��AQ�����y ug���=MZ��1
1
+ _��FY��` �;<~�m��-�'n�ݔٝ�w�F�'PN��
2
+ 7��9F��0Ш89\VF_tS ��)?u�$�D��(�،�K8�+�7n4���n�pخ�G$6B�VHټ�CF� �|�64�S��5ZI����.�������4 ������J+��JpS���qI�����'5�f�}�8�m��g��k-bj7Ђ��Oõ����J�����
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mediainfo-ruby
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 5
10
- version: 0.1.5
9
+ - 6
10
+ version: 0.1.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Martinez
metadata.gz.sig CHANGED
Binary file