lib/license_finder/tables.rb in license_finder-1.0.0.0-java vs lib/license_finder/tables.rb in license_finder-1.0.0.1
- old
+ new
@@ -1,7 +1,9 @@
-require 'rubygems'
require 'sequel'
require LicenseFinder::Platform.sqlite_load_path
-LicenseFinder::DB = Sequel.connect("#{LicenseFinder::Platform.sqlite_adapter}://#{LicenseFinder.config.artifacts.database_uri}")
-Sequel.extension :migration, :core_extensions
-Sequel::Migrator.run(LicenseFinder::DB, LicenseFinder::ROOT_PATH.join('../db/migrate'))
+module LicenseFinder
+ DB = Sequel.connect(Platform.sqlite_adapter + "://" + config.artifacts.database_uri)
+
+ Sequel.extension :migration, :core_extensions
+ Sequel::Migrator.run(DB, ROOT_PATH.join('../db/migrate'))
+end