ruby-changes:70041
From: David <ko1@a...>
Date: Fri, 3 Dec 2021 20:01:12 +0900 (JST)
Subject: [ruby-changes:70041] ca65f7bb8a (master): [rubygems/rubygems] Remove unnecessary code
https://git.ruby-lang.org/ruby.git/commit/?id=ca65f7bb8a From ca65f7bb8afe747628d3d48caf63e5fcba303e29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Wed, 17 Nov 2021 12:58:07 +0100 Subject: [rubygems/rubygems] Remove unnecessary code Somehow this is trying to relax frozen mode constraints for path sources. It doesn't make sense to me and it's not covered by any spec so I'm killing it. https://github.com/rubygems/rubygems/commit/17c978e161 --- lib/bundler/definition.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index 58612e5c168..9afbdfa07d9 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -379,12 +379,6 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler/definition.rb#L379 new_deps = @dependencies - locked_dependencies deleted_deps = locked_dependencies - @dependencies - # Check if it is possible that the source is only changed thing - if (new_deps.empty? && deleted_deps.empty?) && (!new_sources.empty? && !deleted_sources.empty?) - new_sources.reject! {|source| source.path? && source.path.exist? } - deleted_sources.reject! {|source| source.path? && source.path.exist? } - end - if @locked_sources != gemfile_sources if new_sources.any? added.concat new_sources.map {|source| "* source: #{source}" } -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/