Public Gists by tjstankus

Gravatar
Thu Nov 05 07:13:18 -0800 2009
1
2
3
require 'active_support/ordered_hash'
require 'active_support/core_ext/enumerable'
 
Gravatar
Mon Sep 14 10:52:12 -0700 2009
1
2
3
namespace :tags do
  task :generate do
    puts 'Generating tags...'
Gravatar
Mon Sep 07 18:40:07 -0700 2009
1
2
3
# mongo_template.rb
 
# remove unneeded defaults
Gravatar
Wed Jun 17 13:22:29 -0700 2009
1
2
3
# Slight modifications to code posted by Gregory Brown at http://pastie.org/515450
require 'delegate'
 
Gravatar
Wed Jun 10 11:11:08 -0700 2009
1
2
3
module Subclasses
  # return a list of the subclasses of a class
  def subclasses(direct = false)
Gravatar
Tue May 26 22:52:53 -0700 2009
1
2
3
[08:48 AM:gist-99771(master)] $ irb -rubygems -r myapp.rb -r rack/test
>> app = Rack::Test::Session.new(Sinatra::Application)
=> #<Rack::Test::Session:0x17e8820 @headers={}, @app=Sinatra::Application>
Gravatar
Thu May 21 14:52:07 -0700 2009
1
2
3
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
# Version 2, December 2004
#
Gravatar
Thu Apr 23 08:38:12 -0700 2009
1
2
3
namespace :test do
  Rake::TestTask.new(:gems => :environment) do |t|
    t.libs << "test"
Gravatar
Fri Feb 27 20:47:22 -0800 2009
1
2
3
require 'rubygems'
require 'mp4info'
require 'fileutils'
Gravatar
Wed Feb 18 21:22:06 -0800 2009
1
2
3
namespace :static do
 
  desc 'Create a static html version of the site'