neo4j 8.3.3 → 8.3.4

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: efdb78c47f48d6415f603ad44d6d310c50cfe4fb
4
- data.tar.gz: 856f1f6ec79a5f197190b6472440f1ed41f5678c
3
+ metadata.gz: 4cfd5a1f6cea64cb3a8b231afff48bf1329a87ba
4
+ data.tar.gz: 42fda6bc83fd3dfa0074395ea71f54af16e99a38
5
5
  SHA512:
6
- metadata.gz: 8eb18e1316bf9988694d4d4a6ec882497321ff117d982255855585e5d94a5ed964bf1a9a36d5a404f72460533d1a063ffb552a3378601faae003d746324e4a2c
7
- data.tar.gz: 7289d30b1075c85a69b3ef313f849a56e7530f89132588919fe38831de8f425ded7b0e53194c32fc85c92470ddfa56802f2d3133da349a3fe674be033583753d
6
+ metadata.gz: 672186434970764c8d1b58ce6a6e97697ca6fbdbfa003f1f9d733975fca77e8493804c6af4c36a0363efb5f7158a2a498ea3c939f821f9b6673ed25e6802eb91
7
+ data.tar.gz: 4fdd315602b202e5f1d29a2300dc218c76ac4d40c6d5b7401611aac8dbe457b72ee4a42557c61e6e68224b2e95ad474d6f34b0cfa2dc15e226b8b69618427c0e
@@ -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.3.4] 2017-10-16
7
+
8
+ ## Fixes
9
+
10
+ - Ensure `branch` and `with_association` methods propagate `distinct` (thanks @klobuczek / see #1438)
11
+
6
12
  ## [8.3.3] 2017-10-15
7
13
 
8
14
  ## 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?
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '8.3.3'
2
+ VERSION = '8.3.4'
3
3
  end
@@ -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: 8.3.3
4
+ version: 8.3.4
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-15 00:00:00.000000000 Z
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
  '