lib/audio_monster/monster.rb in audio_monster-1.0.3 vs lib/audio_monster/monster.rb in audio_monster-1.0.4

- old
+ new

@@ -42,13 +42,14 @@ lines = out.split("\n").map(&:strip).compact.map { |o| o.split(":").map(&:strip) } group = nil info = {} lines.each do |i| if i.length == 1 && i[0].length > 0 - group = i[0].downcase.gsub(' ', '_') + group = i[0].downcase.gsub(' ', '_').to_sym info[group] ||= {} elsif i.length == 2 - info[group][i[0].downcase.gsub(' ', '_')] = i[1].to_f + key = i[0].downcase.gsub(' ', '_').to_sym + info[group][key] = i[1].to_f end end info end