neo4j 8.2.2 → 8.2.3
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 +6 -0
- data/README.md +1 -2
- data/lib/neo4j/active_node/query/query_proxy_eager_loading.rb +2 -1
- data/lib/neo4j/active_node/scope.rb +6 -1
- data/lib/neo4j/tasks/migration.rake +1 -1
- data/lib/neo4j/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed3de6664c585f0e48662a419cdb5287f361d2ec
|
4
|
+
data.tar.gz: d0be71975e969b60b575e22ba333613c4eada69f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8494b0eb6c7fc75733b806656d4cdc46eb2877056f6ae9161bc0a96aa300452ed881bd32e3025d3da84f0d235655bf976c70114a57c8a809be70dbf6f81c26d
|
7
|
+
data.tar.gz: 1687fdb57c2d83a94aaebdb6682bf0b22ba5100b31d03fa58b1f233cf78223b89f4888a35f69e782fc2cafdca40e95cc0e1c93c92a969788aaa5e174510c6bf2
|
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
|
+
## [8.2.3] 2017-09-19
|
7
|
+
|
8
|
+
### Fixes
|
9
|
+
|
10
|
+
- Scopes now work when inherited three or more levels deep (see #1415, #1413, #1412 / thanks @thefliik)
|
11
|
+
|
6
12
|
## [8.2.2] 2017-09-18
|
7
13
|
|
8
14
|
### Fixes
|
data/README.md
CHANGED
@@ -59,8 +59,7 @@ Neo4j.rb v4.1.0 was released in January of 2015. Its changes are outlined [here]
|
|
59
59
|
| 2.1.x | No | Yes | Yes * | Yes |
|
60
60
|
| 2.2.x | No | No | Yes | Yes |
|
61
61
|
| 2.3.x | No | No | Yes | Yes |
|
62
|
-
| 3.0.
|
63
|
-
| 3.1.x | No | No | No | Yes |
|
62
|
+
| >= 3.0.0 | No | No | No | Yes |
|
64
63
|
|
65
64
|
`*` Neo4j.rb >= 4.x doesn't support Neo4j versions before 2.1.5. To use 2.1.x you should upgrade to a version >= 2.1.5
|
66
65
|
|
@@ -164,7 +164,8 @@ module Neo4j
|
|
164
164
|
base_query.optional_match(
|
165
165
|
"(#{identity})#{path.each_with_index.map do |element, index|
|
166
166
|
relationship_part(element.association, path_name(path[0..index]))
|
167
|
-
end.join}"
|
167
|
+
end.join}"
|
168
|
+
)
|
168
169
|
end
|
169
170
|
|
170
171
|
def relationship_part(association, path_name)
|
@@ -55,16 +55,21 @@ module Neo4j::ActiveNode
|
|
55
55
|
end
|
56
56
|
# rubocop:enable Style/PredicateName
|
57
57
|
|
58
|
+
# @return [Boolean] true if model has access to scope with this name
|
58
59
|
def scope?(name)
|
59
60
|
full_scopes.key?(name.to_sym)
|
60
61
|
end
|
61
62
|
|
63
|
+
# @return [Hash] of scopes assigned to this model. Keys are scope name, value is scope callable.
|
62
64
|
def scopes
|
63
65
|
@scopes ||= {}
|
64
66
|
end
|
65
67
|
|
68
|
+
# @return [Hash] of scopes available to this model. Keys are scope name, value is scope callable.
|
66
69
|
def full_scopes
|
67
|
-
self.
|
70
|
+
self.ancestors.find_all { |a| a.respond_to?(:scopes) }.reverse.inject({}) do |scopes, a|
|
71
|
+
scopes.merge(a.scopes)
|
72
|
+
end
|
68
73
|
end
|
69
74
|
|
70
75
|
def _call_scope_context(eval_context, query_params, proc)
|
@@ -95,7 +95,7 @@ COMMENT
|
|
95
95
|
|
96
96
|
args.with_defaults(remove_missing: false)
|
97
97
|
|
98
|
-
schema_data = YAML.
|
98
|
+
schema_data = YAML.safe_load(File.read(SCHEMA_YAML_PATH))
|
99
99
|
|
100
100
|
Neo4j::Core::CypherSession::Adaptors::Base.subscribe_to_query(&method(:puts))
|
101
101
|
|
data/lib/neo4j/version.rb
CHANGED
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: 8.2.
|
4
|
+
version: 8.2.3
|
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-09-
|
11
|
+
date: 2017-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: orm_adapter
|