Skip to content

Commit

Permalink
@group syntax has changed
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed Oct 29, 2012
1 parent 03d26f2 commit b629cf7
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
16 changes: 8 additions & 8 deletions lib/whois/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ConnectionError < Error
end


# @group Server
# @!group Server

# Generic class for server errors.
class ServerError < Error
Expand Down Expand Up @@ -53,10 +53,10 @@ class ServerNotSupported < ServerError
class AllocationUnknown < ServerError
end

# @endgroup
# @!endgroup


# @group Interface
# @!group Interface

# Generic class for interfaces not supported.
class InterfaceNotSupported < ServerError
Expand Down Expand Up @@ -85,10 +85,10 @@ def initialize(url)

end

# @endgroup
# @!endgroup


# @group Parser
# @!group Parser

# Generic class for parser errors.
class ParserError < Error
Expand All @@ -115,10 +115,10 @@ class PropertyNotSupported < ParserError
class PropertyNotAvailable < ParserError
end

# @endgroup
# @!endgroup


# @group Response
# @!group Response

# Generic class for response errors.
class ResponseError < Error
Expand All @@ -137,6 +137,6 @@ class ResponseIsThrottled < ResponseError
class ResponseIsUnavailable < ResponseError
end

# @endgroup
# @!endgroup

end
12 changes: 6 additions & 6 deletions lib/whois/record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def property_supported?(property)
end


# @group Properties
# @!group Properties

# Returns a Hash containing all supported properties for this record
# along with corresponding values.
Expand All @@ -157,10 +157,10 @@ def properties
hash
end

# @endgroup
# @!endgroup


# @group Methods
# @!group Methods

# Shortcut for <tt>#registrant_contacts.first</tt>.
#
Expand Down Expand Up @@ -217,10 +217,10 @@ def contacts
parser.contacts
end

# @endgroup
# @!endgroup


# @group Response
# @!group Response

# Checks whether this {Whois::Record} is different than +other+.
#
Expand Down Expand Up @@ -291,7 +291,7 @@ def response_unavailable?
parser.response_unavailable?
end

# @endgroup
# @!endgroup


private
Expand Down
8 changes: 4 additions & 4 deletions lib/whois/record/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def property_supported?(property)
end


# @group Methods
# @!group Methods

# Collects and returns all the contacts from all the record parts.
#
Expand All @@ -188,10 +188,10 @@ def contacts
parsers.map(&:contacts).flatten
end

# @endgroup
# @!endgroup


# @group Response
# @!group Response

# Loop through all the record parts to check
# if at least one part changed.
Expand Down Expand Up @@ -259,7 +259,7 @@ def response_unavailable?
any_is?(parsers, :response_unavailable?)
end

# @endgroup
# @!endgroup


private
Expand Down
12 changes: 6 additions & 6 deletions lib/whois/record/parser/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def validate!
end


# @group Properties
# @!group Properties

Whois::Record::Parser::PROPERTIES.each do |property|
class_eval(<<-RUBY, __FILE__, __LINE__ + 1)
Expand All @@ -235,10 +235,10 @@ def #{property}(*args)
property_not_implemented(property)
end

# @endgroup
# @!endgroup


# @group Methods
# @!group Methods

# Collects and returns all the available contacts.
#
Expand All @@ -254,10 +254,10 @@ def contacts
end
end

# @endgroup
# @!endgroup


# @group Response
# @!group Response

# Checks whether the content of this part is different than +other+.
#
Expand Down Expand Up @@ -347,7 +347,7 @@ def response_unavailable?
undef :response_throttled?
undef :response_unavailable?

# @endgroup
# @!endgroup


protected
Expand Down

0 comments on commit b629cf7

Please sign in to comment.