diff --git a/lib/dashing/downloader.rb b/lib/dashing/downloader.rb index 140e862..b62925c 100644 --- a/lib/dashing/downloader.rb +++ b/lib/dashing/downloader.rb @@ -11,7 +11,7 @@ def get_gist(gist_id) end def get_json(url) - response = open(url).read + response = URI.open(url).read JSON.parse(response) end end