lib/ProMotion.rb in ProMotion-1.1.2 vs lib/ProMotion.rb in ProMotion-1.2.0

- old
+ new

@@ -1,13 +1,3 @@ -unless defined?(Motion::Project::Config) - raise "This file must be required within a RubyMotion project Rakefile." -end +require 'motion-require' -require "ProMotion/version" - -Motion::Project::App.setup do |app| - app.detect_dependencies = true - original_files = app.files - delegate = File.join(File.dirname(__FILE__), 'ProMotion/delegate/delegate.rb') - promotion_files = FileList[File.join(File.dirname(__FILE__), 'ProMotion/**/*.rb')].exclude(delegate).to_a - app.files = (promotion_files << delegate) + original_files -end +Motion::Require.all(Dir.glob(File.expand_path('../ProMotion/**/*.rb', __FILE__))) \ No newline at end of file