Rakefile in cany-0.0.2 vs Rakefile in cany-0.1.0
- old
+ new
@@ -1,5 +1,16 @@
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task default: :spec
+
+begin
+ require 'yard'
+ require 'yard/rake/yardoc_task'
+
+ YARD::Rake::YardocTask.new do |t|
+ t.files = %w(lib/**/*.rb)
+ t.options = %w(--output-dir doc/)
+ end
+rescue LoadError
+end