util/rubocop -A --only Layout/EmptyLineAfterMagicComment

This commit is contained in:
Hiroshi SHIBATA 2023-03-17 18:36:42 +09:00
parent 4dd418f877
commit f24a86d83f
Notes: git 2023-03-23 08:19:20 +00:00
290 changed files with 290 additions and 0 deletions

View File

@ -1,5 +1,6 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
class Gem::AvailableSet
include Enumerable

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
##
# BasicSpecification is an abstract class which implements some common code
# used by both Specification and StubSpecification.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
require_relative "../package"
require_relative "../version_option"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
require_relative "../security"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
require_relative "../version_option"
require_relative "../validator"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
require_relative "../dependency_list"
require_relative "../uninstaller"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
require_relative "../version_option"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
require_relative "../local_remote_options"
require_relative "../version_option"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
class Gem::Commands::EnvironmentCommand < Gem::Command

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
require_relative "../dependency_installer"
require_relative "../gem_runner"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
require_relative "../local_remote_options"
require_relative "../version_option"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
require_relative "../indexer"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
class Gem::Commands::HelpCommand < Gem::Command

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
require_relative "../install_update_options"
require_relative "../dependency_installer"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
require_relative "../query_utils"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
class Gem::Commands::LockCommand < Gem::Command

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
unless defined? Gem::Commands::MirrorCommand

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
require_relative "../version_option"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
require_relative "../local_remote_options"
require_relative "../spec_fetcher"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
require_relative "../local_remote_options"
require_relative "../gemcutter_utilities"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
require_relative "../package"
require_relative "../installer"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
require_relative "../local_remote_options"
require_relative "../gemcutter_utilities"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
require_relative "../query_utils"
require_relative "../deprecate"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
require_relative "../version_option"
require_relative "../rdoc"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
require_relative "../query_utils"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
unless defined? Gem::Commands::ServerCommand

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
##

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
require_relative "../gemcutter_utilities"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
class Gem::Commands::SignoutCommand < Gem::Command

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
require_relative "../remote_fetcher"
require_relative "../spec_fetcher"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
require_relative "../local_remote_options"
require_relative "../version_option"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
class Gem::Commands::StaleCommand < Gem::Command

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
require_relative "../version_option"
require_relative "../uninstaller"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
require_relative "../version_option"
require_relative "../security_option"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
require_relative "../command_manager"
require_relative "../dependency_installer"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
class Gem::Commands::WhichCommand < Gem::Command

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../command"
require_relative "../local_remote_options"
require_relative "../version_option"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require "socket"
module CoreExtensions

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
module Gem
DEFAULT_HOST = "https://rubygems.org"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
##
# The Dependency class holds a Gem name and a Gem::Requirement.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../rubygems"
require_relative "dependency_list"
require_relative "package"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
##
# Provides 3 methods for declaring when something is going away.
#

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../rubygems"
require_relative "user_interaction"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
#--
# This file contains all the various exceptions and other errors that are used
# inside of RubyGems.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
##
# Raised when there is an error while building extensions.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "remote_fetcher"
require_relative "text"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../rubygems"
require_relative "package"
require "tmpdir"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../rubygems"
require_relative "user_interaction"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../rubygems"
require_relative "user_interaction"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "user_interaction"
##

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
##
#
# Represents a gem of name +name+ at +version+ of +platform+. These

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
#--
# Copyright (C) 2004 Mauricio Julio Fernández Pradier
# See LICENSE.txt for additional licensing information.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
##
# IO wrapper that creates digests of contents written to the IO it wraps.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
##
# The primary source of gems is a file on disk, including all usages
# internal to rubygems.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
##
# Supports reading and writing gems from/to a generic IO object. This is
# useful for other applications built on top of rubygems, such as

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
class Gem::Package::Source # :nodoc:
end

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
#--
# Copyright (C) 2004 Mauricio Julio Fernández Pradier
# See LICENSE.txt for additional licensing information.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
#--
# Copyright (C) 2004 Mauricio Julio Fernández Pradier
# See LICENSE.txt for additional licensing information.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
#++
# Copyright (C) 2004 Mauricio Julio Fernández Pradier
# See LICENSE.txt for additional licensing information.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
#--
# Copyright (C) 2004 Mauricio Julio Fernández Pradier
# See LICENSE.txt for additional licensing information.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
# Copyright (c) 2003, 2004 Jim Weirich, 2009 Eric Hodel
#
# Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
##
#
# Gem::PathSupport facilitates the GEM_HOME and GEM_PATH environment settings

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "deprecate"
##

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
module Gem
if defined? ::Psych::Visitors
class NoAliasYAMLTree < Psych::Visitors::YAMLTree

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../rubygems"
begin

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "../rubygems"
require_relative "request"
require_relative "request/connection_pools"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require "net/http"
require_relative "user_interaction"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
##
# A connection "pool" that only manages one connection for now. Provides
# thread safe `checkout` and `checkin` methods. The pool consists of one

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
class Gem::Request::HTTPSPool < Gem::Request::HTTPPool # :nodoc:
private

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "tsort"
##

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
##
# A semi-compatible DSL for the Bundler Gemfile and Isolate gem dependencies
# files.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
##
# Parses a gem.deps.rb.lock file and constructs a LockSet containing the
# dependencies found inside. If the lock file is missing no LockSet is

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
class Gem::RequestSet::Lockfile::Parser
###
# Parses lockfiles

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
# ) frozen_string_literal: true
require_relative "parser"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "version"
##

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
require_relative "dependency"
require_relative "exceptions"
require_relative "util/list"

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
##
# Specifies a Specification object that should be activated. Also contains a
# dependency that was used to introduce this activation.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
##
# The global rubygems pool, available via the rubygems.org API.
# Returns instances of APISpecification.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
##
# Represents a specification retrieved via the rubygems.org API.
#

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
##
# The BestSet chooses the best available method to query a remote index.
#

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
##
# A ComposedSet allows multiple sets to be queried like a single set.
#

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
##
# Used internally to indicate that a dependency conflicted
# with a spec that would be activated.

View File

@ -1,4 +1,5 @@
# frozen_string_literal: true
##
# A set which represents the installed gems. Respects
# all the normal settings that control where to look

Some files were not shown because too many files have changed in this diff Show More