Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make rake easier to use as a library #211

Merged
merged 5 commits into from Sep 19, 2017
Merged

Commits on Jun 29, 2017

  1. Set default rake options explicitly

    Currently it is impossible to start rake from within a library.  By
    setting the default options explicitly we won't have to call
    handle_options after replacing ARGV.
    drbrain committed Jun 29, 2017
    Copy the full SHA
    a0e822b View commit details
    Browse the repository at this point in the history
  2. Allow implicit ARGV for Rake::Application#run

    This allows users to pass in an explicit ARGV for rake instead of
    changing their application's ARGV.
    
    While the previous commit allows users to create a Rake application
    explicitly by calling parts of Rake::Application#init directly, some
    users will not want to dig through the source to set up a Rake
    application.
    
    Swapping ARGV is confusing and error-prone, so this allows them to
    specify a set of Rake options directly.
    drbrain committed Jun 29, 2017
    Copy the full SHA
    84e1fe2 View commit details
    Browse the repository at this point in the history
  3. Remove test ARGV manipulation

    These are no longer necessary
    drbrain committed Jun 29, 2017
    Copy the full SHA
    ee7e30b View commit details
    Browse the repository at this point in the history
  4. Add Rake::with_application

    This allows users to use Rake as a library more easily.  This allows
    loading multiple rakefiles from separate sources into separate Rake
    applications without task name collisions.
    drbrain committed Jun 29, 2017
    Copy the full SHA
    ae4f786 View commit details
    Browse the repository at this point in the history
  5. Always set_default_options

    This allows Rake.with_application to work without users having to know
    to set the default options manually.
    drbrain committed Jun 29, 2017
    Copy the full SHA
    4f9c156 View commit details
    Browse the repository at this point in the history