require "bundler/gem_tasks" require "rspec/core/rake_task" require 'rdoc/task' RSpec::Core::RakeTask.new(:spec) task :default => :spec desc "Open an IRB console with this gem loaded" task :console do require 'irb' require 'irb/completion' require 'rcmd' # You know what to do. ARGV.clear IRB.start end desc "Remove, build, and install gem" task :reinstall do puts "Uninstalling #{`gem list rcmd`}" `gem uninstall -x rcmd` Rake::Task["install"].reenable Rake::Task["install"].invoke end desc 'generate API documentation to doc/rdocs/index.html' Rake::RDocTask.new do |rd| rd.rdoc_dir = 'doc/rdocs' rd.main = 'README.md' rd.rdoc_files.include 'README.md', "lib/**/*\.rb", "exe/**/*" rd.options << '--inline-source' rd.options << '--line-numbers' rd.options << '--all' end