diff options
Diffstat (limited to 'lib/olddoc')
-rw-r--r-- | lib/olddoc/history.rb | 2 | ||||
-rw-r--r-- | lib/olddoc/news_atom.rb | 4 | ||||
-rw-r--r-- | lib/olddoc/prepare.rb | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/olddoc/history.rb b/lib/olddoc/history.rb index dcdf0fe..800446e 100644 --- a/lib/olddoc/history.rb +++ b/lib/olddoc/history.rb @@ -9,7 +9,7 @@ module Olddoc::History # :nodoc: # returns a cgit URI for a given +tag_name+ def tag_uri(tag_name) - uri = @cgit_uri.dup + uri = @cgit_uri[0].dup uri.path += "/tag/" uri.query = "id=#{tag_name}" uri diff --git a/lib/olddoc/news_atom.rb b/lib/olddoc/news_atom.rb index ed01197..39f9bb8 100644 --- a/lib/olddoc/news_atom.rb +++ b/lib/olddoc/news_atom.rb @@ -32,9 +32,9 @@ module Olddoc::NewsAtom # :nodoc: def news_atom_xml project_name, short_desc, _ = readme_metadata new_tags = tags[0,10] - atom_uri = @rdoc_uri.dup + atom_uri = @rdoc_uri[0].dup atom_uri.path += "NEWS.atom.xml" - news_uri = @rdoc_uri.dup + news_uri = @rdoc_uri[0].dup news_uri.path += "NEWS.html" dst = '' 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 |