neo4j 5.2.10 → 5.2.11

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: 6ea507056d84a7f19609905d0f3637231f88cad4
4
- data.tar.gz: fb5521ab7687b3ec5c85c5304a7852bfe33fe3f2
3
+ metadata.gz: 0e9a0320ef3f65275a365194724340a28f173c24
4
+ data.tar.gz: 300e1f501077eea60bf2e506f680da9aeda895f0
5
5
  SHA512:
6
- metadata.gz: 3a156795b0edcc5dc16309327ae0f676eed65a848419aca13399b3dc4f04248a576edd7eb93a472c870e7f624c890d0b8c2df984358dcb29dd1748dcdffdded6
7
- data.tar.gz: 5902ef1b8f5638b83addc81ca5acde1401eef0cff763e93b5e3286807f70ada034b0bdbbc7e97f1cd69df1a9df3c37aba57ee540914d5fe66d3885d409774c5b
6
+ metadata.gz: aa686b46d9da99da6f1aeac490947a93dc1863b689e9965ead7a97779d41a30842426c17013e25e11b9348e8c6642d03428b215580ddc8bdfb2681ec206a600a
7
+ data.tar.gz: 113e60149740f0b311cfef4ad30f0f6b8fab962ffbc66d639a6f18265d65043553f9bf12af9f32cfc5a8b43b32268b21be23f4a473e323df1b060b987bb56fa0
@@ -5,6 +5,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  ## [Unreleased][unreleased]
7
7
 
8
+ ## [5.2.11] - 10-18-2015
9
+
10
+ ### Fixed
11
+ - Unable to give additional options as first argument to chained QueryProxy method
12
+
8
13
  ## [5.2.10] - 10-14-2015
9
14
 
10
15
  ### Fixed
@@ -301,10 +301,7 @@ module Neo4j::ActiveNode
301
301
  define_method(name) do |node = nil, rel = nil, options = {}|
302
302
  # return [].freeze unless self._persisted_obj
303
303
 
304
- if node.is_a?(Hash)
305
- options = node
306
- node = nil
307
- end
304
+ options, node = node, nil if node.is_a?(Hash)
308
305
 
309
306
  association_proxy(name, {node: node, rel: rel, source_object: self, labels: options[:labels]}.merge!(options))
310
307
  end
@@ -314,6 +311,8 @@ module Neo4j::ActiveNode
314
311
  define_has_many_id_methods(name)
315
312
 
316
313
  define_class_method(name) do |node = nil, rel = nil, options = {}|
314
+ options, node = node, nil if node.is_a?(Hash)
315
+
317
316
  association_proxy(name, {node: node, rel: rel, labels: options[:labels]}.merge!(options))
318
317
  end
319
318
  end
@@ -352,6 +351,8 @@ module Neo4j::ActiveNode
352
351
  define_has_one_id_methods(name)
353
352
 
354
353
  define_class_method(name) do |node = nil, rel = nil, options = {}|
354
+ options, node = node, nil if node.is_a?(Hash)
355
+
355
356
  association_proxy(name, {node: node, rel: rel, labels: options[:labels]}.merge!(options))
356
357
  end
357
358
  end
@@ -374,10 +375,7 @@ module Neo4j::ActiveNode
374
375
  define_method(name) do |node = nil, rel = nil, options = {}|
375
376
  return nil unless self._persisted_obj
376
377
 
377
- if node.is_a?(Hash)
378
- options = node
379
- node = nil
380
- end
378
+ options, node = node, nil if node.is_a?(Hash)
381
379
 
382
380
  # Return all results if a variable-length relationship length was given
383
381
  results = association_proxy(name, {node: node, rel: rel}.merge!(options))
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '5.2.10'
2
+ VERSION = '5.2.11'
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: 5.2.10
4
+ version: 5.2.11
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: 2015-10-14 00:00:00.000000000 Z
11
+ date: 2015-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: orm_adapter