diff --git a/lib/json_skooma/sources.rb b/lib/json_skooma/sources.rb index 6cd92f2..eed633f 100644 --- a/lib/json_skooma/sources.rb +++ b/lib/json_skooma/sources.rb @@ -46,7 +46,7 @@ class Remote < Base def read(relative_path) path = suffix ? relative_path + suffix : relative_path url = URI.join(base, path) - URI.parse(url).open.read + url.open.read rescue OpenURI::HTTPError, SocketError raise Error, "Could not fetch #{url}" end