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

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

Merged
merged 1 commit into from Jan 12, 2015

Conversation

Projects
None yet
4 participants
@dholdren
Contributor

dholdren commented Dec 23, 2014

  • 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 --local gemfile /foo/bar/MyGemfile` now works
- `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

This comment has been minimized.

Show comment
Hide comment
@indirect

indirect Jan 12, 2015

Member

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

Member

indirect commented Jan 12, 2015

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

indirect added a commit that referenced this pull request Jan 12, 2015

Merge pull request #3320 from dholdren/master
`bundle config --local gemfile /foo/bar/MyGemfile` now works

@indirect indirect merged commit a2343c9 into bundler:master Jan 12, 2015

1 check passed

continuous-integration/travis-ci The Travis CI build passed
Details
@dholdren

This comment has been minimized.

Show comment
Hide comment
@dholdren

dholdren Jan 12, 2015

Contributor

@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

Contributor

dholdren commented Jan 12, 2015

@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

This comment has been minimized.

Show comment
Hide comment
@indirect

indirect Jan 12, 2015

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)

Member

indirect commented Jan 12, 2015

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

This comment has been minimized.

Show comment
Hide comment
@ineiti

ineiti 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?

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?

@ineiti ineiti referenced this pull request May 14, 2015

Closed

Remember alternative Gemfile #86

@lynncyrin lynncyrin modified the milestone: Release Archive Oct 9, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment