neo4j 1.1.2-java → 1.1.3-java
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +6 -1
- data/CONTRIBUTORS +2 -0
- data/lib/neo4j/database.rb +2 -1
- data/lib/neo4j/node_mixin/node_mixin.rb +1 -1
- data/lib/neo4j/relationship_mixin/relationship_mixin.rb +1 -1
- data/lib/neo4j/rule/rule.rb +12 -5
- data/lib/neo4j/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
-
== 1.1.
|
1
|
+
== 1.1.3 / 2011-08-09
|
2
|
+
* real recursive rule to the top class, subclasses with rules did not work (Frédéric Vanclef)
|
3
|
+
* BUG: not able to create array properties on relationships (Pere Urbon)
|
4
|
+
* BUG: lucene did not work if starting up neo4j in read only mode (like rails console when the rails is already running)
|
5
|
+
|
6
|
+
== 1.1.2 / 2011-06-08
|
2
7
|
* Added configuration option 'enable_rules' to disable the _all relationships and custom rules [#176]
|
3
8
|
* Added a #node method on the Neo4j::Node and Neo4j::NodeMixin. Works like the #rel method but returns the node instead. [#174]
|
4
9
|
* Simplify creating relationship between two existing nodes [#175]
|
data/CONTRIBUTORS
CHANGED
data/lib/neo4j/database.rb
CHANGED
@@ -50,6 +50,7 @@ module Neo4j
|
|
50
50
|
Neo4j.logger.info "Starting Neo4j in readonly mode since the #{@storage_path} is locked"
|
51
51
|
Neo4j.load_local_jars
|
52
52
|
@graph = org.neo4j.kernel.EmbeddedReadOnlyGraphDatabase.new(@storage_path, Config.to_java_map)
|
53
|
+
@lucene = @graph.index
|
53
54
|
end
|
54
55
|
|
55
56
|
def start_local_graph_db #:nodoc:
|
@@ -67,7 +68,7 @@ module Neo4j
|
|
67
68
|
Neo4j.load_online_backup if Neo4j.config[:online_backup_enabled]
|
68
69
|
@graph = org.neo4j.kernel.HighlyAvailableGraphDatabase.new(@storage_path, Neo4j.config.to_java_map)
|
69
70
|
@graph.register_transaction_event_handler(@event_handler)
|
70
|
-
@lucene = @graph.index
|
71
|
+
@lucene = @graph.index
|
71
72
|
@event_handler.neo4j_started(self)
|
72
73
|
end
|
73
74
|
|
@@ -45,7 +45,7 @@ module Neo4j
|
|
45
45
|
|
46
46
|
delegate :[]=, :[], :property?, :props, :attributes, :update, :neo_id, :id, :rels, :rel?, :node, :to_param, :getId,
|
47
47
|
:rel, :del, :list?, :print, :print_sub, :outgoing, :incoming, :both, :expand, :get_property, :set_property,
|
48
|
-
:equal?, :eql?, :==, :exist?, :getRelationships, :getSingleRelationship, :_rels, :rel, :wrapped_entity,
|
48
|
+
:equal?, :eql?, :==, :exist?, :getRelationships, :getSingleRelationship, :_rels, :rel, :wrapped_entity, :_node,
|
49
49
|
:to => :@_java_node, :allow_nil => true
|
50
50
|
|
51
51
|
|
@@ -45,7 +45,7 @@ module Neo4j
|
|
45
45
|
type, from_node, to_node, props = args
|
46
46
|
self[:_classname] = self.class.to_s
|
47
47
|
if props.respond_to?(:each_pair)
|
48
|
-
props.each_pair { |k, v|
|
48
|
+
props.each_pair { |k, v| respond_to?("#{k}=") ? self.send("#{k}=", v) : @_java_rel[k] = v }
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
data/lib/neo4j/rule/rule.rb
CHANGED
@@ -119,12 +119,19 @@ module Neo4j
|
|
119
119
|
rule_node.execute_rules(node, *changes)
|
120
120
|
|
121
121
|
# recursively add relationships for all the parent classes with rules that also pass for this node
|
122
|
-
|
123
|
-
rule_node = rule_node_for(clazz)
|
124
|
-
rule_node && rule_node.execute_rules(node, *changes)
|
125
|
-
end
|
122
|
+
recursive(node,classname,*changes)
|
126
123
|
end
|
124
|
+
|
125
|
+
private
|
126
|
+
|
127
|
+
def recursive(node,classname,*changes)
|
128
|
+
if (clazz = eval("#{classname}.superclass")) && clazz.include?(Neo4j::NodeMixin)
|
129
|
+
rule_node = rule_node_for(clazz)
|
130
|
+
rule_node && rule_node.execute_rules(node, *changes)
|
131
|
+
recursive(node,clazz.name,*changes)
|
132
|
+
end
|
133
|
+
end
|
127
134
|
end
|
128
135
|
end
|
129
136
|
end
|
130
|
-
end
|
137
|
+
end
|
data/lib/neo4j/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: neo4j
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.1.
|
5
|
+
version: 1.1.3
|
6
6
|
platform: java
|
7
7
|
authors:
|
8
8
|
- Andreas Ronge
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-08-09 00:00:00 +02:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|