Sha256: a40a5941c4a928b75d4c41b8d6e2c098fd9a2c20f1f4cd0c7cbafc6aac615006
Contents?: true
Size: 922 Bytes
Versions: 32
Compression:
Stored size: 922 Bytes
Contents
require "neo4j-community/version" module Neo4j module Community def self.jars_root File.join("#{File.dirname(__FILE__)}", "neo4j-community", "jars") end def self.test_jars_root File.join("#{File.dirname(__FILE__)}", "neo4j-community", "test-jars") end def self.load_jars! require 'java' Dir["#{jars_root}/*.jar"].each {|jar| require jar } end def self.load_test_jars! require 'java' Dir["#{test_jars_root}/*.jar"].each {|jar| require jar } end # This can be used by dependent gems to verify the Database versions have no mismatch. def self.ensure_version!(other, edition) return if ::Neo4j::Community::NEO_VERSION == other raise "Mismatch of Neo4j JAR versions. Already loaded neo4j-community JAR files '#{::Neo4j::Community::NEO_VERSION}' but neo4j-#{edition}: '#{other}'." end end end Neo4j::Community.load_jars!
Version data entries
32 entries across 32 versions & 1 rubygems