Rakefile in clever-ruby-0.6.0 vs Rakefile in clever-ruby-0.6.1
- old
+ new
@@ -7,25 +7,32 @@
test.libs << 'test'
test.pattern = 'test/**/*_test.rb'
test.verbose = true
end
-require 'rdoc/task'
+require 'yard'
require 'clever-ruby/version'
-Rake::RDocTask.new do |rdoc|
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "clever-ruby #{Clever::VERSION}"
- rdoc.rdoc_files.include('README*')
- rdoc.rdoc_files.include('lib/**/*.rb')
+YARD::Rake::YardocTask.new :doc
+
+require 'yardstick/rake/measurement'
+Yardstick::Rake::Measurement.new(:'doc-coverage') do |measurement|
+ measurement.output = 'doc_coverage.txt'
end
+require 'yardstick/rake/verify'
+Yardstick::Rake::Verify.new(:'doc-coverage-verify') do |verify|
+ verify.threshold = 100
+end
+
require 'rubocop/rake_task'
desc 'Run RuboCop on the lib directory'
RuboCop::RakeTask.new(:lint) do |task|
task.patterns = ['lib/**/*.rb', 'test/**/*.rb']
end
task default: [] do
Rake::Task[:test].execute
Rake::Task[:lint].execute
+ Rake::Task[:'doc-coverage'].execute
+ Rake::Task[:'doc-coverage-verify'].execute
end