mongoid-grid_fs 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  ##
2
2
  #
3
3
  class GridFS
4
- const_set :Version, '1.1.0'
4
+ const_set :Version, '1.1.1'
5
5
 
6
6
  class << GridFS
7
7
  def version
@@ -252,6 +252,10 @@
252
252
  put(readable, :filename => filename.to_s)
253
253
  end
254
254
 
255
+ def clear
256
+ file_model.destroy_all
257
+ end
258
+
255
259
  # TODO - opening with a mode = 'w' should return a GridIO::IOProxy
256
260
  # implementing a StringIO-like interface
257
261
  #
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "mongoid-grid_fs"
6
- spec.version = "1.1.0"
6
+ spec.version = "1.1.1"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "mongoid-grid_fs"
9
9
  spec.description = "a mongoid 3/moped compatible implementation of the grid_fs specification"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-grid_fs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: