0.01
No commit activity in last 3 years
No release in over 3 years
gridfs-rackdav enables you to use GridFS as backend for WebDAV collections with RackDAV application
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.2.9

Runtime

>= 0.1
 Project Readme

GridFS-RackDAV - Mongo GridFS resource for RackDAV

Install

GridFS-RackDAV is hosted at Gemcutter:

$ sudo gem install gemcutter
$ sudo gem tumble
$ sudo gem install gridfs-rackdav

You should also have MongoDB installed.

Quickstart

Use simple rackup script for serving files from GridFS

@@ruby

require 'rubygems'
require 'rack_dav'
require 'gridfs-rackdav'

connection = Mongo::Connection.new('localhost').db('name-of-your-db')
 
use Rack::CommonLogger
 
run RackDAV::Handler.new({
  :root => 'root_of_collection',
  :connection => connection,
  :resource_class => GridFSRackDAV::GridFSResource
})

Specs

GridFS-RackDAV resource passes all of original specs that are included with RackDAV project.

Copyright

Copyright (c) 2009 Mihael Konjević. See LICENSE for details.