Permalink
Browse files

Changed whois.publicinterestregistry.com to whois.pir.org (closes GH-176

)
  • Loading branch information...
1 parent a4b90cc commit 5ca9efe9a93336658996dff8bca7c0dac0f25357 @weppos committed Jul 3, 2012
View
@@ -4,7 +4,7 @@
* SERVER: Added .CW TLD server.
-* SERVER: Updated .GR TLD server.
+* SERVER: Updated .GR, .ORG (GH-176) TLD server.
* SERVER: Added .XN--MGBA3A4F16A (ایران., Iran) IDN TLD server.
@@ -14,6 +14,8 @@
* CHANGE: Removed Pir adaper, the registry is a thick whois server.
+* CHANGE: Changed whois.publicinterestregistry.com to whois.pir.org (GH-176).
+
## Release 2.6.3
@@ -28,7 +28,7 @@
Whois::Server.define :tld, ".net", "whois.crsnic.net", { :adapter => :verisign }
Whois::Server.define :tld, ".eu.org", "whois.eu.org"
Whois::Server.define :tld, ".za.org", "whois.za.org"
-Whois::Server.define :tld, ".org", "whois.publicinterestregistry.net"
+Whois::Server.define :tld, ".org", "whois.pir.org"
Whois::Server.define :tld, ".edu", "whois.educause.edu"
Whois::Server.define :tld, ".gov", "whois.nic.gov"
Whois::Server.define :tld, ".int", "whois.iana.org"
@@ -0,0 +1,43 @@
+#--
+# Ruby Whois
+#
+# An intelligent pure Ruby WHOIS client and parser.
+#
+# Copyright (c) 2009-2012 Simone Carletti <weppos@weppos.net>
+#++
+
+
+require 'whois/record/parser/base_afilias'
+
+
+module Whois
+ class Record
+ class Parser
+
+ # Parser for the whois.pir.org server.
+ class WhoisPirOrg < BaseAfilias
+
+ # Checks whether the response has been throttled.
+ #
+ # @return [Boolean]
+ #
+ # @example
+ # WHOIS LIMIT EXCEEDED - SEE WWW.PIR.ORG/WHOIS FOR DETAILS
+ #
+ def response_throttled?
+ !!node("response:throttled")
+ end
+
+ private
+
+ def decompose_registrar(value)
+ if value =~ /(.+?) \((.+?)\)/
+ [$2, $1]
+ end
+ end
+
+ end
+
+ end
+ end
+end
@@ -7,37 +7,17 @@
#++
-require 'whois/record/parser/base_afilias'
+require 'whois/record/parser/whois.pir.org.rb'
module Whois
class Record
class Parser
- # Parser for the whois.publicinternetregistry.net server.
- class WhoisPublicinterestregistryNet < BaseAfilias
-
- # Checks whether the response has been throttled.
- #
- # @return [Boolean]
- #
- # @example
- # WHOIS LIMIT EXCEEDED - SEE WWW.PIR.ORG/WHOIS FOR DETAILS
- #
- def response_throttled?
- !!node("response:throttled")
- end
-
- private
-
- def decompose_registrar(value)
- if value =~ /(.+?) \((.+?)\)/
- [$2, $1]
- end
- end
-
- end
+ # Parser for the <tt>whois.publicinterestregistry.net</tt> server.
+ # Aliases the <tt>whois.pir.org</tt> parser.
+ WhoisPublicinterestregistryNet = WhoisPirOrg
end
end
-end
+end
@@ -3,20 +3,20 @@
# This file is autogenerated. Do not edit it manually.
# If you want change the content of this file, edit
#
-# /spec/fixtures/responses/whois.publicinterestregistry.net/response_throttled.expected
+# /spec/fixtures/responses/whois.pir.org/response_throttled.expected
#
# and regenerate the tests with the following rake task
#
# $ rake spec:generate
#
require 'spec_helper'
-require 'whois/record/parser/whois.publicinterestregistry.net.rb'
+require 'whois/record/parser/whois.pir.org.rb'
-describe Whois::Record::Parser::WhoisPublicinterestregistryNet, "response_throttled.expected" do
+describe Whois::Record::Parser::WhoisPirOrg, "response_throttled.expected" do
before(:each) do
- file = fixture("responses", "whois.publicinterestregistry.net/response_throttled.txt")
+ file = fixture("responses", "whois.pir.org/response_throttled.txt")
part = Whois::Record::Part.new(:body => File.read(file))
@parser = klass.new(part)
end
@@ -3,20 +3,20 @@
# This file is autogenerated. Do not edit it manually.
# If you want change the content of this file, edit
#
-# /spec/fixtures/responses/whois.publicinterestregistry.net/status_available.expected
+# /spec/fixtures/responses/whois.pir.org/status_available.expected
#
# and regenerate the tests with the following rake task
#
# $ rake spec:generate
#
require 'spec_helper'
-require 'whois/record/parser/whois.publicinterestregistry.net.rb'
+require 'whois/record/parser/whois.pir.org.rb'
-describe Whois::Record::Parser::WhoisPublicinterestregistryNet, "status_available.expected" do
+describe Whois::Record::Parser::WhoisPirOrg, "status_available.expected" do
before(:each) do
- file = fixture("responses", "whois.publicinterestregistry.net/status_available.txt")
+ file = fixture("responses", "whois.pir.org/status_available.txt")
part = Whois::Record::Part.new(:body => File.read(file))
@parser = klass.new(part)
end
@@ -3,20 +3,20 @@
# This file is autogenerated. Do not edit it manually.
# If you want change the content of this file, edit
#
-# /spec/fixtures/responses/whois.publicinterestregistry.net/status_registered.expected
+# /spec/fixtures/responses/whois.pir.org/status_registered.expected
#
# and regenerate the tests with the following rake task
#
# $ rake spec:generate
#
require 'spec_helper'
-require 'whois/record/parser/whois.publicinterestregistry.net.rb'
+require 'whois/record/parser/whois.pir.org.rb'
-describe Whois::Record::Parser::WhoisPublicinterestregistryNet, "status_registered.expected" do
+describe Whois::Record::Parser::WhoisPirOrg, "status_registered.expected" do
before(:each) do
- file = fixture("responses", "whois.publicinterestregistry.net/status_registered.txt")
+ file = fixture("responses", "whois.pir.org/status_registered.txt")
part = Whois::Record::Part.new(:body => File.read(file))
@parser = klass.new(part)
end

0 comments on commit 5ca9efe

Please sign in to comment.