I\'m writing a Rails app that needs to convert an IDN domain name from Punycode into its Unicode equivalent. I tried installing the idn gem that has bindings to GNU LibIDN,
https://github.com/knu/ruby-domain_name seem to have exactly the same functionality:
irb(main):018:0> SimpleIDN::Punycode.encode('axa.test') => "axa.test-" irb(main):017:0> DomainName::Punycode.encode('axa.test') => "axa.test-"