lib/webinfo.rb in webinfo-0.1.0 vs lib/webinfo.rb in webinfo-0.1.1

- old
+ new

@@ -6,9 +6,9 @@ #addr - site address #options - {:node ,:attr} def self.get_info(addr, options = {}) response = HTTParty.get(addr) doc = Nokogiri::HTML(response) - nodes_images = doc.xpath("//#{options[:node]}") - nodes_images.map {|i| i[options[:attr]]}.compact.uniq + nodes = doc.xpath("//#{options[:node]}") + nodes.map {|i| i[options[:attr]]}.compact.uniq end end