about summary refs log tree commit homepage
path: root/lib/wrongdoc/news_rdoc.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-11-20 02:26:37 +0000
committerEric Wong <normalperson@yhbt.net>2012-11-20 02:27:19 +0000
commit4ed10b7cc4c4e7394416167314e94cef74906d63 (patch)
tree72cf7c826ccd96c336ce30a39702b6abeaab6994 /lib/wrongdoc/news_rdoc.rb
parent33c794a884a65d1dceff17e6ec5729b8538f20b6 (diff)
downloadwrongdoc-4ed10b7cc4c4e7394416167314e94cef74906d63.tar.gz
respect umask for ChangeLog and NEWS files
We do not need restrictive permissions for these files.
Diffstat (limited to 'lib/wrongdoc/news_rdoc.rb')
-rw-r--r--lib/wrongdoc/news_rdoc.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/wrongdoc/news_rdoc.rb b/lib/wrongdoc/news_rdoc.rb
index 6451db9..1936a47 100644
--- a/lib/wrongdoc/news_rdoc.rb
+++ b/lib/wrongdoc/news_rdoc.rb
@@ -24,6 +24,7 @@ module Wrongdoc::NewsRdoc
         puts_tag(latest, tags[0])
       end
     }
+    news.chmod(0666 & ~File.umask)
     File.rename(news.path, 'NEWS')
     news.close!
   end