require 'rdoc/task' # task :default => :test FILE_PATH = "./test/test_RPSrb.rb" task :test do # tests the ruby test file ruby FILE_PATH end # for Windows task :delgem do # this deletes any `.gem` file in current direcotry on Windows `DEL RPSrb-*.*.*.gem` end # for Mac task :delgemosx do # this deletes any `.gem` in current directory on Mac `rm -Rf RPSrb-*.*.*.gem` end # for Mac task :deldocosx do # this deletes the `doc` folder in the current directory `rm -Rf doc` end # for Windows task :deldoc do # this deletes the `doc` folder in the current directory `RMDIR /S /Q "doc"` end # task :uninstall do # `gem uninstall RPSrb` # end RDoc::Task.new do |rdoc| # rdoc.main = "README.rdoc" rdoc.rdoc_files.include("lib") rdoc.rdoc_dir = "doc" rdoc.title = "RPSrb RDocs" end