neo4j 9.0.4 → 9.0.5

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: 160a03bbf616927228ed6a23603137686259a25a
4
- data.tar.gz: 803ea0f8708abb56d3c2607a64ca142164cbeeb2
3
+ metadata.gz: 5de01449e5d4f56c3ad132aafe6f217fc71906c7
4
+ data.tar.gz: d09b397acdb1282df5fc8af65f49a53daacb9d3b
5
5
  SHA512:
6
- metadata.gz: 2bf1e599fc2e9ca3ff1d9975f4f7c1e4f13f023a4646fa81a8fae97f0445ae8a4d4a9aad71cea5badbdd6ddff3e63b9b5dbfd88b7b6e0657ab8ce43180e78bc4
7
- data.tar.gz: 5e8f15c0f8bd76ceb9503ddcfaccb5a86a42f909090af7d31ece23db3c7ec0b1bd69cfc25007369c7ef0b8e7820115a5f8a0381ba550056aa9ce3fcec854e727
6
+ metadata.gz: bd93f4e6401527c29e294bad829345fcffdb22543c6a3d513381b76f2f8246cecee70ed0e5607bdba46706e649dae7e3b0330284a36a6412b82fcd60273e1178
7
+ data.tar.gz: 2552206f837cb420430787ec44c62de1a498daa6ac689eb31f92d1b36e924efd64a3543edc86f60d559222a63a591f8ad48e692b659940946c6e02688e9525a4
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.0.5] 2017-10-16
7
+
8
+ ## Fixes
9
+
10
+ - Ensure `branch` and `with_association` methods propagate `distinct` (thanks @klobuczek / see #1438)
11
+
6
12
  ## [9.0.4] 2017-10-15
7
13
 
8
14
  ## Fixes
@@ -31,6 +37,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
31
37
 
32
38
  - By default, `enum` values are now case-insensitive (but there are local and global `_case_sensitive` options [see the docs](http://neo4jrb.readthedocs.io/en/9.0.x/ActiveNode.html#enums)) (thanks @thefliik / see #1419)
33
39
 
40
+ ## [8.3.4] 2017-10-16
41
+
42
+ ## Fixes
43
+
44
+ - Ensure `branch` and `with_association` methods propagate `distinct` (thanks @klobuczek / see #1438)
45
+
34
46
  ## [8.3.3] 2017-10-15
35
47
 
36
48
  ## 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?
data/lib/neo4j/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '9.0.4'
2
+ VERSION = '9.0.5'
3
3
  end
data/neo4j.gemspec CHANGED
@@ -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: 9.0.4
4
+ version: 9.0.5
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
  '