Skip to content

Instantly share code, notes, and snippets.

View krobertson's full-sized avatar

Ken Robertson krobertson

View GitHub Profile
@krobertson
krobertson / handler.rb
Created January 1, 2009 19:12
rackdav
#
# rackdav (prototype) by Ken Robertson
#
# rackdav is a work in progress of a Rack middleware implementation of WebDAV
#
# This code is barely functional and ugly as hell, but meant to just work on figuring out compliance.
# It is built by working through the test suite provided by litmus (http://www.webdav.org/neon/litmus)
# Once it has compliance on the commands, it will be greatly cleaned up and refactored into an actual
# library instead of a gist.
#
@krobertson
krobertson / gist:31593
Created December 3, 2008 16:01
DataMapper 0.9.7 Marshal.dump Test
require 'rubygems'
require 'dm-core'
DataMapper.setup(:default, 'sqlite3::memory:')
class Dummy
include DataMapper::Resource
property :id, Serial
property :name, String
end