mongoid_embed_finder 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/mongoid_embed_finder.rb +0 -4
- data/lib/mongoid_embed_finder/version.rb +1 -1
- metadata +1 -2
- data/LICENSE +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70d886a2e30dc89447b1e95b6b2dc1384ef80e9a
|
4
|
+
data.tar.gz: 69221aca597bfe5f984551a0dec804b72895ddd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12b5c6df2b73f7781571f55cc55c07fd80293856732af0e771b15519387c17bb821b35e4c05e7c599f1f9b465db88d3d9ebfe2dcb7fbb8921613b629672eae23
|
7
|
+
data.tar.gz: b687bdd8a2631c16c134f8f0ed14d533d70a25c87e5c0ce83e6fb06c02c61fc876d7c639714da209a30b4f7d5b54749cbebc7e2c01a1df4922753872bd097ffd
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# MongoidEmbedFinder
|
2
2
|
|
3
|
+
[![Code Climate](https://codeclimate.com/github/growthrepublic/mongoid_embed_finder.png)](https://codeclimate.com/github/growthrepublic/mongoid_embed_finder)
|
4
|
+
|
3
5
|
This simple gem lets you find embedded documents easily. It does not instantiate parent record with a whole bunch of embedded documents. Instead it instantiates found embedded documents first and then sets parent association.
|
4
6
|
|
5
7
|
At the moment it allows you to find only one embedded document and assumes relation `embeds_many`.
|
@@ -53,7 +55,7 @@ Latter group should be passed under `parent` key. Those attributes are passed do
|
|
53
55
|
|
54
56
|
## Contributing
|
55
57
|
|
56
|
-
1. Fork it ( https://github.
|
58
|
+
1. Fork it ( https://github.com/growthrepublic/mongoid_embed_finder/fork )
|
57
59
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
58
60
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
59
61
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/lib/mongoid_embed_finder.rb
CHANGED
@@ -1,8 +1,4 @@
|
|
1
1
|
require "mongoid_embed_finder/version"
|
2
|
-
require "mongoid_embed_finder/projector"
|
3
|
-
require "mongoid_embed_finder/single_projector"
|
4
|
-
require "mongoid_embed_finder/relation_discovery"
|
5
|
-
require "mongoid_embed_finder/hierarchy_builder"
|
6
2
|
require "mongoid_embed_finder/runner"
|
7
3
|
|
8
4
|
module MongoidEmbedFinder
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_embed_finder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artur Hebda
|
@@ -106,7 +106,6 @@ extra_rdoc_files: []
|
|
106
106
|
files:
|
107
107
|
- ".gitignore"
|
108
108
|
- Gemfile
|
109
|
-
- LICENSE
|
110
109
|
- LICENSE.txt
|
111
110
|
- README.md
|
112
111
|
- Rakefile
|
data/LICENSE
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright (c) 2009-2013 Artur Hebda
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|