From 25893614b3db9f6adc053cceb1768d718e7060bf Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Tue, 21 Feb 2023 11:38:28 +0100 Subject: [PATCH] fix: use URI.open to fetch docs --- 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 5670c7d9..a586aa63 100644 --- a/lib/tasks/docs.thor +++ b/lib/tasks/docs.thor @@ -241,7 +241,7 @@ class DocsCLI < Thor ['index.json', 'meta.json'].each do |filename| json = "https://documents.devdocs.io/#{doc.path}/#{filename}?#{time}" begin - open(json) do |file| + URI.open(json) do |file| mutex.synchronize do path = File.join(dir, filename) File.write(path, file.read)