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

Version Path
gamebox-0.5.5 Rakefile
gamebox-0.5.4 Rakefile
gamebox-0.5.2 Rakefile
gamebox-0.5.1 Rakefile
gamebox-0.5.0 Rakefile
gamebox-0.4.1 Rakefile
gamebox-0.4.0 Rakefile
gamebox-0.4.0.rc11 Rakefile
gamebox-0.4.0.rc5 Rakefile
gamebox-0.4.0.rc4 Rakefile
gamebox-0.4.0.rc3 Rakefile
gamebox-0.4.0.rc2 Rakefile
gamebox-0.4.0.rc1 Rakefile