lib/snmp/open/file_reader.rb in snmp-open-0.1.2 vs lib/snmp/open/file_reader.rb in snmp-open-0.1.3

- old
+ new

@@ -21,10 +21,10 @@ end def get(oids) return enum_for(:get, oids) unless block_given? texts = oids.map { |o| File.read(File.join(@directory, 'get', o)) } - Parser.new(oids).parse(texts).each { |*args| yield(*args) } + Parser.new(oids).parse(texts).each { |arg, *| yield(arg) } rescue Errno::ENOENT => err if @warnings oids.each do |oid| warn "#{@command_generator.cli(:get, oid)} > get/#{oid}" end