mongocore 0.1.3 → 0.1.4

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: 1632e0446a4711953c509726122f1c51538e5c71
4
- data.tar.gz: 610443c8728e6641559c819134ceb50d78499c4d
3
+ metadata.gz: b5142d4d77d8f53bfa680bddfc7d4c30f43a6781
4
+ data.tar.gz: fe5706822aceef5d22b4aacafb4e0b93a5694a7f
5
5
  SHA512:
6
- metadata.gz: 38a33cbffc7ccd7e6322f7ee17bdc4df74bd78e655259a57b60626c0385b52c7ce425d9f8d57c7c1684d4aa1682d9f1c485fcbe792bc8bd5f472ac0a8760a4bf
7
- data.tar.gz: 22bcda0691d064dbc99f2f1b029193a7aae015bf0cd63882139a4cd320338990f26f7a00234e59ded41b039800e45129ef99de7b68326027c0b316e5f3dde36b
6
+ metadata.gz: edd90f1124dd3b80489e87e578e2c289ffcd2f641c7a3d326201990fa3b3b9b159823ff5cd39e6a1e53e1a68fbf059e22d4e27a1ccfbfb0903cd6de776502013
7
+ data.tar.gz: 4d2e8e4e1f1b2179fd748cc33a3c2ca12f034bb3bc02d836d4b48ccecd2af4467de711587cd597acbc3c11f4516f56768f92c22a9a48639fed2a64817e8ea0dc
@@ -83,7 +83,7 @@ module Mongocore
83
83
  def many(key, data)
84
84
  t = %Q{
85
85
  def #{key}
86
- mq(#{key[0..-2].capitalize}, {:#{@klass.to_s.downcase}_id => @_id}, {}, :source => self)
86
+ mq(#{key.to_s.singularize.capitalize}, {:#{@klass.to_s.downcase}_id => @_id}, {}, :source => self)
87
87
  end
88
88
  }
89
89
  @klass.class_eval t
data/mongocore.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'mongocore'
3
- s.version = '0.1.3'
3
+ s.version = '0.1.4'
4
4
  s.date = '2017-10-15'
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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fugroup Limited