Skip to content

Commit

Permalink
🐛 Fix dashing install
Browse files Browse the repository at this point in the history
Replaced open with URI.open, as Kernel#open was deprecated in Ruby 2.7
and doens't work anymore with Ruby 3

Details: ruby/open-uri@53862fa
  • Loading branch information
thomaswitt authored and kinow committed Dec 8, 2022
1 parent 8fd6845 commit 77f1862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dashing/downloader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77f1862

Please sign in to comment.