From 4ed10b7cc4c4e7394416167314e94cef74906d63 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 20 Nov 2012 02:26:37 +0000 Subject: respect umask for ChangeLog and NEWS files We do not need restrictive permissions for these files. --- lib/wrongdoc/changelog.rb | 1 + lib/wrongdoc/news_rdoc.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/wrongdoc/changelog.rb b/lib/wrongdoc/changelog.rb index f16bfbf..324a13b 100644 --- a/lib/wrongdoc/changelog.rb +++ b/lib/wrongdoc/changelog.rb @@ -19,6 +19,7 @@ module Wrongdoc::Changelog fp.write line } end + fp.chmod(0666 & ~File.umask) File.rename(fp.path, 'ChangeLog') fp.close! end 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 -- cgit v1.2.3-24-ge0c7