Sha256: 4e4a0f452a160818a6d1d5668c81a07b8292d2879faddf5bb031d17bf031fb5a
Contents?: true
Size: 910 Bytes
Versions: 15
Compression:
Stored size: 910 Bytes
Contents
$:.unshift File.expand_path("../lib", __FILE__) require 'rubygems' require "bundler/gem_tasks" test_package = File.join(File.dirname(__FILE__), 'test', 'unit') $: << test_package unless $:.include? test_package Bundler.require require 'rake/clean' require 'rake/testtask' #require File.join(File.dirname(__FILE__), 'lib', 'flashsdk', 'module') namespace :test do Rake::TestTask.new(:units) do |t| t.libs << "test/unit" t.test_files = FileList["test/unit/*_test.rb"] t.verbose = true end end desc "Run the test harness" task :test => 'test:units' file 'pkg' do FileUtils.makedirs 'pkg' end gem_package = "flashsdk-#{FlashSDK::VERSION}.gem" file "pkg/#{gem_package}" => [:clean, 'pkg'] do sh "gem build flashsdk.gemspec" FileUtils.mv gem_package, "pkg/#{gem_package}" end desc "Create the gem package" task :package => "pkg/#{gem_package}" CLEAN.add gem_package CLEAN.add 'pkg'
Version data entries
15 entries across 15 versions & 2 rubygems