lib/distance_finder/calculator.rb in distance_finder-1.0.1 vs lib/distance_finder/calculator.rb in distance_finder-1.0.2

- old
+ new

@@ -48,10 +48,10 @@ else JSON.parse('{"status" : "Google API unaviable!"}') end end - # Checks for internet connection and gets response from Google API + # Checks for internet connection and gets response from Google API def get_response begin TCPSocket.new 'google.com', 80 Net::HTTP.get_response(URI(build_url)) rescue SocketError