From f816a41b348437aab2f135c8be1722b807752c7e Mon Sep 17 00:00:00 2001 From: ahoward Date: Mon, 23 Jul 2012 22:08:14 -0600 Subject: [PATCH] wip --- lib/mongoid-grid_fs.rb | 6 +++++- mongoid-grid_fs.gemspec | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/mongoid-grid_fs.rb b/lib/mongoid-grid_fs.rb index a2683d9..90c377f 100644 --- a/lib/mongoid-grid_fs.rb +++ b/lib/mongoid-grid_fs.rb @@ -1,7 +1,7 @@ ## # class GridFS - const_set :Version, '1.1.0' + const_set :Version, '1.1.1' class << GridFS def version @@ -252,6 +252,10 @@ put(readable, :filename => filename.to_s) end + def clear + file_model.destroy_all + end + # TODO - opening with a mode = 'w' should return a GridIO::IOProxy # implementing a StringIO-like interface # diff --git a/mongoid-grid_fs.gemspec b/mongoid-grid_fs.gemspec index a71a5ae..25b1f84 100644 --- a/mongoid-grid_fs.gemspec +++ b/mongoid-grid_fs.gemspec @@ -3,7 +3,7 @@ Gem::Specification::new do |spec| spec.name = "mongoid-grid_fs" - spec.version = "1.1.0" + spec.version = "1.1.1" spec.platform = Gem::Platform::RUBY spec.summary = "mongoid-grid_fs" spec.description = "a mongoid 3/moped compatible implementation of the grid_fs specification"