neo4j 9.0.7 → 9.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/neo4j/active_node/query/query_proxy.rb +1 -1
- data/lib/neo4j/active_node/query/query_proxy_link.rb +7 -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: 33134c676ebf345a270beba5b9117ffea19a7795
|
4
|
+
data.tar.gz: e489a2463c551a3f85cd4a8431c5980b82d38a5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d11c907d773b28a806fddb694edc27a9540ea1cc575180c2d1ce3377fe8ee373bc305b04de10b2dfdb58c866b74f89797501503a2becffc4a79f3a82dcda05d0
|
7
|
+
data.tar.gz: e151ef85854064b9fbee21f4e61a199e904f07f8b2acc1991c68831521bf15e1b9695c6ad265ac76a3ad4afe4fe3714533da9511b76c8d6d7593bb287cacf348
|
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.1.0] 2017-11-24
|
7
|
+
|
8
|
+
## Added
|
9
|
+
|
10
|
+
- Add `rel_where_not` to allow negative filtering of relationships (thanks @pmaite88 / see #1446)
|
11
|
+
|
6
12
|
## [9.0.7] 2017-11-24
|
7
13
|
|
8
14
|
## Fixes
|
@@ -141,7 +141,7 @@ module Neo4j
|
|
141
141
|
@model.current_scope = previous
|
142
142
|
end
|
143
143
|
|
144
|
-
METHODS = %w(where where_not rel_where rel_order order skip limit)
|
144
|
+
METHODS = %w(where where_not rel_where rel_where_not rel_order order skip limit)
|
145
145
|
|
146
146
|
METHODS.each do |method|
|
147
147
|
define_method(method) { |*args| build_deeper_query_proxy(method.to_sym, args) }
|
@@ -84,6 +84,12 @@ module Neo4j
|
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
87
|
+
def for_rel_where_not_clause(*args)
|
88
|
+
for_rel_where_clause(*args).each do |link|
|
89
|
+
link.instance_variable_set('@clause', :where_not)
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
87
93
|
def for_rel_order_clause(arg, _)
|
88
94
|
[new(:order, ->(_, v) { arg.is_a?(String) ? arg : {v => arg} })]
|
89
95
|
end
|
@@ -95,7 +101,7 @@ module Neo4j
|
|
95
101
|
def for_args(model, clause, args, association = nil)
|
96
102
|
if [:where, :where_not].include?(clause) && args[0].is_a?(String) # Better way?
|
97
103
|
[for_arg(model, clause, args[0], *args[1..-1])]
|
98
|
-
elsif
|
104
|
+
elsif [:rel_where, :rel_where_not].include?(clause)
|
99
105
|
args.map { |arg| for_arg(model, clause, arg, association) }
|
100
106
|
else
|
101
107
|
args.map { |arg| for_arg(model, clause, arg) }
|
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: 9.0
|
4
|
+
version: 9.1.0
|
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-
|
11
|
+
date: 2017-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: orm_adapter
|