examples/skeleton/Rakefile in merb-0.3.4 vs examples/skeleton/Rakefile in merb-0.3.7

- old
+ new

@@ -1,12 +1,15 @@ require 'rake' require 'rake/rdoctask' require 'rake/testtask' -require 'code_statistics' require 'fileutils' require 'rubygems' -require 'merb' +if File.directory?( File.join(File.dirname(__FILE__), "dist/framework")) + require File.join(File.dirname(__FILE__), "dist/framework/merb") +else + require 'merb' +end require MERB_FRAMEWORK_ROOT+'/merb_tasks' MERB_ROOT = File.dirname(__FILE__) include FileUtils @@ -54,29 +57,12 @@ sh %{rake rcov} sh %{rake spec} end ############################################################################## -# Statistics -############################################################################## - -STATS_DIRECTORIES = [ - %w(Code lib/), - %w(Unit\ tests test/unit), - %w(Functional\ tests test/functional) -].collect { |name, dir| [ name, "./#{dir}" ] }.select { |name, dir| File.directory?(dir) } - -desc "Report code statistics (KLOCs, etc) from the application" -task :stats do - #require 'extra/stats' - verbose = true - CodeStatistics.new(*STATS_DIRECTORIES).to_s -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 \ No newline at end of file +end