about summary refs log tree commit homepage
path: root/lib/olddoc/prepare.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-07-26 01:59:30 +0000
committerEric Wong <e@80x24.org>2020-07-26 02:13:18 +0000
commit864e2f59ac4e4aadf8c5a4bf97e35facaaea6883 (patch)
treee136be41df6caf42ba65da11dce6fad3f90f4dcc /lib/olddoc/prepare.rb
parent0be43ba42f608ea842e628d29f5c10a571d28f7a (diff)
downloadolddoc-864e2f59ac4e4aadf8c5a4bf97e35facaaea6883.tar.gz
Might as well, since domain name ownership is a shaky thing
and ICANN may try to screw the world over once again.
Diffstat (limited to 'lib/olddoc/prepare.rb')
-rw-r--r--lib/olddoc/prepare.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/olddoc/prepare.rb b/lib/olddoc/prepare.rb
index f902fff..f0e6329 100644
--- a/lib/olddoc/prepare.rb
+++ b/lib/olddoc/prepare.rb
@@ -12,8 +12,8 @@ class Olddoc::Prepare # :nodoc:
     cgit_url = opts['cgit_url']
     rdoc_url && cgit_url or
       abort "rdoc_url and cgit_url required in .olddoc.yml for `prepare'"
-    @rdoc_uri = URI.parse(rdoc_url)
-    @cgit_uri = URI.parse(cgit_url)
+    @rdoc_uri = Array(rdoc_url).map { |u| URI.parse(u) }
+    @cgit_uri = Array(cgit_url).map { |u| URI.parse(u) }
     @name, @short_desc = readme_metadata
   end