Create a gist now

Instantly share code, notes, and snippets.

anonymous /gist:4455902
Created Jan 4, 2013

What would you like to do?
Illustrates that Resolv.getaddress appears to not work in JRuby 1.7.1.
>rvm 1.9
>ruby -e "require 'resolv'; puts Resolv.getaddress ''"
>rvm jruby # 1.7.1
>ruby -e "require 'resolv'; puts Resolv.getaddress ''"
Resolv::ResolvError: no address for
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment