neo4j 6.1.2 → 6.1.3

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: 9a7b03d8499852e71755f6fdade1e0f73d83903e
4
- data.tar.gz: 5190d0883ce818bcd25ac055600927aeef96d602
3
+ metadata.gz: dcdf7a5298b8798b054658fcd85c9788e12bf7de
4
+ data.tar.gz: a1c3c11a99a1756ba322ef69f62ff5e1823bf56e
5
5
  SHA512:
6
- metadata.gz: 430a8a9dfda55703c5791d5eedda3a8a89c5ed51d9eeaaba85e74fc13b2e461f0fa2915067b8af1a8732bf586e9bf0586042bc53672461a74e0b96698bb77795
7
- data.tar.gz: 055e85cc93fa8efd2ad81b86c1678f86127ad2fd19df879c226d9cf7fc9a7acf0d1089fde22a83b777423633ef005052c6c26109d4fd6b5ae313a09ad4a60f16
6
+ metadata.gz: dba85ea4f388c39a43dcec28dcd16b1a0792db62ce9acea8ec8b918922ecec6fc3870ec5e480b8a152c68676f2a7727712549abaa7997afbbedc509b56bc9d9a
7
+ data.tar.gz: cd013be7dbc76bd64aa76ad2e60ea1c2b3060ea4a6a2794d6cfb23bc28da1bf403842f8457d0382100f14ceb95b31e6662f618537f92e5be626709d05769619c
@@ -3,7 +3,13 @@ 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
- ## [6.1.2] - 2016-01-01
6
+ ## [6.1.3] - 2016-01-20
7
+
8
+ ### Fixed
9
+
10
+ - Issue where `ActiveRel.create` would not work with `RelatedNode` (`rel.from_node`) instances (Thanks, djvs #1107)
11
+
12
+ ## [6.1.2] - 2016-01-19
7
13
 
8
14
  ### Fixed
9
15
 
@@ -11,15 +11,18 @@ module Neo4j::Shared
11
11
  end
12
12
 
13
13
  def self.create(graph_object, identifier)
14
- factory = case graph_object
15
- when Neo4j::ActiveNode
16
- NodeQueryFactory
17
- when Neo4j::ActiveRel
18
- RelQueryFactory
19
- else
20
- fail "Unable to find factory for #{graph_object}"
21
- end
22
- factory.new(graph_object, identifier)
14
+ factory_for(graph_object).new(graph_object, identifier)
15
+ end
16
+
17
+ def self.factory_for(graph_obj)
18
+ case
19
+ when graph_obj.respond_to?(:labels_for_create)
20
+ NodeQueryFactory
21
+ when graph_obj.respond_to?(:rel_type)
22
+ RelQueryFactory
23
+ else
24
+ fail "Unable to find factory for #{graph_obj}"
25
+ end
23
26
  end
24
27
 
25
28
  def query
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '6.1.2'
2
+ VERSION = '6.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo4j
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.2
4
+ version: 6.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Ronge, Brian Underwood, Chris Grigg