Skip to content

Instantly share code, notes, and snippets.

this is just a test. it is only a test.
test test
@defunkt
defunkt / test-spec-mini.rb
Created November 16, 2008 10:34
test/spec/mini 3
##
# test/spec/mini 3
# http://gist.github.com/25455
# [email protected]
# file:lib/test/spec/mini.rb
#
def context(*args, &block)
return super unless (name = args.first) && block
require 'test/unit'
klass = Class.new(defined?(ActiveSupport::TestCase) ? ActiveSupport::TestCase : Test::Unit::TestCase) do
rake RUBYARCHDIR=/Users/chris/.gems/gems/insinuate-0.0.0-universal-darwin-9/lib RUBYLIBDIR=/Users/chris/.gems/gems/insinuate-0.0.0-universal-darwin-9/lib
/Users/chris/.gems/gems/rake-0.8.3/lib/rake/gempackagetask.rb:13:Warning: Gem::manage_gems is deprecated and will be removed on or after March 2009.
(in /Users/chris/.gems/gems/insinuate-0.0.0-universal-darwin-9)
=== BUILDING NATIVE TARGET Insinuate OF PROJECT Insinuate WITH CONFIGURATION Release ===
Checking Dependencies...
Processing /Users/chris/.gems/gems/insinuate-0.0.0-universal-darwin-9/app/build/Release/Insinuate.app/Contents/Info.plist Info.plist
cd /Users/chris/.gems/gems/insinuate-0.0.0-universal-darwin-9/app
<com.apple.tools.info-plist-utility> Info.plist -genpkginfo /Users/chris/.gems/gems/insinuate-0.0.0-universal-darwin-9/app/build/Release/Insinuate.app/Contents/PkgInfo -expandbuildsettings -o /Users/chris/.gems/gems/insinuate-0.0.0-universal-darwin-9/app/build/Release/Insinuate.app/Contents/Info.plist
@defunkt
defunkt / god.rb
Created November 18, 2008 18:04 — forked from mojombo/gist:26183
rails_root = "/data/github/current"
20.times do |num|
God.watch do |w|
w.name = "dj-#{num}"
w.group = 'dj'
w.interval = 30.seconds
w.start = "rake -f #{rails_root}/Rakefile production jobs:work"
w.uid = 'git'
$ gh fetch schacon --learn
Fetching schacon/master
== git fetch schacon master:refs/remotes/schacon/master
== git update-ref refs/heads/schacon/master refs/remotes/schacon/master
== git checkout schacon/master
warning: refname 'schacon/master' is ambiguous.
Switched to branch "schacon/master"
$ gh fetch_all schacon --learn
== git fetch schacon
$ gh clone schacon/grit --learn
/*****************************************************************************/
/*
/* Common
/*
/*****************************************************************************/
/* Global Reset */
* {
margin: 0;
class Array
def second
self[1]
end
end
test
test2