mongocore 0.1.9 → 0.1.10

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '0926f21e762a1dfd60a63bc58ba12c9fc9dccf1e'
4
- data.tar.gz: c933d56aa6bff657ccefd65611dfc11199aa276b
3
+ metadata.gz: fda911c258361d99b7afe5d80a9c010193f3fa80
4
+ data.tar.gz: 9e1f6e38fb9bc010800c2cb762e16b7c5e32635a
5
5
  SHA512:
6
- metadata.gz: 7c1ee0350b7569e1e2883701710834df7612a78f687c6607e7091053892e7bd76cebd2f5590bded66a5fec3f7b0f5719248b1a8d9406ca77af54ba4fcba1aabe
7
- data.tar.gz: 72139c91f9d3291ad023bce34cb8c786a2d26e417a171e7b438fdf28c41db99a9615432cb90743a3372769aae5ec6a110dbf5329d4d8e6e454435a767c1e21b8
6
+ metadata.gz: f5cc8bbb7c477681380ca6500d47c00c4d6aafea39dbb960e7c619d77e3b2a8379f970b87212350e766670e66fad4c12ab0a2b02aa4c15d1e4e1150befe76ff6
7
+ data.tar.gz: 75eac89002d5db829468ead10e60068ffa89690193947774ec7da5238ce2eddac463b01dd8b814d258506f6628300c710f382a01e9310ca88b39a9df1d21b26a
@@ -7,7 +7,7 @@ require 'mongo'
7
7
  require 'request_store'
8
8
 
9
9
  module Mongocore
10
- VERSION = '0.1.9'
10
+ VERSION = '0.1.10'
11
11
 
12
12
  # # # # # #
13
13
  # Mongocore Ruby Database Driver.
@@ -224,7 +224,7 @@ module Mongocore
224
224
 
225
225
  # Replace _id with id, takes a hash
226
226
  def string_id(a)
227
- a.each{|k, v| a[k] = v.to_s}; a.delete(:_id); {:id => id}.merge(a)
227
+ a.each{|k, v| a[k] = v.to_s if v.is_a?(BSON::ObjectId)}; a.delete(:_id); {:id => id}.merge(a)
228
228
  end
229
229
 
230
230
  private
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'mongocore'
3
- s.version = '0.1.9'
3
+ s.version = '0.1.10'
4
4
  s.date = '2017-10-25'
5
5
  s.summary = "MongoDB ORM implementation on top of the Ruby MongoDB driver"
6
6
  s.description = "Does validations, associations, scopes, filters, pagination, counter cache, request cache, and nested queries. Using a YAML schema file, which supports default values, data types, and security levels for each key."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongocore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fugroup Limited