Sha256: 86dd68193d31172973d2d07e189904ab59fa79c59452a0f0764b4e6b717dddbd
Contents?: true
Size: 1015 Bytes
Versions: 9
Compression:
Stored size: 1015 Bytes
Contents
require 'rake' require 'rake/testtask' require 'rdoc/task' require 'bundler' Bundler::GemHelper.install_tasks desc 'Default: run unit tests.' task default: :test desc 'Test the flag_shih_tzu plugin.' Rake::TestTask.new(:test) do |t| t.libs << 'lib' t.pattern = 'test/**/*_test.rb' t.verbose = true end desc 'Generate documentation for the flag_shih_tzu plugin.' RDoc::Task.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = 'FlagShihTzu' rdoc.options << '--line-numbers' rdoc.rdoc_files.include('README.rdoc') rdoc.rdoc_files.include('lib/**/*.rb') end if defined?(Reek) # No Reek on JRuby require 'reek/rake/task' Reek::Rake::Task.new do |t| t.fail_on_error = true t.verbose = false t.source_files = 'lib/**/*.rb' end end if defined?(Roodi) # No Roodi on JRuby require 'roodi_task' RoodiTask.new do |t| t.verbose = false end end namespace :test do desc 'Test against all supported ActiveRecord versions' task :all do sh "bin/test.bash" end end
Version data entries
9 entries across 9 versions & 1 rubygems