neo4j-wrapper 2.0.1-java → 2.1.0-java
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/neo4j-wrapper/rule/rule_node.rb +10 -10
- data/lib/neo4j-wrapper/version.rb +1 -1
- data/neo4j-wrapper.gemspec +1 -1
- metadata +128 -92
@@ -26,8 +26,10 @@ module Neo4j
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def rule_node
|
29
|
-
|
30
|
-
|
29
|
+
@@rule_nodes[key] ||= Neo4j::Transaction.run do |tx|
|
30
|
+
java_ref_node = ref_node._java_node
|
31
|
+
tx.acquire_write_lock(java_ref_node)
|
32
|
+
find_node(java_ref_node) || create_node(java_ref_node)
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
@@ -47,12 +49,10 @@ module Neo4j
|
|
47
49
|
end
|
48
50
|
end
|
49
51
|
|
50
|
-
def create_node
|
51
|
-
Neo4j::
|
52
|
-
|
53
|
-
|
54
|
-
node
|
55
|
-
end
|
52
|
+
def create_node(ref)
|
53
|
+
node = Neo4j::Node.new
|
54
|
+
ref.create_relationship_to(node, type_to_java(@classname))
|
55
|
+
node
|
56
56
|
end
|
57
57
|
|
58
58
|
def inherit(subclass)
|
@@ -61,8 +61,8 @@ module Neo4j
|
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
64
|
-
def find_node
|
65
|
-
|
64
|
+
def find_node(ref = ref_node)
|
65
|
+
ref.rel?(:outgoing, @classname.to_s) && ref_node._node(:outgoing, @classname.to_s)
|
66
66
|
end
|
67
67
|
|
68
68
|
def ref_node_changed?
|
data/neo4j-wrapper.gemspec
CHANGED
@@ -27,5 +27,5 @@ It comes included with the Apache Lucene document database.
|
|
27
27
|
s.extra_rdoc_files = %w( README.rdoc )
|
28
28
|
s.rdoc_options = ["--quiet", "--title", "Neo4j.rb", "--line-numbers", "--main", "README.rdoc", "--inline-source"]
|
29
29
|
|
30
|
-
s.add_dependency("neo4j-core", "2.0
|
30
|
+
s.add_dependency("neo4j-core", "2.1.0")
|
31
31
|
end
|
metadata
CHANGED
@@ -1,108 +1,144 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: neo4j-wrapper
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
version: 2.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 2.1.0
|
6
6
|
platform: java
|
7
|
-
authors:
|
8
|
-
|
9
|
-
autorequire:
|
7
|
+
authors:
|
8
|
+
- Andreas Ronge
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
12
|
+
date: 2012-08-14 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: neo4j-core
|
16
|
+
version_requirements: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - '='
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 2.1.0
|
21
|
+
none: false
|
22
|
+
requirement: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.1.0
|
27
|
+
none: false
|
28
|
+
prerelease: false
|
29
|
+
type: :runtime
|
30
|
+
description: ! "You can think of Neo4j as a high-performance graph engine with all\
|
31
|
+
\ the features of a mature and robust database.\nThe programmer works with an object-oriented,\
|
32
|
+
\ flexible network structure rather than with strict and static tables \nyet enjoys\
|
33
|
+
\ all the benefits of a fully transactional, enterprise-strength database.\nIt comes\
|
34
|
+
\ included with the Apache Lucene document database.\n"
|
32
35
|
email: andreas.ronge@gmail.com
|
33
36
|
executables: []
|
34
|
-
|
35
37
|
extensions: []
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
38
|
+
extra_rdoc_files:
|
39
|
+
- README.rdoc
|
40
|
+
files:
|
41
|
+
- !binary |-
|
42
|
+
bGliL25lbzRqLXdyYXBwZXIucmI=
|
43
|
+
- !binary |-
|
44
|
+
bGliL25lbzRqL2lkZW50aXR5X21hcC5yYg==
|
45
|
+
- !binary |-
|
46
|
+
bGliL25lbzRqL25vZGVfbWl4aW4ucmI=
|
47
|
+
- !binary |-
|
48
|
+
bGliL25lbzRqL3JlbGF0aW9uc2hpcF9taXhpbi5yYg==
|
49
|
+
- !binary |-
|
50
|
+
bGliL25lbzRqL3R5cGVfY29udmVydGVycy90eXBlX2NvbnZlcnRlcnMucmI=
|
51
|
+
- !binary |-
|
52
|
+
bGliL25lbzRqLXdyYXBwZXIvY2xhc3NfbWV0aG9kcy5yYg==
|
53
|
+
- !binary |-
|
54
|
+
bGliL25lbzRqLXdyYXBwZXIvZmluZC5yYg==
|
55
|
+
- !binary |-
|
56
|
+
bGliL25lbzRqLXdyYXBwZXIvdmVyc2lvbi5yYg==
|
57
|
+
- !binary |-
|
58
|
+
bGliL25lbzRqLXdyYXBwZXIvd3JhcHBlci5yYg==
|
59
|
+
- !binary |-
|
60
|
+
bGliL25lbzRqLXdyYXBwZXIvaGFzX24vY2xhc3NfbWV0aG9kcy5yYg==
|
61
|
+
- !binary |-
|
62
|
+
bGliL25lbzRqLXdyYXBwZXIvaGFzX24vZGVjbF9yZWwucmI=
|
63
|
+
- !binary |-
|
64
|
+
bGliL25lbzRqLXdyYXBwZXIvaGFzX24vaW5zdGFuY2VfbWV0aG9kcy5yYg==
|
65
|
+
- !binary |-
|
66
|
+
bGliL25lbzRqLXdyYXBwZXIvaGFzX24vbm9kZXMucmI=
|
67
|
+
- !binary |-
|
68
|
+
bGliL25lbzRqLXdyYXBwZXIvbm9kZV9taXhpbi9jbGFzc19tZXRob2RzLnJi
|
69
|
+
- !binary |-
|
70
|
+
bGliL25lbzRqLXdyYXBwZXIvbm9kZV9taXhpbi9kZWxlZ2F0ZXMucmI=
|
71
|
+
- !binary |-
|
72
|
+
bGliL25lbzRqLXdyYXBwZXIvbm9kZV9taXhpbi9pbml0aWFsaXplLnJi
|
73
|
+
- !binary |-
|
74
|
+
bGliL25lbzRqLXdyYXBwZXIvcHJvcGVydGllcy9jbGFzc19tZXRob2RzLnJi
|
75
|
+
- !binary |-
|
76
|
+
bGliL25lbzRqLXdyYXBwZXIvcHJvcGVydGllcy9pbnN0YW5jZV9tZXRob2Rz
|
77
|
+
LnJi
|
78
|
+
- !binary |-
|
79
|
+
bGliL25lbzRqLXdyYXBwZXIvcmVsYXRpb25zaGlwX21peGluL2NsYXNzX21l
|
80
|
+
dGhvZHMucmI=
|
81
|
+
- !binary |-
|
82
|
+
bGliL25lbzRqLXdyYXBwZXIvcmVsYXRpb25zaGlwX21peGluL2RlbGVnYXRl
|
83
|
+
cy5yYg==
|
84
|
+
- !binary |-
|
85
|
+
bGliL25lbzRqLXdyYXBwZXIvcmVsYXRpb25zaGlwX21peGluL2luaXRpYWxp
|
86
|
+
emUucmI=
|
87
|
+
- !binary |-
|
88
|
+
bGliL25lbzRqLXdyYXBwZXIvcnVsZS9jbGFzc19tZXRob2RzLnJi
|
89
|
+
- !binary |-
|
90
|
+
bGliL25lbzRqLXdyYXBwZXIvcnVsZS9ldmVudF9saXN0ZW5lci5yYg==
|
91
|
+
- !binary |-
|
92
|
+
bGliL25lbzRqLXdyYXBwZXIvcnVsZS9pbnN0YW5jZV9tZXRob2RzLnJi
|
93
|
+
- !binary |-
|
94
|
+
bGliL25lbzRqLXdyYXBwZXIvcnVsZS9ydWxlLnJi
|
95
|
+
- !binary |-
|
96
|
+
bGliL25lbzRqLXdyYXBwZXIvcnVsZS9ydWxlX25vZGUucmI=
|
97
|
+
- !binary |-
|
98
|
+
bGliL25lbzRqLXdyYXBwZXIvcnVsZS9mdW5jdGlvbnMvZnVuY3Rpb24ucmI=
|
99
|
+
- !binary |-
|
100
|
+
bGliL25lbzRqLXdyYXBwZXIvcnVsZS9mdW5jdGlvbnMvc2l6ZS5yYg==
|
101
|
+
- !binary |-
|
102
|
+
bGliL25lbzRqLXdyYXBwZXIvcnVsZS9mdW5jdGlvbnMvc3VtLnJi
|
103
|
+
- !binary |-
|
104
|
+
bGliL25lbzRqLXdyYXBwZXIvcnVsZS9uZW80al9jb3JlX2V4dC90cmF2ZXJz
|
105
|
+
ZXIucmI=
|
106
|
+
- README.rdoc
|
107
|
+
- Gemfile
|
108
|
+
- neo4j-wrapper.gemspec
|
73
109
|
homepage: http://github.com/andreasronge/neo4j-wrapper/tree
|
74
110
|
licenses: []
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
111
|
+
post_install_message:
|
112
|
+
rdoc_options:
|
113
|
+
- --quiet
|
114
|
+
- --title
|
115
|
+
- Neo4j.rb
|
116
|
+
- --line-numbers
|
117
|
+
- --main
|
118
|
+
- README.rdoc
|
119
|
+
- --inline-source
|
120
|
+
require_paths:
|
121
|
+
- lib
|
122
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - ! '>='
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: 1.8.7
|
88
127
|
none: false
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
128
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ! '>='
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
segments:
|
133
|
+
- 0
|
134
|
+
hash: 2
|
135
|
+
version: !binary |-
|
136
|
+
MA==
|
94
137
|
none: false
|
95
|
-
requirements:
|
96
|
-
- - ">="
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
version: "0"
|
99
138
|
requirements: []
|
100
|
-
|
101
139
|
rubyforge_project: neo4j-wrapper
|
102
|
-
rubygems_version: 1.8.
|
103
|
-
signing_key:
|
140
|
+
rubygems_version: 1.8.24
|
141
|
+
signing_key:
|
104
142
|
specification_version: 3
|
105
143
|
summary: A graph database for JRuby
|
106
144
|
test_files: []
|
107
|
-
|
108
|
-
has_rdoc: true
|