require 'rdoc/task' task :default => [:test, :PlayRockPaperScissorsGame, :rps] file_path = "./test/test_rps.rb" # rps = Regexp.new(/\A((PlayRockPaperScissorsGame)(\-)(\d\.\d\.\d)(\.gem))\z/) task :test do ruby file_path end task :PlayRockPaperScissorsGame do ruby file_path end task :rps do ruby file_path end RDoc::Task.new do |rdoc| rdoc.main = "README.md" rdoc.rdoc_files.include(`git ls-files -z`.split("\x0")) end