Permalink
Browse files

more rake tasks

  • Loading branch information...
1 parent bd750d2 commit 87b7ba61cc5f1370ca804eae5c16882e33d16c2a Rich Cavanaugh committed May 14, 2008
Showing with 16 additions and 8 deletions.
  1. +2 −1 .gitignore
  2. +14 −7 Rakefile
View
@@ -1,4 +1,5 @@
.DS_Store
doc
*.gem
-coverage
+coverage
+pkg
View
@@ -1,11 +1,18 @@
require 'rake/rdoctask'
+require 'rake/gempackagetask'
Rake::RDocTask.new do |rdoc|
- files = ['README.rdoc', 'LICENSE',
- 'lib/**/*.rb', 'doc/**/*.rdoc', 'test/*.rb']
- rdoc.rdoc_files.add(files)
- rdoc.main = 'README.rdoc'
- rdoc.title = 'acts_as_revisable RDoc'
- rdoc.rdoc_dir = 'doc'
- rdoc.options << '--line-numbers' << '--inline-source'
+ files = ['README.rdoc', 'LICENSE',
+ 'lib/**/*.rb', 'doc/**/*.rdoc', 'test/*.rb']
+ rdoc.rdoc_files.add(files)
+ rdoc.main = 'README.rdoc'
+ rdoc.title = 'acts_as_revisable RDoc'
+ rdoc.rdoc_dir = 'doc'
+ rdoc.options << '--line-numbers' << '--inline-source'
end
+
+spec = eval(File.read(File.join('.','acts_as_revisable.gemspec')))
+
+Rake::GemPackageTask.new(spec) do |package|
+ package.gem_spec = spec
+end

0 comments on commit 87b7ba6

Please sign in to comment.