Merge branch 'Homebrew:master' into no-shallow-taps
This commit is contained in:
commit
d7e2e3c75a
@ -109,13 +109,13 @@ GEM
|
||||
rspec-support (3.10.2)
|
||||
rspec-wait (0.0.9)
|
||||
rspec (>= 3, < 4)
|
||||
rubocop (1.13.0)
|
||||
rubocop (1.14.0)
|
||||
parallel (~> 1.10)
|
||||
parser (>= 3.0.0.0)
|
||||
rainbow (>= 2.2.2, < 4.0)
|
||||
regexp_parser (>= 1.8, < 3.0)
|
||||
rexml
|
||||
rubocop-ast (>= 1.2.0, < 2.0)
|
||||
rubocop-ast (>= 1.5.0, < 2.0)
|
||||
ruby-progressbar (~> 1.7)
|
||||
unicode-display_width (>= 1.4.0, < 3.0)
|
||||
rubocop-ast (1.5.0)
|
||||
@ -123,7 +123,7 @@ GEM
|
||||
rubocop-performance (1.11.3)
|
||||
rubocop (>= 1.7.0, < 2.0)
|
||||
rubocop-ast (>= 0.4.0)
|
||||
rubocop-rails (2.10.0)
|
||||
rubocop-rails (2.10.1)
|
||||
activesupport (>= 4.2.0)
|
||||
rack (>= 1.1)
|
||||
rubocop (>= 1.7.0, < 2.0)
|
||||
|
@ -35,6 +35,18 @@ class Keg
|
||||
|
||||
change_install_name(old_name, new_name, file) if new_name
|
||||
end
|
||||
|
||||
if ENV["HOMEBREW_RELOCATE_RPATHS"]
|
||||
each_rpath_for(file) do |old_name|
|
||||
new_name = if old_name.start_with? relocation.old_cellar
|
||||
old_name.sub(relocation.old_cellar, relocation.new_cellar)
|
||||
elsif old_name.start_with? relocation.old_prefix
|
||||
old_name.sub(relocation.old_prefix, relocation.new_prefix)
|
||||
end
|
||||
|
||||
change_rpath(old_name, new_name, file) if new_name
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -111,6 +123,12 @@ class Keg
|
||||
dylibs.each(&block)
|
||||
end
|
||||
|
||||
def each_rpath_for(file, &block)
|
||||
rpaths = file.rpaths
|
||||
.reject { |fn| fn =~ /^@(loader|executable)_path/ }
|
||||
rpaths.each(&block)
|
||||
end
|
||||
|
||||
def dylib_id_for(file)
|
||||
# The new dylib ID should have the same basename as the old dylib ID, not
|
||||
# the basename of the file itself.
|
||||
|
@ -34,6 +34,22 @@ class Keg
|
||||
raise
|
||||
end
|
||||
|
||||
def change_rpath(old, new, file)
|
||||
return if old == new
|
||||
|
||||
@require_relocation = true
|
||||
odebug "Changing rpath in #{file}\n from #{old}\n to #{new}"
|
||||
MachO::Tools.change_rpath(file, old, new, strict: false)
|
||||
apply_ad_hoc_signature(file)
|
||||
rescue MachO::MachOError
|
||||
onoe <<~EOS
|
||||
Failed changing rpath in #{file}
|
||||
from #{old}
|
||||
to #{new}
|
||||
EOS
|
||||
raise
|
||||
end
|
||||
|
||||
def apply_ad_hoc_signature(file)
|
||||
return if MacOS.version < :big_sur
|
||||
return unless Hardware::CPU.arm?
|
||||
|
@ -825,8 +825,8 @@ RuboCop::Cop::Bundler::DuplicatedGem::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
class RuboCop::Cop::Bundler::GemComment < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::DefNode)
|
||||
include(::RuboCop::Cop::GemDeclaration)
|
||||
|
||||
def gem_declaration?(param0 = T.unsafe(nil)); end
|
||||
def on_send(node); end
|
||||
|
||||
private
|
||||
@ -856,6 +856,30 @@ RuboCop::Cop::Bundler::GemComment::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array
|
||||
|
||||
RuboCop::Cop::Bundler::GemComment::VERSION_SPECIFIERS_OPTION = T.let(T.unsafe(nil), String)
|
||||
|
||||
class RuboCop::Cop::Bundler::GemVersion < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::ConfigurableEnforcedStyle)
|
||||
include(::RuboCop::Cop::GemDeclaration)
|
||||
|
||||
def includes_version_specification?(param0 = T.unsafe(nil)); end
|
||||
def on_send(node); end
|
||||
|
||||
private
|
||||
|
||||
def allowed_gem?(node); end
|
||||
def allowed_gems; end
|
||||
def forbidden_style?; end
|
||||
def message(range); end
|
||||
def offense?(node); end
|
||||
def required_style?; end
|
||||
def version_specification?(expression); end
|
||||
end
|
||||
|
||||
RuboCop::Cop::Bundler::GemVersion::FORBIDDEN_MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Bundler::GemVersion::REQUIRED_MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Bundler::GemVersion::VERSION_SPECIFICATION_REGEX = T.let(T.unsafe(nil), Regexp)
|
||||
|
||||
class RuboCop::Cop::Bundler::InsecureProtocolSource < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::RangeHelp)
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
@ -1440,6 +1464,12 @@ RuboCop::Cop::FrozenStringLiteral::FROZEN_STRING_LITERAL_ENABLED = T.let(T.unsaf
|
||||
|
||||
RuboCop::Cop::FrozenStringLiteral::FROZEN_STRING_LITERAL_TYPES = T.let(T.unsafe(nil), Array)
|
||||
|
||||
module RuboCop::Cop::GemDeclaration
|
||||
extend(::RuboCop::AST::NodePattern::Macros)
|
||||
|
||||
def gem_declaration?(param0 = T.unsafe(nil)); end
|
||||
end
|
||||
|
||||
module RuboCop::Cop::Gemspec
|
||||
end
|
||||
|
||||
@ -3232,6 +3262,8 @@ class RuboCop::Cop::Layout::RedundantLineBreak < ::RuboCop::Cop::Cop
|
||||
def convertible_block?(node); end
|
||||
def max_line_length; end
|
||||
def offense?(node); end
|
||||
def other_cop_takes_precedence?(node); end
|
||||
def single_line_block_chain_enabled?; end
|
||||
def suitable_as_single_line?(node); end
|
||||
def to_single_line(source); end
|
||||
def too_long?(node); end
|
||||
@ -3276,6 +3308,19 @@ RuboCop::Cop::Layout::RescueEnsureAlignment::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Layout::RescueEnsureAlignment::RUBY_2_5_ANCESTOR_TYPES = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Layout::SingleLineBlockChain < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::RangeHelp)
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
|
||||
def on_send(node); end
|
||||
|
||||
private
|
||||
|
||||
def offending_range(node); end
|
||||
end
|
||||
|
||||
RuboCop::Cop::Layout::SingleLineBlockChain::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
class RuboCop::Cop::Layout::SpaceAfterColon < ::RuboCop::Cop::Base
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
|
||||
@ -4095,28 +4140,48 @@ class RuboCop::Cop::Lint::DeprecatedClassMethods < ::RuboCop::Cop::Base
|
||||
private
|
||||
|
||||
def check(node); end
|
||||
def deprecated_method(data); end
|
||||
def method_call(class_constant, method); end
|
||||
def replacement_method(data); end
|
||||
def replacement(deprecated); end
|
||||
end
|
||||
|
||||
RuboCop::Cop::Lint::DeprecatedClassMethods::DEPRECATED_METHODS_OBJECT = T.let(T.unsafe(nil), Array)
|
||||
RuboCop::Cop::Lint::DeprecatedClassMethods::CLASS_METHOD_DELIMETER = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Lint::DeprecatedClassMethods::DEPRECATED_METHODS_OBJECT = T.let(T.unsafe(nil), Hash)
|
||||
|
||||
class RuboCop::Cop::Lint::DeprecatedClassMethods::DeprecatedClassMethod
|
||||
include(::RuboCop::AST::Sexp)
|
||||
|
||||
def initialize(deprecated:, replacement:, class_constant: T.unsafe(nil)); end
|
||||
def initialize(method, class_constant: T.unsafe(nil), correctable: T.unsafe(nil)); end
|
||||
|
||||
def class_constant; end
|
||||
def class_nodes; end
|
||||
def deprecated_method; end
|
||||
def replacement_method; end
|
||||
def correctable?; end
|
||||
def method; end
|
||||
def to_s; end
|
||||
|
||||
private
|
||||
|
||||
def delimeter; end
|
||||
end
|
||||
|
||||
RuboCop::Cop::Lint::DeprecatedClassMethods::INSTANCE_METHOD_DELIMETER = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Lint::DeprecatedClassMethods::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
RuboCop::Cop::Lint::DeprecatedClassMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||
|
||||
class RuboCop::Cop::Lint::DeprecatedClassMethods::Replacement
|
||||
def initialize(method, class_constant: T.unsafe(nil), instance_method: T.unsafe(nil)); end
|
||||
|
||||
def class_constant; end
|
||||
def method; end
|
||||
def to_s; end
|
||||
|
||||
private
|
||||
|
||||
def delimeter; end
|
||||
def instance_method?; end
|
||||
end
|
||||
|
||||
class RuboCop::Cop::Lint::DeprecatedConstants < ::RuboCop::Cop::Base
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
|
||||
@ -5615,11 +5680,14 @@ class RuboCop::Cop::Lint::UnreachableLoop < ::RuboCop::Cop::Base
|
||||
def check(node); end
|
||||
def check_case(node); end
|
||||
def check_if(node); end
|
||||
def conditional_continue_keyword?(break_statement); end
|
||||
def loop_method?(node); end
|
||||
def preceded_by_continue_statement?(break_statement); end
|
||||
def statements(node); end
|
||||
end
|
||||
|
||||
RuboCop::Cop::Lint::UnreachableLoop::CONTINUE_KEYWORDS = T.let(T.unsafe(nil), Array)
|
||||
|
||||
RuboCop::Cop::Lint::UnreachableLoop::MSG = T.let(T.unsafe(nil), String)
|
||||
|
||||
module RuboCop::Cop::Lint::UnusedArgument
|
||||
@ -5652,6 +5720,7 @@ class RuboCop::Cop::Lint::UnusedBlockArgument < ::RuboCop::Cop::Base
|
||||
def message_for_lambda(variable, all_arguments); end
|
||||
def message_for_normal_block(variable, all_arguments); end
|
||||
def message_for_underscore_prefix(variable); end
|
||||
def used_block_local?(variable); end
|
||||
def variable_type(variable); end
|
||||
|
||||
class << self
|
||||
@ -7518,9 +7587,9 @@ class RuboCop::Cop::Style::ClassAndModuleChildren < ::RuboCop::Cop::Base
|
||||
def compact_node_name?(node); end
|
||||
def indent_width; end
|
||||
def leading_spaces(node); end
|
||||
def needs_compacting?(body); end
|
||||
def nest_definition(corrector, node); end
|
||||
def nest_or_compact(corrector, node); end
|
||||
def one_child?(body); end
|
||||
def remove_end(corrector, body); end
|
||||
def replace_namespace_keyword(corrector, node); end
|
||||
def split_on_double_colon(corrector, node, padding); end
|
||||
@ -9439,8 +9508,6 @@ end
|
||||
|
||||
class RuboCop::Cop::Style::NegatedIfElseCondition < ::RuboCop::Cop::Base
|
||||
include(::RuboCop::Cop::RangeHelp)
|
||||
include(::RuboCop::Cop::VisibilityHelp)
|
||||
include(::RuboCop::Cop::CommentsHelp)
|
||||
extend(::RuboCop::Cop::AutoCorrector)
|
||||
|
||||
def double_negation?(param0 = T.unsafe(nil)); end
|
||||
@ -9451,9 +9518,10 @@ class RuboCop::Cop::Style::NegatedIfElseCondition < ::RuboCop::Cop::Base
|
||||
|
||||
def correct_negated_condition(corrector, node); end
|
||||
def corrected_ancestor?(node); end
|
||||
def else_range(node); end
|
||||
def if_else?(node); end
|
||||
def if_range(node); end
|
||||
def negated_condition?(node); end
|
||||
def node_with_comments(node); end
|
||||
def swap_branches(corrector, node); end
|
||||
|
||||
class << self
|
||||
@ -10820,6 +10888,7 @@ class RuboCop::Cop::Style::SingleLineMethods < ::RuboCop::Cop::Base
|
||||
def each_part(body); end
|
||||
def method_body_source(method_body); end
|
||||
def move_comment(node, corrector); end
|
||||
def require_parentheses?(method_body); end
|
||||
end
|
||||
|
||||
RuboCop::Cop::Style::SingleLineMethods::MSG = T.let(T.unsafe(nil), String)
|
||||
@ -10851,6 +10920,7 @@ class RuboCop::Cop::Style::SoleNestedConditional < ::RuboCop::Cop::Base
|
||||
def correct_for_basic_condition_style(corrector, node, if_branch, and_operator); end
|
||||
def correct_for_comment(corrector, node, if_branch); end
|
||||
def correct_for_guard_condition_style(corrector, node, if_branch, and_operator); end
|
||||
def correct_from_unless_to_if(corrector, node); end
|
||||
def correct_outer_condition(corrector, condition); end
|
||||
def offending_branch?(branch); end
|
||||
def replacement_condition(and_operator, condition); end
|
||||
@ -11939,6 +12009,13 @@ class RuboCop::Cop::VariableForce::Branch::Case < ::RuboCop::Cop::VariableForce:
|
||||
def when_clause?; end
|
||||
end
|
||||
|
||||
class RuboCop::Cop::VariableForce::Branch::CaseMatch < ::RuboCop::Cop::VariableForce::Branch::Base
|
||||
def always_run?; end
|
||||
def else_body?; end
|
||||
def in_pattern?; end
|
||||
def target?; end
|
||||
end
|
||||
|
||||
class RuboCop::Cop::VariableForce::Branch::Ensure < ::RuboCop::Cop::VariableForce::Branch::Base
|
||||
include(::RuboCop::Cop::VariableForce::Branch::ExceptionHandler)
|
||||
|
||||
@ -12982,6 +13059,7 @@ class RuboCop::TargetFinder
|
||||
def ruby_filenames; end
|
||||
def ruby_interpreters(file); end
|
||||
def stdin?; end
|
||||
def symlink_excluded_or_infinite_loop?(base_dir, current_dir, exclude_pattern, flags); end
|
||||
def target_files_in_dir(base_dir = T.unsafe(nil)); end
|
||||
def to_inspect?(file, hidden_files, base_dir_config); end
|
||||
def wanted_dir_patterns(base_dir, exclude_pattern, flags); end
|
@ -79,9 +79,9 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rspec-wait-0.0.9/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-ast-1.5.0/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-progressbar-1.11.0/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/unicode-display_width-2.0.0/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-1.13.0/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-1.14.0/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-performance-1.11.3/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rails-2.10.0/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rails-2.10.1/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rspec-2.3.0/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-sorbet-0.6.1/lib"
|
||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-macho-2.5.0/lib"
|
||||
|
@ -639,7 +639,7 @@ Rails/ReversibleMigrationMethodDefinition:
|
||||
Description: 'Checks whether the migration implements either a `change` method or both an `up` and a `down` method.'
|
||||
Enabled: false
|
||||
VersionAdded: '2.10'
|
||||
include:
|
||||
Include:
|
||||
- db/migrate/*.rb
|
||||
|
||||
Rails/SafeNavigation:
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user