Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Allow user to override ~/.bundle with environment variables #6024

Merged
merged 6 commits into from Sep 18, 2017

Commits on Sep 11, 2017

  1. Allow the user to set alternative to ~/.bundle

    Recognize new environment variables, with the following fallbacks:
    
        $BUNDLE_USER_HOME   -> $HOME/.bundle
        $BUNDLE_USER_CACHE  -> $BUNDLE_USER_HOME/cache
        $BUNDLE_USER_CONFIG -> $BUNDLE_USER_HOME/config
        $BUNDLE_USER_PLUGIN -> $BUNDLE_USER_HOME/plugin
    
    TODOs:
    - Error handling in Bundler.user_bundle_path when an invalid option is
    passed
    - Add tests (see rubygems@47fbe99)
    - Draft PR with reference to GitHub issue numbers (not linked here as
    per contributing guidelines)
        + Issue: 4333
        + Pull request: 5787
    Greg Werbin committed Sep 11, 2017
    Configuration menu
    Copy the full SHA
    b241c53 View commit details
    Browse the repository at this point in the history
  2. Use tests from the old commit

    Mostly unmodified tests from PR 5787 (not linked here to respect
    contribution guidelines).
    Greg Werbin committed Sep 11, 2017
    Configuration menu
    Copy the full SHA
    d378a81 View commit details
    Browse the repository at this point in the history
  3. Remove unnecessary method

    Greg Werbin committed Sep 11, 2017
    Configuration menu
    Copy the full SHA
    71f13f9 View commit details
    Browse the repository at this point in the history
  4. Make tests green

    Greg Werbin committed Sep 11, 2017
    Configuration menu
    Copy the full SHA
    bea2797 View commit details
    Browse the repository at this point in the history
  5. Conform to code style

    Greg Werbin committed Sep 11, 2017
    Configuration menu
    Copy the full SHA
    abb8f97 View commit details
    Browse the repository at this point in the history
  6. Conform to code style

    Greg Werbin committed Sep 11, 2017
    Configuration menu
    Copy the full SHA
    b3108fa View commit details
    Browse the repository at this point in the history