Skip to content

Commit

Permalink
Remove deprecated Whois::Answer::Parser::Base methods:
Browse files Browse the repository at this point in the history
* #registrant
* #admin
* #technical
  • Loading branch information
weppos committed Oct 21, 2010
1 parent 4a2e617 commit 3513cb2
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 60 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rdoc
Expand Up @@ -44,6 +44,11 @@
* FIXED: Sometimes whois.jprs.js parser may raise an Argument out of range
error trying to parse the #updated_on property.

* REMOVED: Remove deprecated Whois::Answer::Parser::Base methods:
* #registrant
* #admin
* #technical


== Release 1.3.10

Expand Down
25 changes: 0 additions & 25 deletions lib/whois/answer/parser/base.rb
Expand Up @@ -244,31 +244,6 @@ def throttle?
end


# @deprecated {#registrant} is deprecated
# and will be removed in a future version.
# Use {#registrant_contact}.
def registrant
Whois.deprecate "Whois::Answer::Parser::Base#registrant is deprecated and will be removed in a future version. Use Whois::Answer::Parser::Base#registrant_contact."
registrant_contact
end

# @deprecated {#admin} is deprecated
# and will be removed in a future version.
# Use {#admin_contact}.
def admin
Whois.deprecate "Whois::Answer::Parser::Base#admin is deprecated and will be removed in a future version. Use Whois::Answer::Parser::Base#admin_contact."
admin_contact
end

# @deprecated {#technical} is deprecated
# and will be removed in a future version.
# Use {#technical_contact}.
def technical
Whois.deprecate "Whois::Answer::Parser::Base#technical is deprecated and will be removed in a future version. Use Whois::Answer::Parser::Base#technical_contact."
technical_contact
end


protected

def content_for_scanner
Expand Down
7 changes: 0 additions & 7 deletions lib/whois/answer/parser/whois.denic.de.rb
Expand Up @@ -100,13 +100,6 @@ class WhoisDenicDe < Base
@technical_contact ||= contact("Tech-C", Whois::Answer::Contact::TYPE_TECHNICAL)
end

# @deprecated
register_property :registrant, :supported
# @deprecated
register_property :admin, :supported
# @deprecated
register_property :technical, :supported


# Nameservers are listed in the following formats:
#
Expand Down
7 changes: 0 additions & 7 deletions lib/whois/answer/parser/whois.nic.ac.rb
Expand Up @@ -72,13 +72,6 @@ class WhoisNicAc < Base

property_not_supported :technical_contact

# @deprecated
register_property :registrant, :not_supported
# @deprecated
register_property :admin, :not_supported
# @deprecated
register_property :technical, :not_supported


property_not_supported :nameservers

Expand Down
7 changes: 0 additions & 7 deletions lib/whois/answer/parser/whois.nic.hu.rb
Expand Up @@ -110,13 +110,6 @@ class WhoisNicHu < Base
@tecnical_contact ||= contact("tech-c", Whois::Answer::Contact::TYPE_TECHNICAL)
end

# @deprecated
register_property :registrant, :supported
# @deprecated
register_property :admin, :supported
# @deprecated
register_property :technical, :supported


property_supported :nameservers do
@nameservers ||= node("nameserver") || []
Expand Down
7 changes: 0 additions & 7 deletions lib/whois/answer/parser/whois.nic.it.rb
Expand Up @@ -96,13 +96,6 @@ class WhoisNicIt < Base
@technical_contact ||= contact("Technical Contacts", Whois::Answer::Contact::TYPE_TECHNICAL)
end

# @deprecated
register_property :registrant, :supported
# @deprecated
register_property :admin, :supported
# @deprecated
register_property :technical, :supported


property_supported :nameservers do
@nameservers ||= node("Nameservers") || []
Expand Down
7 changes: 0 additions & 7 deletions lib/whois/answer/parser/whois.publicinterestregistry.net.rb
Expand Up @@ -95,13 +95,6 @@ class WhoisPublicinterestregistryNet < Base
@technical_contact ||= contact("Tech", Whois::Answer::Contact::TYPE_TECHNICAL)
end

# @deprecated
register_property :registrant, :supported
# @deprecated
register_property :admin, :supported
# @deprecated
register_property :technical, :supported


property_supported :nameservers do
@nameservers ||= node("Name Server") { |server| server.reject(&:empty?).map(&:downcase) }
Expand Down

0 comments on commit 3513cb2

Please sign in to comment.