arineng / nicinfo

NicInfo is a smart, command-line RDAP client
ISC License
160 stars 28 forks source link

URI encode updated in Ruby 3.1.2 #42

Closed ciscony closed 2 years ago

ciscony commented 2 years ago

~/.rvm/gems/ruby-3.1.2/gems/nicinfo-1.5.0/lib/nicinfo/nicinfo_main.rb:322:in get': undefined methodencode' for URI:Module (NoMethodError)

19a20 > require 'addressable/uri'

322,323c323,324 < uri = URI.parse( URI::encode( url ) ) < req = Net::HTTP::Get.new(uri.request_uri) --- > uri = URI.parse( Addressable::URI.escape( url ) ) > req = Net::HTTP::Get.new(uri)'

379,380c380,381 < uri = URI.parse( URI::encode( url ) ) < req = Net::HTTP::Get.new(uri.request_uri) --- > uri = URI.parse( Addressable::URI.escape( url ) ) > req = Net::HTTP::Get.new(uri)

gdubin commented 2 years ago

Thank you for reporting this. It's been fixed and a new version has been pushed to rubygems.org.