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 'jruby/rack' | |
module JRuby | |
module Rack | |
class MerbServletHelper < ::JRuby::Rack::ServletHelper | |
attr_reader :merb_environment, :merb_root | |
def initialize(servlet_context = nil) | |
super | |
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@hiro beancounter-main :> ./bin/jetty | |
2008-10-01 12:53:50.032::INFO: Logging to STDERR via org.mortbay.log.StdErrLog | |
2008-10-01 12:53:50.125::WARN: Could not instantiate listener org.quartz.ee.servlet.QuartzInitializerListener | |
java.lang.ClassNotFoundException: org.quartz.ee.servlet.QuartzInitializerListener | |
at java.net.URLClassLoader$1.run(URLClassLoader.java:200) | |
at java.security.AccessController.doPrivileged(Native Method) | |
at java.net.URLClassLoader.findClass(URLClassLoader.java:188) | |
at java.lang.ClassLoader.loadClass(ClassLoader.java:306) | |
at java.lang.ClassLoader.loadClass(ClassLoader.java:251) | |
at org.mortbay.util.Loader.loadClass(Loader.java:91) |
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
// BeancounterJob.java | |
package beancounter.jobs; | |
import org.jruby.Ruby; | |
import org.quartz.Job; | |
import org.quartz.JobDataMap; | |
import org.quartz.JobExecutionContext; | |
import org.quartz.JobExecutionException; | |
public class BeancounterJob implements Job { |
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
diff --git i/scripts/functions/bundler w/scripts/functions/bundler | |
index ec49ef3..5126cab 100644 | |
--- i/scripts/functions/bundler | |
+++ w/scripts/functions/bundler | |
@@ -19,7 +19,7 @@ bundle() | |
if (unset bundle ; command -v bundle >/dev/null 2>&1) | |
then | |
printf "Bundling your gems. This may take a few minutes on first run.\n" | |
- if [[ "$*" =~ *install* ]] | |
+ if [[ "$*" =~ install ]] |
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@perks ~/Desktop :> cat parsedate.rb | |
require 'date' | |
10_000.times do |i| | |
Date.parse("2010-01-01") | |
end | |
dudley@perks ~/Desktop :> rvm 1.8.7,1.9.2,rbx-2.0.0pre exec time ruby parsedate.rb | |
real 0m2.894s |
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 'rubygems' | |
require 'bundler/setup' | |
require 'rack' | |
require 'bpm' | |
map '/assets' do | |
run BPM::Pipeline.new(BPM::Project.new('.'), 'debug', true) | |
end |
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" |
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
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" | |
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) |
OlderNewer