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)