Sha256: ba4e77a2efa2f2f0291cc2b9f170f1b31fe405ee227adf43959b4c069034b4cb
Contents?: true
Size: 871 Bytes
Versions: 3
Compression:
Stored size: 871 Bytes
Contents
# -*- coding: utf-8 -*- # SwissDB by jsilverMDX if defined?(Motion) && defined?(Motion::Project::Config) lib_dir_path = File.dirname(File.expand_path(__FILE__)) Motion::Project::App.setup do |app| # unless platform_name == "android" # raise "Sorry, the platform #{platform_name} is not supported by SwissDB" # end # scans app.files until it finds app/ (the default) # if found, it inserts just before those files, otherwise it will insert to # the end of the list insert_point = app.files.find_index { |file| file =~ /^(?:\.\/)?app\// } || 0 # change to "swiss_db" for just swiss_db Dir.glob(File.join(lib_dir_path, "**/*.rb")).each do |file| app.files.insert(insert_point, file) end # load their schemas folder app.files += Dir.glob("schemas/*.rb") # puts "APP FILES: #{app.files.inspect}" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
swiss_db-0.7.2 | lib/swiss_db.rb |
swiss_db-0.7.1 | lib/swiss_db.rb |
swiss_db-0.7.0 | lib/swiss_db.rb |