about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-02-28 22:43:17 +0000
committerEric Wong <normalperson@yhbt.net>2012-02-28 22:43:17 +0000
commitd5718e3ebeae61409bd5e260b8355ea68685ae84 (patch)
tree07577c5a77542895e9e4f4757c667fa71d1372f7
parent56f13ad91c882d391b374917544990175c1ed7b0 (diff)
downloadmogilefs-client-d5718e3ebeae61409bd5e260b8355ea68685ae84.tar.gz
These files should be included in release gem/tarballs, users
should not require web acccess to access documentation.
-rw-r--r--Rakefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/Rakefile b/Rakefile
index 93ed317..ae86574 100644
--- a/Rakefile
+++ b/Rakefile
@@ -7,11 +7,21 @@ $:.unshift 'lib'
 require 'mogilefs'
 Hoe.plugin :seattlerb
 
+if ! File.exist?("ChangeLog") || ! File.exist?("NEWS")
+  system("wrongdoc all")
+end
+
 manifest = "Manifest.txt"
 if ! File.exist?(manifest) ||
-   File.stat(manifest).mtime < File.stat(RVF).mtime
+   File.stat(manifest).mtime < File.stat(RVF).mtime ||
+   File.stat(manifest).mtime < File.stat(__FILE__).mtime
   system("git ls-files > #{manifest}")
-  File.open(manifest, "a") { |fp| fp.puts("lib/mogilefs/version.rb") }
+  File.open(manifest, "a") do |fp|
+    fp.puts "Manifest.txt"
+    fp.puts "ChangeLog"
+    fp.puts "NEWS"
+    fp.puts "lib/mogilefs/version.rb"
+  end
 end
 
 Hoe.spec 'mogilefs-client' do
@@ -19,7 +29,7 @@ Hoe.spec 'mogilefs-client' do
   developer 'Eric Wong', 'normalperson@yhbt.net'
   # developer 'drbrain@segment7.net', 'Eric Hodel'
   self.readme_file = "README"
-  self.history_file = "History"
+  self.history_file = "NEWS"
   self.url = "http://bogomips.org/mogilefs-client"
   self.description = self.paragraphs_of("README", 1)
   self.summary = "MogileFS client library for Ruby"