This commit is contained in:
ahoward 2012-07-23 22:08:14 -06:00
parent b024d8d707
commit f816a41b34
2 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,7 @@
## ##
# #
class GridFS class GridFS
const_set :Version, '1.1.0' const_set :Version, '1.1.1'
class << GridFS class << GridFS
def version def version
@ -252,6 +252,10 @@
put(readable, :filename => filename.to_s) put(readable, :filename => filename.to_s)
end end
def clear
file_model.destroy_all
end
# TODO - opening with a mode = 'w' should return a GridIO::IOProxy # TODO - opening with a mode = 'w' should return a GridIO::IOProxy
# implementing a StringIO-like interface # implementing a StringIO-like interface
# #

View File

@ -3,7 +3,7 @@
Gem::Specification::new do |spec| Gem::Specification::new do |spec|
spec.name = "mongoid-grid_fs" spec.name = "mongoid-grid_fs"
spec.version = "1.1.0" spec.version = "1.1.1"
spec.platform = Gem::Platform::RUBY spec.platform = Gem::Platform::RUBY
spec.summary = "mongoid-grid_fs" spec.summary = "mongoid-grid_fs"
spec.description = "a mongoid 3/moped compatible implementation of the grid_fs specification" spec.description = "a mongoid 3/moped compatible implementation of the grid_fs specification"