librelist archives

« back to archive

[ANN] wrongdoc 1.6.2 - permissions fix

[ANN] wrongdoc 1.6.2 - permissions fix

From:
Eric Wong
Date:
2012-11-20 @ 02:31
ChangeLog:

  commit 3ea4d5cfbedf0285fda52f9fc307ee6cbd28153b
  Author: Eric Wong <normalperson@yhbt.net>
  Date:   Tue Nov 20 02:28:19 2012 +0000

      wrongdoc 1.6.2
      
      Fix permissions on generated NEWS and ChangeLog

  commit 4ed10b7cc4c4e7394416167314e94cef74906d63
  Author: Eric Wong <normalperson@yhbt.net>
  Date:   Tue Nov 20 02:26:37 2012 +0000

      respect umask for ChangeLog and NEWS files
      
      We do not need restrictive permissions for these files.

---
 GIT-VERSION-GEN           | 2 +-
 lib/wrongdoc/changelog.rb | 1 +
 lib/wrongdoc/news_rdoc.rb | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN
index a494f25..491d4bb 100755
--- a/GIT-VERSION-GEN
+++ b/GIT-VERSION-GEN
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 GVF=GIT-VERSION-FILE
-DEF_VER=v1.6.0.GIT
+DEF_VER=v1.6.2
 
 LF='
 '
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
-- 
Eric Wong