Permalink
Browse files

Require mime-types so GridFS can determine content types

  • Loading branch information...
1 parent 7e93aea commit 7b6c70aaf0e3973288555f9e0f100bd26459bb65 @bmarini bmarini committed Feb 6, 2011
Showing with 4 additions and 3 deletions.
  1. +1 −0 lib/rack/gridfs.rb
  2. +1 −0 rack-gridfs.gemspec
  3. +2 −3 test/test_helper.rb
View
@@ -1,4 +1,5 @@
require 'mongo'
+require 'mime/types'
module Rack
class GridFSConnectionError < StandardError ; end
View
@@ -16,6 +16,7 @@ Gem::Specification.new do |s|
s.add_dependency('rack')
s.add_dependency('mongo', '~> 1.2')
+ s.add_dependency('mime-types')
s.add_development_dependency('bundler', '>= 1.0.0')
s.add_development_dependency('mocha', '0.9.4')
View
@@ -1,4 +1,5 @@
require 'rubygems'
+require 'bundler/setup'
require 'test/unit'
require 'shoulda'
require 'mocha'
@@ -7,9 +8,7 @@
require 'rack/mock'
require 'rack/test'
-require 'mongo'
-require File.join(File.dirname(__FILE__), '..', 'lib', 'rack', 'gridfs')
-
+require 'rack/gridfs'
class Hash
def except(*keys)

0 comments on commit 7b6c70a

Please sign in to comment.