Permalink
Browse files

Clean up Rakefile

  • Loading branch information...
1 parent 50f2dcf commit 3225004f29b9e250953d12f43ba4c8565a9a1c3e @toretore committed Aug 9, 2012
Showing with 5 additions and 17 deletions.
  1. +5 −17 Rakefile
View
@@ -1,27 +1,15 @@
require 'rake'
-require 'rake/gempackagetask'
require 'rake/testtask'
-require 'fileutils'
-
-include FileUtils
-
-spec = eval(File.read('barby.gemspec'))
-
-Rake::GemPackageTask.new(spec) do |pkg|
- pkg.need_tar = false
-end
-
-task :default => "pkg/#{spec.name}-#{spec.version}.gem" do
- puts "generated latest version"
-end
+require 'rdoc/task'
Rake::TestTask.new do |t|
t.libs = ['lib','test']
t.test_files = Dir.glob("test/**/*_test.rb").sort
t.verbose = true
end
-desc "Build RDoc"
-task :doc do
- system "rm -rf site/rdoc; rdoc -tBarby -xvendor -osite/rdoc -mREADME lib/**/* README"
+RDoc::Task.new do |rdoc|
+ rdoc.main = "README"
+ rdoc.rdoc_files.include("README", "lib")
+ rdoc.rdoc_dir = 'doc'
end

0 comments on commit 3225004

Please sign in to comment.