lib/ProMotion.rb in ProMotion-0.0.1 vs lib/ProMotion.rb in ProMotion-0.0.2
- old
+ new
@@ -1,5 +1,11 @@
+unless defined?(Motion::Project::Config)
+ raise "This file must be required within a RubyMotion project Rakefile."
+end
+
require "ProMotion/version"
-module ProMotion
- # Your code goes here...
-end
+Motion::Project::App.setup do |app|
+ Dir.glob(File.join(File.dirname(__FILE__), "ProMotion/*.rb")).each do |file|
+ app.files.unshift(file)
+ end
+end
\ No newline at end of file