neo4j 9.0.7 → 9.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa06091fc216f0b468826a1a3b385f0d0bde5ecd
4
- data.tar.gz: 0c525a5ffa1768ccd0779c515361ee2838d1cbe9
3
+ metadata.gz: 33134c676ebf345a270beba5b9117ffea19a7795
4
+ data.tar.gz: e489a2463c551a3f85cd4a8431c5980b82d38a5a
5
5
  SHA512:
6
- metadata.gz: 02293ca4efc5fda0ffcb45e68417257f149fe3a719083782df75230c6111dc81e9aea63f545fe18bae7a5e9075edd1d557205182759724e1bf0b455bf6e67192
7
- data.tar.gz: 4db88370f53014fa7872ba0034101e5dae67231ce828a827a3eef5287c564fc2f54d35a32e96135a8a9baa6fbce1ec21f837abdc6fbc8f2afa513de6283685c1
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 clause == :rel_where
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
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '9.0.7'
2
+ VERSION = '9.1.0'
3
3
  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.7
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-25 00:00:00.000000000 Z
11
+ date: 2017-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: orm_adapter