diff options
author | Mark Longair <mhl@pobox.com> | 2013-11-28 14:36:36 +0000 |
---|---|---|
committer | Mark Longair <mhl@pobox.com> | 2013-11-29 12:22:59 +0000 |
commit | 600c3b356d804546bfa31fef89979cc1c44f3756 (patch) | |
tree | a2e45e35346601236fb92bff70a56989d9161f62 /lib/strip_attributes/Rakefile | |
parent | 20089cf7b5045d504b7240bc92e2b6068fcc2246 (diff) |
Move strip_attributes out of vendor/plugins
Diffstat (limited to 'lib/strip_attributes/Rakefile')
-rw-r--r-- | lib/strip_attributes/Rakefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/strip_attributes/Rakefile b/lib/strip_attributes/Rakefile new file mode 100644 index 000000000..05b0c14ad --- /dev/null +++ b/lib/strip_attributes/Rakefile @@ -0,0 +1,30 @@ +require 'rake' +require 'rake/testtask' +require 'rake/rdoctask' + +desc 'Default: run unit tests.' +task :default => :test + +desc 'Test the stripattributes plugin.' +Rake::TestTask.new(:test) do |t| + t.libs << 'lib' + t.pattern = 'test/**/*_test.rb' + t.verbose = true +end + +desc 'Generate documentation for the stripattributes plugin.' +Rake::RDocTask.new(:rdoc) do |rdoc| + rdoc.rdoc_dir = 'rdoc' + rdoc.title = 'Stripattributes' + rdoc.options << '--line-numbers' << '--inline-source' + rdoc.rdoc_files.include('README.rdoc') + rdoc.rdoc_files.include('lib/**/*.rb') +end + +desc 'Publishes rdoc to rubyforge server' +task :publish_rdoc => :rdoc do + cmd = "scp -r rdoc/* rmm5t@rubyforge.org:/var/www/gforge-projects/stripattributes" + puts "\nPublishing rdoc: #{cmd}\n\n" + system(cmd) +end + |