public
Description: A game template for building and distributing Rubygame apps.
Homepage:
Clone URL: git://github.com/shawn42/gamebox.git
Click here to lend your support to: gamebox and make a donation at www.pledgie.com !
gamebox / Rakefile
100644 42 lines (36 sloc) 1.234 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
require 'rubygems'
gem 'hoe', '>= 2.3.0'
require 'hoe'
 
require File.dirname(__FILE__)+'/lib/gamebox/version'
Hoe.spec 'gamebox' do
  developer('Shawn Anderson', 'shawn42@gmail.com')
  author = "Shawn Anderson"
  description = "Framework for building and distributing games using Rubygame"
  email = 'shawn42@gmail.com'
  summary = "Framework for building and distributing games using Rubygame"
  url = "http://shawn42.github.com/gamebox"
  self.version = Gamebox::VERSION::STRING
  changes = paragraphs_of('History.txt', 12..13).join("\n\n")
  extra_deps << ['constructor']
  extra_deps << ['publisher']
  extra_deps << ['rspec']
  if extra_rdoc_files
    extra_rdoc_files << 'docs/getting_started.rdoc'
  end
  remote_rdoc_dir = ' ' # Release to root
end
 
STATS_DIRECTORIES = [
  %w(Source lib/)
].collect { |name, dir| [ name, "#{dir}" ] }.select { |name, dir| File.directory?(dir) }
 
desc "Report code statistics (KLOCs, etc) from the application"
task :stats do
  require 'code_statistics'
  CodeStatistics.new(*STATS_DIRECTORIES).to_s
end
 
require 'spec/rake/spectask'
desc "Run all specs"
Spec::Rake::SpecTask.new('spec') do |t|
  t.spec_files = FileList['spec/*_spec.rb']
end
task :test => :specs
 
# vim: syntax=Ruby