diff options
author | chrismo <chrismo@clabs.org> | 2016-06-20 01:25:07 -0500 |
---|---|---|
committer | chrismo <chrismo@clabs.org> | 2016-07-08 19:35:57 -0500 |
commit | b26b54cc6f993309512f1a10733f17af49122d67 (patch) | |
tree | 4b9b7e0e809ee7f2745eb1ec958aaefba29d231d /lib/bundler/cli | |
parent | 5f63cad355e7736acaefab3c40266d033f67a4b8 (diff) | |
download | bundler-b26b54cc6f993309512f1a10733f17af49122d67.tar.gz |
GemVersionPromoter refactor
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.
Diffstat (limited to 'lib/bundler/cli')
-rw-r--r-- | lib/bundler/cli/update.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/cli/update.rb b/lib/bundler/cli/update.rb index fec5a543..cdf1dc10 100644 --- a/lib/bundler/cli/update.rb +++ b/lib/bundler/cli/update.rb @@ -40,7 +40,7 @@ module Bundler end patch_level = [:major, :minor, :patch].detect {|v| options.keys.include?(v.to_s) } - Bundler.definition.dependency_search.level = patch_level + Bundler.definition.gem_version_promoter.level = patch_level Bundler::Fetcher.disable_endpoint = options["full-index"] |