fix: use URI.open to fetch docs

pull/1867/head
Oliver Eyton-Williams 2 years ago
parent 8c1750d7eb
commit 25893614b3
No known key found for this signature in database
GPG Key ID: C4B00673186643C5

@ -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)

Loading…
Cancel
Save