[rubygems/rubygems] util/rubocop -A --only Layout/EmptyLinesAroundModuleBody

https://github.com/rubygems/rubygems/commit/48c88466b7
This commit is contained in:
Hiroshi SHIBATA 2023-03-16 11:49:24 +09:00
parent c480a0c46a
commit 583fbc627c
18 changed files with 0 additions and 29 deletions

View File

@ -38,5 +38,4 @@ module Gem
ConfigMap[key.to_sym] = RbConfig::CONFIG[key] ConfigMap[key.to_sym] = RbConfig::CONFIG[key]
end end
end end
end end

View File

@ -1,7 +1,6 @@
# frozen_string_literal: true # frozen_string_literal: true
module Kernel module Kernel
## ##
# Use Kernel#gem to activate a specific version of +gem_name+. # Use Kernel#gem to activate a specific version of +gem_name+.
# #
@ -66,5 +65,4 @@ module Kernel
end end
private :gem private :gem
end end

View File

@ -8,7 +8,6 @@
require "monitor" require "monitor"
module Kernel module Kernel
RUBYGEMS_ACTIVATION_MONITOR = Monitor.new # :nodoc: RUBYGEMS_ACTIVATION_MONITOR = Monitor.new # :nodoc:
# Make sure we have a reference to Ruby's original Kernel#require # Make sure we have a reference to Ruby's original Kernel#require
@ -164,5 +163,4 @@ module Kernel
end end
private :require private :require
end end

View File

@ -69,7 +69,6 @@
# end # end
module Gem::Deprecate module Gem::Deprecate
def self.skip # :nodoc: def self.skip # :nodoc:
@skip ||= false @skip ||= false
end end
@ -160,5 +159,4 @@ module Gem::Deprecate
end end
module_function :rubygems_deprecate, :rubygems_deprecate_command, :skip_during module_function :rubygems_deprecate, :rubygems_deprecate_command, :skip_during
end end

View File

@ -6,7 +6,6 @@ require_relative "text"
# Utility methods for using the RubyGems API. # Utility methods for using the RubyGems API.
module Gem::GemcutterUtilities module Gem::GemcutterUtilities
ERROR_CODE = 1 ERROR_CODE = 1
API_SCOPES = %i[index_rubygems push_rubygem yank_rubygem add_owner remove_owner access_webhooks show_dashboard].freeze API_SCOPES = %i[index_rubygems push_rubygem yank_rubygem add_owner remove_owner access_webhooks show_dashboard].freeze

View File

@ -195,5 +195,4 @@ module Gem::InstallUpdateOptions
def install_update_defaults_str def install_update_defaults_str
"--document=ri" "--document=ri"
end end
end end

View File

@ -4,7 +4,6 @@
# Helper methods for both Gem::Installer and Gem::Uninstaller # Helper methods for both Gem::Installer and Gem::Uninstaller
module Gem::InstallerUninstallerUtils module Gem::InstallerUninstallerUtils
def regenerate_plugins_for(spec, plugins_dir) def regenerate_plugins_for(spec, plugins_dir)
plugins = spec.plugins plugins = spec.plugins
return if plugins.empty? return if plugins.empty?
@ -25,5 +24,4 @@ module Gem::InstallerUninstallerUtils
def remove_plugins_for(spec, plugins_dir) def remove_plugins_for(spec, plugins_dir)
FileUtils.rm_f Gem::Util.glob_files_in_dir("#{spec.name}#{Gem.plugin_suffix_pattern}", plugins_dir) FileUtils.rm_f Gem::Util.glob_files_in_dir("#{spec.name}#{Gem.plugin_suffix_pattern}", plugins_dir)
end end
end end

View File

@ -12,7 +12,6 @@ require_relative "../rubygems"
# Mixin methods for local and remote Gem::Command options. # Mixin methods for local and remote Gem::Command options.
module Gem::LocalRemoteOptions module Gem::LocalRemoteOptions
## ##
# Allows Gem::OptionParser to handle HTTP URIs. # Allows Gem::OptionParser to handle HTTP URIs.
@ -144,5 +143,4 @@ module Gem::LocalRemoteOptions
def remote? def remote?
options[:domain] == :remote || options[:domain] == :both options[:domain] == :remote || options[:domain] == :both
end end
end end

View File

@ -27,7 +27,6 @@ class Gem::MockGemUi < Gem::StreamUI
class SystemExitException < RuntimeError; end class SystemExitException < RuntimeError; end
module TTY module TTY
attr_accessor :tty attr_accessor :tty
def tty?() def tty?()

View File

@ -6,7 +6,6 @@ require_relative "version_option"
require_relative "text" require_relative "text"
module Gem::QueryUtils module Gem::QueryUtils
include Gem::Text include Gem::Text
include Gem::LocalRemoteOptions include Gem::LocalRemoteOptions
include Gem::VersionOption include Gem::VersionOption
@ -347,5 +346,4 @@ module Gem::QueryUtils
summary = truncate_text(spec.summary, "the summary for #{spec.full_name}") summary = truncate_text(spec.summary, "the summary for #{spec.full_name}")
entry << "\n\n" << format_text(summary, 68, 4) entry << "\n\n" << format_text(summary, 68, 4)
end end
end end

View File

@ -1,5 +1,4 @@
module Gem module Gem
### ###
# This module is used for safely loading YAML specs from a gem. The # This module is used for safely loading YAML specs from a gem. The
# `safe_load` method defined on this module is specifically designed for # `safe_load` method defined on this module is specifically designed for

View File

@ -325,7 +325,6 @@ require_relative "openssl"
# http://pablotron.org/ # http://pablotron.org/
module Gem::Security module Gem::Security
## ##
# Gem::Security default exception type # Gem::Security default exception type
@ -608,7 +607,6 @@ module Gem::Security
end end
reset reset
end end
if Gem::HAVE_OPENSSL if Gem::HAVE_OPENSSL

View File

@ -1,6 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Gem::Security module Gem::Security
## ##
# No security policy: all package signature checks are disabled. # No security policy: all package signature checks are disabled.
@ -111,5 +110,4 @@ module Gem::Security
"HighSecurity" => HighSecurity, "HighSecurity" => HighSecurity,
# SigningPolicy is not intended for use by `gem -P` so do not list it # SigningPolicy is not intended for use by `gem -P` so do not list it
}.freeze }.freeze
end end

View File

@ -4,7 +4,6 @@
# A collection of text-wrangling methods # A collection of text-wrangling methods
module Gem::Text module Gem::Text
## ##
# Remove any non-printable characters and make the text suitable for # Remove any non-printable characters and make the text suitable for
# printing. # printing.

View File

@ -13,7 +13,6 @@ require_relative "text"
# module will have access to the +ui+ method that returns the default UI. # module will have access to the +ui+ method that returns the default UI.
module Gem::DefaultUserInteraction module Gem::DefaultUserInteraction
include Gem::Text include Gem::Text
## ##
@ -68,7 +67,6 @@ module Gem::DefaultUserInteraction
def use_ui(new_ui, &block) def use_ui(new_ui, &block)
Gem::DefaultUserInteraction.use_ui(new_ui, &block) Gem::DefaultUserInteraction.use_ui(new_ui, &block)
end end
end end
## ##
@ -91,7 +89,6 @@ end
# end # end
module Gem::UserInteraction module Gem::UserInteraction
include Gem::DefaultUserInteraction include Gem::DefaultUserInteraction
## ##

View File

@ -5,7 +5,6 @@ require_relative "deprecate"
# This module contains various utility methods as module methods. # This module contains various utility methods as module methods.
module Gem::Util module Gem::Util
## ##
# Zlib::GzipReader wrapper that unzips +data+. # Zlib::GzipReader wrapper that unzips +data+.
@ -111,5 +110,4 @@ module Gem::Util
path path
end end
end end
end end

View File

@ -11,7 +11,6 @@ require_relative "../rubygems"
# Mixin methods for --version and --platform Gem::Command options. # Mixin methods for --version and --platform Gem::Command options.
module Gem::VersionOption module Gem::VersionOption
## ##
# Add the --platform option to the option parser. # Add the --platform option to the option parser.

View File

@ -25,7 +25,6 @@ require "benchmark" # stdlib
require "rubygems/mock_gem_ui" require "rubygems/mock_gem_ui"
module Gem module Gem
## ##
# Allows setting the gem path searcher. # Allows setting the gem path searcher.