lib/whois/record/parser/whois.nic.fr.rb in whois-3.1.1 vs lib/whois/record/parser/whois.nic.fr.rb in whois-3.1.2
- old
+ new
@@ -137,25 +137,22 @@
organization = nil
address = values["address"].join("\n")
end
end
+ updated_on = values["changed"] ? Time.utc(*values["changed"].split(" ").first.split("/").reverse) : nil
+
Record::Contact.new({
:type => type,
:id => id,
:name => name,
:organization => organization,
:address => address,
- # :city => nil,
- # :zip => nil,
- # :state => nil,
- # :country => nil,
:country_code => values["country"],
:phone => values["phone"],
:fax => values["fax-no"],
:email => values["e-mail"],
- # :created_on => nil,
- :updated_on => Time.utc(*values["changed"].split(" ").first.split("/").reverse),
+ :updated_on => updated_on,
})
end
def build_hash(tokens)
{}.tap do |hash|