ruby-changes:73033
From: David <ko1@a...>
Date: Tue, 23 Aug 2022 10:46:15 +0900 (JST)
Subject: [ruby-changes:73033] b30fc03e92 (master): [rubygems/rubygems] Centralize loading `Bundler::MatchPlatform` mixin
https://git.ruby-lang.org/ruby.git/commit/?id=b30fc03e92 From b30fc03e924235207edb009be2108226e4c8efc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Mon, 8 Aug 2022 21:39:49 +0200 Subject: [rubygems/rubygems] Centralize loading `Bundler::MatchPlatform` mixin It's explicitly loaded when monkeypatching RubyGems, which we do very early. So neither autoloading it, nor explicitly loading it anywhere else is necessary. https://github.com/rubygems/rubygems/commit/fbc7a57161 --- lib/bundler.rb | 1 - lib/bundler/lazy_specification.rb | 2 -- 2 files changed, 3 deletions(-) diff --git a/lib/bundler.rb b/lib/bundler.rb index 7df22ab3a5..b24d47c6d0 100644 --- a/lib/bundler.rb +++ b/lib/bundler.rb @@ -59,7 +59,6 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler.rb#L59 autoload :Installer, File.expand_path("bundler/installer", __dir__) autoload :LazySpecification, File.expand_path("bundler/lazy_specification", __dir__) autoload :LockfileParser, File.expand_path("bundler/lockfile_parser", __dir__) - autoload :MatchPlatform, File.expand_path("bundler/match_platform", __dir__) autoload :ProcessLock, File.expand_path("bundler/process_lock", __dir__) autoload :RemoteSpecification, File.expand_path("bundler/remote_specification", __dir__) autoload :Resolver, File.expand_path("bundler/resolver", __dir__) diff --git a/lib/bundler/lazy_specification.rb b/lib/bundler/lazy_specification.rb index 5b40bec5a8..78d2c22f81 100644 --- a/lib/bundler/lazy_specification.rb +++ b/lib/bundler/lazy_specification.rb @@ -1,7 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/lib/bundler/lazy_specification.rb#L1 # frozen_string_literal: true -require_relative "match_platform" - module Bundler class LazySpecification include MatchPlatform -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/