This file contains 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 'date' | |
TorqueBox.configure do | |
... | |
# Tuesday through Friday, we just run yesterday's report. | |
job SummaryReportJob do | |
name 'report.weekday' | |
cron WEEKDAY_CRON |
This file contains 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
APPNAME = 'wh' | |
require 'json' | |
require 'rake-pipeline-web-filters' | |
WebFilters = Rake::Pipeline::Web::Filters | |
class LoaderFilter < WebFilters::MinispadeFilter | |
def generate_output(inputs, output) | |
inputs.each do |input| |
This file contains 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
class StylusFilter < Rake::Pipeline::Filter | |
def initialize(&block) | |
block ||= proc { |input| input.sub(/\.styl$/, '.css') } | |
super(&block) | |
end | |
def generate_output(inputs, output) | |
inputs.each do |input| | |
output.write `stylus #{input.fullpath}` |
This file contains 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
source :rubygems | |
gem "compass" | |
gem "rake-pipeline", :git => "https://github.com/livingsocial/rake-pipeline.git" | |
gem "rake-pipeline-web-filters", :git => "https://github.com/wycats/rake-pipeline-web-filters.git" |
This file contains 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 'rake-pipeline-web-filters' | |
# package js | |
input 'packages/emberjs/dist', 'ember.js' | |
input 'packages/package_A' | |
input 'packages/package_B' | |
# project js | |
input 'lib' |
This file contains 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 "json" | |
require "rake-pipeline-web-filters" | |
input "assets" | |
output "public" | |
class HandlebarsFilter < Rake::Pipeline::Filter | |
def initialize(&block) | |
block ||= proc { |input| input.sub(/\.handlebars$/, '.js') } | |
super(&block) |
This file contains 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 "json" | |
require "rake-pipeline-web-filters" | |
# this gives you concat, coffee_script, and minispade methods | |
require "rake-pipeline-web-filters/helpers" | |
class HandlebarsFilter < Rake::Pipeline::Filter | |
def initialize(&block) | |
block ||= proc { |input| input.sub(/\.handlebars$/, '.js') } | |
super(&block) |
This file contains 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 "json" | |
class HandlebarsFilter < Rake::Pipeline::Filter | |
def initialize(&block) | |
block ||= proc { |input| input.sub(/\.handlebars$/, '.js') } | |
super(&block) | |
end | |
def generate_output(inputs, output) | |
inputs.each do |input| | |
output.write "return Ember.Handlebars.compile(#{input.read.to_json})" |
This file contains 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
dudley@kima gems/vfs :> git rev-parse HEAD 2x-dev// | |
b6c58111b3e130b88182e5ade2b87a66cc2eaaa6 | |
dudley@kima gems/vfs :> export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home 2x-dev// | |
dudley@kima gems/vfs :> mvn -v 2x-dev// | |
Apache Maven 3.0.3 (r1075438; 2011-02-28 11:31:09-0600) | |
Maven home: /usr/local/Cellar/maven/3.0.3/libexec | |
Java version: 1.6.0_26, vendor: Apple Inc. | |
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home | |
Default locale: en_US, platform encoding: MacRoman | |
OS name: "mac os x", version: "10.7.1", arch: "x86_64", family: "mac" |
NewerOlder