Skip to content

Commit

Permalink
Moved Whois#deprecate to main Whois file.
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed Nov 30, 2009
1 parent da2b856 commit 623ee51
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions lib/whois.rb
Expand Up @@ -98,4 +98,10 @@ def self.query(qstring)
Client.new.query(qstring)
end


def self.deprecate(message = nil)
message ||= "You are using deprecated behavior which will be removed from the next major or minor release."
$stderr.puts("DEPRECATION WARNING: #{message}")
end

end
6 changes: 0 additions & 6 deletions lib/whois/whois.rb
Expand Up @@ -19,12 +19,6 @@

module Whois

def self.deprecate(message = nil)
message ||= "You are using deprecated behavior which will be removed from the next major or minor release."
$stderr.puts("DEPRECATION WARNING: #{message}")
end


class WhoisException < Exception # :nodoc
def initialize(message)
::Whois.deprecate "WhoisException is deprecated as of 0.5.0 and will be removed in a future release along with Whois::Whois class."
Expand Down

0 comments on commit 623ee51

Please sign in to comment.