diff options
-rw-r--r-- | lib/wrongdoc/final.rb | 2 | ||||
-rw-r--r-- | lib/wrongdoc/news_atom.rb | 2 | ||||
-rw-r--r-- | lib/wrongdoc/release.rb | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/wrongdoc/final.rb b/lib/wrongdoc/final.rb index adafefb..cf12a9c 100644 --- a/lib/wrongdoc/final.rb +++ b/lib/wrongdoc/final.rb @@ -77,7 +77,7 @@ class Wrongdoc::Final doc.search('div#validator-badges p small').each { |x| if /\AGenerated/ =~ x.content first = x.children.first - first.content = first.content.gsub /\AG/, "Originally g" + first.content = first.content.gsub(/\AG/, "Originally g") last = x.children.last last.content = "#{last.content}, modified by " diff --git a/lib/wrongdoc/news_atom.rb b/lib/wrongdoc/news_atom.rb index 1e7a781..f617ed2 100644 --- a/lib/wrongdoc/news_atom.rb +++ b/lib/wrongdoc/news_atom.rb @@ -4,7 +4,7 @@ module Wrongdoc::NewsAtom # generates an Atom feed based on git tags in the document directory def news_atom - project_name, short_desc, _ = x = readme_metadata + project_name, short_desc, _ = readme_metadata new_tags = tags[0,10] atom_uri = @rdoc_uri.dup atom_uri.path += "NEWS.atom.xml" diff --git a/lib/wrongdoc/release.rb b/lib/wrongdoc/release.rb index c7e743d..216472b 100644 --- a/lib/wrongdoc/release.rb +++ b/lib/wrongdoc/release.rb @@ -20,12 +20,12 @@ module Wrongdoc::Release io.sync = true cmds.each_with_index do |cmd,i| i > 0 and io.puts - pid, status = Process.waitpid2(fork do + _, status = Process.waitpid2(fork do if io.fileno != $stdout.fileno $stdout.reopen(io) io.close end - exec *cmd + exec(*cmd) end) status.success? or abort status.inspect end |