tasks/yard.rake in madvertise-logging-1.0.2 vs tasks/yard.rake in madvertise-logging-1.0.3
- old
+ new
@@ -1,5 +1,9 @@
-require 'yard'
+begin
+ require 'yard'
-YARD::Rake::YardocTask.new do |t|
- t.files = ['lib/**/*.rb', 'README.rdoc']
+ YARD::Rake::YardocTask.new do |t|
+ t.files = ['lib/**/*.rb', 'README.rdoc']
+ end
+rescue LoadError
+ STDERR.puts "failed to load yard. please add gem 'yard' to your Gemfile in order to use yard"
end