Sha256: 58fbdc44567be58e4d3fd6d9af734a5f936df76175afb7ab73d9bd12c3522ace
Contents?: true
Size: 1.24 KB
Versions: 2
Compression:
Stored size: 1.24 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 desc "Bundle in all required gems" task :bundle do |t| sh "bundle package" sh "bundle install vendor/bundle --disable-shared-gems" 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gamebox-0.1.1 | lib/gamebox/tasks/gamebox_tasks.rb |
gamebox-0.1.0 | lib/gamebox/tasks/gamebox_tasks.rb |