Sha256: df4484d04f95d9bd52d8ce5fc32968c77948f947cb6217cb09f29039c444aa23
Contents?: true
Size: 739 Bytes
Versions: 4
Compression:
Stored size: 739 Bytes
Contents
# -*- coding: utf-8 -*- # SwissDB by jsilverMDX if 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 Dir.glob(File.join(lib_dir_path, "**/*.rb")).reverse.each do |file| app.files.insert(insert_point, file) end # puts "APP FILES: #{app.files.inspect}" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
swiss_db-0.3.6 | lib/swiss_db.rb |
swiss_db-0.3.5 | lib/swiss_db.rb |
swiss_db-0.3.4 | lib/swiss_db.rb |
swiss_db-0.3.3 | lib/swiss_db.rb |