Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Automatic dependencies for ruby motion
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.document
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
motion-dependencies.gemspec

README.md

Ruby Motion Dependencies

Stop updating that ruby motion dependency hash.

Instead have dependencies built from your files

Say goodbye to

app.files_dependencies { 
  'app/foo_controller.rb' => 'app/app_controller.rb',
  'app/baz_controller.rb' => 'app/app_controller.rb' 
}

Say hello to

# depends app_controller.rb
class FooController < AppController

end

Installation

$ gem install motion-dependencies

Add this line to your application's Rakefile:

require 'motion-dependencies'
Motion::Project::App.setup do |app|
  app.files = Dir.glob('./app/lib/**/*.rb') | Dir.glob('./app/**/*.rb') 
  app.files_dependencies Motion::Dependencies.find_dependencies(app.files)
end

Usage

# depends your-mixin.rb
class FooViewController < UIViewController
  include YourMixin
end

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Something went wrong with that request. Please try again.