summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add spec for using relative requiresrequire_relativeDavid Rodríguez2019-04-222-1/+17
|
* Add missing requireDavid Rodríguez2019-04-221-0/+2
| | | | So that the spec can be run in isolation.
* One moreDavid Rodríguez2019-04-191-1/+1
|
* Remove dummy commentDavid Rodríguez2019-04-191-2/+0
|
* Load executable relatively in the first placeDavid Rodríguez2019-04-191-12/+4
|
* Prefer `require_relative` for internal requiresDavid Rodríguez2019-04-1949-114/+114
| | | | | | | | Due to the way rubygems monkey-patched require interacts with default gems, and given that bundler is a default gem, and that bundler manipulates the LOAD_PATH in very intricated ways, we can reduce the risk of "leaking" to a different copy of `bundler` by using `require_relative` for internal requires.
* Remove unnecessary requireDavid Rodríguez2019-04-191-1/+0
|
* Merge #7120Bundlerbot2019-04-141-6/+27
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7120: Fix spec calling incorrect helper r=deivid-rodriguez a=deivid-rodriguez Thanks so much for the contribution! To make reviewing this PR a bit easier, please fill out answers to the following questions. ### What was the end-user problem that led to this PR? The problem was the subprocess spawed by one spec was crashing, but that was not making the spec fail. ### What was your diagnosis of the problem? My diagnosis was that since the spec was checking for a failure status of the subprocess, that was not specific enough to detect the particular bug in this spec (it was calling `clean_system`, removed from bundler 3, instead of `unbundled_system`). ### What is your fix for the problem, implemented in this PR? My fix is to restore the previous strategy for these specs, namely, check for a more specific status than 0 or 1. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * Fix spec calling incorrect helperfix_helpers_specsDavid Rodríguez2019-04-121-6/+27
| | | | | | | | | | | | | | | | | | | | The spec was crashing on bundler 3, but since the spec was checking for a failure status for the subprocess, it was actually passing. So, as part of this change, I make helper specs more resilient again. These specs were previously checking for a more specific status than 0 or 1, but I removed that at some point. Now I see how it was useful, so I'm restoring it.
* | Merge #7043Bundlerbot2019-04-142-349/+117
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7043: Remove old rubygems compatibility code r=bronzdoc a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that I was unsure where I needed to add the compatibility layer to #6963, and it took me a bit to scan through the compatibility file and figure it out. ### What was your diagnosis of the problem? My diagnosis was that all this compatibility code is unused but makes this file harder to understand and scan through. ### What is your fix for the problem, implemented in this PR? My fix is to remove the code. ### Why did you choose this fix out of the possible options? I chose this fix because we can do it, I think. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * | Remove more unnecessary coderemove_old_rubygems_compatibility_codeDavid Rodríguez2019-04-091-2/+0
| | | | | | | | | | | | The `full_gem_path` writer has been there since rubygems 2.2
| * | Remove unnecessary codeDavid Rodríguez2019-04-091-10/+4
| | | | | | | | | | | | The `source` method has been there since rubygems 2.1.
| * | Remove unused variableDavid Rodríguez2019-04-091-2/+0
| | |
| * | Remove more unnecessary logicDavid Rodríguez2019-04-091-8/+3
| | |
| * | Remove last level of inheritanceDavid Rodríguez2019-04-091-127/+120
| | |
| * | Remove one level of inheritanceDavid Rodríguez2019-04-091-5/+2
| | |
| * | Remove more uneeded stuffDavid Rodríguez2019-04-091-62/+0
| | |
| * | Remove old rubygems compatibility codeDavid Rodríguez2019-04-091-146/+1
| | |
* | | Merge #7128Bundlerbot2019-04-1413-14/+15
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7128: Backport to workaround from ruby core. r=deivid-rodriguez a=hsbt ### What was the end-user problem that led to this PR? The current master branch couldn't invoke with the ruby core repository. ### What was your diagnosis of the problem? 1. We need to add explicitly declare `rspec` in spec_helper.rb 2. Some examples were failed on ruby core repository. ### What is your fix for the problem, implemented in this PR? 1. simply added. 2. update the `ruby_repo` labels for skipping to run. Co-authored-by: SHIBATA Hiroshi <hsbt@ruby-lang.org>
| * | | Update ruby_repo filter with the latest ruby-core implementaion.SHIBATA Hiroshi2019-04-1412-14/+14
| | | |
| * | | Added explicitly loading rspec. Because ruby core didn't use rspec cli directly.SHIBATA Hiroshi2019-04-141-0/+1
| | | |
* | | | Merge #6730Bundlerbot2019-04-1445-202/+174
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6730: Print errors to stderr by default, and remove configuration option r=greysteil a=greysteil ### What was the end-user problem that led to this PR? The problem was #6729 - Bundler unexpectedly outputs error and warning messages to STDOUT. ### What was your diagnosis of the problem? My diagnosis was that whilst very minorly breaking, this is essentially a bug fix, and should be considered for inclusion for Bundler 2.0 even if very few other breaking changes are. ### What is your fix for the problem, implemented in this PR? My fix was so switch output for warning and error messages to STDERR, and remove the configuration option (as is redundant once the setup is flipped - anyone wanting to redirect those message to STDOUT could do so in their shell). ### Why did you choose this fix out of the possible options? I chose this fix because I think the new behaviour is what everyone would expect, and we should get it out from behind its feature switch sooner rather than later. Alternatively, we might want to keep the Bundler 2.0 release "purer" by only dropping Ruby versions in it - that's totally fine too, but I figured we should have the code to discus #6729, rather than doing it in abstract. Co-authored-by: Grey Baker <greysteil@gmail.com> Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * | | s/last_command.stdout/out/greysteil/print-errors-to-stderrDavid Rodríguez2019-04-1215-44/+44
| | | |
| * | | s/last_command.stderr/err/David Rodríguez2019-04-1223-84/+84
| | | |
| * | | Unify stderr helpersDavid Rodríguez2019-04-1220-42/+38
| | | |
| * | | Print errors to stderr by default, and remove configuration optionGrey Baker2019-04-128-35/+11
| | |/ | |/|
* | | Merge #7075Bundlerbot2019-04-136-29/+65
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7075: Convert binstub conflict deprecation to a warning r=indirect a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that this specific deprecation I don't think it makes sense as a deprecation. ### What was your diagnosis of the problem? My diagnosis was that nothing is changing in bundler so that this needs to be a deprecation. This is just a potentially undesired situation that can be caused by gems shipping executables conflicting with the executables of other gems, and that can be fixed by using project specific binstubs. ### What is your fix for the problem, implemented in this PR? My fix is to change this deprecation message to a warning, and to get it tested. ### Why did you choose this fix out of the possible options? I chose this fix because it makes sense to me. With this, we can start printing this warning now without thinking of a deprecation path because I don't think we're changing anything here, really. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * | Fix bin conflict spec to not use deprecated featurewarn_to_deprecationDavid Rodríguez2019-04-121-2/+2
| | |
| * | Another tryDavid Rodríguez2019-04-122-4/+4
| | |
| * | Remove unnecessary requireDavid Rodríguez2019-04-121-1/+1
| | |
| * | Improve wordingDavid Rodríguez2019-04-122-3/+3
| | |
| * | Run related specs for all versionsDavid Rodríguez2019-04-121-2/+2
| | |
| * | Add warning about conflicting executablesDavid Rodríguez2019-04-122-10/+25
| | |
| * | Convert binstub conflict deprecation to a warningDavid Rodríguez2019-04-122-1/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And test it. I don't think it makes sense as a deprecation, since nothing is changing, and there's no alternative. This is a potentially undesired situation caused by gems shipping executables conflicting with the executables of other gems. `bundle exec` is fine in general, this is just a potentially undesired situation that can be fixed by using project specific binstubs.
| * | Assume `exec_name` needs to be givenDavid Rodríguez2019-04-121-7/+3
| | |
| * | Remove debugging shellsDavid Rodríguez2019-04-121-4/+0
|/ /
* | Merge #7113Bundlerbot2019-04-123-52/+47
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7113: Make `init_gems_rb` a regular setting r=indirect a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that we have a feature flag to change the file name of the file where gems are defined from `Gemfile` to `gems.rb`, and it is unclear whether we will actually do this, and when. ### What was your diagnosis of the problem? My diagnosis was that a feature flag is not a good fit here. It's perfectly fine to configure this and allow users to use `gems.rb` by default for their gems, but we don't know when/if we will actually change the default so a plain setting feels better than a feature flag. ### What is your fix for the problem, implemented in this PR? My fix is to convert the `init_gems_rb` feature flag into a plain setting. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * | Make `init_gems_rb` a regular settingmake_init_gems_rb_a_settingDavid Rodríguez2019-04-113-52/+47
| | | | | | | | | | | | | | | | | | | | | I think it's nice that users can configure this and start using `gems.rb`. But there's no need to make this a feature flag and change its default value. Let's keep generating Gemfile's by default until we are ready, if we ever are.
* | | Merge #7112Bundlerbot2019-04-127-70/+7
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7112: Remove `prefer_gems_rb` setting r=indirect a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that we currently have a feature flag and setting, `prefer_gems_rb`, that currently does very very little, and it's not worth the maintenance cost in my opinion. ### What was your diagnosis of the problem? My diagnosis was that the only situation where this setting makes a difference at the moment is when a project has both a `Gemfile` _and_ a `gems.rb` file. In that case, if `prefer_gems_rb` is enabled, the warning will tell the user to remove the `Gemfile` because it's being ignored, whereas if not enabled, it will tell the user to remove the `gems.rb` file because it's being ignored. I think this setting might've made sense when we actually planned to really deprecate Gemfile's in the short term. Since I think we're not planning to deprecate Gemfile's at the moment, I think it's better to remove the setting. ### What is your fix for the problem, implemented in this PR? My fix is to remove the setting and keep supporting both names. In the weird case of both types being found in the same project, always prefer `gems.rb` and tell the user to remove the `Gemfile`. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * | Remove `prefer_gems_rb` settinginit_gems_rbDavid Rodríguez2019-04-117-70/+7
|/ / | | | | | | | | | | | | | | | | | | | | | | In my opinion, it's overkill to provide a setting for how little this setting was doing. Both types of Gemfile are supported and work regardless of this setting. The only difference this setting would make is the warning message one would get when having _both_ types of Gemfiles in the same project. I changed things so that gems.rb is always looked up first, and the warning message in case you have both always tells you to remove Gemfile and Gemfile.lock.
* | Merge #6957Bundlerbot2019-04-1155-445/+345
|\ \ | | | | | | | | | | | | | | | | | | | | | 6957: Move on to bundler 3 r=indirect a=colby-swandale This PR contains the merge of `2-0-stable` to `master` Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * | Move on to bundler 3David Rodríguez2019-04-1152-434/+287
| | | | | | | | | | | | | | | | | | * Drop bundler 1 stuff from tests. * Move all feature flags to bundler 3 (like they are in 2-0-stable) and get them tested.
| * | Fix deprecation warningDavid Rodríguez2019-04-111-1/+1
| | |
| * | Cherry-pick github source removal from Gemfile templateDavid Rodríguez2019-04-111-2/+0
| | |
| * | Merge changelog from 2-0-stableDavid Rodríguez2019-04-111-0/+45
| | |
| * | Fix some specs to not rely on remembering flagsDavid Rodríguez2019-04-112-4/+5
| | |
| * | Change deploy specs to properly configure deploymentDavid Rodríguez2019-04-111-6/+9
|/ /
* | Merge #7057Bundlerbot2019-04-1117-76/+183
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7057: Review multiple sources deprecation r=indirect a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that I had not yet reviewed the deprecation about multiple global sources being present on a Gemfile, and thus the specs were skipped. ### What was your diagnosis of the problem? My diagnosis was that we need to delay the removal of multiple sources support to bundler 3, so that we can show the deprecations in the 2.x series. I also noticed that part of the deprecation message was inaccurate. In order to upgrade the warning to an error, you would also need to configure the `lockfile_uses_separate_rubygems_sources` setting. Otherwise you will get an error that these two settings depend on each other and can't be enabled separatedly. ### What is your fix for the problem, implemented in this PR? My fix is to delay these feature flags to bundler 3 so that the deprecation specs pass. Also, since before giving this advice I'd like to study why we have two different settings that can't be enabled separately, and why the can't be merged to a single one, I have removed that part of the message for now. ### Why did you choose this fix out of the possible options? I chose this fix because it keeps me moving with reviewing all the deprecations for bundler 3 breaking changes, and makes sure that the deprecations for this change of behavior are tested (and passing). Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * Refactor list specs to not change gemfile sourcesmultiple_sources_deprecationDavid Rodríguez2019-04-082-15/+87
| | | | | | | | | | | | | | | | | | | | Previously, all specs would bundle a Gemfile from the "repo1" source by default. Then, some list specs would end up using a "repo2" source. The behavior when changing repo sources is changing with the `disable_multisource` setting, but it is unrelated to the list command. So, I refactored the list command specs to not change sources, and extracted the behavior change about changing sources to a separate spec.
| * Check the full warning textDavid Rodríguez2019-04-081-1/+8
| |