Skip to content
Snippets Groups Projects
Unverified Commit 2f2df715 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #11325 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-rails-2.10.0

build(deps): bump rubocop-rails from 2.9.1 to 2.10.0 in /Library/Homebrew
parents 684505b5 efa27876
No related branches found
No related tags found
No related merge requests found
Showing
with 80 additions and 9 deletions
......@@ -30,7 +30,7 @@ GEM
hpricot (0.8.6)
http-cookie (1.0.3)
domain_name (~> 0.5)
i18n (1.8.9)
i18n (1.8.10)
concurrent-ruby (~> 1.0)
mechanize (2.8.0)
addressable (~> 2.7)
......@@ -123,10 +123,10 @@ GEM
rubocop-performance (1.11.1)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
rubocop-rails (2.9.1)
rubocop-rails (2.10.0)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 0.90.0, < 2.0)
rubocop (>= 1.7.0, < 2.0)
rubocop-rspec (2.3.0)
rubocop (~> 1.0)
rubocop-ast (>= 1.1.0)
......
# 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
......
# 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)
......
......@@ -4,7 +4,7 @@ ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'
ruby_version = RbConfig::CONFIG["ruby_version"]
path = File.expand_path('..', __FILE__)
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/concurrent-ruby-1.1.8/lib/concurrent-ruby"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/i18n-1.8.9/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/i18n-1.8.10/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/minitest-5.14.4/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/tzinfo-2.0.4/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/zeitwerk-2.4.2/lib"
......@@ -81,7 +81,7 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/ruby-progressbar-1.11
$:.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-performance-1.11.1/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rails-2.9.1/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rubocop-rails-2.10.0/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"
......
......@@ -49,7 +49,7 @@ module I18n
catch(:exception) do
result = super(fallback, key, fallback_options)
unless result.nil?
on_fallback(locale, fallback, key, options) if locale != fallback
on_fallback(locale, fallback, key, options) if locale.to_s != fallback.to_s
return result
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment