Rakefile in queencheck-0.0.2 vs Rakefile in queencheck-0.1.0

- old
+ new

@@ -1,12 +1,10 @@ require 'bundler' require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) -task :default => :spec - begin require 'jeweler' Jeweler::Tasks.new do |gemspec| gemspec.name = "queencheck" gemspec.summary = "like haskell's QuickCheck" @@ -17,12 +15,16 @@ end rescue LoadError puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" end -require 'yard' -require 'yard/rake/yardoc_task' -YARD::Rake::YardocTask.new do |t| - t.files = ['lib/**/*.rb'] - t.options = ['--plugin=yard-tomdoc'] - t.options << '--debug' << '--verbose' if $trace +begin + require 'yard' + require 'yard/rake/yardoc_task' + YARD::Rake::YardocTask.new do |t| + t.files = ['lib/**/*.rb'] + t.options = ['--plugin=yard-tomdoc'] + t.options << '--debug' << '--verbose' if $trace + end +rescue LoadError + puts "YARD not available. Install it with: bundle install" end