lib/mojo_magick/util/parser.rb in mojo_magick-0.5.2 vs lib/mojo_magick/util/parser.rb in mojo_magick-0.5.3
- old
+ new
@@ -34,9 +34,10 @@
resources = header.strip.split
limits = data.strip.split
actual_values = {}
readable_values = {}
+
resources.each_index do |i|
resource = resources[i].downcase.to_sym
scale = limits[i].match(%r{[a-z]+$}) || []
value = limits[i].match(%r{^[0-9]+})
unscaled_value = value ? value[0].to_i : -1