[devdocsgjs/main: 1775/1867] docs:download: fix open deprecation




commit 69df9b2c48ef44bc735081ad14406516877e713c
Author: Simon Legner <Simon Legner gmail com>
Date:   Mon Aug 23 22:22:01 2021 +0200

    docs:download: fix open deprecation

 lib/tasks/docs.thor | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/tasks/docs.thor b/lib/tasks/docs.thor
index d63ea170..104c2da9 100644
--- a/lib/tasks/docs.thor
+++ b/lib/tasks/docs.thor
@@ -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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]