Sha256: 1ff758b28187518be4b1070715635cd70e43e610ad97c1b46c9eec59490c5002
Contents?: true
Size: 1.3 KB
Versions: 1
Compression:
Stored size: 1.3 KB
Contents
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__))) def find_and_require_neo4jr_simple neo4jr_simple_root = java.lang.System.getProperty('neo4jr.simple') || ENV['neo4jr_simple'] if neo4jr_simple_root $LOAD_PATH.unshift(File.join(neo4jr_simple_root, 'lib')) else gem 'neo4jr-simple' end require 'neo4jr-simple' end def find_and_require_user_defined_code extensions_path = java.lang.System.getProperty('neo4jr.extensions') || ENV['neo4jr_extensions'] || "~/.neo4jr-social" extensions_path = File.expand_path(extensions_path) if File.exists?(extensions_path) Dir.open extensions_path do |dir| dir.entries.each do |file| if file.split('.').size > 1 && file.split('.').last == 'rb' extension = File.join(File.expand_path(extensions_path), file) require(extension) && puts("Loaded Extension: #{extension}") end end end else puts "No Extensions Found: #{extensions_path}" end end include Java require 'rubygems' gem 'sinatra' gem 'json-jruby' require 'sinatra' require 'json' find_and_require_neo4jr_simple require 'neo4jr-social/self_documentor' require 'neo4jr-social/param_helper' require 'neo4jr-social/format_handler' require 'neo4jr-social/json_printer' require 'neo4jr-social/service' find_and_require_user_defined_code
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
neo4jr-social-0.3.1 | lib/neo4jr-social.rb |