Permalink
Browse files

Renamed Whois::Server::Adapters::Base#append_to_buffer to buffer_append.

  • Loading branch information...
weppos committed Jan 26, 2011
1 parent e6ce7e7 commit 9c39787b04d2e4613a7b9886444ed83e51bc6f28
View
@@ -25,6 +25,8 @@
* CHANGED: Removed official support for Ruby 1.9.1.
+* CHANGED: Renamed Whois::Server::Adapters::Base#append_to_buffer to buffer_append.
+
* FIXED: Converted #changed? and #unchanged? properties to methods
and normalized their behavior.
@@ -47,6 +49,10 @@
* FIXED: With some .tr domains, whois.nic.tr parser returns invalid values for nameservers.
+=== BC
+
+* Whois::Server::Adapters::Base#append_to_buffer renamed to buffer_append.
+
== Release 1.6.6
@@ -34,11 +34,11 @@ class Afilias < Base
#
def request(string)
response = query_the_socket(string, "whois.afilias-grs.info", DEFAULT_WHOIS_PORT)
- append_to_buffer response, "whois.afilias-grs.info"
+ buffer_append response, "whois.afilias-grs.info"
if endpoint = extract_referral(response)
response = query_the_socket(string, endpoint, DEFAULT_WHOIS_PORT)
- append_to_buffer response, endpoint
+ buffer_append response, endpoint
end
end
@@ -108,7 +108,7 @@ def configure(settings)
# # => Whois::Answer
#
def query(string)
- with_buffer do |buffer|
+ buffer_start do |buffer|
request(string)
Whois::Answer.new(self, buffer)
end
@@ -136,15 +136,15 @@ def request(string)
#
# @return [void]
# @api public
- def append_to_buffer(response, host)
+ def buffer_append(response, host)
@buffer << Whois::Answer::Part.new(response, host)
end
# @api internal
- def with_buffer(&block)
+ def buffer_start(&block)
@buffer = []
result = yield(@buffer)
- @buffer = []
+ @buffer = [] # reset
result
end
@@ -55,7 +55,7 @@ class Formatted < Base
def request(string)
options[:format] || raise(ServerError, "Missing mandatory :format option for adapter `Formatted'")
response = query_the_socket(sprintf(options[:format], string), host)
- append_to_buffer response, host
+ buffer_append response, host
end
end
@@ -34,11 +34,11 @@ class Pir < Base
#
def request(string)
response = query_the_socket("FULL #{string}", "whois.publicinterestregistry.net", DEFAULT_WHOIS_PORT)
- append_to_buffer response, "whois.publicinterestregistry.net"
+ buffer_append response, "whois.publicinterestregistry.net"
if endpoint = extract_referral(response)
response = query_the_socket(string, endpoint, DEFAULT_WHOIS_PORT)
- append_to_buffer response, endpoint
+ buffer_append response, endpoint
end
end
@@ -56,7 +56,7 @@ class Standard < Base
#
def request(string)
response = query_the_socket(string, host)
- append_to_buffer response, host
+ buffer_append response, host
end
end
@@ -34,11 +34,11 @@ class Verisign < Base
#
def request(string)
response = query_the_socket("=#{string}", host, DEFAULT_WHOIS_PORT)
- append_to_buffer response, host
+ buffer_append response, host
if endpoint = extract_referral(response)
response = query_the_socket(string, endpoint, DEFAULT_WHOIS_PORT)
- append_to_buffer response, endpoint
+ buffer_append response, endpoint
end
end

0 comments on commit 9c39787

Please sign in to comment.