neo4j-community 1.6.0.alpha.4-java → 1.6.0.alpha.5-java
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/lib/neo4j-community.rb +7 -0
- data/lib/neo4j-community/version.rb +2 -11
- metadata +2 -2
data/lib/neo4j-community.rb
CHANGED
|
@@ -13,6 +13,13 @@ module Neo4j
|
|
|
13
13
|
Dir["#{jars_root}/*.jar"].each {|jar| require jar }
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
+
# This can be used by dependent gems to verify the Database versions have no mismatch.
|
|
17
|
+
def self.ensure_version!(other, edition)
|
|
18
|
+
matching = ::Neo4j::Community::NEO_VERSION == other
|
|
19
|
+
return unless matching
|
|
20
|
+
raise "Mismatch of Neo4j JAR versions. Already loaded JAR files #{::Neo4j::Community::NEO_VERSION}, neo4j-#{edition}: #{other}."
|
|
21
|
+
end
|
|
22
|
+
|
|
16
23
|
end
|
|
17
24
|
end
|
|
18
25
|
|
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
module Neo4j
|
|
2
|
-
|
|
3
2
|
module Community
|
|
4
|
-
VERSION = "1.6.0.alpha.
|
|
3
|
+
VERSION = "1.6.0.alpha.5"
|
|
5
4
|
NEO_VERSION = "1.6.M02"
|
|
6
5
|
end
|
|
7
|
-
|
|
8
|
-
# make sure community, advanced and enterprise neo4j jar files have the same version
|
|
9
|
-
if defined?(NEO_VERSION)
|
|
10
|
-
if NEO_VERSION != Community::NEO_VERSION
|
|
11
|
-
raise "Mismatch of Neo4j JAR versions. Already loaded JAR files #{NEO_VERSION}, neo4j-community: #{Community::NEO_VERSION}"
|
|
12
|
-
end
|
|
13
|
-
else
|
|
14
|
-
NEO_VERSION = Community::NEO_VERSION
|
|
15
|
-
end
|
|
16
6
|
end
|
|
7
|
+
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: neo4j-community
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: 6
|
|
5
|
-
version: 1.6.0.alpha.
|
|
5
|
+
version: 1.6.0.alpha.5
|
|
6
6
|
platform: java
|
|
7
7
|
authors:
|
|
8
8
|
- Dmytrii Nagirniak
|
|
@@ -11,7 +11,7 @@ autorequire:
|
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
13
|
|
|
14
|
-
date: 2012-01-
|
|
14
|
+
date: 2012-01-13 00:00:00 Z
|
|
15
15
|
dependencies: []
|
|
16
16
|
|
|
17
17
|
description: "The Java Jar files for the Neo4j Community, a high performance, fully ACID transactional graph database \xE2\x80\x93 licensed under the GPL, see license - http://neo4j.org/licensing-guide/ "
|