lib/whois/scanners/whois.denic.de.rb in whois-parser-1.2.0 vs lib/whois/scanners/whois.denic.de.rb in whois-parser-2.0.0

- old
+ new

@@ -32,11 +32,11 @@ tokenizer :scan_disclaimer do if @input.match?(/% Copyright \(c\) *\d{4} by DENIC\n/) @input.scan_until(/% Terms and Conditions of Use\n/) lines = [] - while @input.match?(/%/) && @input.scan(/%(.*)\n/) + while @input.match?(/%/) && @input.scan(/%(.*)\n/) # rubocop:disable Style/WhileUntilModifier lines << @input[1].strip unless @input[1].strip == "" end @ast["Disclaimer"] = lines.join(" ") end end @@ -63,11 +63,11 @@ "country_code" => contact['CountryCode'], "phone" => contact['Phone'], "fax" => contact['Fax'], "email" => contact['Email'], "created_on" => nil, - "updated_on" => contact['Changed'] + "updated_on" => contact['Changed'], } end end tokenizer :skip_db_time do @@ -76,10 +76,10 @@ private def parse_pair(store) - if @input.scan(/([^ \[]*):(.*)\n/) + if @input.scan(/([^ \[]*):(.*)\n/) key, value = @input[1].strip, @input[2].strip if store[key].nil? store[key] = value else store[key].is_a?(Array) || store[key] = [store[key]]