neo4jr-simple 0.1.6 → 0.1.7
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.
- data/VERSION +1 -1
- data/lib/neo4jr/cli.rb +1 -1
- data/lib/neo4jr/configuration.rb +1 -1
- data/lib/neo4jr/db.rb +0 -1
- data/lib/neo4jr/simple_cost_evaluator.rb +9 -0
- data/lib/neo4jr-simple.rb +1 -2
- data/spec/spec_helper.rb +1 -1
- metadata +14 -3
- data/lib/neo4jr/version.rb +0 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.7
|
data/lib/neo4jr/cli.rb
CHANGED
data/lib/neo4jr/configuration.rb
CHANGED
@@ -2,7 +2,7 @@ module Neo4jr
|
|
2
2
|
class Configuration
|
3
3
|
class << self
|
4
4
|
def database_path
|
5
|
-
@database_path ||= (System.getProperty('neo4jr.database') || Dir.mktmpdir)
|
5
|
+
@database_path ||= (System.getProperty('neo4jr.database') || ENV['neo4jr_database'] || Dir.mktmpdir)
|
6
6
|
end
|
7
7
|
|
8
8
|
def database_path=(value)
|
data/lib/neo4jr/db.rb
CHANGED
data/lib/neo4jr-simple.rb
CHANGED
@@ -17,7 +17,6 @@ module Neo4jr
|
|
17
17
|
java_import org.neo4j.graphalgo.shortestpath.std.DoubleAdder
|
18
18
|
java_import org.neo4j.graphalgo.shortestpath.std.DoubleComparator
|
19
19
|
java_import org.neo4j.api.core.DynamicRelationshipType
|
20
|
-
java_import org.neo4j.graphalgo.shortestpath.Dijkstra
|
21
20
|
end
|
22
21
|
|
23
22
|
require 'neo4jr/configuration'
|
@@ -31,7 +30,7 @@ require 'neo4jr/int_array_iterator_extension'
|
|
31
30
|
require 'neo4jr/traverser_extension'
|
32
31
|
require 'neo4jr/returnable_evaluator'
|
33
32
|
require 'neo4jr/stop_evaluator'
|
33
|
+
require 'neo4jr/simple_cost_evaluator'
|
34
34
|
require 'neo4jr/order'
|
35
35
|
require 'neo4jr/direction'
|
36
|
-
require 'neo4jr/version'
|
37
36
|
require 'neo4jr/cli'
|
data/spec/spec_helper.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
2
2
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
3
3
|
|
4
|
-
require 'neo4jr-simple'
|
5
4
|
require 'spec'
|
6
5
|
require 'spec/autorun'
|
6
|
+
require 'neo4jr-simple'
|
7
7
|
|
8
8
|
Neo4jr::Configuration.database_path = File.join(File.expand_path(File.dirname(__FILE__)), 'test-imdb-database')
|
9
9
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neo4jr-simple
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Deiters
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-01-19 00:00:00 -08:00
|
13
13
|
default_executable: neosh
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -22,6 +22,16 @@ dependencies:
|
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: 1.2.9
|
24
24
|
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: jeweler
|
27
|
+
type: :development
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: "0"
|
34
|
+
version:
|
25
35
|
description: A simple, ready to go JRuby wrapper for the Neo4j graph database engine. Nothing more then Neo4j and Ruby goodness
|
26
36
|
email: matthew_deiters@mckinsey.com
|
27
37
|
executables:
|
@@ -32,6 +42,7 @@ extra_rdoc_files:
|
|
32
42
|
- LICENSE
|
33
43
|
- README.rdoc
|
34
44
|
files:
|
45
|
+
- VERSION
|
35
46
|
- bin/neosh
|
36
47
|
- lib/jars/graph-algo-0.2-20090815.182816-1.jar
|
37
48
|
- lib/jars/jta-1.1.jar
|
@@ -50,9 +61,9 @@ files:
|
|
50
61
|
- lib/neo4jr/relationship_extension.rb
|
51
62
|
- lib/neo4jr/relationship_type.rb
|
52
63
|
- lib/neo4jr/returnable_evaluator.rb
|
64
|
+
- lib/neo4jr/simple_cost_evaluator.rb
|
53
65
|
- lib/neo4jr/stop_evaluator.rb
|
54
66
|
- lib/neo4jr/traverser_extension.rb
|
55
|
-
- lib/neo4jr/version.rb
|
56
67
|
- LICENSE
|
57
68
|
- README.rdoc
|
58
69
|
has_rdoc: true
|
data/lib/neo4jr/version.rb
DELETED