neo4j 9.0.4 → 9.0.5
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 +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/neo4j/active_node/query/query_proxy_eager_loading.rb +2 -1
- data/lib/neo4j/active_node/query/query_proxy_methods.rb +4 -0
- data/lib/neo4j/version.rb +1 -1
- data/neo4j.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5de01449e5d4f56c3ad132aafe6f217fc71906c7
|
4
|
+
data.tar.gz: d09b397acdb1282df5fc8af65f49a53daacb9d3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd93f4e6401527c29e294bad829345fcffdb22543c6a3d513381b76f2f8246cecee70ed0e5607bdba46706e649dae7e3b0330284a36a6412b82fcd60273e1178
|
7
|
+
data.tar.gz: 2552206f837cb420430787ec44c62de1a498daa6ac689eb31f92d1b36e924efd64a3543edc86f60d559222a63a591f8ad48e692b659940946c6e02688e9525a4
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.
|
|
3
3
|
This file should follow the standards specified on [http://keepachangelog.com/]
|
4
4
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
5
5
|
|
6
|
+
## [9.0.5] 2017-10-16
|
7
|
+
|
8
|
+
## Fixes
|
9
|
+
|
10
|
+
- Ensure `branch` and `with_association` methods propagate `distinct` (thanks @klobuczek / see #1438)
|
11
|
+
|
6
12
|
## [9.0.4] 2017-10-15
|
7
13
|
|
8
14
|
## Fixes
|
@@ -31,6 +37,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
31
37
|
|
32
38
|
- By default, `enum` values are now case-insensitive (but there are local and global `_case_sensitive` options [see the docs](http://neo4jrb.readthedocs.io/en/9.0.x/ActiveNode.html#enums)) (thanks @thefliik / see #1419)
|
33
39
|
|
40
|
+
## [8.3.4] 2017-10-16
|
41
|
+
|
42
|
+
## Fixes
|
43
|
+
|
44
|
+
- Ensure `branch` and `with_association` methods propagate `distinct` (thanks @klobuczek / see #1438)
|
45
|
+
|
34
46
|
## [8.3.3] 2017-10-15
|
35
47
|
|
36
48
|
## Fixes
|
@@ -74,6 +74,7 @@ module Neo4j
|
|
74
74
|
end
|
75
75
|
|
76
76
|
def propagate_context(query_proxy)
|
77
|
+
super
|
77
78
|
query_proxy.instance_variable_set('@with_associations_tree', @with_associations_tree)
|
78
79
|
end
|
79
80
|
|
@@ -142,7 +143,7 @@ module Neo4j
|
|
142
143
|
|
143
144
|
def query_from_association_tree
|
144
145
|
previous_with_variables = []
|
145
|
-
with_associations_tree.paths.inject(query_as(identity).with(identity)) do |query, path|
|
146
|
+
with_associations_tree.paths.inject(query_as(identity).with(ensure_distinct(identity))) do |query, path|
|
146
147
|
with_association_query_part(query, path, previous_with_variables).tap do
|
147
148
|
previous_with_variables << path_name(path)
|
148
149
|
end
|
@@ -47,6 +47,10 @@ module Neo4j
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
+
def propagate_context(query_proxy)
|
51
|
+
query_proxy.instance_variable_set(:@distinct, @distinct)
|
52
|
+
end
|
53
|
+
|
50
54
|
# @return [Integer] number of nodes of this class
|
51
55
|
def count(distinct = nil, target = nil)
|
52
56
|
return 0 if unpersisted_start_object?
|
data/lib/neo4j/version.rb
CHANGED
data/neo4j.gemspec
CHANGED
@@ -41,4 +41,5 @@ A Neo4j OGM (Object-Graph-Mapper) for Ruby heavily inspired by ActiveRecord.
|
|
41
41
|
s.add_development_dependency('guard-rubocop')
|
42
42
|
s.add_development_dependency('guard-rspec')
|
43
43
|
s.add_development_dependency('rubocop', '~> 0.49.1')
|
44
|
+
s.add_development_dependency('neo4j-rake_tasks', '>= 0.3.0')
|
44
45
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neo4j
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.0.
|
4
|
+
version: 9.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andreas Ronge, Brian Underwood, Chris Grigg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: orm_adapter
|
@@ -192,6 +192,20 @@ dependencies:
|
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: 0.49.1
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: neo4j-rake_tasks
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ">="
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: 0.3.0
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: 0.3.0
|
195
209
|
description: 'A Neo4j OGM (Object-Graph-Mapper) for Ruby heavily inspired by ActiveRecord.
|
196
210
|
|
197
211
|
'
|