mongoid-grid_fs 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/mongoid-grid_fs.rb +5 -1
- data/mongoid-grid_fs.gemspec +1 -1
- metadata +1 -1
data/lib/mongoid-grid_fs.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
##
|
2
2
|
#
|
3
3
|
class GridFS
|
4
|
-
const_set :Version, '1.1.
|
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
|
#
|
data/mongoid-grid_fs.gemspec
CHANGED
@@ -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.
|
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"
|