lib/init.rb in active-orient-0.79 vs lib/init.rb in active-orient-0.80

- old
+ new

@@ -35,28 +35,29 @@ =end def self.connect **defaults define_namespace namespace: :object ActiveOrient::OrientDB.configure_logger defaults[:logger] - ao = ActiveOrient::OrientDB.new defaults.merge preallocate: false + ao = ActiveOrient::OrientDB.new **(defaults.merge( preallocate: false)) ao.create_class 'E' ao.create_class 'V' ao # return client instance end =begin Parameters: yml: hash from config.yml , - namespace: Class to use as Namespace + namespace: Class to use as Namespace, one of [ :self, :object, :active_orient ] + A custom Constant can be provided via Block i.e. configyml = YAML.load_file (...) # with an entry "namespace:" ActiveOrient.Init.define_namespace yml: configyml #or ActiveOrient.Init.define_namespace namespace: :self | :object | :active_orient #or - module IBi; end # first declare the Module-Const + module IB; end # first declare the Module-Const # then assign to the namespace ActiveOrient.Init.define_namespace { IB } =end def self.define_namespace( yml: {}, namespace: nil )