neo4j 5.2.0 → 5.2.1
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.rb +1 -1
- data/lib/neo4j/active_node/dependent/query_proxy_methods.rb +1 -1
- data/lib/neo4j/active_node/labels.rb +1 -1
- data/lib/neo4j/active_node/query.rb +1 -1
- data/lib/neo4j/active_node/query/query_proxy_methods.rb +1 -1
- data/lib/neo4j/active_node/reflection.rb +1 -1
- data/lib/neo4j/active_rel.rb +1 -1
- data/lib/neo4j/config.rb +1 -7
- data/lib/neo4j/shared/property.rb +0 -1
- 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: 3be3813d47f9381c0d48f05745ec55c4c34fb24f
|
4
|
+
data.tar.gz: ff011cb5224a4a44bb7d6debd3fc0e31682e0bbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f82b6f082d4ff9242ee2902fbe9b82d7fee8bffa8164d12eb6fd6c59e87c4bc911c202f807612853f49f83083665364c762f2a4884f1a1a18437509b9be289c9
|
7
|
+
data.tar.gz: 074e0f957b1e73fb8e9a250de36dbcc17b3a54308c5b8a6df88303e69c0139082960457cbaf380f1f98e3fa901e89693696dd19f43666e8fb53acaaf5174240e
|
data/CHANGELOG.md
CHANGED
data/lib/neo4j/active_node.rb
CHANGED
@@ -5,7 +5,7 @@ module Neo4j
|
|
5
5
|
module QueryProxyMethods
|
6
6
|
# Used as part of `dependent: :destroy` and may not have any utility otherwise.
|
7
7
|
# It keeps track of the node responsible for a cascading `destroy` process.
|
8
|
-
# @param [#dependent_children] source_object The node that called this method. Typically, we would use QueryProxy's `source_object` method
|
8
|
+
# @param owning_node [#dependent_children] source_object The node that called this method. Typically, we would use QueryProxy's `source_object` method
|
9
9
|
# but this is not always available, so we require it explicitly.
|
10
10
|
def each_for_destruction(owning_node)
|
11
11
|
target = owning_node.called_by || owning_node
|
@@ -101,7 +101,7 @@ module Neo4j
|
|
101
101
|
end
|
102
102
|
|
103
103
|
# Finds the first record matching the specified conditions. There is no implied ordering so if order matters, you should specify it yourself.
|
104
|
-
# @param Hash args of arguments to find
|
104
|
+
# @param values Hash args of arguments to find
|
105
105
|
def find_by(values)
|
106
106
|
all.where(values).limit(1).query_as(:n).pluck(:n).first
|
107
107
|
end
|
@@ -13,7 +13,7 @@ module Neo4j
|
|
13
13
|
# # Generates: MATCH (mike:Person), mike-[:friend]-friend WHERE ID(mike) = 123 RETURN friend.name
|
14
14
|
# mike.query_as(:mike).match('mike-[:friend]-friend').return(friend: :name)
|
15
15
|
#
|
16
|
-
# @param
|
16
|
+
# @param node_var [Symbol, String] The variable name to specify in the query
|
17
17
|
# @return [Neo4j::Core::Query]
|
18
18
|
def query_as(node_var)
|
19
19
|
self.class.query_as(node_var, false).where("ID(#{node_var})" => self.neo_id)
|
@@ -106,7 +106,7 @@ module Neo4j
|
|
106
106
|
|
107
107
|
# Deletes a group of nodes and relationships within a QP chain. When identifier is omitted, it will remove the last link in the chain.
|
108
108
|
# The optional argument must be a node identifier. A relationship identifier will result in a Cypher Error
|
109
|
-
# @param [String,Symbol] the optional identifier of the link in the chain to delete.
|
109
|
+
# @param identifier [String,Symbol] the optional identifier of the link in the chain to delete.
|
110
110
|
def delete_all(identifier = nil)
|
111
111
|
query_with_target(identifier) do |target|
|
112
112
|
begin
|
@@ -21,7 +21,7 @@ module Neo4j::ActiveNode
|
|
21
21
|
end
|
22
22
|
|
23
23
|
private :create_reflection
|
24
|
-
# @param [Symbol] an association declared on the model
|
24
|
+
# @param association [Symbol] an association declared on the model
|
25
25
|
# @return [Neo4j::ActiveNode::Reflection::AssociationReflection] of the given association
|
26
26
|
def reflect_on_association(association)
|
27
27
|
reflections[association.to_sym]
|
data/lib/neo4j/active_rel.rb
CHANGED
data/lib/neo4j/config.rb
CHANGED
@@ -11,7 +11,7 @@ module Neo4j
|
|
11
11
|
# the incluse of timestamps on your nodes and rels. It defaults to false, requiring manual
|
12
12
|
# timestamp inclusion.
|
13
13
|
# @return [Boolean] the true/false value specified.
|
14
|
-
|
14
|
+
|
15
15
|
# @return [Fixnum] The location of the default configuration file.
|
16
16
|
def default_file
|
17
17
|
@default_file ||= DEFAULT_FILE
|
@@ -96,12 +96,6 @@ module Neo4j
|
|
96
96
|
configuration.to_yaml
|
97
97
|
end
|
98
98
|
|
99
|
-
# @return [Boolean] The value of the config variable for including
|
100
|
-
# timestamps on all models.
|
101
|
-
def record_timestamps
|
102
|
-
@record_timestamps ||= false
|
103
|
-
end
|
104
|
-
|
105
99
|
def class_name_property
|
106
100
|
@_class_name_property = Neo4j::Config[CLASS_NAME_PROPERTY_KEY] || :_classname
|
107
101
|
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.1
|
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-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: orm_adapter
|