ruby-changes:62475
From: David <ko1@a...>
Date: Fri, 31 Jul 2020 21:08:52 +0900 (JST)
Subject: [ruby-changes:62475] 6c71033ac3 (master): [rubygems/rubygems] Remove more unnecessary requires
https://git.ruby-lang.org/ruby.git/commit/?id=6c71033ac3 From 6c71033ac3933cb23d9ee651ce864e164bc9b56f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Wed, 1 Jul 2020 11:45:33 +0200 Subject: [rubygems/rubygems] Remove more unnecessary requires Since `rubygems/util` is autoloaded. https://github.com/rubygems/rubygems/commit/52a9f88b99 diff --git a/lib/rubygems/bundler_version_finder.rb b/lib/rubygems/bundler_version_finder.rb index 56ca14f..9ce0a23 100644 --- a/lib/rubygems/bundler_version_finder.rb +++ b/lib/rubygems/bundler_version_finder.rb @@ -1,7 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/lib/rubygems/bundler_version_finder.rb#L1 # frozen_string_literal: true -require "rubygems/util" - module Gem::BundlerVersionFinder def self.bundler_version version, _ = bundler_version_with_reason diff --git a/lib/rubygems/commands/open_command.rb b/lib/rubygems/commands/open_command.rb index 7d24553..1e40758 100644 --- a/lib/rubygems/commands/open_command.rb +++ b/lib/rubygems/commands/open_command.rb @@ -1,7 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/lib/rubygems/commands/open_command.rb#L1 # frozen_string_literal: true require 'rubygems/command' require 'rubygems/version_option' -require 'rubygems/util' class Gem::Commands::OpenCommand < Gem::Command include Gem::VersionOption diff --git a/lib/rubygems/resolver.rb b/lib/rubygems/resolver.rb index 46b8aee..fa5f5e6 100644 --- a/lib/rubygems/resolver.rb +++ b/lib/rubygems/resolver.rb @@ -1,7 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/lib/rubygems/resolver.rb#L1 # frozen_string_literal: true require 'rubygems/dependency' require 'rubygems/exceptions' -require 'rubygems/util' require 'rubygems/util/list' ## diff --git a/lib/rubygems/source/git.rb b/lib/rubygems/source/git.rb index f06f3b0..9876adc 100644 --- a/lib/rubygems/source/git.rb +++ b/lib/rubygems/source/git.rb @@ -1,5 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/lib/rubygems/source/git.rb#L1 # frozen_string_literal: true -require 'rubygems/util' ## # A git gem for use in a gem dependencies file. diff --git a/lib/rubygems/user_interaction.rb b/lib/rubygems/user_interaction.rb index a5ebaf6..27a9957 100644 --- a/lib/rubygems/user_interaction.rb +++ b/lib/rubygems/user_interaction.rb @@ -5,7 +5,6 @@ https://github.com/ruby/ruby/blob/trunk/lib/rubygems/user_interaction.rb#L5 # See LICENSE.txt for permissions. #++ -require 'rubygems/util' require 'rubygems/deprecate' require 'rubygems/text' -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/