Rakefile in cruisestatus-1.1.5 vs Rakefile in cruisestatus-1.1.6

- old
+ new

@@ -32,9 +32,19 @@ task :spec => :check_dependencies task :default => :spec +begin + require "git_precommit" + GitPrecommit::PrecommitTasks.new + + task :default => ".git/hooks/pre-commit" + task :precommit => :default +rescue LoadError + puts "Git pre-commit hooks not loaded." +end + require 'rake/rdoctask' Rake::RDocTask.new do |rdoc| version = File.exist?('VERSION') ? File.read('VERSION') : "" rdoc.rdoc_dir = 'rdoc'