aboutsummaryrefslogtreecommitdiffstats
path: root/lib/strip_attributes/Rakefile
diff options
context:
space:
mode:
authorMark Longair <mhl@pobox.com>2013-11-28 14:36:36 +0000
committerMark Longair <mhl@pobox.com>2013-11-29 12:22:59 +0000
commit600c3b356d804546bfa31fef89979cc1c44f3756 (patch)
treea2e45e35346601236fb92bff70a56989d9161f62 /lib/strip_attributes/Rakefile
parent20089cf7b5045d504b7240bc92e2b6068fcc2246 (diff)
Move strip_attributes out of vendor/plugins
Diffstat (limited to 'lib/strip_attributes/Rakefile')
-rw-r--r--lib/strip_attributes/Rakefile30
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
+