0.0
No commit activity in last 3 years
No release in over 3 years
DRY your RubyMotion project
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 2.0
 Project Readme

motion-dryer

List of helpers/utilities help you to keep your RubyMotion project DRY.

Installation

gem install motion-dryer

Usage

Add following to the Rakefile

require 'motion-dryer'

Automatic Controller Dependency

Getting tired of setting up file_dependnecies on your projects? Just keep your project with following structure:

app/
  - controllers/
    - sample_controller.rb
  - views/
    - common/
      - shared_view.rb
    - sample/
      - sample_view.rb
      - sample_table_view.rb
  - helpers/
    - application_helper.rb
    - sample_helper.rb

Add following to your project Rakefile:

Motion::Project::App.setup do |app|
  app.name = 'my_app'
  app.controllers = ['sample']
end

Sample controller will automatically depends on corresponding helpers and views.

What next?

Thats all for now. if you have more idea, please contact me or send a pull request!