neo4j 5.2.9 → 5.2.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/neo4j/active_node/has_n.rb +3 -3
- data/lib/neo4j/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ea507056d84a7f19609905d0f3637231f88cad4
|
4
|
+
data.tar.gz: fb5521ab7687b3ec5c85c5304a7852bfe33fe3f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a156795b0edcc5dc16309327ae0f676eed65a848419aca13399b3dc4f04248a576edd7eb93a472c870e7f624c890d0b8c2df984358dcb29dd1748dcdffdded6
|
7
|
+
data.tar.gz: 5902ef1b8f5638b83addc81ca5acde1401eef0cff763e93b5e3286807f70ada034b0bdbbc7e97f1cd69df1a9df3c37aba57ee540914d5fe66d3885d409774c5b
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
5
5
|
|
6
6
|
## [Unreleased][unreleased]
|
7
7
|
|
8
|
+
## [5.2.10] - 10-14-2015
|
9
|
+
|
10
|
+
### Fixed
|
11
|
+
- `has_one` does not define `_id` methods if they are already defined. Also use `method_defined?` instead of `respond_to?` since it is at the class level
|
12
|
+
|
8
13
|
## [5.2.9] - 09-30-2015
|
9
14
|
|
10
15
|
### Fixed
|
@@ -341,7 +341,7 @@ module Neo4j::ActiveNode
|
|
341
341
|
end
|
342
342
|
|
343
343
|
def define_method_unless_defined(method_name, &block)
|
344
|
-
define_method(method_name, block) unless
|
344
|
+
define_method(method_name, block) unless method_defined?(method_name)
|
345
345
|
end
|
346
346
|
|
347
347
|
def define_has_one_methods(name)
|
@@ -357,7 +357,7 @@ module Neo4j::ActiveNode
|
|
357
357
|
end
|
358
358
|
|
359
359
|
def define_has_one_id_methods(name)
|
360
|
-
|
360
|
+
define_method_unless_defined("#{name}_id") do
|
361
361
|
association_proxy(name).pluck(:uuid).first
|
362
362
|
end
|
363
363
|
|
@@ -365,7 +365,7 @@ module Neo4j::ActiveNode
|
|
365
365
|
association_proxy(name).replace_with(id)
|
366
366
|
end
|
367
367
|
|
368
|
-
|
368
|
+
define_method_unless_defined("#{name}_neo_id") do
|
369
369
|
association_proxy(name).pluck(:neo_id).first
|
370
370
|
end
|
371
371
|
end
|
data/lib/neo4j/version.rb
CHANGED
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.
|
4
|
+
version: 5.2.10
|
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-
|
11
|
+
date: 2015-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: orm_adapter
|