Sha256: 12b8d0f229e710d0ed798a40889d5ee2fcf90224159201a3b976562b1843f041
Contents?: true
Size: 746 Bytes
Versions: 13
Compression:
Stored size: 746 Bytes
Contents
require 'bundler' Bundler::GemHelper.install_tasks STATS_DIRECTORIES = [ %w(Source lib/), %w(Unit\ tests spec/) ].collect { |name, dir| [ name, "#{dir}" ] }.select { |name, dir| File.directory?(dir) } desc "Report code statistics (KLOCs, etc) from the application" task :stats do require "#{File.dirname(__FILE__)}/lib/gamebox/lib/code_statistics" CodeStatistics.new(*STATS_DIRECTORIES).to_s end begin require 'rspec/core/rake_task' desc "Run all rspecs" RSpec::Core::RakeTask.new(:spec) do |t| t.pattern = 'spec/**/*_spec.rb' t.rspec_opts = '-c' end task :default => :spec rescue LoadError puts "please install rspec to run tests" puts "install with gem install rspec" end # vim: syntax=Ruby
Version data entries
13 entries across 13 versions & 1 rubygems