Skip to content
GridFS resource for RackDAV
Find file
Pull request Compare This branch is even with retro:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
spec
.document
.gitignore
LICENSE
README.md
Rakefile
VERSION
gridfs-rackdav.gemspec

README.md


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.

Something went wrong with that request. Please try again.