The standard upgrade procedure only requires you to install the newer version via RubyGems.
$ gem install whois
Normally, you don’t need to change anything in your application. We have a very strict BC policy: mini and bugfix releases should never include changes that break BC with previous versions.
Major releases can break BC with previous version. If that happen, we are committed to provide a detailed changelog of not-compatibile changes to help you upgrading your existing codebase.
The CHANGELOG file contains a detailed list of all the changes, grouped by version.
Upgrading from 1.x to 2.0
Whois 2.0 contains a few not BC changes and several deprecations.
Whois::Server::Adapters::Base#append_to_bufferhas been renamed to
Whois#queryno longer raises
SocketError. The errors are now rescued and re-raised as “
#registrant_contacthave been renamed to
#registrant_contactsand they now returns an array of
Contact, instead of a single
#registrant_contactstill exists in the
Whois::Recordas a convenient shortcut.
Whois::Record::Parser::Base.register_propertyhas been renamed to
Whois::Answerhas been renamed to
Whois::Record. This is one of the biggest changes. Please make sure to remove all the references to
Whois::Answerin your code.
- Comparing a
Stringhas been deprecated.