Sha256: 5609dc6806eccef0fb88dd8101edc9fd96de06a34a89f599a43cb27a1c04416b

Contents?: true

Size: 1.17 KB

Versions: 12

Compression:

Stored size: 1.17 KB

Contents

begin
  require 'bundler'
  Bundler::GemHelper.install_tasks
rescue Exception => e
end

require 'rake/testtask'

desc 'Run Slim benchmarks! (default parameters slow=false iterations=1000)'
task :bench, :iterations, :slow do
  ruby('benchmarks/run.rb')
end

Rake::TestTask.new('test') do |t|
  t.libs << 'lib' << 'test/slim'
  t.test_files = FileList['test/slim/test_*.rb']
  t.verbose = true
end

Rake::TestTask.new('test:rails') do |t|
  t.libs << 'lib'
  t.test_files = FileList['test/rails/test/test_*.rb']
  t.verbose = true
end

task 'test:ci' do |t|
  Rake::Task[ENV['TASK']].execute
end

begin
  require 'rcov/rcovtask'
  Rcov::RcovTask.new do |t|
    t.libs << 'lib' << 'test/slim'
    t.test_files = FileList['test/slim/test_*.rb']
    t.verbose = true
  end
rescue LoadError
  task :rcov do
    abort "RCov is not available. In order to run rcov, you must: gem install rcov"
  end
end

begin
  require 'yard'
  YARD::Rake::YardocTask.new do |t|
    t.files = %w(lib/**/*.rb)
  end
rescue LoadError
  task :yard do
    abort "YARD is not available. In order to run yard, you must: gem install yard"
  end
end

desc "Generate Documentation"
task :doc => :yard

task :default => 'test'

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
hamlet-0.5.0.1 Rakefile
hamlet-0.5.0 Rakefile
slim-1.0.4 Rakefile
hamlet-0.4.2 Rakefile
hamlet-0.4.1 Rakefile
hamlet-0.4.0 Rakefile
hamlet-0.3.0 Rakefile
hamlet-0.2.1 Rakefile
hamlet-0.2 Rakefile
hamlet-0.1 Rakefile
slim-1.0.3 Rakefile
slim-1.0.2 Rakefile