mongoid-document_path 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/mongoid/document_path.rb +1 -1
- data/lib/mongoid/document_path/version.rb +1 -1
- data/mongoid-document_path.gemspec +1 -1
- metadata +5 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 399506a4a3b4fcf938d308f5b55ff8cf842ee1927df9f0566ab651ee53b31777
|
4
|
+
data.tar.gz: 177ed04c622a36fddd159fa06c6a319acdd6def84a1729402ae871c2c8e4e95a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 322aba1f11621ae5452cfbdf631af46487cb517edcc3ec14df1c363c883c621402e0c85f03b50b1c4ddf261fa3039253b7c6fcb76fc70220691e18e1107a42b4
|
7
|
+
data.tar.gz: f60e08c5c12a6ca8e170399d3d83641771a1344b987b0f3571a6d235d4684f22c29c41c8e731ace93325893844ad4eff0eabeb11de320140930cc63f48cee024
|
@@ -28,7 +28,7 @@ module Mongoid
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def document_path(node = self, current_relation = nil)
|
31
|
-
relation = node.embedded? ? node.
|
31
|
+
relation = node.embedded? ? node.association_name : nil
|
32
32
|
list = node._parent ? document_path(node._parent, relation) : []
|
33
33
|
|
34
34
|
list << Node.new(
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency 'mongoid', '>=
|
21
|
+
spec.add_dependency 'mongoid', '>= 7.0'
|
22
22
|
|
23
23
|
spec.add_development_dependency "bundler", "~> 1.11"
|
24
24
|
spec.add_development_dependency "rake", "~> 10.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid-document_path
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Crouse
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mongoid
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '7.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '7.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -118,10 +118,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
118
|
- !ruby/object:Gem::Version
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
|
-
|
122
|
-
rubygems_version: 2.5.2
|
121
|
+
rubygems_version: 3.0.6
|
123
122
|
signing_key:
|
124
123
|
specification_version: 4
|
125
124
|
summary: Tracks document paths to allow finding embedded documents.
|
126
125
|
test_files: []
|
127
|
-
has_rdoc:
|