Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 50 lines (41 sloc) 1.336 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
def find_and_require_user_defined_code
  extensions_path = ENV['neography_extensions'] || "~/.neography"
  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
  end
end

DIRECTIONS = ["incoming", "in", "outgoing", "out", "all", "both"]

require 'cgi'
require 'httparty'
require 'json'
require 'multi_json'
require 'logger'
require 'ostruct'
require 'os'
require 'zip/zipfilesystem'

require 'neography/multi_json_parser'

require 'neography/version'

require 'neography/config'
require 'neography/rest'
require 'neography/neography'

require 'neography/property_container'
require 'neography/property'
require 'neography/node_relationship'
require 'neography/node_path'
require 'neography/relationship_traverser'
require 'neography/node_traverser'
require 'neography/path_traverser'
require 'neography/equal'
require 'neography/index'

require 'neography/node'
require 'neography/relationship'

require 'neography/railtie' if defined? Rails::Railtie

find_and_require_user_defined_code
Something went wrong with that request. Please try again.