require 'rubygems' Gem.clear_paths Gem.path.unshift(File.join(File.dirname(__FILE__), "gems")) require 'rake' require 'rake/rdoctask' require 'rake/testtask' require 'spec/rake/spectask' require 'fileutils' require 'merb-core' require 'rubigen' $RAKE_ENV = true Merb.load_dependencies include FileUtils # # # Get Merb plugins and dependencies Merb::Plugins.rakefiles.each {|r| require r } # #desc "Packages up Merb." #task :default => [:package] desc "load merb_init.rb" task :merb_init do require 'merb-core' require File.dirname(__FILE__)+'/config/init.rb' end task :uninstall => [:clean] do sh %{sudo gem uninstall #{NAME}} end desc 'Run all tests, specs and finish with rcov' task :aok do sh %{rake rcov} sh %{rake specs} end unless Gem.cache.search("haml").empty? namespace :haml do desc "Compiles all sass files into CSS" task :compile_sass do gem 'haml' require 'sass' puts "*** Updating stylesheets" Sass::Plugin.update_stylesheets puts "*** Done" end end end ############################################################################## # SVN ############################################################################## desc "Add new files to subversion" task :svn_add do system "svn status | grep '^\?' | sed -e 's/? *//' | sed -e 's/ /\ /g' | xargs svn add" end