Permalink
Browse files

Removed parser aliases.

The alias to the previous host parser will no longer be created in case a registry changes host.
  • Loading branch information...
1 parent ba34efd commit 3bc107dfc8e05466523f47f27afb81fc0c651210 @weppos committed Nov 4, 2012
View
@@ -43,6 +43,8 @@
- CHANGED: :referral_whois and :referral_url no longer exist as properties.
+- CHANGED: Removed parser aliases.
+
- FIXED: whois.domainregistry.ie should support status `Active - LOCKED`.
- FIXED: whois.nic.uk fails to parse registrars without URL (GH-188).
@@ -1,23 +0,0 @@
-#--
-# Ruby Whois
-#
-# An intelligent pure Ruby WHOIS client and parser.
-#
-# Copyright (c) 2009-2012 Simone Carletti <weppos@weppos.net>
-#++
-
-
-require 'whois/record/parser/whois.nic.net.sa'
-
-
-module Whois
- class Record
- class Parser
-
- # Parser for the <tt>saudinic.net.sa</tt> server.
- # Aliases the <tt>whois.nic.net.sa</tt> parser.
- SaudinicNetSa = WhoisNicNetSa
-
- end
- end
-end
@@ -1,23 +0,0 @@
-#--
-# Ruby Whois
-#
-# An intelligent pure Ruby WHOIS client and parser.
-#
-# Copyright (c) 2009-2012 Simone Carletti <weppos@weppos.net>
-#++
-
-
-require 'whois/record/parser/whois.audns.net.au'
-
-
-module Whois
- class Record
- class Parser
-
- # Parser for the <tt>whois.ausregistry.net.au</tt> server.
- # Aliases the <tt>whois.audns.net.au</tt>.
- WhoisAusregistryNetAu = WhoisAudnsNetAu
-
- end
- end
-end
@@ -1,25 +0,0 @@
-#--
-# Ruby Whois
-#
-# An intelligent pure Ruby WHOIS client and parser.
-#
-# Copyright (c) 2009-2012 Simone Carletti <weppos@weppos.net>
-#++
-
-
-require 'whois/record/parser/whois.centralnic.com'
-
-
-module Whois
- class Record
- class Parser
-
- # Parser for the whois.centralnic.net server.
- #
- # It aliases the whois.centralnic.com parser.
- class WhoisCentralnicNet < WhoisCentralnicCom
- end
-
- end
- end
-end
@@ -1,23 +0,0 @@
-#--
-# Ruby Whois
-#
-# An intelligent pure Ruby WHOIS client and parser.
-#
-# Copyright (c) 2009-2012 Simone Carletti <weppos@weppos.net>
-#++
-
-
-require 'whois/record/parser/whois.cnnic.cn'
-
-
-module Whois
- class Record
- class Parser
-
- # Parser for the <tt>whois.cnnic.net.cn</tt> server.
- # Aliases the <tt>whois.cnnic.cn</tt> parser.
- WhoisCnnicNetCn = WhoisCnnicCn
-
- end
- end
-end
@@ -1,24 +0,0 @@
-#--
-# Ruby Whois
-#
-# An intelligent pure Ruby WHOIS client and parser.
-#
-# Copyright (c) 2009-2012 Simone Carletti <weppos@weppos.net>
-#++
-
-
-require 'whois/record/parser/whois.fi'
-
-
-module Whois
- class Record
- class Parser
-
- # Parser for the whois.ficora.fi server.
- #
- # It aliases the whois.fi parser.
- WhoisFicoraFi = WhoisFi
-
- end
- end
-end
@@ -1,23 +0,0 @@
-#--
-# Ruby Whois
-#
-# An intelligent pure Ruby WHOIS client and parser.
-#
-# Copyright (c) 2009-2012 Simone Carletti <weppos@weppos.net>
-#++
-
-
-require 'whois/record/parser/whois.hkirc.hk'
-
-
-module Whois
- class Record
- class Parser
-
- # Parser for the <tt>whois.hkdnr.net.hk</tt> server.
- # Aliases the <tt>whois.hkirc.hk</tt> parser.
- WhoisHkdnrNetHk = WhoisHkircHk
-
- end
- end
-end
@@ -1,24 +0,0 @@
-#--
-# Ruby Whois
-#
-# An intelligent pure Ruby WHOIS client and parser.
-#
-# Copyright (c) 2009-2012 Simone Carletti <weppos@weppos.net>
-#++
-
-
-require 'whois/record/parser/whois.kr'
-
-
-module Whois
- class Record
- class Parser
-
- # Parser for the whois.nic.or.kr server.
- #
- # It aliases the whois.kr parser.
- WhoisNicOrKr = WhoisKr
-
- end
- end
-end
@@ -1,23 +0,0 @@
-#--
-# Ruby Whois
-#
-# An intelligent pure Ruby WHOIS client and parser.
-#
-# Copyright (c) 2009-2012 Simone Carletti <weppos@weppos.net>
-#++
-
-
-require 'whois/record/parser/whois.pir.org.rb'
-
-
-module Whois
- class Record
- class Parser
-
- # Parser for the <tt>whois.publicinterestregistry.net</tt> server.
- # Aliases the <tt>whois.pir.org</tt> parser.
- WhoisPublicinterestregistryNet = WhoisPirOrg
-
- end
- end
-end
@@ -1,23 +0,0 @@
-#--
-# Ruby Whois
-#
-# An intelligent pure Ruby WHOIS client and parser.
-#
-# Copyright (c) 2009-2012 Simone Carletti <weppos@weppos.net>
-#++
-
-
-require 'whois/record/parser/whois.tcinet.ru.rb'
-
-
-module Whois
- class Record
- class Parser
-
- # Parser for the <tt>whois.ripn.net</tt> server.
- # Aliases the <tt>whois.tcinet.ru</tt> parser.
- WhoisRipnNet = WhoisTcinetRu
-
- end
- end
-end
@@ -1,60 +0,0 @@
-# encoding: utf-8
-
-# This file is autogenerated. Do not edit it manually.
-# If you want change the content of this file, edit
-#
-# /spec/fixtures/responses/whois.ficora.fi/status_available.expected
-#
-# and regenerate the tests with the following rake task
-#
-# $ rake spec:generate
-#
-
-require 'spec_helper'
-require 'whois/record/parser/whois.ficora.fi.rb'
-
-describe Whois::Record::Parser::WhoisFicoraFi, "status_available.expected" do
-
- before(:each) do
- file = fixture("responses", "whois.ficora.fi/status_available.txt")
- part = Whois::Record::Part.new(:body => File.read(file))
- @parser = klass.new(part)
- end
-
- describe "#status" do
- it do
- @parser.status.should == :available
- end
- end
- describe "#available?" do
- it do
- @parser.available?.should == true
- end
- end
- describe "#registered?" do
- it do
- @parser.registered?.should == false
- end
- end
- describe "#created_on" do
- it do
- @parser.created_on.should == nil
- end
- end
- describe "#updated_on" do
- it do
- lambda { @parser.updated_on }.should raise_error(Whois::PropertyNotSupported)
- end
- end
- describe "#expires_on" do
- it do
- @parser.expires_on.should == nil
- end
- end
- describe "#nameservers" do
- it do
- @parser.nameservers.should be_a(Array)
- @parser.nameservers.should == []
- end
- end
-end
@@ -1,70 +0,0 @@
-# encoding: utf-8
-
-# This file is autogenerated. Do not edit it manually.
-# If you want change the content of this file, edit
-#
-# /spec/fixtures/responses/whois.ficora.fi/status_registered.expected
-#
-# and regenerate the tests with the following rake task
-#
-# $ rake spec:generate
-#
-
-require 'spec_helper'
-require 'whois/record/parser/whois.ficora.fi.rb'
-
-describe Whois::Record::Parser::WhoisFicoraFi, "status_registered.expected" do
-
- before(:each) do
- file = fixture("responses", "whois.ficora.fi/status_registered.txt")
- part = Whois::Record::Part.new(:body => File.read(file))
- @parser = klass.new(part)
- end
-
- describe "#status" do
- it do
- @parser.status.should == :registered
- end
- end
- describe "#available?" do
- it do
- @parser.available?.should == false
- end
- end
- describe "#registered?" do
- it do
- @parser.registered?.should == true
- end
- end
- describe "#created_on" do
- it do
- @parser.created_on.should be_a(Time)
- @parser.created_on.should == Time.parse("2006-06-30")
- end
- end
- describe "#updated_on" do
- it do
- lambda { @parser.updated_on }.should raise_error(Whois::PropertyNotSupported)
- end
- end
- describe "#expires_on" do
- it do
- @parser.expires_on.should be_a(Time)
- @parser.expires_on.should == Time.parse("2012-07-04")
- end
- end
- describe "#nameservers" do
- it do
- @parser.nameservers.should be_a(Array)
- @parser.nameservers.should have(4).items
- @parser.nameservers[0].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[0].name.should == "ns1.google.com"
- @parser.nameservers[1].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[1].name.should == "ns2.google.com"
- @parser.nameservers[2].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[2].name.should == "ns3.google.com"
- @parser.nameservers[3].should be_a(Whois::Record::Nameserver)
- @parser.nameservers[3].name.should == "ns4.google.com"
- end
- end
-end

0 comments on commit 3bc107d

Please sign in to comment.