require 'rdoc/task' task :default => [: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")) rdoc.rdoc_files.include(["lib/**/*.rb", "bin/*", "test/*.rb", "Gemfile", "Rakefile", "rps.gemspec", "README.md"]) rdoc.rdoc_dir = "rdoc" end