docs:download: fix open deprecation

pull/1604/head
Simon Legner 3 years ago
parent 10729c6428
commit 69df9b2c48

@ -338,7 +338,7 @@ class DocsCLI < Thor
def download_doc(doc)
target_path = File.join(Docs.store_path, doc.path)
open "https://downloads.devdocs.io/#{doc.path}.tar.gz" do |file|
URI.open "https://downloads.devdocs.io/#{doc.path}.tar.gz" do |file|
FileUtils.mkpath(target_path)
file.close
tar = UnixUtils.gunzip(file.path)

Loading…
Cancel
Save