We got nominated! Help us out and vote for GitHub as Best Bootstrapped Startup of 2008. (You can vote once a day.) [ hide ]

public
Rubygem
Fork of nex3/haml
Description: HTML Abstraction Markup Language - A Markup Haiku
Homepage: http://haml.hamptoncatlin.com
Clone URL: git://github.com/chriseppstein/haml.git
hcatlin (author)
Mon Oct 02 16:49:53 -0700 2006
commit  8d7b7d407cbca108f0e536793dfabf3b918485e7
tree    325d2d65f74a5d76dcc32426bd982567a3e83824
parent  f983380373e080252da9877b08dfe63536624591
haml / Rakefile
100644 36 lines (30 sloc) 0.926 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
$:.unshift File.join(File.dirname(__FILE__), "..", "lib")
 
desc 'Default: run unit tests.'
task :default => :test
 
desc 'Test the HAML plugin'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end
 
desc 'Benchmark HAML against ERb. The benchmark routine is run 100. Use TIMES=n to override'
task :benchmark do
  puts '-'*51, "+ Benchmark: HAML vs. ERb", '-'*51
  puts "Running benchmark #{ENV['TIMES']} times..." if ENV['TIMES']
  puts `ruby test/benchmark.rb #{ENV['TIMES']}`
  puts '-'*51
end
 
desc 'Generate documentation for the haml plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = 'Haml'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README')
  rdoc.rdoc_files.include('lib/**/*.rb')
end
 
task :rcov do
  `rcov test/*.rb`
end