lib/bundler/patch/conservative_definition.rb in bundler-patch-1.1.0 vs lib/bundler/patch/conservative_definition.rb in bundler-patch-1.2.0

- old
+ new

@@ -69,9 +69,15 @@ end def prep @bundler_def ||= Bundler.definition(@gems_to_update.to_bundler_definition) @bundler_def.extend ConservativeDefinition + + # Starting with 1.17, this method has to be called externally, which isn't + # ideal in my opinion since the Definition class depends on it. + # https://github.com/bundler/bundler/commit/22f15209b87e0b0792c8a393549e1a10c963d59c + @bundler_def.gem_version_promoter if @bundler_def.respond_to?(:gem_version_promoter) + @bundler_def.gems_to_update = @gems_to_update @bundler_def.strict = @options[:strict] @bundler_def.minor_preferred = @options[:minor] @bundler_def.prefer_minimal = @options[:minimal] fixup_empty_remotes if @gems_to_update.to_bundler_definition === true