neo4j 9.0.6 → 9.0.7

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
2
  SHA1:
3
- metadata.gz: 11c35957d113234d06dad9a1f142dff96551fb85
4
- data.tar.gz: 456a0897a428cae0c2ad18fb85dbf43eb2fc105c
3
+ metadata.gz: aa06091fc216f0b468826a1a3b385f0d0bde5ecd
4
+ data.tar.gz: 0c525a5ffa1768ccd0779c515361ee2838d1cbe9
5
5
  SHA512:
6
- metadata.gz: 8fc16720205352c8f7352606a5dd86176253b0480a8e6f2f3a6113ec1b457a8c0141e35bc52af3ae84fb5e949eef208badb77ea9241becbffe4830a62d5fcde0
7
- data.tar.gz: 51ee2e8462cfd300dc7f6b9c32a057a83d2a03dbfe67406704baad6436548101713512efa3a00debc2661bfddcf0de11a657028fd7d990cc98278ca8986febd6
6
+ metadata.gz: 02293ca4efc5fda0ffcb45e68417257f149fe3a719083782df75230c6111dc81e9aea63f545fe18bae7a5e9075edd1d557205182759724e1bf0b455bf6e67192
7
+ data.tar.gz: 4db88370f53014fa7872ba0034101e5dae67231ce828a827a3eef5287c564fc2f54d35a32e96135a8a9baa6fbce1ec21f837abdc6fbc8f2afa513de6283685c1
@@ -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.7] 2017-11-24
7
+
8
+ ## Fixes
9
+
10
+ - Fix "Variable `other_rel` not defined" error when destroying objects with a `dependent: :delete_orphans` associations (thanks @nearapogee, @TyGuy, and @leehericks / see #1395)
11
+
6
12
  ## [9.0.6] 2017-11-21
7
13
 
8
14
  ## Fixes
@@ -28,7 +28,8 @@ module Neo4j
28
28
  end
29
29
 
30
30
  def dependent_delete_orphans_callback(object)
31
- object.as(:self).unique_nodes(self, :self, :n, :other_rel).query.delete(:n, :other_rel).exec
31
+ unique_query = object.as(:self).unique_nodes(self, :self, :n, :other_rel)
32
+ unique_query.query.optional_match('(n)-[r]-()').delete(:n, :r).exec if unique_query
32
33
  end
33
34
 
34
35
  def dependent_destroy_callback(object)
@@ -43,6 +43,7 @@ module Neo4j
43
43
  .match("()#{association.arrow_cypher(:orphan_rel)}(#{other_node})")
44
44
  .with(other_node, count: 'count(*)')
45
45
  .where('count = {one}', one: 1)
46
+ .break
46
47
  end
47
48
  end
48
49
  end
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '9.0.6'
2
+ VERSION = '9.0.7'
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.6
4
+ version: 9.0.7
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-21 00:00:00.000000000 Z
11
+ date: 2017-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: orm_adapter