summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add a release file list checkno_git_on_gemspecDavid Rodríguez2019-03-051-1/+25
|
* Remove git subshelling from gemspecDavid Rodríguez2019-03-052-2/+13
|
* Merge #7016Bundlerbot2019-03-0529-117/+35
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * Disable `Style/GuardClause` copfix_offenses_for_more_copsDavid Rodríguez2019-03-043-20/+3
| | | | | | | | | | Sometimes rubocop misunderstand semantics, and forces you to write code that feels worse. I prefer to disable it.
| * Move `rescue Exception` exceptions inlineDavid Rodríguez2019-03-046-14/+5
| |
| * Auto-correct `Style/MutableConstant` rubocop offensesDavid Rodríguez2019-03-047-23/+10
| |
| * Auto-correct `Style/RescueStandardError` offensesDavid Rodríguez2019-03-049-28/+13
| |
| * Auto-correct `Style/Encoding` rubocop issuesDavid Rodríguez2019-03-048-19/+0
| |
| * Auto-correct `Style/StderrPuts` rubocop offensesDavid Rodríguez2019-03-045-13/+4
| |
* | Merge #7012Bundlerbot2019-03-041-1/+1
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * Update spec/support/helpers.rbDavid Rodríguez2019-03-041-1/+1
| | | | | | Co-Authored-By: janpio <piotrowski+github@gmail.com>
| * adapt path regex to also work with Windows pathsJan Piotrowski2019-03-031-1/+1
| |
* | Merge #7011Bundlerbot2019-03-043-8/+8
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | make rubocop happyJan Piotrowski2019-03-032-2/+2
| | |
| * | fix other sys_exec calls that prepended an env variableJan Piotrowski2019-03-032-2/+2
| | |
| * | set ENV via Open3.popen3 param in sys_exec instead of via command being executedJan Piotrowski2019-03-031-6/+6
| |/
* | Merge #7013Bundlerbot2019-03-043-2/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | move azure-pipeline folder to a hidden foldercolby/azure-pipeline-hiddenColby Swandale2019-03-043-2/+2
| | |
* | | Merge #7015Bundlerbot2019-03-041-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | expand comparison path for Windows compatJan Piotrowski2019-03-031-1/+1
| | |/ | |/| | | | | | | which adds a `C:` to the path
* | | Merge #7014Bundlerbot2019-03-0411-75/+27
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | Auto-correct `Style/TrailingCommaInHashLiteral` offensesglobally_enable_some_layout_copsDavid Rodríguez2019-03-045-17/+6
| | | |
| * | | Auto-correct `Style/TrailingCommaInArrayLiteral` offensesDavid Rodríguez2019-03-044-13/+3
| | | |
| * | | Fully enable some dependent Layout copsDavid Rodríguez2019-03-044-45/+18
|/ / / | | | | | | | | | | | | | | | 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.
* | | Merge #7010Bundlerbot2019-03-032-5/+5
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | Use double quotes for `git commit -m`windows_friendly_gitDavid Rodríguez2019-03-032-5/+5
| |/ | | | | | | | | Apparently single quotes don't work on Windows, and this also makes our code more consistent.
* | Merge #6978Bundlerbot2019-03-032-2/+14
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * add check for already installed pluginAnkit Kataria2019-02-212-2/+14
| |
* | Merge #7004Bundlerbot2019-03-024-74/+358
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | Bump rubocop to 0.65.0David Rodríguez2019-03-014-74/+358
|/ / | | | | | | Fix config and regenerate TODO config.
* | Merge #6991Bundlerbot2019-02-284-45/+69
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | Split (and skip) specs about multiple source deprecationfix_deprecation_specsDavid Rodríguez2019-02-281-8/+19
| | | | | | | | | | | | I'll get to this on a separate PR.
| * | Prefer the `err` helper for checking errorsDavid Rodríguez2019-02-281-15/+15
| | | | | | | | | | | | The helper already considers the stream errors are printed to.
| * | Remove now unnecessary filteringDavid Rodríguez2019-02-281-5/+4
| | | | | | | | | | | | Those deprecation messages are no longer printed.
| * | Make sure deprecation specs run on bundler 2David Rodríguez2019-02-281-3/+3
| | | | | | | | | | | | And skip the rest of the broken ones.
| * | Fix major deprecation matcherDavid Rodríguez2019-02-282-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | Adapt `bundle show` deprecation specsDavid Rodríguez2019-02-281-1/+5
| | |
| * | Delay `bundle console` removal to bundler 3David Rodríguez2019-02-282-2/+6
| | |
| * | Remove unnecessary gems.rb file creationDavid Rodríguez2019-02-281-1/+0
| | | | | | | | | | | | | | | Not necessary for the test since the main before block already creates one.
| * | Delay requiring --all to update everything to bundler 3David Rodríguez2019-02-282-2/+7
| | | | | | | | | | | | Since we haven't even yet deprecated the old behavior.
| * | Move some test setups to before blocksDavid Rodríguez2019-02-282-5/+10
| | |
| * | Remove unnecessary gsubDavid Rodríguez2019-02-281-2/+0
|/ /
* | Merge #6997Bundlerbot2019-02-281-13/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | Use rubygems 3.0.2 for testing compatibility modesmaller_ci_matrixDavid Rodríguez2019-02-271-1/+1
| | |
| * | Test only the rubygems version each MRI version shipped withDavid Rodríguez2019-02-271-12/+3
|/ /
* | Merge #6982Bundlerbot2019-02-2631-186/+64
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | Remove rubygems compatibility guardremove_unnecessary_rubygems_filtersDavid Rodríguez2019-02-252-13/+0
| | | | | | | | | | | | Bundler 2 can't be installed on these rubygems, so it's not necessary.
| * | Remove more unnecessary rubygems version checksDavid Rodríguez2019-02-255-56/+27
| | |
| * | Remove unnecessary old rubygems deprecationDavid Rodríguez2019-02-252-29/+4
| | |
| * | Remove unnecessary rubygems filters from specsDavid Rodríguez2019-02-2522-88/+33
|/ /