This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sprout' | |
# Load gems from a server other than rubyforge: | |
set_sources 'http://gems.gemcutter.org' | |
sprout 'as3' | |
############################################ | |
# Configure ProjectModel to be used by | |
# script/generate for appropriate bundles. | |
project_model :model do |m| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
svn st | grep '^\?' | awk '{print $2}' | xargs rm -Rf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.cache.fetch("some_cache_key") do | |
first(:conditions => { :weather_station_id => station.to_param, :observed_at.lte => rounded_date} ) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "Create the index.html file" | |
erb_resolver 'bin/index.html' do |t| | |
t.swf_file = 'SomeProject.swf' | |
t.layout = 'Layout.xml' | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
: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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'sprout' | |
# Preliminary Haxe Bundle in vendor: | |
$:.push(File.dirname(__FILE__) + '/vendor/sprout-haxe-bundle/lib') | |
require 'sprout/haxe' | |
#################################### | |
# Configure Project values: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sprout' | |
############################################ | |
# ActionScript 2 Build Tasks: | |
namespace :as2 do | |
sprout 'as2' | |
mtasc 'bin/AS2Client.swf' do |t| |