require "neo4j-advanced/version" module Neo4j module Advanced def self.jars_root "#{File.dirname(__FILE__)}/neo4j-advanced/jars" end def self.load_jars! require 'java' require 'neo4j-community' ::Neo4j::Community.ensure_version!(Advanced::NEO_VERSION, 'advanced') Dir["#{jars_root}/*.jar"].each {|jar| require jar } end end end Neo4j::Advanced.load_jars!