Rakefile in porolog-0.0.2 vs Rakefile in porolog-0.0.3

- old
+ new

@@ -3,10 +3,11 @@ # # 2 May 2018 # require 'rake/testtask' +require 'yard' # -- Run All Tests Task -- Rake::TestTask.new do |task| task.libs << 'test' @@ -23,17 +24,23 @@ task.pattern = test_file task.warning = nil end end +# -- Documentation Task -- +YARD::Rake::YardocTask.new('doc') do |task| + task.stats_options = ['--list-undoc'] +end + # -- Tasks -- task default: :test desc 'Help' task :help do puts <<-EOF Porolog is a Ruby library. See README.md for more information. + See doc/index.html for documentation. Run rake -T for other tasks. EOF end