lib/walt.rb in walt-0.1 vs lib/walt.rb in walt-0.1.2

- old
+ new

@@ -1,27 +1,7 @@ -require "walt/version" -require 'bubble-wrap/core' +require File.expand_path(File.join(File.dirname(__FILE__), "walt/version")) require 'motion-cocoapods' +require 'bubble-wrap/core' -BW.require File.expand_path('../walt/support/**/*.rb', __FILE__) do -end +require 'motion-require' -BW.require File.expand_path('../walt/**/*.rb', __FILE__) do -end - -Motion::Project::App.setup do |app| - depends = {} - - ['fade','move'].each {|file| - _f = File.expand_path("../walt/operation/#{file}.rb", __FILE__) - depends[_f] ||= [] - depends[_f] << File.expand_path("../walt/operation/base.rb", __FILE__) - } - - ['image'].each {|file| - _f = File.expand_path("../walt/asset/#{file}.rb", __FILE__) - depends[_f] ||= [] - depends[_f] << File.expand_path("../walt/asset/asset.rb", __FILE__) - } - - app.files_dependencies depends -end +Motion::Require.all(Dir.glob(File.expand_path('../walt/**/*.rb', __FILE__))) \ No newline at end of file