summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Bump thor to 0.20.3tweaking_vendoringDavid Rodríguez2019-03-2510-25/+175
|
* Bump fileutils to 1.1.0David Rodríguez2019-03-251-26/+123
|
* Describe automatiek tasksDavid Rodríguez2019-03-251-0/+11
|
* Improve automatiek activationDavid Rodríguez2019-03-251-8/+16
| | | | | Make it consistent with how we do it for `ronn`, and give better messages for installing `automatiek` if missing.
* Little refactorDavid Rodríguez2019-03-251-4/+4
|
* Merge pull request #7061 from bundler/fix_circular_requiresDavid Rodríguez2019-03-233-3/+0
|\ | | | | Fix circular require warnings
| * Fix circular require warningsDavid Rodríguez2019-03-233-3/+0
|/
* Merge #7055Bundlerbot2019-03-211-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7055: Revert the RSpec format in CI back to dots r=colby-swandale a=colby-swandale ### What was the end-user problem that led to this PR? #7017 introduced made a change that sets the RSpec format to `documentation` in CI. I'm against this change because it now takes _a lot_ more time to scroll to the build errors, and makes the build log have too much information. Maintainers care much more about the failing specs and their errors than the test descriptions in CI. ### What is your fix for the problem, implemented in this PR? Explicitly set the RSpec format to `progress` in CI. Co-authored-by: Colby Swandale <me@colby.fyi>
| * revert the RSpec format in CI back to dotsColby Swandale2019-03-211-1/+1
|/
* Merge #7017Bundlerbot2019-03-205-172/+154
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7017: Development environment cleanup r=deivid-rodriguez a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was making changes in the development setup was brittle and led to hard to debug errors. For example, the ones in #6980. Also, it was hard to reproduce exactly what's going on in the current CI environment. Which is useful to setup other CI, or run the specs under a docker image. ### What was your diagnosis of the problem? My diagnosis was that we can simplify a lot of this stuff. ### What is your fix for the problem, implemented in this PR? My fix is... a lot of simplifications, but the most important ones being: * Now each binstub activates only its own dependency, not every development dependency. That means a contributor can perfectly work on manual pages installing only `rake` and `ronn` without having to install all development dependencies. Same with styling (`rubocop`), or with specs (`rspec`). * Error messages are better now. * The rake tasks for each main `Rakefile` section (man / spec / vendor) have been extracted to their own files. * Rake tasks now shell out to the proper binstub, so gem activation is only needed there. ### Why did you choose this fix out of the possible options? I chose this fix because it simplifies a lot the development environment in my opinion. Also, specs now pass under a docker image! Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * `finish_resolve` is not actually neededDavid Rodríguez2019-03-203-6/+0
| |
| * Abort when building man pages without ronnDavid Rodríguez2019-03-201-1/+1
| |
| * Improve `ronn` activationDavid Rodríguez2019-03-201-8/+14
| | | | | | | | | | | | Previously having another gem with a `ronn` executable would silently work and fail later with a cryptic error. Now we activate the proper version, and give a proper error if it fails.
| * Simplify globbingDavid Rodríguez2019-03-201-1/+1
| | | | | | | | No .rb files in there.
| * Remove unused requireDavid Rodríguez2019-03-201-1/+0
| |
| * Move the `safe_task` method into the :spec namespaceDavid Rodríguez2019-03-201-7/+7
| |
| * Merge the `:spec` namespace to a single blockDavid Rodríguez2019-03-201-12/+10
| |
| * Simplify rubygems path transmissionDavid Rodríguez2019-03-201-2/+1
| | | | | | | | | | Since the RSpec task now uses the RSpec binstub, we can rely on all the dance done in there.
| * Make `bin/rake` activate only `rake`David Rodríguez2019-03-201-11/+12
| |
| * Remove now dummy being-rescue-end blockDavid Rodríguez2019-03-201-101/+97
| |
| * Simplify rubocop taskDavid Rodríguez2019-03-201-7/+6
| | | | | | | | We shell out to the binstub so we no longer need the activation dance.
| * Remove unnecessary prerequisiteDavid Rodríguez2019-03-201-1/+1
| |
| * Make `bin/rubocop` activate only `rubocop`David Rodríguez2019-03-201-5/+10
| |
| * Simplify RSpec taskDavid Rodríguez2019-03-201-17/+9
| | | | | | | | We shell out to the binstubs, so we don't need any activation dance.
| * Make `bin/rspec` activate only `rspec`David Rodríguez2019-03-201-4/+11
| |
| * Remove unnecessary pre-requisiteDavid Rodríguez2019-03-201-1/+0
| | | | | | | | | | This is already done from the spec helper right before the beginning of the test suite.
| * Remove unnecessary RSpec activationDavid Rodríguez2019-03-201-13/+0
|/ | | | | We are inside the RSpec helper file, so RSpec must be already activated at this point.
* Merge #7045Bundlerbot2019-03-203-3/+135
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7045: Review old `bundle config` interface deprecation r=colby-swandale a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that the `bundle config` command interface changes needed a few tweaks. ### What was your diagnosis of the problem? My diagnosis was that: * `bundle config` deprecation was not getting enabled until bundler 3. * `bundle config` documentation was incorrect about `unset` not supporting `--global` or `--local`. * `bundle config` deprecation didn't give actionable suggestions. ### What is your fix for the problem, implemented in this PR? My fix is to move the version to deprecate the old interface to `bundler 2`, to fix the documentation, and to improve the deprecation messages to give actionable suggestions. ### Why did you choose this fix out of the possible options? I chose this fix because it makes `bundle config` better. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * Add actionable suggestions to config deprecationmove_bundle_config_deprecation_to_bundler_2David Rodríguez2019-03-152-7/+119
| |
| * Fix docs about `unset` with `--global` / `--local`David Rodríguez2019-03-151-1/+7
| | | | | | | | They are actually compatible.
| * Fix deprecation version for `bundle config`David Rodríguez2019-03-152-1/+15
| | | | | | | | And add specs for it.
* | Merge #7044Bundlerbot2019-03-201-2/+9
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7044: Unskip `--binstubs` flag deprecation r=colby-swandale a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that some deprecation specs were still skipped. ### What was your diagnosis of the problem? My diagnosis was that I should get all of them passing. ### What is your fix for the problem, implemented in this PR? My fix is to uncomment the spec and get it passing. The only fix was to include the full deprecation message so that it matches the assertion. ### Why did you choose this fix out of the possible options? I could've regexp-matched the existing message but I preferred to use the full message in the assertion instead. I chose this fix because although it makes it more brittle since changing the message _will_ break the test, having the whole messages inside the deprecation specs makes it easier to get a quick view and understand the stuff that we are deprecating and the quality of the existing deprecation messages. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * | Unskip `--binstubs` flag deprecationunskip_binstubs_deprecation_specsDavid Rodríguez2019-03-151-2/+9
| |/
* | Merge #7049Bundlerbot2019-03-191-1/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7049: Remove mustache dep r=hsbt a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem is that I just can't find where this development dependency is used. Furthermore, I can't find where it was used in the past :S ### What was your diagnosis of the problem? My diagnosis was that maybe it's never been used? ### What is your fix for the problem, implemented in this PR? My fix is to remove the dependency. ### Why did you choose this fix out of the possible options? I chose this fix because the less dependency, the better. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * | Remove mustache depremove_mustache_depDavid Rodríguez2019-03-191-1/+0
| |/
* | Merge #7047Bundlerbot2019-03-193-28/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7047: Remove remembered options deprecation message r=indirect a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that this deprecation message is almost always a false positive. I realized about this when being bitten by this deprecation message during on our own specs (see https://travis-ci.org/bundler/bundler/builds/506776354 for example). ### What was your diagnosis of the problem? My diagnosis was that people running things like `bundle install --retry 3` will be annoyed by this deprecation message, because they're not doing anything wrong, really. They have the option to set the flag permanently through configuration, but passing it per command is fine too. The fact that the flag will no longer be remembered is unlikely to cause any problems in my opinion. ### What is your fix for the problem, implemented in this PR? My fix is to remove this message altogether. We already print deprecation messages for the flags that we are removing because they only are guaranteed to work when remembering options (`--with`, `--without`, and friends). For the rest of the flags not being removed from `bundle install`, printing a deprecation message is just annoying since users are not doing anything wrong by using them. ### Why did you choose this fix out of the possible options? I chose this fix because we shouldn't overwhelm users with deprecation messages unless we really need to. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * | Remove forgotten options deprecationforgotten_options_deprecation_second_passDavid Rodríguez2019-03-172-26/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This deprecation will be a false positive in almost every case, so it will be very annoying for users. I realized about this when being bitten by the warning on our own specs on perfectly fine `bundle install` runs (`bundle install --retry 3`). Since we already have the deprecation in place about the options being removed from `bundle install` and being turned into configuration options, I think we can skip this warning altogether since the remaining flags are very unlikely to cause any problems when they start being "forgotten".
| * | Move message to present tenseDavid Rodríguez2019-03-172-2/+2
| |/ | | | | | | Because the behavior is still there.
* | Merge #7040Bundlerbot2019-03-1810-102/+8
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7040: Remove `RUBY_VERSION` leftovers r=hsbt a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that find old ruby compatibility code can confuse contributors into thinking those versions are still supported. ### What was your diagnosis of the problem? My diagnosis was that we can remove this code, since we no longer support those versions. ### 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 :) Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * Remove ruby version leftoversremove_ruby_version_leftoversDavid Rodríguez2019-03-1510-102/+8
|/
* Merge #7037Bundlerbot2019-03-154-3/+26
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7037: Test `bundle viz` command deprecation r=colby-swandale a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that we were not printing any deprecation messages for `bundle viz`. ### What was your diagnosis of the problem? My diagnosis was that we are removing `bundle viz` at the same time as deprecating it. Thus, the deprecations never actually show up. ### What is your fix for the problem, implemented in this PR? My fix is to first deprecate the command on bundler 2, then remove it in bundler 3. ### Why did you choose this fix out of the possible options? I chose this fix because it's the most sensible approach to this removal. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * Fix `graphviz` installation on TravisCIDavid Rodríguez2019-03-151-1/+3
| |
| * Test and fix `bundle viz` command deprecationDavid Rodríguez2019-03-153-2/+23
| |
* | Merge #7030Bundlerbot2019-03-154-48/+18
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7030: Remove `LessThanProc` r=colby-swandale a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that the `LessThanProc` class we use for filtering specs is confusing, in my opinion. For example, if I tag a spec with `:bundler => "2"`, I would expect it to run only against bundler 2. However, that's not how it works, it instead runs against any bundler higher than or equal to 2. ### What was your diagnosis of the problem? My diagnosis was that the `LessThanProc` class could be much simpler, and just check that the passed requirement matches the version the class was created with. ### What is your fix for the problem, implemented in this PR? My fix is to simplify the `LessThanProc` class to only do requirement matching, and remove the "less than" functionality. ### Why did you choose this fix out of the possible options? I chose this fix because in my opinion it's simpler to understand and less surprising. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * We only filter major versions of bundlerremove_less_than_procDavid Rodríguez2019-03-131-1/+1
| |
| * Remove LessThanProcDavid Rodríguez2019-03-133-23/+14
| |
| * Remove unused filterDavid Rodríguez2019-03-131-3/+0
| |
| * Remove old 1.9 stuffDavid Rodríguez2019-03-131-22/+4
| |
* | Merge #7029Bundlerbot2019-03-159-75/+79
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7029: Make deprecation specs less messy r=deivid-rodriguez a=deivid-rodriguez ### What was the end-user problem that led to this PR? The problem was that deprecation specs, even though they are now passing, are very brittle. This is because most of them create multiple gem files (`gems.rb` and `Gemfile`), and thus display deprecation messages by default about that. ### What was your diagnosis of the problem? My diagnosis was that each deprecation should test its own message, instead of having the same deprecation printed by most specs. ### What is your fix for the problem, implemented in this PR? My fix is to make the specs create a single gem file, except for the ones that test the deprecation about multiple gem files. ### Why did you choose this fix out of the possible options? I chose this fix because it makes the tests less brittle and do less unnecessary things. Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
| * | Be agressive, our specs should print no deprecationsimprove_deprecation_specsDavid Rodríguez2019-03-141-4/+0
| | |