public
anonymous / gist:4455902
Created

Illustrates that Resolv.getaddress appears to not work in JRuby 1.7.1.

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12
>rvm 1.9
 
>ruby -e "require 'resolv'; puts Resolv.getaddress 'cnn.com'"
157.166.255.19
 
>rvm jruby # 1.7.1
 
>ruby -e "require 'resolv'; puts Resolv.getaddress 'cnn.com'"
Resolv::ResolvError: no address for cnn.com
getaddress at /Users/keithb/.rvm/rubies/jruby-1.7.1/lib/ruby/1.9/resolv.rb:93
getaddress at /Users/keithb/.rvm/rubies/jruby-1.7.1/lib/ruby/1.9/resolv.rb:43
(root) at -e:1

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.