Skip to content

Instantly share code, notes, and snippets.

View jyurek's full-sized avatar

Jon Yurek jyurek

View GitHub Profile
@jyurek
jyurek / tempify.rb
Created July 14, 2010 13:25
Make any File a temporary file
require 'fileutils'
class File
def self.finalizer(path)
lambda do
FileUtils.rm(path)
end
end
def tempify!
group :first do
gem "activerecord", "2.0.5"
end
group :second do
gem "activerecord", "2.3.5"
end
group :third do
gem "activerecord", "3.0.0.rc2"