Rakefile in espresso-0.0.3 vs Rakefile in espresso-0.0.4
- old
+ new
@@ -14,10 +14,11 @@
gem.add_dependency('searchlogic', '>= 2.2.3')
gem.add_dependency('josevalim-inherited_resources', '>= 0.8.5')
gem.add_dependency('mislav-will_paginate', '>= 2.3.11')
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
+ Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
require 'rake/testtask'
@@ -42,18 +43,13 @@
task :test => :check_dependencies
task :default => :test
-require 'rake/rdoctask'
-Rake::RDocTask.new do |rdoc|
- if File.exist?('VERSION')
- version = File.read('VERSION')
- else
- version = ""
+begin
+ require 'yard'
+ YARD::Rake::YardocTask.new
+rescue LoadError
+ task :yardoc do
+ abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
end
-
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "espresso #{version}"
- rdoc.rdoc_files.include('README*')
- rdoc.rdoc_files.include('lib/**/*.rb')
end