News for hackers. Stuff that matters.
Re:"this gem is awesome".to_spanish # = "esta joya es impres... by djhworld on Wednesday January 12, 2011 @04:44AM (#2095560)
how does the gem failover if the machine it is being used on isn't connected to the internet?
Re:"this gem is awesome".to_spanish # = "esta joya es impres... by getsat on Wednesday January 12, 2011 @05:32AM (#2095638)
You would get a SocketError exception from getaddrinfo because HTTParty (which uses Net::HTTP) can't lookup the hostname. If the hostname is already resolved, you'd get a Errno::EHOSTUNREACH exception from connect because there is no route to Google's servers.
Re:"this gem is awesome".to_spanish # = "esta joya es impres... by Uchikoma on Wednesday January 12, 2011 @08:54AM (#2096104)
Re:"this gem is awesome".to_spanish # = "esta joya es impres... by getsat on Wednesday January 12, 2011 @06:22PM (#2098145)
Hey, I didn't say it was awesome, I was just reporting what actually happens. :)
Re:"this gem is awesome".to_spanish # = "esta joya es impres... by burgerbrain on Wednesday January 12, 2011 @11:40AM (#2096688)
In other words, "poorly".