orientdb 1.6.3-java → 1.7.8-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. data/Gemfile.lock +41 -40
  2. data/lib/jars/blueprints-core-2.5.0.jar +0 -0
  3. data/lib/jars/concurrentlinkedhashmap-lru-1.4.jar +0 -0
  4. data/lib/jars/gremlin-java-2.5.0.jar +0 -0
  5. data/lib/jars/orient-commons-1.7.8.jar +0 -0
  6. data/lib/jars/orientdb-client-1.7.8.jar +0 -0
  7. data/lib/jars/orientdb-core-1.7.8.jar +0 -0
  8. data/lib/jars/orientdb-distributed-1.7.8.jar +0 -0
  9. data/lib/jars/orientdb-enterprise-1.7.8.jar +0 -0
  10. data/lib/jars/orientdb-graphdb-1.7.8.jar +0 -0
  11. data/lib/jars/orientdb-nativeos-1.7.8.jar +0 -0
  12. data/lib/jars/{orientdb-object-1.6.3.jar → orientdb-object-1.7.8.jar} +0 -0
  13. data/lib/jars/orientdb-server-1.7.8.jar +0 -0
  14. data/lib/jars/orientdb-tools-1.7.8.jar +0 -0
  15. data/lib/jars/{pipes-2.5.0-SNAPSHOT.jar → pipes-2.5.0.jar} +0 -0
  16. data/lib/jars/snappy-java-1.1.0.1.jar +0 -0
  17. data/lib/orientdb.rb +17 -14
  18. data/lib/orientdb/constants.rb +0 -1
  19. data/lib/orientdb/database.rb +3 -1
  20. data/lib/orientdb/version.rb +1 -1
  21. data/orientdb.gemspec +17 -21
  22. data/spec/spec_helper.rb +1 -1
  23. data/spec/tinkerpop_graph_spec.rb +1 -1
  24. metadata +33 -21
  25. checksums.yaml +0 -7
  26. data/lib/jars/blueprints-core-2.5.0-SNAPSHOT.jar +0 -0
  27. data/lib/jars/blueprints-orient-graph-2.5.0-SNAPSHOT.jar +0 -0
  28. data/lib/jars/blueprints-orient-graph-2.5.0.jar +0 -0
  29. data/lib/jars/gremlin-java-2.5.0-SNAPSHOT.jar +0 -0
  30. data/lib/jars/orient-commons-1.6.3.jar +0 -0
  31. data/lib/jars/orientdb-client-1.6.3.jar +0 -0
  32. data/lib/jars/orientdb-core-1.6.3.jar +0 -0
  33. data/lib/jars/orientdb-distributed-1.6.3.jar +0 -0
  34. data/lib/jars/orientdb-enterprise-1.6.3.jar +0 -0
  35. data/lib/jars/orientdb-graphdb-1.6.3.jar +0 -0
  36. data/lib/jars/orientdb-nativeos-1.6.3.jar +0 -0
  37. data/lib/jars/orientdb-server-1.6.3.jar +0 -0
  38. data/lib/jars/orientdb-tools-1.6.3.jar +0 -0
  39. data/spec/graph_spec.rb +0 -39
@@ -1,69 +1,70 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- addressable (2.3.5)
4
+ addressable (2.3.6)
5
5
  awesome_print (1.2.0)
6
6
  builder (3.2.2)
7
7
  coderay (1.1.0)
8
+ descendants_tracker (0.0.4)
9
+ thread_safe (~> 0.3, >= 0.3.1)
8
10
  diff-lcs (1.2.5)
9
- faraday (0.8.8)
10
- multipart-post (~> 1.2.0)
11
+ faraday (0.9.0)
12
+ multipart-post (>= 1.2, < 3)
11
13
  ffi (1.9.3-java)
12
- git (1.2.6)
13
- github_api (0.10.1)
14
- addressable
15
- faraday (~> 0.8.1)
16
- hashie (>= 1.2)
17
- multi_json (~> 1.4)
18
- nokogiri (~> 1.5.2)
14
+ git (1.2.8)
15
+ github_api (0.12.1)
16
+ addressable (~> 2.3)
17
+ descendants_tracker (~> 0.0.4)
18
+ faraday (~> 0.8, < 0.10)
19
+ hashie (>= 3.2)
20
+ multi_json (>= 1.7.5, < 2.0)
21
+ nokogiri (~> 1.6.3)
19
22
  oauth2
20
- hashie (2.0.5)
21
- highline (1.6.20)
22
- httpauth (0.2.0)
23
- jeweler (1.8.8)
23
+ hashie (3.3.1)
24
+ highline (1.6.21)
25
+ jeweler (2.0.1)
24
26
  builder
25
- bundler (~> 1.0)
27
+ bundler (>= 1.0)
26
28
  git (>= 1.2.5)
27
- github_api (= 0.10.1)
29
+ github_api
28
30
  highline (>= 1.6.15)
29
- nokogiri (= 1.5.10)
31
+ nokogiri (>= 1.5.10)
30
32
  rake
31
33
  rdoc
32
34
  json (1.8.1-java)
33
- jwt (0.1.8)
34
- multi_json (>= 1.5)
35
+ jwt (1.0.0)
35
36
  method_source (0.8.2)
36
- multi_json (1.8.2)
37
+ multi_json (1.10.1)
37
38
  multi_xml (0.5.5)
38
- multipart-post (1.2.0)
39
- nokogiri (1.5.10-java)
40
- oauth2 (0.9.2)
41
- faraday (~> 0.8)
42
- httpauth (~> 0.2)
43
- jwt (~> 0.1.4)
44
- multi_json (~> 1.0)
39
+ multipart-post (2.0.0)
40
+ nokogiri (1.6.3.1-java)
41
+ oauth2 (1.0.0)
42
+ faraday (>= 0.8, < 0.10)
43
+ jwt (~> 1.0)
44
+ multi_json (~> 1.3)
45
45
  multi_xml (~> 0.5)
46
46
  rack (~> 1.2)
47
- pry (0.9.12.4-java)
48
- coderay (~> 1.0)
49
- method_source (~> 0.8)
47
+ pry (0.10.1-java)
48
+ coderay (~> 1.1.0)
49
+ method_source (~> 0.8.1)
50
50
  slop (~> 3.4)
51
51
  spoon (~> 0.0)
52
52
  rack (1.5.2)
53
- rake (10.1.1)
54
- rdoc (4.1.0)
53
+ rake (10.3.2)
54
+ rdoc (4.1.2)
55
55
  json (~> 1.4)
56
- rspec (2.14.1)
57
- rspec-core (~> 2.14.0)
58
- rspec-expectations (~> 2.14.0)
59
- rspec-mocks (~> 2.14.0)
60
- rspec-core (2.14.7)
61
- rspec-expectations (2.14.4)
56
+ rspec (2.99.0)
57
+ rspec-core (~> 2.99.0)
58
+ rspec-expectations (~> 2.99.0)
59
+ rspec-mocks (~> 2.99.0)
60
+ rspec-core (2.99.2)
61
+ rspec-expectations (2.99.2)
62
62
  diff-lcs (>= 1.1.3, < 2.0)
63
- rspec-mocks (2.14.4)
64
- slop (3.4.7)
63
+ rspec-mocks (2.99.2)
64
+ slop (3.6.0)
65
65
  spoon (0.0.4)
66
66
  ffi
67
+ thread_safe (0.3.4-java)
67
68
 
68
69
  PLATFORMS
69
70
  java
@@ -1,4 +1,4 @@
1
- raise "OrieentDB-client only runs on JRuby. Sorry!" unless (RUBY_PLATFORM =~ /java/)
1
+ raise 'OrieentDB-client only runs on JRuby. Sorry!' unless (RUBY_PLATFORM =~ /java/)
2
2
 
3
3
  module OrientDB
4
4
  GEM_PATH = File.dirname File.expand_path(__FILE__) unless const_defined?(:GEM_PATH)
@@ -8,22 +8,25 @@ $: << OrientDB::GEM_PATH
8
8
  $: << File.join(OrientDB::GEM_PATH, 'jars')
9
9
 
10
10
  require 'java'
11
- require "commons-configuration-1.9"
11
+ require 'commons-configuration-1.9'
12
12
 
13
- require "blueprints-core-2.5.0"
14
- require "blueprints-orient-graph-2.5.0"
13
+ require 'blueprints-core-2.5.0'
14
+ # require 'blueprints-orient-graph-2.5.0-SNAPSHOT'
15
15
 
16
- require "orient-commons-1.6.3"
17
- require "orientdb-core-1.6.3"
18
- require "jna-4.0.0"
19
- require "orientdb-nativeos-1.6.3"
20
- require "orientdb-client-1.6.3"
21
- require "orientdb-enterprise-1.6.3"
22
- require "orientdb-server-1.6.3.jar"
23
- require "orientdb-tools-1.6.3.jar"
16
+ require 'orient-commons-1.7.8'
17
+ require 'orientdb-core-1.7.8'
18
+ require 'orientdb-graphdb-1.7.8'
19
+ require 'jna-4.0.0'
20
+ require 'orientdb-nativeos-1.7.8'
21
+ require 'orientdb-client-1.7.8'
22
+ require 'orientdb-enterprise-1.7.8'
23
+ require 'orientdb-server-1.7.8.jar'
24
+ require 'orientdb-tools-1.7.8.jar'
24
25
 
25
- require "pipes-2.5.0-SNAPSHOT"
26
- require "gremlin-java-2.5.0"
26
+ require 'pipes-2.5.0'
27
+ require 'gremlin-java-2.5.0'
28
+ require 'snappy-java-1.1.0.1'
29
+ require 'concurrentlinkedhashmap-lru-1.4'
27
30
 
28
31
  require 'orientdb/version'
29
32
  require 'orientdb/ext'
@@ -7,7 +7,6 @@ module OrientDB
7
7
  DocumentDatabase = CORE.db.document.ODatabaseDocumentTx
8
8
  DocumentDatabasePool = CORE.db.document.ODatabaseDocumentPool
9
9
  DocumentDatabasePooled = CORE.db.document.ODatabaseDocumentTxPooled
10
- GraphDatabase = CORE.db.graph.OGraphDatabase
11
10
  OTraverse = CORE.command.traverse.OTraverse
12
11
  Document = CORE.record.impl.ODocument
13
12
  IndexType = CORE.metadata.schema.OClass::INDEX_TYPE
@@ -84,7 +84,9 @@ module OrientDB
84
84
  #run_command("DELETE FROM '#{klass_name}'") rescue nil
85
85
  root_class = get_class(klass_name)
86
86
  schema.classes.each do |possible_sub_class|
87
- drop_class(possible_sub_class.name) if possible_sub_class.is_sub_class_of(root_class)
87
+ if possible_sub_class.is_sub_class_of(root_class) && root_class.name != possible_sub_class.name
88
+ drop_class(possible_sub_class.name)
89
+ end
88
90
  end
89
91
  drop_class(klass_name) rescue nil
90
92
  create_class klass_name, fields
@@ -1,3 +1,3 @@
1
1
  module OrientDB
2
- VERSION = '1.6.3'
2
+ VERSION = '1.7.8'
3
3
  end
@@ -2,16 +2,15 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: orientdb 1.6.3 java lib
6
5
 
7
6
  Gem::Specification.new do |s|
8
7
  s.name = "orientdb"
9
- s.version = "1.6.3"
8
+ s.version = "1.7.8"
10
9
  s.platform = "java"
11
10
 
12
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
13
12
  s.authors = ["Adrian Madrid"]
14
- s.date = "2014-01-03"
13
+ s.date = "2014-09-15"
15
14
  s.description = "Simple JRuby wrapper for the OrientDB."
16
15
  s.email = "aemadrid@gmail.com"
17
16
  s.executables = ["orientdb_console"]
@@ -27,25 +26,23 @@ Gem::Specification.new do |s|
27
26
  "README.rdoc",
28
27
  "Rakefile",
29
28
  "bin/orientdb_console",
30
- "lib/jars/blueprints-core-2.5.0-SNAPSHOT.jar",
31
29
  "lib/jars/blueprints-core-2.5.0.jar",
32
- "lib/jars/blueprints-orient-graph-2.5.0-SNAPSHOT.jar",
33
- "lib/jars/blueprints-orient-graph-2.5.0.jar",
34
30
  "lib/jars/commons-configuration-1.9.jar",
35
- "lib/jars/gremlin-java-2.5.0-SNAPSHOT.jar",
31
+ "lib/jars/concurrentlinkedhashmap-lru-1.4.jar",
36
32
  "lib/jars/gremlin-java-2.5.0.jar",
37
33
  "lib/jars/jna-4.0.0.jar",
38
- "lib/jars/orient-commons-1.6.3.jar",
39
- "lib/jars/orientdb-client-1.6.3.jar",
40
- "lib/jars/orientdb-core-1.6.3.jar",
41
- "lib/jars/orientdb-distributed-1.6.3.jar",
42
- "lib/jars/orientdb-enterprise-1.6.3.jar",
43
- "lib/jars/orientdb-graphdb-1.6.3.jar",
44
- "lib/jars/orientdb-nativeos-1.6.3.jar",
45
- "lib/jars/orientdb-object-1.6.3.jar",
46
- "lib/jars/orientdb-server-1.6.3.jar",
47
- "lib/jars/orientdb-tools-1.6.3.jar",
48
- "lib/jars/pipes-2.5.0-SNAPSHOT.jar",
34
+ "lib/jars/orient-commons-1.7.8.jar",
35
+ "lib/jars/orientdb-client-1.7.8.jar",
36
+ "lib/jars/orientdb-core-1.7.8.jar",
37
+ "lib/jars/orientdb-distributed-1.7.8.jar",
38
+ "lib/jars/orientdb-enterprise-1.7.8.jar",
39
+ "lib/jars/orientdb-graphdb-1.7.8.jar",
40
+ "lib/jars/orientdb-nativeos-1.7.8.jar",
41
+ "lib/jars/orientdb-object-1.7.8.jar",
42
+ "lib/jars/orientdb-server-1.7.8.jar",
43
+ "lib/jars/orientdb-tools-1.7.8.jar",
44
+ "lib/jars/pipes-2.5.0.jar",
45
+ "lib/jars/snappy-java-1.1.0.1.jar",
49
46
  "lib/orientdb.rb",
50
47
  "lib/orientdb/constants.rb",
51
48
  "lib/orientdb/database.rb",
@@ -68,7 +65,6 @@ Gem::Specification.new do |s|
68
65
  "orientdb.gemspec",
69
66
  "spec/database_spec.rb",
70
67
  "spec/document_spec.rb",
71
- "spec/graph_spec.rb",
72
68
  "spec/gremlin_spec.rb",
73
69
  "spec/orientdb_spec.rb",
74
70
  "spec/spec.opts",
@@ -79,11 +75,11 @@ Gem::Specification.new do |s|
79
75
  ]
80
76
  s.homepage = "http://github.com/aemadrid/orientdb-jruby"
81
77
  s.require_paths = ["lib"]
82
- s.rubygems_version = "2.1.9"
78
+ s.rubygems_version = "1.8.24"
83
79
  s.summary = "Simple JRuby wrapper for the OrientDB."
84
80
 
85
81
  if s.respond_to? :specification_version then
86
- s.specification_version = 4
82
+ s.specification_version = 3
87
83
 
88
84
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
89
85
  s.add_development_dependency(%q<rspec>, ["~> 2.4"])
@@ -28,7 +28,7 @@ unless defined?(SPEC_HELPER_LOADED)
28
28
  FileUtils.remove_dir "#{TEMP_DIR}/databases/"
29
29
  FileUtils.mkdir_p TEST_DB_PATH
30
30
  puts ">> TEST_DB PATH : #{TEST_DB_PATH}"
31
- DB = OrientDB::DocumentDatabase.new("local:#{TEST_DB_PATH}/test").create
31
+ DB = OrientDB::DocumentDatabase.new("plocal:#{TEST_DB_PATH}/test").create
32
32
  end
33
33
 
34
34
  module Helpers
@@ -5,7 +5,7 @@ describe "OrientDB" do
5
5
  describe "Graph Database" do
6
6
 
7
7
  before do
8
- @database = OrientDB::OrientGraph.new("local:#{TEST_DB_PATH}/graph").create
8
+ @database = OrientDB::OrientGraph.new("plocal:#{TEST_DB_PATH}/graph").create
9
9
  begin
10
10
  @topper = @database.add_vertex(nil)
11
11
  @topper.set_property("name", "Topper")
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orientdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.3
4
+ version: 1.7.8
5
+ prerelease:
5
6
  platform: java
6
7
  authors:
7
8
  - Adrian Madrid
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-01-03 00:00:00.000000000 Z
12
+ date: 2014-09-15 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rspec
@@ -17,11 +18,13 @@ dependencies:
17
18
  - - ~>
18
19
  - !ruby/object:Gem::Version
19
20
  version: '2.4'
21
+ none: false
20
22
  requirement: !ruby/object:Gem::Requirement
21
23
  requirements:
22
24
  - - ~>
23
25
  - !ruby/object:Gem::Version
24
26
  version: '2.4'
27
+ none: false
25
28
  prerelease: false
26
29
  type: :development
27
30
  - !ruby/object:Gem::Dependency
@@ -31,11 +34,13 @@ dependencies:
31
34
  - - '>='
32
35
  - !ruby/object:Gem::Version
33
36
  version: '0'
37
+ none: false
34
38
  requirement: !ruby/object:Gem::Requirement
35
39
  requirements:
36
40
  - - '>='
37
41
  - !ruby/object:Gem::Version
38
42
  version: '0'
43
+ none: false
39
44
  prerelease: false
40
45
  type: :development
41
46
  - !ruby/object:Gem::Dependency
@@ -45,11 +50,13 @@ dependencies:
45
50
  - - '>='
46
51
  - !ruby/object:Gem::Version
47
52
  version: '0'
53
+ none: false
48
54
  requirement: !ruby/object:Gem::Requirement
49
55
  requirements:
50
56
  - - '>='
51
57
  - !ruby/object:Gem::Version
52
58
  version: '0'
59
+ none: false
53
60
  prerelease: false
54
61
  type: :development
55
62
  - !ruby/object:Gem::Dependency
@@ -59,11 +66,13 @@ dependencies:
59
66
  - - '>='
60
67
  - !ruby/object:Gem::Version
61
68
  version: '0'
69
+ none: false
62
70
  requirement: !ruby/object:Gem::Requirement
63
71
  requirements:
64
72
  - - '>='
65
73
  - !ruby/object:Gem::Version
66
74
  version: '0'
75
+ none: false
67
76
  prerelease: false
68
77
  type: :development
69
78
  - !ruby/object:Gem::Dependency
@@ -73,11 +82,13 @@ dependencies:
73
82
  - - '>='
74
83
  - !ruby/object:Gem::Version
75
84
  version: '0'
85
+ none: false
76
86
  requirement: !ruby/object:Gem::Requirement
77
87
  requirements:
78
88
  - - '>='
79
89
  - !ruby/object:Gem::Version
80
90
  version: '0'
91
+ none: false
81
92
  prerelease: false
82
93
  type: :development
83
94
  description: Simple JRuby wrapper for the OrientDB.
@@ -96,25 +107,23 @@ files:
96
107
  - README.rdoc
97
108
  - Rakefile
98
109
  - bin/orientdb_console
99
- - lib/jars/blueprints-core-2.5.0-SNAPSHOT.jar
100
110
  - lib/jars/blueprints-core-2.5.0.jar
101
- - lib/jars/blueprints-orient-graph-2.5.0-SNAPSHOT.jar
102
- - lib/jars/blueprints-orient-graph-2.5.0.jar
103
111
  - lib/jars/commons-configuration-1.9.jar
104
- - lib/jars/gremlin-java-2.5.0-SNAPSHOT.jar
112
+ - lib/jars/concurrentlinkedhashmap-lru-1.4.jar
105
113
  - lib/jars/gremlin-java-2.5.0.jar
106
114
  - lib/jars/jna-4.0.0.jar
107
- - lib/jars/orient-commons-1.6.3.jar
108
- - lib/jars/orientdb-client-1.6.3.jar
109
- - lib/jars/orientdb-core-1.6.3.jar
110
- - lib/jars/orientdb-distributed-1.6.3.jar
111
- - lib/jars/orientdb-enterprise-1.6.3.jar
112
- - lib/jars/orientdb-graphdb-1.6.3.jar
113
- - lib/jars/orientdb-nativeos-1.6.3.jar
114
- - lib/jars/orientdb-object-1.6.3.jar
115
- - lib/jars/orientdb-server-1.6.3.jar
116
- - lib/jars/orientdb-tools-1.6.3.jar
117
- - lib/jars/pipes-2.5.0-SNAPSHOT.jar
115
+ - lib/jars/orient-commons-1.7.8.jar
116
+ - lib/jars/orientdb-client-1.7.8.jar
117
+ - lib/jars/orientdb-core-1.7.8.jar
118
+ - lib/jars/orientdb-distributed-1.7.8.jar
119
+ - lib/jars/orientdb-enterprise-1.7.8.jar
120
+ - lib/jars/orientdb-graphdb-1.7.8.jar
121
+ - lib/jars/orientdb-nativeos-1.7.8.jar
122
+ - lib/jars/orientdb-object-1.7.8.jar
123
+ - lib/jars/orientdb-server-1.7.8.jar
124
+ - lib/jars/orientdb-tools-1.7.8.jar
125
+ - lib/jars/pipes-2.5.0.jar
126
+ - lib/jars/snappy-java-1.1.0.1.jar
118
127
  - lib/orientdb.rb
119
128
  - lib/orientdb/constants.rb
120
129
  - lib/orientdb/database.rb
@@ -137,7 +146,6 @@ files:
137
146
  - orientdb.gemspec
138
147
  - spec/database_spec.rb
139
148
  - spec/document_spec.rb
140
- - spec/graph_spec.rb
141
149
  - spec/gremlin_spec.rb
142
150
  - spec/orientdb_spec.rb
143
151
  - spec/spec.opts
@@ -147,7 +155,6 @@ files:
147
155
  - spec/tinkerpop_graph_spec.rb
148
156
  homepage: http://github.com/aemadrid/orientdb-jruby
149
157
  licenses: []
150
- metadata: {}
151
158
  post_install_message:
152
159
  rdoc_options: []
153
160
  require_paths:
@@ -156,16 +163,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
156
163
  requirements:
157
164
  - - '>='
158
165
  - !ruby/object:Gem::Version
166
+ segments:
167
+ - 0
168
+ hash: 2
159
169
  version: '0'
170
+ none: false
160
171
  required_rubygems_version: !ruby/object:Gem::Requirement
161
172
  requirements:
162
173
  - - '>='
163
174
  - !ruby/object:Gem::Version
164
175
  version: '0'
176
+ none: false
165
177
  requirements: []
166
178
  rubyforge_project:
167
- rubygems_version: 2.1.9
179
+ rubygems_version: 1.8.24
168
180
  signing_key:
169
- specification_version: 4
181
+ specification_version: 3
170
182
  summary: Simple JRuby wrapper for the OrientDB.
171
183
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: dc82be26335a21f38279d343936f51ada4e3d774
4
- data.tar.gz: ebaf1d4f48de0c5794925527b163ce3089d49e3e
5
- SHA512:
6
- metadata.gz: d7b389762c598df14b3bf6730ea9ae9ded499bc4895143447da1a0758eb341534e495d7c76803d4004226598efc79df31e1f02ed774ca0e7597be7128b99c72a
7
- data.tar.gz: fe5720acd2a8f65271e9c82b8eec0650ba913bb044023b5119de4f9f84a5c019ae9dd9e45d86db82178cb61a7533d58d8dbf782ca31674ae940c3c774a5b7626
@@ -1,39 +0,0 @@
1
- require File.expand_path("../spec_helper", __FILE__)
2
-
3
- describe "OrientDB" do
4
-
5
- describe "Graph Database" do
6
-
7
- before do
8
- @database = OrientDB::GraphDatabase.new("local:#{TEST_DB_PATH}/graph").create
9
- @root_node = @database.create_vertex.field("id", 0).save
10
- #this creates a long chain of nodes... 1000 of 'em that are chained together
11
- @last_node = @root_node
12
- 1000.times do |i|
13
- new_node = @database.create_vertex.field("id", i+1).save
14
- @database.create_edge(@last_node, new_node)
15
- @last_node = new_node
16
- end
17
- @database.set_root("graph", @root_node)
18
- end
19
-
20
- after do
21
- @database.drop
22
- @database.close
23
- end
24
-
25
- it "should get the root" do
26
- @database.get_root("graph").should == @root_node
27
- end
28
-
29
- it "should traverse to the last node" do
30
- node = @root_node
31
- while @database.get_out_edges(node) and !@database.get_out_edges(node).empty?
32
- node = @database.get_in_vertex(@database.get_out_edges(node).first)
33
- end
34
- node.should == @last_node
35
- end
36
-
37
- end
38
-
39
- end