neo4j-core 2.0.0.rc1-java → 2.0.0.rc2-java

Sign up to get free protection for your applications and to get access to all the features.
data/lib/db/neostore ADDED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/lib/neo4j-core.rb CHANGED
@@ -6,6 +6,7 @@ module Neo4j
6
6
  Enumerator = Enumerable::Enumerator unless defined? Enumerator
7
7
  end
8
8
 
9
+ require 'neo4j-core/version'
9
10
  require 'neo4j/config'
10
11
 
11
12
  require 'neo4j-community'
@@ -1,5 +1,5 @@
1
1
  module Neo4j
2
2
  module Core
3
- VERSION = "2.0.0.rc1"
3
+ VERSION = "2.0.0.rc2"
4
4
  end
5
5
  end
data/lib/neo4j/neo4j.rb CHANGED
@@ -195,7 +195,6 @@ module Neo4j
195
195
  # ®return the reference node, which is a "starting point" in the node space.
196
196
  # @note In case the ref_node has been assigned via the threadlocal_ref_node method,
197
197
  # then that node will be returned instead.
198
- # @see the design guide at http://wiki.neo4j.org/content/Design_Guide
199
198
  def ref_node(this_db = self.started_db)
200
199
  return Thread.current[:local_ref_node] if Thread.current[:local_ref_node]
201
200
  default_ref_node(this_db)
data/lib/test.rb~ ADDED
@@ -0,0 +1,27 @@
1
+ require 'rubygems'
2
+ require 'neo4j-core'
3
+
4
+
5
+ def connect(d)
6
+ d.each{|i| Neo4j::Relationship.new(:flies_to, i[:from], i[:to])}
7
+ end
8
+
9
+ puts "Using #{Neo4j::Core::VERSION}"
10
+
11
+ tx = Neo4j::Transaction.new
12
+ @a, @b, @c, @z = (1..4).map{Neo4j::Node.new}
13
+ connect([ {:from=>@a, :to=>@b}, {:from=>@a, :to=>@c}, {:from=>@b, :to=>@c},
14
+ {:from=>@b, :to=>@z}, {:from=>@c, :to=>@b}, {:from=>@c, :to=>@z}])
15
+ tx.success
16
+ tx.finish
17
+
18
+
19
+ traversal = @a.outgoing(:flies_to).depth(:all).eval_paths { |path| :include_and_continue }
20
+
21
+ # This prints out
22
+ #Path (1)--[flies_to,0]-->(2)
23
+ #Path (1)--[flies_to,1]-->(3)
24
+ #Path (1)--[flies_to,0]-->(2)--[flies_to,3]-->(4)
25
+ traversal.paths.each do |path|
26
+ puts "Path #{path.to_s}"
27
+ end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: neo4j-core
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 6
5
- version: 2.0.0.rc1
5
+ version: 2.0.0.rc2
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: 2012-05-03 00:00:00 Z
13
+ date: 2012-05-04 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: neo4j-community
@@ -38,6 +38,7 @@ extra_rdoc_files:
38
38
  - README.rdoc
39
39
  files:
40
40
  - lib/neo4j-core.rb
41
+ - lib/test.rb~
41
42
  - lib/neo4j/config.rb
42
43
  - lib/neo4j/algo.rb
43
44
  - lib/neo4j/cypher.rb
@@ -79,6 +80,32 @@ files:
79
80
  - lib/neo4j-core/relationship/relationship.rb
80
81
  - lib/neo4j-core/cypher/cypher.rb
81
82
  - lib/neo4j-core/cypher/result_wrapper.rb
83
+ - lib/db/neostore.relationshiptypestore.db.names
84
+ - lib/db/neostore.id
85
+ - lib/db/neostore.relationshiptypestore.db.names.id
86
+ - lib/db/neostore.nodestore.db.id
87
+ - lib/db/neostore.propertystore.db.index
88
+ - lib/db/neostore.propertystore.db.strings.id
89
+ - lib/db/nioneo_logical.log.active
90
+ - lib/db/neostore.propertystore.db.strings
91
+ - lib/db/neostore.relationshiptypestore.db.id
92
+ - lib/db/neostore
93
+ - lib/db/neostore.nodestore.db
94
+ - lib/db/neostore.propertystore.db.index.keys.id
95
+ - lib/db/neostore.propertystore.db.arrays.id
96
+ - lib/db/messages.log
97
+ - lib/db/neostore.relationshipstore.db.id
98
+ - lib/db/neostore.propertystore.db.arrays
99
+ - lib/db/neostore.relationshipstore.db
100
+ - lib/db/neostore.propertystore.db.index.id
101
+ - lib/db/neostore.propertystore.db.id
102
+ - lib/db/neostore.propertystore.db
103
+ - lib/db/tm_tx_log.1
104
+ - lib/db/neostore.relationshiptypestore.db
105
+ - lib/db/active_tx_log
106
+ - lib/db/neostore.propertystore.db.index.keys
107
+ - lib/db/index/lucene-store.db
108
+ - lib/db/index/lucene.log.active
82
109
  - config/neo4j/config.yml
83
110
  - README.rdoc
84
111
  - Gemfile