mongo_light 0.0.8 → 0.0.9

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.
@@ -30,6 +30,10 @@ module MongoLight
30
30
  c = collection || self.collection
31
31
  c.remove(map(selector), options)
32
32
  end
33
+ def insert(document, options = {}, collection = nil)
34
+ c = collection || self.collection
35
+ c.insert(map(document), options)
36
+ end
33
37
  def update(selector, document, options = {}, collection = nil)
34
38
  c = collection || self.collection
35
39
  c.update(map(selector), map(document), options)
@@ -1,3 +1,3 @@
1
1
  module MongoLight
2
- Version = '0.0.8'
2
+ Version = '0.0.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongo_light
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-29 00:00:00.000000000 Z
12
+ date: 2011-12-30 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email:
@@ -28,7 +28,7 @@ files:
28
28
  - lib/mongo_light.rb
29
29
  - license
30
30
  - readme.markdown
31
- homepage: http://github.com/karlseguib/MongoLight
31
+ homepage: http://github.com/karlseguin/MongoLight
32
32
  licenses: []
33
33
  post_install_message:
34
34
  rdoc_options: []