neo4j 5.0.10 → 5.0.11
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c70d14b4d7b0daabad296927e241502dc5305a0
|
4
|
+
data.tar.gz: e1cfa3557e4816cdda82bf19e4752a44ed0b1cbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4bbdc12ce4cc6334f8efb5539b350242bd4e1e0ff2d307ffee4e3ebb11ff6038eabf30c1ee6ffed6b95121379914ced6574547b1b842a9240c15222617e77ff
|
7
|
+
data.tar.gz: e725886f6c88440b4c190077bad606a5b0d3dce95b6f3cffd33f8be03bba1d1cc3f58b040318a8ef582d1b5818af6e33e6f014bd795c8ee24b546db70cf44bd0
|
@@ -36,7 +36,7 @@ module Neo4j
|
|
36
36
|
pluck_proc = proc { |var| "#{func}(COLLECT(#{var})) as #{var}" }
|
37
37
|
[new_query, pluck_proc]
|
38
38
|
else
|
39
|
-
new_query = self.order(
|
39
|
+
new_query = self.order(order_property).limit(1)
|
40
40
|
pluck_proc = proc { |var| var }
|
41
41
|
[new_query, pluck_proc]
|
42
42
|
end
|
@@ -47,6 +47,12 @@ module Neo4j
|
|
47
47
|
result.first
|
48
48
|
end
|
49
49
|
|
50
|
+
def order_property
|
51
|
+
# This should maybe be based on a setting in the association
|
52
|
+
# rather than a hardcoded `nil`
|
53
|
+
model ? model.id_property_name : nil
|
54
|
+
end
|
55
|
+
|
50
56
|
private :first_and_last
|
51
57
|
|
52
58
|
# @return [Integer] number of nodes of this class
|
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.0.
|
4
|
+
version: 5.0.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-08-
|
11
|
+
date: 2015-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: orm_adapter
|