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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d767329b3f93afe8626ebe229e281b44ac5de690
4
- data.tar.gz: a041c057e22c8958ec427d44934f55d2200d23de
2
+ SHA256:
3
+ metadata.gz: 399506a4a3b4fcf938d308f5b55ff8cf842ee1927df9f0566ab651ee53b31777
4
+ data.tar.gz: 177ed04c622a36fddd159fa06c6a319acdd6def84a1729402ae871c2c8e4e95a
5
5
  SHA512:
6
- metadata.gz: 28503b71da24391ac5de321c3479511e48545de63e2c3922c7466eeb8e987281a9a258ecbd489a0bd71ca438e6b609ce347afe470cc0759777887c3684959c67
7
- data.tar.gz: 93c2eb76cb2cfceb8455a6732e318c2c82758507b412006732740f334c2ceb02e524a78b8bde3240f6f996d0988e9190ae9d4a9ca69c226e4844a2a44fba4958
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.metadata_name.to_s : nil
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(
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module DocumentPath
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -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', '>= 6.0'
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.1.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: 2017-03-14 00:00:00.000000000 Z
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: '6.0'
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: '6.0'
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
- rubyforge_project:
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: