neo4j 5.2.9 → 5.2.10

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: 150d670eb04b61fe23fc417d61d4338502574126
4
- data.tar.gz: fe6eccb06bc641d599c2dfd82a670ace354caeeb
3
+ metadata.gz: 6ea507056d84a7f19609905d0f3637231f88cad4
4
+ data.tar.gz: fb5521ab7687b3ec5c85c5304a7852bfe33fe3f2
5
5
  SHA512:
6
- metadata.gz: 839e5c02c25e5c994efcab44addd909f18e6caf6ba1505cef86065d7ba3a6a22eec58234224b38180c5a6036a3053b804cf4997428fec17f96d8f243890fcef0
7
- data.tar.gz: 55ea6fd3f5655345625e2ec680c4973e588d3f3b7f686561339ddbbc4409e976068deb3e9a3bb816d7767c3e576417dc6cbf5165227062b0abe6ae975ef62281
6
+ metadata.gz: 3a156795b0edcc5dc16309327ae0f676eed65a848419aca13399b3dc4f04248a576edd7eb93a472c870e7f624c890d0b8c2df984358dcb29dd1748dcdffdded6
7
+ data.tar.gz: 5902ef1b8f5638b83addc81ca5acde1401eef0cff763e93b5e3286807f70ada034b0bdbbc7e97f1cd69df1a9df3c37aba57ee540914d5fe66d3885d409774c5b
@@ -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 respond_to?(method_name)
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
- define_method("#{name}_id") do
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
- define_method("#{name}_neo_id") do
368
+ define_method_unless_defined("#{name}_neo_id") do
369
369
  association_proxy(name).pluck(:neo_id).first
370
370
  end
371
371
  end
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '5.2.9'
2
+ VERSION = '5.2.10'
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.9
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-09-30 00:00:00.000000000 Z
11
+ date: 2015-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: orm_adapter