Sha256: de6542c374c83259b420d9e3618b52c1c7d33d921a2b798d48fe073de7e9f101

Contents?: true

Size: 789 Bytes

Versions: 1

Compression:

Stored size: 789 Bytes

Contents

require 'rdoc/task'

# task :default => :test

file_path = "./test/test.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

RDoc::Task.new do |rdoc|
  # rdoc.main = "README.rdoc"
  rdoc.rdoc_files.include("lib")
  rdoc.rdoc_dir = "doc"
  rdoc.title = "RPSrb RDocs"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
RPSrb-0.0.0 Rakefile