lib/heirloom/archive/reader.rb in heirloom-0.3.0.rc1 vs lib/heirloom/archive/reader.rb in heirloom-0.3.0

- old
+ new

@@ -54,14 +54,14 @@ end def show query = sdb.select "select * from #{name} where itemName() = '#{id}'" items = query[id] ? query[id] : {} - r = {} - items.each_pair.map do |key,value| - r[key] = value.first + Hash.new.tap do |hash| + items.each_pair.map do |key,value| + hash[key] = value.first + end end - r end private def get_url(args)