summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2023-03-16 11:49:24 +0900
committerHiroshi SHIBATA <[email protected]>2023-03-17 18:50:55 +0900
commit583fbc627c2ad69457e37fc909f7aaf889d53483 ()
treed9d7d36ba001dad4128cca6130f570ce7d447200 /lib
parentc480a0c46a5fc9479bf6e3aa5bd1d2177878fad1 (diff)
[rubygems/rubygems] util/rubocop -A --only Layout/EmptyLinesAroundModuleBody
https://.com/rubygems/rubygems/commit/48c88466b7
-rw-r--r--lib/rubygems/compatibility.rb1
-rw-r--r--lib/rubygems/core_ext/kernel_gem.rb2
-rw-r--r--lib/rubygems/core_ext/kernel_require.rb2
-rw-r--r--lib/rubygems/deprecate.rb2
-rw-r--r--lib/rubygems/gemcutter_utilities.rb1
-rw-r--r--lib/rubygems/install_update_options.rb1
-rw-r--r--lib/rubygems/installer_uninstaller_utils.rb2
-rw-r--r--lib/rubygems/local_remote_options.rb2
-rw-r--r--lib/rubygems/mock_gem_ui.rb1
-rw-r--r--lib/rubygems/query_utils.rb2
-rw-r--r--lib/rubygems/safe_yaml.rb1
-rw-r--r--lib/rubygems/security.rb2
-rw-r--r--lib/rubygems/security/policies.rb2
-rw-r--r--lib/rubygems/text.rb1
-rw-r--r--lib/rubygems/user_interaction.rb3
-rw-r--r--lib/rubygems/util.rb2
-rw-r--r--lib/rubygems/version_option.rb1
17 files changed, 0 insertions, 28 deletions
@@ -38,5 +38,4 @@ module Gem
ConfigMap[key.to_sym] = RbConfig::CONFIG[key]
end
end
-
end
@@ -1,7 +1,6 @@
# frozen_string_literal: true
module Kernel
-
##
# Use Kernel#gem to activate a specific version of +gem_name+.
#
@@ -66,5 +65,4 @@ module Kernel
end
private :gem
-
end
@@ -8,7 +8,6 @@
require "monitor"
module Kernel
-
RUBYGEMS_ACTIVATION_MONITOR = Monitor.new # :nodoc:
# Make sure we have a reference to Ruby's original Kernel#require
@@ -164,5 +163,4 @@ module Kernel
end
private :require
-
end
@@ -69,7 +69,6 @@
# end
module Gem::Deprecate
-
def self.skip # :nodoc:
@skip ||= false
end
@@ -160,5 +159,4 @@ module Gem::Deprecate
end
module_function :rubygems_deprecate, :rubygems_deprecate_command, :skip_during
-
end
@@ -6,7 +6,6 @@ require_relative "text"
# Utility methods for using the RubyGems API.
module Gem::GemcutterUtilities
-
ERROR_CODE = 1
API_SCOPES = %i[index_rubygems push_rubygem yank_rubygem add_owner remove_owner access_webhooks show_dasard].freeze
@@ -195,5 +195,4 @@ module Gem::InstallUpdateOptions
def install_update_defaults_str
"--document=ri"
end
-
end
@@ -4,7 +4,6 @@
# Helper methods for both Gem::Installer and Gem::Uninstaller
module Gem::InstallerUninstallerUtils
-
def regenerate_plugins_for(spec, plugins_dir)
plugins = spec.plugins
return if plugins.empty?
@@ -25,5 +24,4 @@ module Gem::InstallerUninstallerUtils
def remove_plugins_for(spec, plugins_dir)
FileUtils.rm_f Gem::Util.glob_files_in_dir("#{spec.name}#{Gem.plugin_suffix_pattern}", plugins_dir)
end
-
end
@@ -12,7 +12,6 @@ require_relative "../rubygems"
# Mixin methods for local and remote Gem::Command options.
module Gem::LocalRemoteOptions
-
##
# Allows Gem::OptionParser to handle HTTP URIs.
@@ -144,5 +143,4 @@ module Gem::LocalRemoteOptions
def remote?
options[:domain] == :remote || options[:domain] == :both
end
-
end
@@ -27,7 +27,6 @@ class Gem::MockGemUi < Gem::StreamUI
class SystemExitException < RuntimeError; end
module TTY
-
attr_accessor :tty
def tty?()
@@ -6,7 +6,6 @@ require_relative "version_option"
require_relative "text"
module Gem::QueryUtils
-
include Gem::Text
include Gem::LocalRemoteOptions
include Gem::VersionOption
@@ -347,5 +346,4 @@ module Gem::QueryUtils
summary = truncate_text(spec.summary, "the summary for #{spec.full_name}")
entry << "\n\n" << format_text(summary, 68, 4)
end
-
end
@@ -1,5 +1,4 @@
module Gem
-
###
# This module is used for safely loading YAML specs from a gem. The
# `safe_load` method defined on this module is specifically designed for
@@ -325,7 +325,6 @@ require_relative "openssl"
# http://pablotron.org/
module Gem::Security
-
##
# Gem::Security default exception type
@@ -608,7 +607,6 @@ module Gem::Security
end
reset
-
end
if Gem::HAVE_OPENSSL
@@ -1,6 +1,5 @@
# frozen_string_literal: true
module Gem::Security
-
##
# No security policy: all package signature checks are disabled.
@@ -111,5 +110,4 @@ module Gem::Security
"HighSecurity" => HighSecurity,
# SigningPolicy is not intended for use by `gem -P` so do not list it
}.freeze
-
end
@@ -4,7 +4,6 @@
# A collection of text-wrangling methods
module Gem::Text
-
##
# Remove any non-printable characters and make the text suitable for
# printing.
@@ -13,7 +13,6 @@ require_relative "text"
# module will have access to the +ui+ method that returns the default UI.
module Gem::DefaultUserInteraction
-
include Gem::Text
##
@@ -68,7 +67,6 @@ module Gem::DefaultUserInteraction
def use_ui(new_ui, &block)
Gem::DefaultUserInteraction.use_ui(new_ui, &block)
end
-
end
##
@@ -91,7 +89,6 @@ end
# end
module Gem::UserInteraction
-
include Gem::DefaultUserInteraction
##
@@ -5,7 +5,6 @@ require_relative "deprecate"
# This module contains various utility methods as module methods.
module Gem::Util
-
##
# Zlib::GzipReader wrapper that unzips +data+.
@@ -111,5 +110,4 @@ module Gem::Util
path
end
end
-
end
@@ -11,7 +11,6 @@ require_relative "../rubygems"
# Mixin methods for --version and --platform Gem::Command options.
module Gem::VersionOption
-
##
# Add the --platform option to the option parser.