Permalink
Browse files

Merge branch 'whois.nic.pw'

  • Loading branch information...
weppos committed Nov 9, 2012
2 parents 9d680a8 + f0b347f commit 2afaa8d8c966ecb37558a91e2452d5673e5149a8
View
@@ -5,12 +5,16 @@
- SERVER: Updated .HN TLD server.
-* SERVER: Added .XN--MGBX4CD0AB (.مليسيا, Malaysia) IDN TLD server.
+- SERVER: Added .XN--MGBX4CD0AB (.مليسيا, Malaysia) IDN TLD server.
+
+- SERVER: Updated .PW TLD server.
- NEW: ruby-whois learned the -h option to pass whois hostname on the fly
- NEW: Ability to pass a custom query_handler to the Server adapter (GH-189)
+- NEW: Added full whois.nic.pw parser.
+
- CHANGED: Dropped support for Ruby 1.8
- CHANGED: Renamed Whois::Record::Scanners::Ast to Renamed Whois::Record::Scanners::Nodable
@@ -247,7 +247,7 @@
Whois::Server.define :tld, ".pr", "whois.nic.pr"
Whois::Server.define :tld, ".ps", "whois.pnina.ps"
Whois::Server.define :tld, ".pt", "whois.dns.pt"
-Whois::Server.define :tld, ".pw", nil, { :adapter => :none }
+Whois::Server.define :tld, ".pw", "whois.nic.pw"
Whois::Server.define :tld, ".py", nil, { :adapter => :web, :url => "http://www.nic.py/consultas.html" }
Whois::Server.define :tld, ".qa", "whois.registry.qa"
Whois::Server.define :tld, ".re", "whois.nic.fr"
@@ -19,7 +19,8 @@ class Parser
#
# It aliases the whois.centralnic.com parser because
# the .LA TLD is powered by Centralnic.
- WhoisNicLa = WhoisCentralnicCom
+ class WhoisNicLa < WhoisCentralnicCom
+ end
end
end
@@ -0,0 +1,27 @@
+#--
+# Ruby Whois
+#
+# An intelligent pure Ruby WHOIS client and parser.
+#
+# Copyright (c) 2009-2012 Simone Carletti <weppos@weppos.net>
+#++
+
+
+require 'whois/record/parser/base'
+require 'whois/record/parser/whois.centralnic.com.rb'
+
+
+module Whois
+ class Record
+ class Parser
+
+ # Parser for the whois.nic.pw server.
+ #
+ # It aliases the whois.centralnic.com parser because
+ # the .PW TLD is powered by Centralnic.
+ class WhoisNicPw < WhoisCentralnicCom
+ end
+
+ end
+ end
+end
@@ -0,0 +1,50 @@
+#disclaimer
+ should: %s == nil
+
+
+#domain
+ should: %s == nil
+
+#domain_id
+ should: %s == nil
+
+
+#status
+ should: %s == []
+
+#available?
+ should: %s == true
+
+#registered?
+ should: %s == false
+
+
+#created_on
+ should: %s == nil
+
+#updated_on
+ should: %s == nil
+
+#expires_on
+ should: %s == nil
+
+
+#registrar
+ should: %s == nil
+
+#registrant_contacts
+ should: %s CLASS(array)
+ should: %s == []
+
+#admin_contacts
+ should: %s CLASS(array)
+ should: %s == []
+
+#technical_contacts
+ should: %s CLASS(array)
+ should: %s == []
+
+
+#nameservers
+ should: %s CLASS(array)
+ should: %s == []
@@ -0,0 +1 @@
+DOMAIN NOT FOUND
@@ -0,0 +1,112 @@
+#disclaimer
+ should: %s == "This whois service is provided by CentralNic Ltd and only contains information pertaining to Internet domain names we have registered for our customers. By using this service you are agreeing (1) not to use any information presented here for any purpose other than determining ownership of domain names, (2) not to store or reproduce this data in any way, (3) not to use any high-volume, automated, electronic processes to obtain data from this service. Abuse of this service is monitored and actions in contravention of these terms will result in being permanently blacklisted. All data is (c) CentralNic Ltd https://www.centralnic.com/"
+
+
+#domain
+ should: %s == "google.pw"
+
+#domain_id
+ should: %s == "CNIC-DO949924"
+
+
+#status
+ should: %s == ["OK"]
+
+#available?
+ should: %s == false
+
+#registered?
+ should: %s == true
+
+
+#created_on
+ should: %s CLASS(time)
+ should: %s == Time.parse("2012-10-12 10:19:46 UTC")
+
+#updated_on
+ should: %s == nil
+
+#expires_on
+ should: %s CLASS(time)
+ should: %s == Time.parse("2015-02-10 23:59:59 UTC")
+
+
+#registrar
+ should: %s CLASS(registrar)
+ should: %s.id == "H135150"
+ should: %s.name == nil
+ should: %s.organization == "Encirca Inc."
+ should: %s.url == "www.encirca.com"
+
+#registrant_contacts
+ should: %s CLASS(array)
+ should: %s SIZE(1)
+ should: %s[0] CLASS(contact)
+ should: %s[0].type == Whois::Record::Contact::TYPE_REGISTRANT
+ should: %s[0].id == "ENCIRCA-19975"
+ should: %s[0].name == "Markmonitor Inc. CCOPS"
+ should: %s[0].organization == nil
+ should: %s[0].address == "10400 Overland Road PMB 155"
+ should: %s[0].city == "Boise"
+ should: %s[0].zip == "83709"
+ should: %s[0].state == "ID"
+ should: %s[0].country == nil
+ should: %s[0].country_code == "US"
+ should: %s[0].phone == "+1.2083895740"
+ should: %s[0].fax == "+1.2083895771"
+ should: %s[0].email == "ccops@markmonitor.com"
+
+#admin_contacts
+ should: %s CLASS(array)
+ should: %s SIZE(1)
+ should: %s[0] CLASS(contact)
+ should: %s[0].type == Whois::Record::Contact::TYPE_ADMIN
+ should: %s[0].id == "ENCIRCA-19975"
+ should: %s[0].name == "Markmonitor Inc. CCOPS"
+ should: %s[0].organization == nil
+ should: %s[0].address == "10400 Overland Road PMB 155"
+ should: %s[0].city == "Boise"
+ should: %s[0].zip == "83709"
+ should: %s[0].state == "ID"
+ should: %s[0].country == nil
+ should: %s[0].country_code == "US"
+ should: %s[0].phone == "+1.2083895740"
+ should: %s[0].fax == "+1.2083895771"
+ should: %s[0].email == "ccops@markmonitor.com"
+
+#technical_contacts
+ should: %s CLASS(array)
+ should: %s SIZE(1)
+ should: %s[0] CLASS(contact)
+ should: %s[0].type == Whois::Record::Contact::TYPE_TECHNICAL
+ should: %s[0].id == "ENCIRCA-19975"
+ should: %s[0].name == "Markmonitor Inc. CCOPS"
+ should: %s[0].organization == nil
+ should: %s[0].address == "10400 Overland Road PMB 155"
+ should: %s[0].city == "Boise"
+ should: %s[0].zip == "83709"
+ should: %s[0].state == "ID"
+ should: %s[0].country == nil
+ should: %s[0].country_code == "US"
+ should: %s[0].phone == "+1.2083895740"
+ should: %s[0].fax == "+1.2083895771"
+ should: %s[0].email == "ccops@markmonitor.com"
+
+
+#nameservers
+ should: %s CLASS(array)
+ should: %s SIZE(7)
+ should: %s[0] CLASS(nameserver)
+ should: %s[0].name == "ns7.markmonitor.com"
+ should: %s[1] CLASS(nameserver)
+ should: %s[1].name == "ns2.markmonitor.com"
+ should: %s[2] CLASS(nameserver)
+ should: %s[2].name == "ns1.markmonitor.com"
+ should: %s[3] CLASS(nameserver)
+ should: %s[3].name == "ns6.markmonitor.com"
+ should: %s[4] CLASS(nameserver)
+ should: %s[4].name == "ns5.markmonitor.com"
+ should: %s[5] CLASS(nameserver)
+ should: %s[5].name == "ns4.markmonitor.com"
+ should: %s[6] CLASS(nameserver)
+ should: %s[6].name == "ns3.markmonitor.com"
@@ -0,0 +1,77 @@
+This whois service is provided by CentralNic Ltd and only contains
+information pertaining to Internet domain names we have registered for
+our customers. By using this service you are agreeing (1) not to use any
+information presented here for any purpose other than determining
+ownership of domain names, (2) not to store or reproduce this data in
+any way, (3) not to use any high-volume, automated, electronic processes
+to obtain data from this service. Abuse of this service is monitored and
+actions in contravention of these terms will result in being permanently
+blacklisted. All data is (c) CentralNic Ltd https://www.centralnic.com/
+
+Domain ID:CNIC-DO949924
+Domain Name:GOOGLE.PW
+Created On:12-Oct-2012 10:19:46 UTC
+Expiration Date:10-Feb-2015 23:59:59 UTC
+Status:OK
+Registrant ID:ENCIRCA-19975
+Registrant Name:Markmonitor Inc. CCOPS
+Registrant Street1:10400 Overland Road PMB 155
+Registrant City:Boise
+Registrant State/Province:ID
+Registrant Postal Code:83709
+Registrant Country:US
+Registrant Phone:+1.2083895740
+Registrant FAX:+1.2083895771
+Registrant Email:ccops@markmonitor.com
+Admin ID:ENCIRCA-19975
+Admin Name:Markmonitor Inc. CCOPS
+Admin Street1:10400 Overland Road PMB 155
+Admin City:Boise
+Admin State/Province:ID
+Admin Postal Code:83709
+Admin Country:US
+Admin Phone:+1.2083895740
+Admin FAX:+1.2083895771
+Admin Email:ccops@markmonitor.com
+Tech ID:ENCIRCA-19975
+Tech Name:Markmonitor Inc. CCOPS
+Tech Street1:10400 Overland Road PMB 155
+Tech City:Boise
+Tech State/Province:ID
+Tech Postal Code:83709
+Tech Country:US
+Tech Phone:+1.2083895740
+Tech FAX:+1.2083895771
+Tech Email:ccops@markmonitor.com
+Billing ID:ENCIRCA-19975
+Billing Name:Markmonitor Inc. CCOPS
+Billing Street1:10400 Overland Road PMB 155
+Billing City:Boise
+Billing State/Province:ID
+Billing Postal Code:83709
+Billing Country:US
+Billing Phone:+1.2083895740
+Billing FAX:+1.2083895771
+Billing Email:ccops@markmonitor.com
+Sponsoring Registrar ID:H135150
+Sponsoring Registrar IANA ID:455
+Sponsoring Registrar Organization:Encirca Inc.
+Sponsoring Registrar Street1:400 W. Cummings Park
+Sponsoring Registrar Street2:Suite 1725-307
+Sponsoring Registrar City:Woburn
+Sponsoring Registrar State/Province:MA
+Sponsoring Registrar Postal Code:08101
+Sponsoring Registrar Country:US
+Sponsoring Registrar Phone:1 781 942 9975
+Sponsoring Registrar FAX:1 781 823 8911
+Sponsoring Registrar Website:www.encirca.com
+Name Server:NS7.MARKMONITOR.COM
+Name Server:NS2.MARKMONITOR.COM
+Name Server:NS1.MARKMONITOR.COM
+Name Server:NS6.MARKMONITOR.COM
+Name Server:NS5.MARKMONITOR.COM
+Name Server:NS4.MARKMONITOR.COM
+Name Server:NS3.MARKMONITOR.COM
+DNSSEC:Unsigned
+
+
@@ -13,7 +13,7 @@
require 'spec_helper'
require 'whois/record/parser/whois.nic.la.rb'
-describe Whois::Record::Parser::WhoisCentralnicCom, "property_status_multiple.expected" do
+describe Whois::Record::Parser::WhoisNicLa, "property_status_multiple.expected" do
subject do
file = fixture("responses", "whois.nic.la/property_status_multiple.txt")
@@ -13,7 +13,7 @@
require 'spec_helper'
require 'whois/record/parser/whois.nic.la.rb'
-describe Whois::Record::Parser::WhoisCentralnicCom, "property_status_single.expected" do
+describe Whois::Record::Parser::WhoisNicLa, "property_status_single.expected" do
subject do
file = fixture("responses", "whois.nic.la/property_status_single.txt")
@@ -13,7 +13,7 @@
require 'spec_helper'
require 'whois/record/parser/whois.nic.la.rb'
-describe Whois::Record::Parser::WhoisCentralnicCom, "status_available.expected" do
+describe Whois::Record::Parser::WhoisNicLa, "status_available.expected" do
subject do
file = fixture("responses", "whois.nic.la/status_available.txt")
@@ -13,7 +13,7 @@
require 'spec_helper'
require 'whois/record/parser/whois.nic.la.rb'
-describe Whois::Record::Parser::WhoisCentralnicCom, "status_registered.expected" do
+describe Whois::Record::Parser::WhoisNicLa, "status_registered.expected" do
subject do
file = fixture("responses", "whois.nic.la/status_registered.txt")
Oops, something went wrong.

0 comments on commit 2afaa8d

Please sign in to comment.