lib/net/ftp/list/unknown.rb in net-ftp-list-3.2.11 vs lib/net/ftp/list/unknown.rb in net-ftp-list-3.3.0

- old
+ new

@@ -1,14 +1,11 @@ require 'net/ftp/list/parser' # If all other attempts to parse the entry fail this is the parser that is going to be used. # It might be a good idea to fail loudly. class Net::FTP::List::Unknown < Net::FTP::List::Parser - def self.parse(raw) - if Net::FTP::List.raise_on_failed_server_detection - raise Net::FTP::List::ParseError, "Could not parse #{raw} since none of the parsers was up to the task" - end + def self.parse(raw, **) + raise Net::FTP::List::ParseError, "Could not parse #{raw} since none of the parsers was up to the task" if Net::FTP::List.raise_on_failed_server_detection - emit_entry(raw, {}) + emit_entry(raw) end end -