Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (20 sloc) 0.613 kB
task :default do
Rake::Task['run_specs'].invoke
end
task :spec => [:run_specs] do
end
task :run_specs do
puts `spec --require specs/bootstrap.rb --color specs/*_spec.rb`
raise "specs failed" if $?.exitstatus != 0
end
task :run_specs_without_specdoc do
puts `spec --require specs/bootstrap.rb --color specs/*_spec.rb`
raise "specs failed" if $?.exitstatus != 0
end
task :loc do
loc, nf, blank = 0, 0, /^\s+?$/
Dir['**/*.rb'].each do |path|
open(path) { |f| nf += 1; f.each { |line| loc += 1 unless line =~ blank } }
end
puts "There are #{loc} non-blank line(s) across #{nf} file(s)."
end
Jump to Line
Something went wrong with that request. Please try again.