CheckIP in Ruby/Sinatra