| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
7016: Fix offenses for more cops r=hsbt a=deivid-rodriguez
### What was the end-user problem that led to this PR?
The problem was that a few cops with exceptions in the TODO file have been bothering me recently when moving files around.
### What was your diagnosis of the problem?
My diagnosis was that we can just fix these offenses once and for all, or alternatively disable them inline, or moving them to the permanent config.
### What is your fix for the problem, implemented in this PR?
My fix is to:
* Auto-correct a few simple cops.
* Permanently disable `Style/GuardClause`, because I don't think it always leads to better code, and sometimes it forces artificial refactorings when making changes to methods, making the intention of the changes more obscure.
* Move `rescue Exception` disabling inline, so that when moving that code around, rubocop doesn't complain.
### Why did you choose this fix out of the possible options?
I chose this fix because this is my opinionated approach to this. :)
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
|
| |
| |
| |
| |
| | |
Sometimes rubocop misunderstand semantics, and forces you to write code
that feels worse. I prefer to disable it.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
|\ \
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
7012: Adapt helper path regex to also work with Windows paths r=deivid-rodriguez a=janpio
### What was the end-user problem that led to this PR?
Some tests were failing on Windows with strange paths not existing.
### What was your diagnosis of the problem?
Turns out a regex in the helper for paths didn't fire on Windows paths as they start with something like `C:/`.
### What is your fix for the problem, implemented in this PR?
So I adapted the regex to also match Windows paths.
### Why did you choose this fix out of the possible options?
... which seemed like the right thing to do here.
---
Fixes 21 test failures on Windows.
closes #6892
Co-authored-by: Jan Piotrowski <piotrowski+git@gmail.com>
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
|
| |
| |
| | |
Co-Authored-By: janpio <piotrowski+github@gmail.com>
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
7011: Do not prepend ENV vars for sys_exec calls, but use env param of Open3.popen3 r=deivid-rodriguez a=janpio
### What was the end-user problem that led to this PR?
Several tests were failing on Windows because of the same problem:
### What was your diagnosis of the problem?
On macOS and Linux you can prepend `ENV_VAR=value` in front of a command to set an environment variable for just this command execution.
On Windows this construct doesn't exit and such a command fails.
### What is your fix for the problem, implemented in this PR?
`Open3.popen3`, the method used to executed the command in `sys_exec`, also has an optional `env` parameter which you can use to supply a hash of environment variables. Instead of prepending on the command itself, the code now uses that parameter for the env variables. (Suggested by @deivid-rodriguez in https://github.com/bundler/bundler/issues/6886#issuecomment-452010623).
### Why did you choose this fix out of the possible options?
The parameter of `Open3.popen3` perfectly matches our use case.
---
Fixes 35 failing tests on Windows.
closes #6886
Co-authored-by: Jan Piotrowski <piotrowski+git@gmail.com>
|
| | | |
|
| | | |
|
| |/ |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
7013: Move azure-pipeline folder to a hidden folder r=deivid-rodriguez a=colby-swandale
### What was the end-user problem that led to this PR?
We have a folder whose purpose is to contain support files for the Azure CI called `azure-pipelines`. The issue is that this folder does not relate to the Bundler development environment and is showing up in `ls` when it doesn't really need to be.
### What is your fix for the problem, implemented in this PR?
Move `azure-pipelines` to a hidden folder with the same name
Co-authored-by: Colby Swandale <me@colby.fyi>
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
7015: Expand comparison path for Windows compat r=deivid-rodriguez a=janpio
### What was the end-user problem that led to this PR?
A specific test (#6890) was failing...
### What was your diagnosis of the problem?
... because the comparison was missing the drive letter on Windows.
### What is your fix for the problem, implemented in this PR?
I added expansion of the path that was already present in the implementation but not the test.
### Why did you choose this fix out of the possible options?
Makes the test pass and looks right.
---
closes #6890
fixes 1 failing test on Windows
Co-authored-by: Jan Piotrowski <piotrowski+git@gmail.com>
|
| | |/
| |/|
| | |
| | | |
which adds a `C:` to the path
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
7014: Fix all offenses of some easy cops r=deivid-rodriguez a=deivid-rodriguez
References https://github.com/bundler/bundler/pull/7009/files#r261892716.
### What was the end-user problem that led to this PR?
The problem was just some leftover consistency offenses.
### What was your diagnosis of the problem?
My diagnosis was that we can easily fix these globally.
### What is your fix for the problem, implemented in this PR?
My fix is to enable the three cops and run `rubocop --auto-correct`.
### Why did you choose this fix out of the possible options?
I chose this fix because these cops depend on each other, so enabling just one of them leaves weird indented code behind.
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
|
| | | | |
|
| | | | |
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
These cops leave weird styling if enabled separately, but do what you
want if enabled all together. So fix all remaining style issues for them
at once.
|
|\ \ \
| |_|/
|/| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
7010: Use double quotes for `git commit -m` r=colby-swandale a=deivid-rodriguez
### What was the end-user problem that led to this PR?
The problem was that Azure logs are full of "error: pathspec 'COMMIT'' did not match any file(s) known to git." and other similar ones.
### What was your diagnosis of the problem?
My diagnosis was that Windows' git doesn't like single quotes.
### What is your fix for the problem, implemented in this PR?
My fix is to use double quotes, which is also consistent with our global style.
### Why did you choose this fix out of the possible options?
I chose this fix because it brings the number of spec failures on Windows from 657 to 474! :tada:
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
|
| |/
| |
| |
| |
| | |
Apparently single quotes don't work on Windows, and this also makes our
code more consistent.
|
|\ \
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
6978: Add check for already installed plugin r=deivid-rodriguez a=ankitkataria
### What was the end-user problem that led to this PR?
Fixes #6946
### What was your diagnosis of the problem?
There was no check to ensure that the plugin was already installed or not.
### What is your fix for the problem, implemented in this PR?
I added the check [here](https://github.com/bundler/bundler/compare/master...ankitkataria:plugin-fix?expand=1#diff-68bd939cd3589d8fdda08a12433659ebR109)
I also added a small test for the same
Co-authored-by: Ankit Kataria <ankitkataria28@gmail.com>
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
7004: Bump rubocop to 0.65.0 r=deivid-rodriguez a=deivid-rodriguez
### What was the end-user problem that led to this PR?
The problem was that running rubocop (to fix style issues in other PRs) prints several warnings in the parser gem.
### What was your diagnosis of the problem?
My diagnosis was that we should upgrade rubocop.
### What is your fix for the problem, implemented in this PR?
My fix is to upgrade rubocop, fix the config to be compatible with the new version, and regenerate the TODO config.
### Why did you choose this fix out of the possible options?
I chose this fix because it does the job. There's still some stuff I don't like about the current "rubocop maintainance" that I've proposed in #7003. But for the current situation I think this works.
Closes #6608.
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
|
|/ /
| |
| |
| | |
Fix config and regenerate TODO config.
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
6991: Fix deprecation specs r=deivid-rodriguez a=deivid-rodriguez
### What was the end-user problem that led to this PR?
The problem was the current deprecation specs are broken. Not the deprecations themselves, their specs.
### What was your diagnosis of the problem?
My diagnosis was we need to fix the specs for the deprecations before actually making sure that the deprecations themselves are properly enabled.
### What is your fix for the problem, implemented in this PR?
My fix is to:
* Get the target version corrected. Deprecation specs should run on bundler 2, not on bundler 1, since deprecations are disabled on bundler 1.
* Get the deprecation matcher fixed. The previous version was passing every time any deprecation was printed and a positive expectation was set. That means that on a spec printing a single deprecation, the assertion `expect(warnings).to have_major_deprecation("bananas will be deprecated in favor of potatoes")`, or any other message, would just pass. This explains why the deprecation specs were currently passing on bundler 1 and it's fixed by https://github.com/bundler/bundler/commit/33383f2faae10cd307b86466921b1a17391bae80.
### Why did you choose this fix out of the possible options?
This fix changes the target for the deprecation specs to bundler 2 (https://github.com/bundler/bundler/commit/e54ddb60298036e3a25c95deda6d575d384ff48a) and uses the following strategy to get CI green after that:
* If the deprecation is already correct on bundler 2, do nothing, the specs already pass.
* If the deprecation is incorrect on bundler 2, but the fix is a no-brainer, fix it here. For example, the `bundle update --all` deprecation (968fe965c), or the `bundle console` deprecation (5bece2f0f).
* If the deprecation is incorrect on bundler 2, but fixing it requires a separate discussion, skip the spec for now, and stage the fix for a separate PR.
I chose this fix because it keeps this PR simple and focused, while unblocking fixing the rest of the deprecations by at least having correct (although disabled) specs for them.
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
|
| | |
| | |
| | |
| | | |
I'll get to this on a separate PR.
|
| | |
| | |
| | |
| | | |
The helper already considers the stream errors are printed to.
|
| | |
| | |
| | |
| | | |
Those deprecation messages are no longer printed.
|
| | |
| | |
| | |
| | | |
And skip the rest of the broken ones.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The previous logic was broken. Previously, changing the expectation
about gems.rb vs Gemfile deprecation to
```ruby
expect(warnings).to have_major_deprecation("gems.rb is preferred to chocolate ice-cream")
```
would still pass.
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Not necessary for the test since the main before block already creates
one.
|
| | |
| | |
| | |
| | | |
Since we haven't even yet deprecated the old behavior.
|
| | | |
|
|/ / |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
6997: Smaller ci matrix r=colby-swandale a=deivid-rodriguez
Fixes #6956.
### What was the end-user problem that led to this PR?
The problem was that we have a very slow CI
### What was your diagnosis of the problem?
My diagnosis was that the CI matrix is very big, and that old rubies use more resources than new rubies.
### What is your fix for the problem, implemented in this PR?
My fix is to remove some entries and when it comes to testing old rubygems version, test only the rubygems version each tested MRI version shipped with.
### Why did you choose this fix out of the possible options?
I chose this fix because it saves us some time, and it gives all rubies the same amount of CI resources.
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
|
| | | |
|
|/ / |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
6982: Remove unnecessary rubygems filters r=hsbt a=deivid-rodriguez
### What was the end-user problem that led to this PR?
The problem was there's a lot of unnecessary code, specially in specs, that's never run.
### What was your diagnosis of the problem?
My diagnosis was that since dropping support for old rubygems versions, this code is no longer necessary.
### 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 red is great on diffs.
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
|
| | |
| | |
| | |
| | | |
Bundler 2 can't be installed on these rubygems, so it's not necessary.
|
| | | |
|
| | | |
|
|/ / |
|