Sha256: 95fff3467f2efc48a2ea2331afa82690994890930e7fdf46689e5908bda50df6
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
require 'gamebox/lib/platform' task :default => :run desc "Run the game" task :run do |t| if Platform.mac? sh "rsdl src/app.rb" else sh "ruby src/app.rb" end end desc "Report code statistics (KLOCs, etc) from the application" task :stats do require 'gamebox/lib/code_statistics' CodeStatistics.new(*STATS_DIRECTORIES).to_s end desc "Run the game with debug server" task :debug do |t| if Platform.mac? sh "rsdl src/app.rb -debug-server" else sh "ruby src/app.rb -debug-server" end end begin require 'spec/rake/spectask' desc "Run all specs" Spec::Rake::SpecTask.new('spec') do |t| t.spec_opts = ["-r", "./spec/helper"] t.spec_files = FileList['spec//*_spec.rb'] end task :rspec => :spec task :test => :spec rescue LoadError puts "warning: rspec not installed" puts "install with gem install rspec" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gamebox-0.0.9 | lib/gamebox/tasks/gamebox_tasks.rb |