From cb0e3bbf947aae662f8b339e8a681028156ab2e4 Mon Sep 17 00:00:00 2001 From: Thomas Witt Date: Thu, 8 Dec 2022 10:28:06 +0200 Subject: [PATCH] :bug: Fix dashing install Replaced open with URI.open, as Kernel#open was deprecated in Ruby 2.7 and doens't work anymore with Ruby 3 Details: https://github.com/ruby/open-uri/commit/53862fa35887a34a8060aebf2241874240c2986a --- lib/dashing/downloader.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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