mongo_light 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,8 +30,7 @@ module MongoLight
30
30
  raw = options.delete(:raw) || false
31
31
  options[:query] = map(options[:query]) if options[:query]
32
32
  options[:update] = map(options[:update]) if options[:update]
33
- options[:sort] = map_options(options[:sort]) if options[:sort]
34
- options[:fields] = map_options(options[:fields]) if options[:fields]
33
+ options.merge(map_options(options))
35
34
  c = collection || self.collection
36
35
  found = c.find_and_modify(options)
37
36
  return nil if found.nil?
@@ -1,3 +1,3 @@
1
1
  module MongoLight
2
- Version = '0.1.1'
2
+ Version = '0.1.2'
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.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: