require 'ipaddr' IPAddr.new '0127.0.0.1'
Standard input is empty
Standard output is empty
/usr/lib/ruby/2.5.0/ipaddr.rb:620:in `block in in_addr': zero-filled number in IPv4 address is ambiguous (IPAddr::InvalidAddressError) from /usr/lib/ruby/2.5.0/ipaddr.rb:618:in `each' from /usr/lib/ruby/2.5.0/ipaddr.rb:618:in `inject' from /usr/lib/ruby/2.5.0/ipaddr.rb:618:in `in_addr' from /usr/lib/ruby/2.5.0/ipaddr.rb:580:in `initialize' from prog.rb:2:in `new' from prog.rb:2:in `<main>'