weppos / whois

An intelligent — pure Ruby — WHOIS client and parser.
https://whoisrb.org
MIT License
1.14k stars 283 forks source link

Fix deprecated methods message #633

Closed fumitti closed 3 years ago

fumitti commented 3 years ago

Correct the fix example in the deprecation warning message. Whois.registered? is deprecated. Call Whois.whois("#{object}").available? to Whois.registered? is deprecated. Call Whois.whois("#{object}").parser.registered?

weppos commented 3 years ago

@fumitti thanks for your patch. Can you clarify the change? The deprecation should be correct, if you require the parser then you can use call .available? on a result object. What is deprecated is the use of Whois.available?.

weppos commented 3 years ago

Closing due to no follow up.