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/show.rake | |
parent | 50bb456cf469f73d3a32474dc07bd58c0c64dba1 (diff) | |
download | mmap-ruby-master.zip mmap-ruby-master.tar.gz |
Diffstat (limited to 'tasks/show.rake')
-rw-r--r-- | tasks/show.rake | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tasks/show.rake b/tasks/show.rake new file mode 100644 index 0000000..f653ba8 --- /dev/null +++ b/tasks/show.rake @@ -0,0 +1,21 @@ +# TASK SHOW +def enum_files( label, files=[] ) + puts "#{label}\t:" #{files.length==0 ? 'nil' : ''}" + files.each{ |f| puts "\t #{f}" } +end + +desc 'Show current configuration of this project' +task :show do + puts "built on #{GEM_SPEC.date.strftime('%d-%m-%Y')}" + puts "project\t: #{PROJECT_NAME} #{UNIX_NAME}-#{PROJECT_VERSION} [ #{PROJECT_SUMMARY} ]" + puts "owner\t: #{USER_NAME} [#{RUBYFORGE_USER}] #{USER_EMAIL}" + enum_files 'rake', RAKE_FILES + enum_files 'bin', BIN_FILES + enum_files 'lib', LIB_FILES + enum_files EXT_DIR, EXT_FILES + enum_files 'test', TEST_FILES + enum_files 'rdoc', RDOC_FILES + enum_files 'data', DATA_FILES + enum_files 'paths', REQUIRE_PATHS +end + |