lib/whois/record/parser/whois.nic.sn.rb in whois-2.5.1 vs lib/whois/record/parser/whois.nic.sn.rb in whois-2.6.0
- old
+ new
@@ -67,11 +67,14 @@
property_not_supported :expires_on
property_supported :registrar do
if content_for_scanner =~ /Registrar:\s+(.+)\n/
- Whois::Record::Registrar.new(:id => $1, :name => $1)
+ Whois::Record::Registrar.new(
+ :id => $1,
+ :name => $1
+ )
end
end
property_supported :registrant_contacts do
@@ -93,18 +96,18 @@
end
property_supported :nameservers do
content_for_scanner.scan(/Nameserver:\s+(.+)\n/).flatten.map do |name|
- Record::Nameserver.new(name)
+ Record::Nameserver.new(:name => name)
end
end
private
def build_contact(string, type)
- Whois::Record::Contact.new(
+ Record::Contact.new(
:type => type,
:id => string,
:name => string
)
end