diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2009-02-28 21:19:37 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2009-02-28 21:19:37 +0100 |
commit | 0a8b6ea5dc6a9d56638b985dd67b0c45f167e381 (patch) | |
tree | 1932cb877c3e623f9a300c37971bb4e073670aea /tasks/gem.rake | |
parent | 50bb456cf469f73d3a32474dc07bd58c0c64dba1 (diff) | |
download | mmap-ruby-0a8b6ea5dc6a9d56638b985dd67b0c45f167e381.zip mmap-ruby-0a8b6ea5dc6a9d56638b985dd67b0c45f167e381.tar.gz |
Diffstat (limited to 'tasks/gem.rake')
-rw-r--r-- | tasks/gem.rake | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tasks/gem.rake b/tasks/gem.rake new file mode 100644 index 0000000..f22f722 --- /dev/null +++ b/tasks/gem.rake @@ -0,0 +1,22 @@ +# GEM TASK +Rake::GemPackageTask.new(GEM_SPEC) { |pkg| + pkg.need_zip = true + pkg.need_tar = true + puts "Signed with #{CERT_PRIVATE}" if HAVE_CERT +} + +desc "if dir chmod #{D_CHMOD} if file chmod #{F_CHMOD}" +task :chmod =>RDOC_FILES do + Dir.glob('**/*'){ |p| + open(p){ |f| f.chmod(F_CHMOD) } if File.file? p + open(p){ |f| f.chmod(D_CHMOD) } if File.directory? p + } +end + +task :release => [:clobber, :chmod] do + puts "Preparing release of #{PROJECT_NAME} version #{PROJECT_VERSION}" + Rake::Task[:test].invoke +# Rake::Task[:rdoc].invoke + Rake::Task[:package].invoke +end + |