lib/onebox/engine/google_maps_onebox.rb in onebox-1.9.20 vs lib/onebox/engine/google_maps_onebox.rb in onebox-1.9.21

- old
+ new

@@ -36,10 +36,10 @@ matches_regexp :standard, %r"^(?:https?:)?//www\.google(?:\.(?:\w{2,}))+/maps" # Matches URLs for the old Google Maps domain which we occasionally get redirected to matches_regexp :canonical, %r"^(?:https?:)?//maps\.google(?:\.(?:\w{2,}))+/maps\?" - def initialize(url, cache = nil, timeout = nil) + def initialize(url, timeout = nil) super resolve_url! rescue Net::HTTPServerException, Timeout::Error, Net::HTTPError, Errno::ECONNREFUSED, RuntimeError => err raise ArgumentError, "malformed url or unresolveable: #{err.message}" end