Skip to content

Instantly share code, notes, and snippets.

# -*- encoding: utf-8 -*-
Sprout::Specification.new do |s|
s.name = "asunit4"
s.version = "4.2.pre"
s.authors = ["Luke Bayes", "Ali Mills", "Robert Penner"]
s.email = "asunit-users@lists.sourceforge.net"
s.homepage = "http://asunit.org"
s.summary = "The fastest and most flexible ActionScript unit test framework"
s.description =<<EOF
@lukebayes
lukebayes / rakefile.rb
Created March 28, 2010 20:07
Build ActionScript 2 and ActionScript 3 from same rakefile
require 'sprout'
############################################
# ActionScript 2 Build Tasks:
namespace :as2 do
sprout 'as2'
mtasc 'bin/AS2Client.swf' do |t|
@lukebayes
lukebayes / rakefile.rb
Created March 18, 2010 20:34
Build a SWF with the last release of each version of the Flex SDK
require 'sprout'
sprout 'as3'
sdk_versions = ['2.1.2', '3.5.1', '4.2.11']
# Create a Build task for each known revision of the Flex SDK
sdk_versions.each do |version|
primary = version.split('.').shift
desc "Compile with Flex SDK #{version}"
@lukebayes
lukebayes / flexunit_rakefile.rb
Created March 10, 2010 17:02
An example of how one might add FlexUnit CI to a Rakefile
desc "Compile the test harness"
mxmlc "bin/SomeProjectRunner.swf" do |t|
t.input = "src/FlexUnitRunner.mxml"
t.library_path << "lib/FlexUnit.swc"
end
desc "Compile and run the test harness"
fdb :cruise do |t|
t.file = "bin/SomeProjectRunner.swf"
t.test_result_prelude = "WhateverYouEmitBeforeXMLResultString"
@lukebayes
lukebayes / rakefile.rb
Created March 9, 2010 18:34
Example Rakefile that uses the in-progress HaXe bundle sources
require 'rubygems'
require 'sprout'
# Preliminary Haxe Bundle in vendor:
$:.push(File.dirname(__FILE__) + '/vendor/sprout-haxe-bundle/lib')
require 'sprout/haxe'
####################################
# Configure Project values:
---
:benchmark: false
:update_sources: true
gemcutter_key: [YOUR SECRET TOKEN HERE]
:backtrace: false
:bulk_threshold: 1000
:verbose: true
:sources:
- http://gemcutter.org
- http://gems.rubyforge.org
@lukebayes
lukebayes / rakefile.rb
Created March 3, 2010 09:34
A very thin Sprouts Rakefile
require 'rubygems'
require 'sprout'
sprout 'as3'
mxmlc 'bin/SomeProject.swf' do |t|
t.input = 'src/SomeProject.as'
end
desc "Compile the SWF"
task :compile => 'bin/SomeProject.swf'
desc "Create the index.html file"
erb_resolver 'bin/index.html' do |t|
t.swf_file = 'SomeProject.swf'
t.layout = 'Layout.xml'
end
Rails.cache.fetch("some_cache_key") do
first(:conditions => { :weather_station_id => station.to_param, :observed_at.lte => rounded_date} )
end
svn st | grep '^\?' | awk '{print $2}' | xargs rm -Rf