From efa278763e14229ea59f602aeb5cb9d9b4dc0561 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Wed, 5 May 2021 05:52:21 +0000 Subject: [PATCH] Update RBI files for rubocop-rails. --- .../gems/{i18n@1.8.9.rbi => i18n@1.8.10.rbi} | 2 +- ...ils@2.9.1.rbi => rubocop-rails@2.10.0.rbi} | 75 ++++++++++++++++++- 2 files changed, 74 insertions(+), 3 deletions(-) rename Library/Homebrew/sorbet/rbi/gems/{i18n@1.8.9.rbi => i18n@1.8.10.rbi} (99%) rename Library/Homebrew/sorbet/rbi/gems/{rubocop-rails@2.9.1.rbi => rubocop-rails@2.10.0.rbi} (95%) diff --git a/Library/Homebrew/sorbet/rbi/gems/i18n@1.8.9.rbi b/Library/Homebrew/sorbet/rbi/gems/i18n@1.8.10.rbi similarity index 99% rename from Library/Homebrew/sorbet/rbi/gems/i18n@1.8.9.rbi rename to Library/Homebrew/sorbet/rbi/gems/i18n@1.8.10.rbi index 25c418925c..c07fa2ae06 100644 --- a/Library/Homebrew/sorbet/rbi/gems/i18n@1.8.9.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/i18n@1.8.10.rbi @@ -1,6 +1,6 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `i18n` gem. -# Please instead update this file by running `tapioca sync`. +# Please instead update this file by running `bin/tapioca sync`. # typed: true diff --git a/Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.9.1.rbi b/Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.10.0.rbi similarity index 95% rename from Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.9.1.rbi rename to Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.10.0.rbi index b4394a7336..72141d3af9 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.9.1.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.10.0.rbi @@ -1,6 +1,6 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `rubocop-rails` gem. -# Please instead update this file by running `tapioca sync`. +# Please instead update this file by running `bin/tapioca sync`. # typed: true @@ -13,11 +13,13 @@ end module RuboCop::Cop::ActiveRecordHelper extend(::RuboCop::AST::NodePattern::Macros) + def active_record?(param0 = T.unsafe(nil)); end def external_dependency_checksum; end def find_belongs_to(param0); end def find_set_table_name(param0); end def foreign_key_of(belongs_to); end def in_where?(node); end + def inherit_active_record_base?(node); end def resolve_relation_into_column(name:, class_node:, table:); end def schema; end def table_name(class_node); end @@ -405,11 +407,14 @@ class RuboCop::Cop::Rails::ContentTag < ::RuboCop::Cop::Base extend(::RuboCop::Cop::AutoCorrector) extend(::RuboCop::Cop::TargetRailsVersion) + def on_new_investigation; end def on_send(node); end private + def allowed_argument?(argument); end def autocorrect(corrector, node); end + def corrected_ancestor?(node); end def correction_range(node); end def method_name?(node); end end @@ -513,6 +518,7 @@ RuboCop::Cop::Rails::DelegateAllowBlank::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Rails::DelegateAllowBlank::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) class RuboCop::Cop::Rails::DynamicFindBy < ::RuboCop::Cop::Base + include(::RuboCop::Cop::ActiveRecordHelper) extend(::RuboCop::Cop::AutoCorrector) def on_csend(node); end @@ -593,6 +599,21 @@ RuboCop::Cop::Rails::EnvironmentComparison::RESTRICT_ON_SEND = T.let(T.unsafe(ni RuboCop::Cop::Rails::EnvironmentComparison::SYM_MSG = T.let(T.unsafe(nil), String) +class RuboCop::Cop::Rails::EnvironmentVariableAccess < ::RuboCop::Cop::Base + def env_read?(param0); end + def env_write?(param0); end + def on_const(node); end + + private + + def allow_reads?; end + def allow_writes?; end +end + +RuboCop::Cop::Rails::EnvironmentVariableAccess::READ_MSG = T.let(T.unsafe(nil), String) + +RuboCop::Cop::Rails::EnvironmentVariableAccess::WRITE_MSG = T.let(T.unsafe(nil), String) + class RuboCop::Cop::Rails::Exit < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) @@ -677,6 +698,7 @@ RuboCop::Cop::Rails::FindById::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Rails::FindById::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) class RuboCop::Cop::Rails::FindEach < ::RuboCop::Cop::Base + include(::RuboCop::Cop::ActiveRecordHelper) extend(::RuboCop::Cop::AutoCorrector) def on_send(node); end @@ -702,17 +724,20 @@ RuboCop::Cop::Rails::HasAndBelongsToMany::RESTRICT_ON_SEND = T.let(T.unsafe(nil) class RuboCop::Cop::Rails::HasManyOrHasOneDependent < ::RuboCop::Cop::Base def active_resource_class?(param0); end + def association_extension_block?(param0 = T.unsafe(nil)); end def association_with_options?(param0 = T.unsafe(nil)); end def association_without_options?(param0 = T.unsafe(nil)); end def dependent_option?(param0 = T.unsafe(nil)); end def on_send(node); end def present_option?(param0 = T.unsafe(nil)); end + def readonly?(param0 = T.unsafe(nil)); end def with_options_block(param0 = T.unsafe(nil)); end private def active_resource?(node); end def contain_valid_options_in_with_options_block?(node); end + def readonly_model?(node); end def valid_options?(options); end def valid_options_in_with_options_block?(node); end end @@ -734,6 +759,7 @@ end RuboCop::Cop::Rails::HelperInstanceVariable::MSG = T.let(T.unsafe(nil), String) class RuboCop::Cop::Rails::HttpPositionalArguments < ::RuboCop::Cop::Base + include(::RuboCop::Cop::RangeHelp) extend(::RuboCop::Cop::AutoCorrector) extend(::RuboCop::Cop::TargetRailsVersion) @@ -747,6 +773,7 @@ class RuboCop::Cop::Rails::HttpPositionalArguments < ::RuboCop::Cop::Base def correction(node); end def correction_template(node); end def format_arg?(node); end + def highlight_range(node); end def needs_conversion?(data); end def special_keyword_arg?(node); end end @@ -1280,8 +1307,14 @@ class RuboCop::Cop::Rails::ReflectionClassName < ::RuboCop::Cop::Base def association_with_reflection(param0 = T.unsafe(nil)); end def on_send(node); end def reflection_class_name(param0 = T.unsafe(nil)); end + + private + + def reflection_class_value?(class_value); end end +RuboCop::Cop::Rails::ReflectionClassName::ALLOWED_REFLECTION_CLASS_TYPES = T.let(T.unsafe(nil), Array) + RuboCop::Cop::Rails::ReflectionClassName::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Rails::ReflectionClassName::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) @@ -1318,7 +1351,6 @@ class RuboCop::Cop::Rails::RelativeDateConstant < ::RuboCop::Cop::Base def on_masgn(node); end def on_or_asgn(node); end def relative_date?(param0 = T.unsafe(nil)); end - def relative_date_assignment?(param0 = T.unsafe(nil)); end def relative_date_or_assignment?(param0 = T.unsafe(nil)); end private @@ -1326,10 +1358,13 @@ class RuboCop::Cop::Rails::RelativeDateConstant < ::RuboCop::Cop::Base def autocorrect(corrector, node); end def message(method_name); end def offense_range(name, value); end + def relative_date_method?(method_name); end end RuboCop::Cop::Rails::RelativeDateConstant::MSG = T.let(T.unsafe(nil), String) +RuboCop::Cop::Rails::RelativeDateConstant::RELATIVE_DATE_METHODS = T.let(T.unsafe(nil), Array) + class RuboCop::Cop::Rails::RenderInline < ::RuboCop::Cop::Base def on_send(node); end def render_with_inline_option?(param0 = T.unsafe(nil)); end @@ -1373,6 +1408,17 @@ RuboCop::Cop::Rails::RequestReferer::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Rails::RequestReferer::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +class RuboCop::Cop::Rails::RequireDependency < ::RuboCop::Cop::Base + extend(::RuboCop::Cop::TargetRailsVersion) + + def on_send(node); end + def require_dependency_call?(param0 = T.unsafe(nil)); end +end + +RuboCop::Cop::Rails::RequireDependency::MSG = T.let(T.unsafe(nil), String) + +RuboCop::Cop::Rails::RequireDependency::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + class RuboCop::Cop::Rails::ReversibleMigration < ::RuboCop::Cop::Base def change_table_call(param0 = T.unsafe(nil)); end def drop_table_call(param0 = T.unsafe(nil)); end @@ -1403,6 +1449,15 @@ end RuboCop::Cop::Rails::ReversibleMigration::MSG = T.let(T.unsafe(nil), String) +class RuboCop::Cop::Rails::ReversibleMigrationMethodDefinition < ::RuboCop::Cop::Base + def change_method?(param0 = T.unsafe(nil)); end + def migration_class?(param0 = T.unsafe(nil)); end + def on_class(node); end + def up_and_down_methods?(param0 = T.unsafe(nil)); end +end + +RuboCop::Cop::Rails::ReversibleMigrationMethodDefinition::MSG = T.let(T.unsafe(nil), String) + class RuboCop::Cop::Rails::SafeNavigation < ::RuboCop::Cop::Base include(::RuboCop::Cop::RangeHelp) extend(::RuboCop::Cop::AutoCorrector) @@ -1414,6 +1469,10 @@ class RuboCop::Cop::Rails::SafeNavigation < ::RuboCop::Cop::Base def autocorrect(corrector, node); end def replacement(method, params); end + + class << self + def autocorrect_incompatible_with; end + end end RuboCop::Cop::Rails::SafeNavigation::MSG = T.let(T.unsafe(nil), String) @@ -1552,6 +1611,7 @@ class RuboCop::Cop::Rails::TimeZone < ::RuboCop::Cop::Base private def acceptable_methods(klass, method_name, node); end + def attach_timezone_specifier?(date); end def autocorrect(corrector, node); end def autocorrect_time_new(node, corrector); end def build_message(klass, method_name, node); end @@ -1582,6 +1642,17 @@ RuboCop::Cop::Rails::TimeZone::MSG_ACCEPTABLE = T.let(T.unsafe(nil), String) RuboCop::Cop::Rails::TimeZone::MSG_LOCALTIME = T.let(T.unsafe(nil), String) +RuboCop::Cop::Rails::TimeZone::TIMEZONE_SPECIFIER = T.let(T.unsafe(nil), Regexp) + +class RuboCop::Cop::Rails::TimeZoneAssignment < ::RuboCop::Cop::Base + def on_send(node); end + def time_zone_assignement?(param0 = T.unsafe(nil)); end +end + +RuboCop::Cop::Rails::TimeZoneAssignment::MSG = T.let(T.unsafe(nil), String) + +RuboCop::Cop::Rails::TimeZoneAssignment::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + class RuboCop::Cop::Rails::UniqBeforePluck < ::RuboCop::Cop::Base include(::RuboCop::Cop::ConfigurableEnforcedStyle) include(::RuboCop::Cop::RangeHelp)