lib/ProMotion.rb in ProMotion-0.5.2 vs lib/ProMotion.rb in ProMotion-0.6.0

- old
+ new

@@ -3,12 +3,10 @@ end require "ProMotion/version" Motion::Project::App.setup do |app| - # app_delegate = Dir.glob(File.join(File.dirname(__FILE__), 'ProMotion/app_delegate.rb')) - # app.files = Dir.glob(File.join(File.dirname(__FILE__), 'ProMotion/**/*.rb')) | app_delegate | app.files - original_files = app.files - app.files = FileList[File.join(File.dirname(__FILE__), 'ProMotion/**/*.rb')].exclude(File.join(File.dirname(__FILE__), 'ProMotion/app_delegate.rb')) - app.files = app.files | Dir.glob(File.join(File.dirname(__FILE__), 'ProMotion/app_delegate.rb')) | original_files + delegate = File.join(File.dirname(__FILE__), 'ProMotion/delegate.rb') + promotion_files = FileList[File.join(File.dirname(__FILE__), 'ProMotion/**/*.rb')].exclude(delegate).to_a + app.files = (promotion_files << delegate) + original_files end \ No newline at end of file