Sha256: a23104593914d0d2fda413c927681735f6152023234ec1b3558f70dd4a99e9b3
Contents?: true
Size: 1.21 KB
Versions: 8
Compression:
Stored size: 1.21 KB
Contents
require 'rake' require 'rake/testtask' require 'rake/rdoctask' require 'rake/gempackagetask' require 'rcov/rcovtask' require "load_multi_rails_rake_tasks" spec = eval(File.read("#{File.dirname(__FILE__)}/awesome_nested_set.gemspec")) PKG_NAME = spec.name PKG_VERSION = spec.version Rake::GemPackageTask.new(spec) do |pkg| pkg.need_zip = true pkg.need_tar = true end desc 'Default: run unit tests.' task :default => :test desc 'Test the awesome_nested_set plugin.' Rake::TestTask.new(:test) do |t| t.libs << 'lib' t.pattern = 'test/**/*_test.rb' t.verbose = true end desc 'Generate documentation for the awesome_nested_set plugin.' Rake::RDocTask.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = 'AwesomeNestedSet' rdoc.options << '--line-numbers' << '--inline-source' rdoc.rdoc_files.include('README.rdoc') rdoc.rdoc_files.include('lib/**/*.rb') end namespace :test do desc "just rcov minus html output" Rcov::RcovTask.new(:coverage) do |t| # t.libs << 'test' t.test_files = FileList['test/**/*_test.rb'] t.output_dir = 'coverage' t.verbose = true t.rcov_opts = %w(--exclude test,/usr/lib/ruby,/Library/Ruby,lib/awesome_nested_set/named_scope.rb --sort coverage) end end
Version data entries
8 entries across 8 versions & 4 rubygems