summaryrefslogtreecommitdiff
path: root/spec/resolver
Commit message (Collapse)AuthorAgeFilesLines
* Add no required_ruby_version againSutou Kouhei2020-01-151-0/+17
|
* Always add a spec group for all platforms to candidatesSutou Kouhei2020-01-151-0/+19
|
* Always add "ruby" version to selected spec groups as fallbackSutou Kouhei2020-01-151-3/+5
|
* Fix the name of Ruby requirementSutou Kouhei2020-01-151-2/+2
| | | | We should use "Ruby\0" instead of "ruby\0".
* Improve platform specific gem resolutionSutou Kouhei2020-01-151-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | It resolves #6247. This changes includes the patches that add (RSpec) specs for this situation in #6247. If there is a platform specific gem but it can't be resolved available version, Bundler reports an error. For example, @index = build_index do gem "bar", "1.0.0" gem "foo", "1.0.0" gem "foo", "1.0.0", "x64-mingw32" do dep "bar", "< 1" end end dep "foo" platforms "x64-mingw32" raises an error because foo-1.0.0-x64-mingw32 requires bar<1 but there isn't bar<1. With this change, foo-1.0.0 (no x64-mingw32) is used as fallback. Because foo-1.0.0 doesn't depend on bar<1.
* Add a spec for when differing dependencies cause the generic version gem to ↵Samuel Giddins2020-01-151-0/+14
| | | | be the only option
* Add two specs for choosing platform specific gemsLars Kanis2020-01-151-0/+29
| | | | The first spec succeeds, but the second spec fails currently.
* Replace unsafe http URLs with https URLsTakumasa Ochi2019-01-281-1/+1
|
* [GemVersionPromoter] Prefer non-pre-release versionssegiddins/6684-gvp-prefer-non-presSamuel Giddins2018-09-121-0/+12
|
* Fix error sortingSamuel Giddins2018-08-061-2/+2
| | | | Also avoid mutating the original exception message to generate the message we want
* Remove pre-release logic from requirement_satisfied_by?akihiro172018-06-191-0/+7
| | | | because #6014 avoids pre-releases when a non-pre-release version is possible
* Resolver: treat dependencies with prerelease versions as slightly constrainedGrey Baker2017-11-271-0/+7
|
* Fix typo in spec nameGrey Baker2017-10-301-1/+1
|
* Prioritise explicitly requested gems in dependency resolution sort orderGrey Baker2017-10-271-0/+7
|
* Check all dependency requirements when determining if user wants pre-releaseGrey Baker2017-09-101-0/+5
|
* Avoid pre-releases for sub-dependencies tooGrey Baker2017-09-101-0/+5
|
* Add spec that pre-release versions aren't selected when not in the GemfileGrey Baker2017-09-091-0/+6
|
* Update conservative update specs for being able to revert to the locked ↵Samuel Giddins2017-08-011-8/+4
| | | | resolution
* Use compound matchers in resolving specSamuel Giddins2017-08-011-2/+2
|
* Add spec for prerelease dependency resolutionGrey Baker2017-07-221-0/+6
|
* Get the Bundler 2 specs passing with transitive source pinningSamuel Giddins2017-06-231-1/+1
|
* Auto merge of #5634 - koic:specify_require_spec_helper_in_dot_rspec, r=indirectThe Bundler Bot2017-05-302-2/+0
|\ | | | | | | | | | | | | | | | | Specify `--require spec_helper` in .rspec Specifying `--require spec_helper` in .rspec will automatically require spec_helper in *_spec.rb. It isn't necessary to specify `require "spec_helper"` in individual *_spec.rb. I think that it's a [DRY](https://en.wikipedia.org/wiki/Don't_repeat_yourself) way. Refer: https://github.com/rspec/rspec/wiki#rspec
| * Specify `--require spec_helper` in .rspecKoichi ITO2017-05-032-2/+0
| |
* | [RuboCop] Enable Style/PercentLiteralDelimitersKoichi ITO2017-05-282-39/+39
|/ | | | Run `rubocop -a --only Style/PercentLiteralDelimiters` and `rubocop --auto-gen-config`.
* [Resolver] Only include minimal set of conflicting deps in conflict messageSamuel Giddins2017-03-301-0/+22
|
* Disable RSpec monkey patchingSamuel Giddins2017-01-152-2/+2
|
* Clean up pending specs.chrismo2016-10-221-6/+10
| | | | | I should have cleaned these up in a prior PR, but no time like the present.
* Resolve for specific platformsSamuel Giddins2016-08-251-1/+1
|
* Update resolving specs for required ruby version refactoraa-ruby-version-conflict-messageSamuel Giddins2016-08-231-1/+4
|
* Scrub STDOUT output from the main specsseg-fix-realworldSamuel Giddins2016-08-111-1/+0
|
* Mark pending two failing specs.chrismo2016-07-081-4/+2
| | | | | | | segiddins and I are agreed there appears to be an issue with Molinillo in these cases, but they are unusual and for now we're looking to do an undocumented release of the new conservative updates, so we can start to get feedback. We'll revisit these cases.
* Support for reverting to older versions.chrismo2016-07-081-2/+39
| | | | | | | | | | | | This is the first behavior change from bundler-patch. Used to be older versions would never be an option, but Bundler proper has always supported this (if necessary to resolve the dependency tree) and there can be some legit cases for doing this. The `--strict` flag could be used to override this behavior, but I'm running into a Molinillo behavior that I'm not sure is correct, so the specs involving the strict option are failing right now. I'm going to push so @segiddins and I can discuss.
* Remove old pending specchrismo2016-07-081-2/+0
|
* Moved GemVersionPromoter inside search_for cache.chrismo2016-07-081-0/+9
| | | | | | | | | | In the process I was able to simplify some of the code inside GemVersionPromoter dealing with SpecGroups. I also attempted to implement the :major behavior into GemVersionPromoter as that would eliminate the logic to skip it in `#search_for`, however I ran into some test failures that I need to investigate further, though unit specs are working so far.
* Remove minimal optionchrismo2016-07-081-15/+0
|
* Clarified changing dependency specs.chrismo2016-07-081-16/+34
| | | | | | | A couple of confusing cases that should be clearer now and the differences called out. Details in the spec code and comments. Plus some MODO additions and other pending spec additions.
* GemVersionPromoter refactorchrismo2016-07-081-7/+3
| | | | | | | | | | | | | | | | UpdateOptions which was then renamed to DependencySearch is now called GemVersionPromoter, cuz I can't name this damn class. It's in its own file now, so there's that. I took a shot at moving Resolver#search_for into it, but had naively overlooked a few instance variables and such and it just didn't make as much sense as I'd first envisioned. Probably some other smaller classes in between perhaps. GemVersionPromoter class now caching its results, too, and I moved out the return from it back into Resolver as it made more sense there. As a standalone class, it may make sense to have this actually implement :major sorting, but maybe later.
* Rename UpdateOptions=>DependencySearchchrismo2016-07-081-0/+8
|
* RuboCop fixeschrismo2016-07-081-24/+24
|
* 1st pass thorough specs on conservative resolver.chrismo2016-07-081-8/+71
| | | | | | | | | | Ported over resolver specs from bundler-patch README (which don't match the actual specs for no particular reason other than dev lolz) and expanded on some of the cases after a few weird cases resolved ... a little unexpectedly. They're passing, but some discussion to be had on some of the cases perhaps. See inline spec comments.
* First resolver spec and bug fix.chrismo2016-07-081-3/+14
| | | | | | | I stared at that code 2 or 3 times before seeing the obvious bug. Sigh. Anyway - needed to get these resolver specs going sooner or later. Both the first new resolver spec is passing as is the first update_spec spec (plus the pre-existing ones).
* Compatibility with frozen string literalsSamuel Giddins2016-01-312-0/+2
|
* Remove `Bundler::RubyVersionRequirement`James Wen2016-01-111-1/+1
| | | | | - `Bundler::RubyVersionRequirement` can easily be replaced by `Bundler::RubyVersion` whereever/however it's used
* Merge pull request #4064 from pivotal-cf-experimental/masterAndre Arko2015-12-121-1/+1
|\
| * Adds ruby version to Gemfile.lock.David Morhovich2015-10-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | * Adds support for `bundle update --ruby` command to allow for updating ruby version in Gemfile.lock. * Adds support for `bundle install` to allow for adding ruby version in Gemfile.lock. https://www.pivotaltracker.com/story/show/106008092 Signed-off-by: JT Archie <jtarchie@gmail.com>
* | [RuboCop] Enable Style/BlockDelimitersSamuel Giddins2015-11-261-4/+4
|/
* [RuboCop] Double quotesseg-resolve-ruby-versionSamuel Giddins2015-10-021-2/+2
|
* [Resolver] Add spec for taking ruby version into accountSamuel Giddins2015-10-021-0/+29
|
* [RuboCop] Enable Style/StringLiteralsSamuel E. Giddins2015-07-151-1/+1
|
* [RuboCop] Enable Style/EmptyLinesSamuel E. Giddins2015-07-152-3/+0
|