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

bundle config --local gemfile /foo/bar/MyGemfile now works #3320

Merged
merged 1 commit into from Jan 12, 2015

Conversation

dholdren
Copy link
Contributor

  • bundle config can be used to set a custom gemfile name for a
    project (specifying an absolute path)
  • using other bundle commands will now search up parent directories
    for a .bundle dir and use the gemfile specified in .bundle/config if
    it is set
  • does not require a file named 'Gemfile' to exist
  • Revert "Correct bundle-config manpage"
    This reverts commit 0a81457.
  • An added bonus: you can now both set and delete a global bundler
    setting from anywhere: bundle config --delete foo

Manual Test:

In an empty directory /foo/bar/:
echo "source 'https://rubygems.org'" > MyGemfile
echo "gem 'rake'" >> MyGemfile
bundle config --local gemfile /foo/bar/FooGemfile
bundle install
bundle show # Should show the rake gem
mkdir spec && cd spec && bundle show # Should also show the rake gem

- `bundle config` can be used to set a custom gemfile name for a
  project (specifying an absolute path)
- using other bundle commands will now search up parent directories
  for a .bundle dir and use the gemfile specified in .bundle/config if
  it is set
- does not require a file named 'Gemfile' to exist
- Revert "Correct bundle-config manpage"
  This reverts commit 0a81457.
- An added bonus: you can now both set and *delete* a global bundler
  setting from *anywhere*: `bundle config --delete foo`
@indirect
Copy link
Member

Yeah, this seems like a legitimate backwards-compatible change. Thanks!

indirect added a commit that referenced this pull request Jan 12, 2015
`bundle config --local gemfile /foo/bar/MyGemfile` now works
@indirect indirect merged commit a2343c9 into rubygems:master Jan 12, 2015
@dholdren
Copy link
Contributor Author

@indirect awesome. thanks for merging.
FYI, I forgot to modify the changelog, in case you want to add this to the list of new features

@indirect
Copy link
Member

The changelog will get written at release time, so no worries.

On Mon, Jan 12, 2015 at 10:16 AM, Dean Holdren notifications@github.com
wrote:

@indrect awesome. thanks for merging.

FYI, I forgot to modify the changelog, in case you want to add this to the list of new features

Reply to this email directly or view it on GitHub:
#3320 (comment)

@ineiti
Copy link

ineiti commented May 14, 2015

This is really great - is it possible to add the usage of the new Gemfile also in require 'bundler/setup' ? Or am I missing something?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants