diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-08-19 21:41:33 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-08-19 21:41:33 +0000 |
commit | c107f2333a1f0a01576a64a1fd875dcd86d1647a (patch) | |
tree | ae3a9abe9748fb1347390902b209ae3d2770d6b1 | |
parent | 9ca1afd1ff4fe759eeead7f044de712f13454ddc (diff) | |
download | wrongdoc-c107f2333a1f0a01576a64a1fd875dcd86d1647a.tar.gz |
fix warnings when run against Ruby trunk
-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 |