update gems, sorbet
This commit is contained in:
@@ -7,7 +7,9 @@
|
||||
--enable-experimental-requires-ancestor
|
||||
--ignore=tmp/
|
||||
--ignore=vendor/
|
||||
--ignore=gems/rb-bsdiff
|
||||
--ignore=gems/has_aux_table/sorbet
|
||||
--ignore=gems/has_aux_table/spec
|
||||
--ignore=gems/has_aux_table/demo_functionality.rb
|
||||
--ignore=.devcontainer
|
||||
--suppress-payload-superclass-redefinition-for=Net::IMAP::Atom
|
||||
--suppress-payload-superclass-redefinition-for=Net::IMAP::Literal
|
||||
|
||||
@@ -33,7 +33,7 @@ module Google::Protobuf
|
||||
end
|
||||
end
|
||||
|
||||
# source://google-protobuf//lib/google/protobuf/message_exts.rb#29
|
||||
# source://google-protobuf//lib/google/protobuf/message_exts.rb#33
|
||||
class Google::Protobuf::AbstractMessage
|
||||
include ::Google::Protobuf::MessageExts
|
||||
extend ::Google::Protobuf::MessageExts::ClassMethods
|
||||
@@ -82,6 +82,7 @@ class Google::Protobuf::Descriptor
|
||||
def msgclass; end
|
||||
def name; end
|
||||
def options; end
|
||||
def to_proto; end
|
||||
end
|
||||
|
||||
class Google::Protobuf::DescriptorPool
|
||||
@@ -109,6 +110,7 @@ class Google::Protobuf::EnumDescriptor
|
||||
def lookup_value(_arg0); end
|
||||
def name; end
|
||||
def options; end
|
||||
def to_proto; end
|
||||
end
|
||||
|
||||
# source://google-protobuf//lib/google/protobuf.rb#16
|
||||
@@ -149,11 +151,20 @@ class Google::Protobuf::FieldDescriptor
|
||||
def is_packed?; end
|
||||
|
||||
def json_name; end
|
||||
|
||||
# DEPRECATED: Use required? or repeated? instead.
|
||||
def label; end
|
||||
|
||||
def name; end
|
||||
def number; end
|
||||
def options; end
|
||||
|
||||
# @return [Boolean]
|
||||
def repeated?; end
|
||||
|
||||
# @return [Boolean]
|
||||
def required?; end
|
||||
|
||||
# call-seq:
|
||||
# FieldDescriptor.set(message, value)
|
||||
#
|
||||
@@ -167,6 +178,7 @@ class Google::Protobuf::FieldDescriptor
|
||||
|
||||
def submsg_name; end
|
||||
def subtype; end
|
||||
def to_proto; end
|
||||
def type; end
|
||||
end
|
||||
|
||||
@@ -176,6 +188,7 @@ class Google::Protobuf::FileDescriptor
|
||||
|
||||
def name; end
|
||||
def options; end
|
||||
def to_proto; end
|
||||
end
|
||||
|
||||
# source://google-protobuf//lib/google/protobuf.rb#46
|
||||
@@ -358,6 +371,9 @@ end
|
||||
module Google::Protobuf::MessageExts
|
||||
mixes_in_class_methods ::Google::Protobuf::MessageExts::ClassMethods
|
||||
|
||||
# source://google-protobuf//lib/google/protobuf/message_exts.rb#28
|
||||
def to_hash; end
|
||||
|
||||
# source://google-protobuf//lib/google/protobuf/message_exts.rb#20
|
||||
def to_json(options = T.unsafe(nil)); end
|
||||
|
||||
@@ -385,6 +401,7 @@ class Google::Protobuf::MethodDescriptor
|
||||
def options; end
|
||||
def output_type; end
|
||||
def server_streaming; end
|
||||
def to_proto; end
|
||||
end
|
||||
|
||||
class Google::Protobuf::OneofDescriptor
|
||||
@@ -396,6 +413,7 @@ class Google::Protobuf::OneofDescriptor
|
||||
def each; end
|
||||
def name; end
|
||||
def options; end
|
||||
def to_proto; end
|
||||
end
|
||||
|
||||
# source://google-protobuf//lib/google/protobuf.rb#20
|
||||
@@ -725,6 +743,7 @@ class Google::Protobuf::ServiceDescriptor
|
||||
def file_descriptor; end
|
||||
def name; end
|
||||
def options; end
|
||||
def to_proto; end
|
||||
end
|
||||
|
||||
# source://google-protobuf//lib/google/protobuf.rb#18
|
||||
@@ -1,559 +0,0 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for types exported from the `has_aux_table` gem.
|
||||
# Please instead update this file by running `bin/tapioca gem has_aux_table`.
|
||||
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/relation_extensions.rb#6
|
||||
class ActiveRecord::Associations::AssociationScope
|
||||
# source://activerecord/7.2.2.1/lib/active_record/associations/association_scope.rb#15
|
||||
def initialize(value_transformation); end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/relation_extensions.rb#7
|
||||
def get_chain(reflection, association, tracker); end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/relation_extensions.rb#40
|
||||
def scope(association); end
|
||||
|
||||
private
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/associations/association_scope.rb#124
|
||||
def add_constraints(scope, owner, chain); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/associations/association_scope.rb#161
|
||||
def apply_scope(scope, table, key, value); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/associations/association_scope.rb#169
|
||||
def eval_scope(reflection, scope, owner); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/associations/association_scope.rb#54
|
||||
def join(table, constraint); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/associations/association_scope.rb#58
|
||||
def last_chain_scope(scope, reflection, owner); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/associations/association_scope.rb#81
|
||||
def next_chain_scope(scope, reflection, next_reflection); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/associations/association_scope.rb#77
|
||||
def transform_value(value); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/associations/association_scope.rb#52
|
||||
def value_transformation; end
|
||||
|
||||
class << self
|
||||
# source://activerecord/7.2.2.1/lib/active_record/associations/association_scope.rb#10
|
||||
def create(&block); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/associations/association_scope.rb#34
|
||||
def get_bind_values(owner, chain); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/associations/association_scope.rb#6
|
||||
def scope(association); end
|
||||
end
|
||||
end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/migration_extensions.rb#119
|
||||
class ActiveRecord::Migration
|
||||
include ::HasAuxTable::MigrationExtensions
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#803
|
||||
def initialize(name = T.unsafe(nil), version = T.unsafe(nil)); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#1008
|
||||
def announce(message); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#1039
|
||||
def connection; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#1043
|
||||
def connection_pool; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#1064
|
||||
def copy(destination, sources, options = T.unsafe(nil)); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#790
|
||||
def disable_ddl_transaction; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#960
|
||||
def down; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#988
|
||||
def exec_migration(conn, direction); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#810
|
||||
def execution_strategy; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#1047
|
||||
def method_missing(method, *arguments, **_arg2, &block); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#967
|
||||
def migrate(direction); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#801
|
||||
def name; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#801
|
||||
def name=(_arg0); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#1131
|
||||
def next_migration_number(number); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#1122
|
||||
def proper_table_name(name, options = T.unsafe(nil)); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#912
|
||||
def reversible; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#855
|
||||
def revert(*migration_classes, &block); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#872
|
||||
def reverting?; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#940
|
||||
def run(*migration_classes); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#1016
|
||||
def say(message, subitem = T.unsafe(nil)); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#1022
|
||||
def say_with_time(message); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#1032
|
||||
def suppress_messages; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#1141
|
||||
def table_name_options(config = T.unsafe(nil)); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#954
|
||||
def up; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#931
|
||||
def up_only(&block); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#800
|
||||
def verbose; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#800
|
||||
def verbose=(val); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#801
|
||||
def version; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#801
|
||||
def version=(_arg0); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#1004
|
||||
def write(text = T.unsafe(nil)); end
|
||||
|
||||
private
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#1173
|
||||
def command_recorder; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#1149
|
||||
def execute_block; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#1157
|
||||
def format_arguments(arguments); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#1169
|
||||
def internal_option?(option_name); end
|
||||
|
||||
class << self
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#632
|
||||
def [](version); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#700
|
||||
def check_all_pending!; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#752
|
||||
def check_pending_migrations; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#636
|
||||
def current_version; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#691
|
||||
def delegate; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#691
|
||||
def delegate=(_arg0); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#692
|
||||
def disable_ddl_transaction; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#748
|
||||
def disable_ddl_transaction!; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#692
|
||||
def disable_ddl_transaction=(_arg0); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#620
|
||||
def inherited(subclass); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#716
|
||||
def load_schema_if_pending!; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#730
|
||||
def maintain_test_schema!; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#736
|
||||
def method_missing(name, *_arg1, **_arg2, &_arg3); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#740
|
||||
def migrate(direction); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#694
|
||||
def nearest_delegate; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#642
|
||||
def valid_version_format?(version_string); end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#800
|
||||
def verbose; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#800
|
||||
def verbose=(val); end
|
||||
|
||||
private
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#761
|
||||
def any_schema_needs_update?; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#767
|
||||
def db_configs_in_current_env; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#785
|
||||
def env; end
|
||||
|
||||
# source://activerecord/7.2.2.1/lib/active_record/migration.rb#771
|
||||
def pending_migrations; end
|
||||
end
|
||||
end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/version.rb#4
|
||||
module HasAuxTable
|
||||
extend ::ActiveSupport::Concern
|
||||
|
||||
mixes_in_class_methods ::HasAuxTable::ClassMethods
|
||||
end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/aux_table_config.rb#113
|
||||
class HasAuxTable::AuxTableConfig < ::T::Struct
|
||||
const :aux_table_name, ::Symbol
|
||||
const :aux_association_name, ::Symbol
|
||||
const :main_association_name, ::Symbol
|
||||
const :main_class, T.class_of(ActiveRecord::Base)
|
||||
const :aux_class, T.class_of(ActiveRecord::Base)
|
||||
const :foreign_key, T.any(::String, ::Symbol, T::Array[T.any(::String, ::Symbol)])
|
||||
const :primary_key, T.any(::String, ::Symbol, T::Array[T.any(::String, ::Symbol)])
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/aux_table_config.rb#130
|
||||
sig { returns(::HasAuxTable::ModelClassHelper) }
|
||||
def aux; end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/aux_table_config.rb#180
|
||||
sig do
|
||||
params(
|
||||
name: ::Symbol,
|
||||
value: T.untyped,
|
||||
block: T.proc.params(arel_attr: T.untyped, aux_bind: T.untyped).returns(::Arel::Nodes::Node)
|
||||
).returns(::Arel::Nodes::Node)
|
||||
end
|
||||
def aux_bind_attribute(name, value, &block); end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/aux_table_config.rb#156
|
||||
sig { params(main_instance: ::ActiveRecord::Base).returns(::ActiveRecord::Base) }
|
||||
def aux_model_for(main_instance); end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/aux_table_config.rb#188
|
||||
sig { params(method_name: ::Symbol).void }
|
||||
def define_aux_attribute_delegate(method_name); end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/aux_table_config.rb#125
|
||||
sig { returns(T.untyped) }
|
||||
def load_aux_schema; end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/aux_table_config.rb#142
|
||||
sig { returns(::HasAuxTable::ModelClassHelper) }
|
||||
def main; end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/aux_table_config.rb#204
|
||||
sig { params(conditions: T::Hash[::String, T.untyped]).returns(T::Hash[::String, T.untyped]) }
|
||||
def remap_conditions(conditions); end
|
||||
|
||||
private
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/aux_table_config.rb#213
|
||||
sig { returns(T::Set[::String]) }
|
||||
def aux_rejected_column_names; end
|
||||
|
||||
class << self
|
||||
# source://sorbet-runtime/0.5.12221/lib/types/struct.rb#13
|
||||
def inherited(s); end
|
||||
end
|
||||
end
|
||||
|
||||
# @abstract Subclasses must implement the `abstract` methods below.
|
||||
#
|
||||
# source://has_aux_table//lib/has_aux_table/migration_extensions.rb#16
|
||||
module HasAuxTable::AuxTableDefinition
|
||||
abstract!
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/migration_extensions.rb#28
|
||||
sig { params(aux_name: ::Symbol, options: T::Hash[::Symbol, T.untyped], block: T.untyped).void }
|
||||
def create_aux(aux_name, **options, &block); end
|
||||
|
||||
protected
|
||||
|
||||
# @abstract
|
||||
#
|
||||
# source://has_aux_table//lib/has_aux_table/migration_extensions.rb#39
|
||||
sig { abstract.returns(::Symbol) }
|
||||
def aux_base_table_name; end
|
||||
|
||||
# @abstract
|
||||
#
|
||||
# source://has_aux_table//lib/has_aux_table/migration_extensions.rb#35
|
||||
sig { abstract.returns(::ActiveRecord::Schema) }
|
||||
def schema; end
|
||||
|
||||
class << self
|
||||
# source://has_aux_table//lib/has_aux_table/migration_extensions.rb#49
|
||||
sig do
|
||||
params(
|
||||
table_definition: T.any(::ActiveRecord::ConnectionAdapters::Table, ::ActiveRecord::ConnectionAdapters::TableDefinition),
|
||||
schema: ::HasAuxTable::MigrationExtensions,
|
||||
aux_base_table_name: ::Symbol
|
||||
).returns(T.all(::HasAuxTable::AuxTableDefinition, T.any(::ActiveRecord::ConnectionAdapters::Table, ::ActiveRecord::ConnectionAdapters::TableDefinition)))
|
||||
end
|
||||
def augment(table_definition, schema, aux_base_table_name); end
|
||||
end
|
||||
end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table.rb#31
|
||||
module HasAuxTable::ClassMethods
|
||||
include ::HasAuxTable::RelationExtensions
|
||||
|
||||
requires_ancestor { T.class_of(ActiveRecord::Base) }
|
||||
|
||||
# Main DSL method for defining auxiliary tables
|
||||
#
|
||||
# source://has_aux_table//lib/has_aux_table.rb#54
|
||||
sig { params(aux_name: T.any(::String, ::Symbol)).returns(::HasAuxTable::AuxTableConfig) }
|
||||
def aux_table(aux_name); end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table.rb#43
|
||||
sig { params(column_name: T.any(::String, ::Symbol)).returns(T.nilable(::HasAuxTable::AuxTableConfig)) }
|
||||
def aux_table_for(column_name); end
|
||||
|
||||
private
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table.rb#214
|
||||
sig { params(load_schema_method: ::Method, config: ::HasAuxTable::AuxTableConfig).void }
|
||||
def aux_config_load_schema!(load_schema_method, config); end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table.rb#349
|
||||
sig { params(aux_table_name: ::Symbol, main_columns: T::Array[::String], aux_columns: T::Array[::String]).void }
|
||||
def check_for_overlapping_columns!(aux_table_name, main_columns, aux_columns); end
|
||||
|
||||
# Generate auxiliary model class dynamically
|
||||
#
|
||||
# source://has_aux_table//lib/has_aux_table.rb#89
|
||||
sig do
|
||||
params(
|
||||
aux_name: ::Symbol,
|
||||
foreign_key: T.any(::String, ::Symbol, T::Array[T.any(::String, ::Symbol)]),
|
||||
primary_key: T.any(::String, ::Symbol, T::Array[T.any(::String, ::Symbol)])
|
||||
).returns(::HasAuxTable::AuxTableConfig)
|
||||
end
|
||||
def generate_aux_config(aux_name, foreign_key: T.unsafe(nil), primary_key: T.unsafe(nil)); end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table.rb#257
|
||||
sig { params(config: ::HasAuxTable::AuxTableConfig).void }
|
||||
def setup_attribute_getter_setter_hooks!(config); end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table.rb#157
|
||||
sig { params(config: ::HasAuxTable::AuxTableConfig).void }
|
||||
def setup_attribute_types_hook!(config); end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table.rb#331
|
||||
sig { params(config: ::HasAuxTable::AuxTableConfig).void }
|
||||
def setup_attributes_hook!(config); end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table.rb#296
|
||||
sig { params(config: ::HasAuxTable::AuxTableConfig).void }
|
||||
def setup_changed_hook!(config); end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table.rb#368
|
||||
sig { params(config: ::HasAuxTable::AuxTableConfig).void }
|
||||
def setup_enum_hook!(config); end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table.rb#280
|
||||
sig { params(config: ::HasAuxTable::AuxTableConfig).void }
|
||||
def setup_initialize_hook!(config); end
|
||||
|
||||
# Hook into schema loading to generate attribute accessors when schema is loaded
|
||||
#
|
||||
# source://has_aux_table//lib/has_aux_table.rb#198
|
||||
sig { params(config: ::HasAuxTable::AuxTableConfig).void }
|
||||
def setup_load_schema_hook!(config); end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table.rb#314
|
||||
sig { params(config: ::HasAuxTable::AuxTableConfig).void }
|
||||
def setup_save_hook!(config); end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table.rb#411
|
||||
sig { params(config: ::HasAuxTable::AuxTableConfig).void }
|
||||
def setup_update_counter_hook!(config); end
|
||||
end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/key_type.rb#5
|
||||
HasAuxTable::KeyType = T.type_alias { T.any(::String, ::Symbol, T::Array[T.any(::String, ::Symbol)]) }
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/migration_extensions.rb#59
|
||||
module HasAuxTable::MigrationExtensions
|
||||
requires_ancestor { ActiveRecord::Migration }
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/migration_extensions.rb#87
|
||||
sig do
|
||||
params(
|
||||
name: ::Symbol,
|
||||
options: T::Hash[::Symbol, T.untyped],
|
||||
block: T.proc.params(table_definition: T.all(::HasAuxTable::AuxTableDefinition, T.any(::ActiveRecord::ConnectionAdapters::Table, ::ActiveRecord::ConnectionAdapters::TableDefinition))).void
|
||||
).void
|
||||
end
|
||||
def change_base_table(name, **options, &block); end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/migration_extensions.rb#102
|
||||
sig do
|
||||
params(
|
||||
base_table: ::Symbol,
|
||||
name: ::Symbol,
|
||||
options: T::Hash[::Symbol, T.untyped],
|
||||
block: T.proc.params(table_definition: T.all(::HasAuxTable::AuxTableDefinition, T.any(::ActiveRecord::ConnectionAdapters::Table, ::ActiveRecord::ConnectionAdapters::TableDefinition))).void
|
||||
).void
|
||||
end
|
||||
def create_aux_table(base_table, name, **options, &block); end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/migration_extensions.rb#72
|
||||
sig do
|
||||
params(
|
||||
name: ::Symbol,
|
||||
type: ::Symbol,
|
||||
options: T::Hash[::Symbol, T.untyped],
|
||||
block: T.proc.params(table_definition: T.all(::HasAuxTable::AuxTableDefinition, T.any(::ActiveRecord::ConnectionAdapters::Table, ::ActiveRecord::ConnectionAdapters::TableDefinition))).void
|
||||
).void
|
||||
end
|
||||
def create_base_table(name, type: T.unsafe(nil), **options, &block); end
|
||||
end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/aux_table_config.rb#5
|
||||
class HasAuxTable::ModelClassHelper < ::T::Struct
|
||||
const :klass, T.class_of(ActiveRecord::Base)
|
||||
const :rejected_column_names, T::Set[::String]
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/aux_table_config.rb#40
|
||||
sig { returns(T::Hash[::String, ::ActiveModel::Type]) }
|
||||
def attribute_types; end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/aux_table_config.rb#63
|
||||
sig { params(instance: ::ActiveRecord::Base).returns(T::Hash[::String, T.untyped]) }
|
||||
def attributes_on(instance); end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/aux_table_config.rb#17
|
||||
sig { returns(T::Array[::String]) }
|
||||
def column_names; end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/aux_table_config.rb#31
|
||||
sig { returns(T::Hash[::String, ::ActiveRecord::ConnectionAdapters::Column]) }
|
||||
def columns_hash; end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/aux_table_config.rb#49
|
||||
sig { returns(T::Hash[::String, ::ActiveModel::Attribute]) }
|
||||
def default_attributes; end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/aux_table_config.rb#12
|
||||
sig { params(name: T.any(::String, ::Symbol)).returns(T::Boolean) }
|
||||
def is_column?(name); end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/aux_table_config.rb#93
|
||||
sig do
|
||||
type_parameters(:K, :T)
|
||||
.params(
|
||||
hash: T::Hash[T.all(T.any(::String, ::Symbol), T.type_parameter(:K)), T.type_parameter(:T)]
|
||||
).returns([T::Hash[T.all(T.any(::String, ::Symbol), T.type_parameter(:K)), T.type_parameter(:T)], T::Hash[T.all(T.any(::String, ::Symbol), T.type_parameter(:K)), T.type_parameter(:T)]])
|
||||
end
|
||||
def partition_by_columns(hash); end
|
||||
|
||||
private
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/aux_table_config.rb#108
|
||||
sig do
|
||||
type_parameters(:T)
|
||||
.params(
|
||||
hash: T::Hash[::String, T.type_parameter(:T)]
|
||||
).returns(T::Hash[::String, T.type_parameter(:T)])
|
||||
end
|
||||
def slice_by_columns(hash); end
|
||||
|
||||
class << self
|
||||
# source://sorbet-runtime/0.5.12221/lib/types/struct.rb#13
|
||||
def inherited(s); end
|
||||
end
|
||||
end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/relation_extensions.rb#67
|
||||
module HasAuxTable::RelationExtensions
|
||||
# source://has_aux_table//lib/has_aux_table/relation_extensions.rb#77
|
||||
sig { params(aux_config: ::HasAuxTable::AuxTableConfig).void }
|
||||
def setup_main_class_extensions!(aux_config); end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/relation_extensions.rb#72
|
||||
sig { params(aux_config: ::HasAuxTable::AuxTableConfig).void }
|
||||
def setup_relation_extensions!(aux_config); end
|
||||
end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/relation_extensions.rb#69
|
||||
HasAuxTable::RelationExtensions::Util = HasAuxTable::Util
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/migration_extensions.rb#5
|
||||
HasAuxTable::TableDefinition = T.type_alias { T.any(::ActiveRecord::ConnectionAdapters::Table, ::ActiveRecord::ConnectionAdapters::TableDefinition) }
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/migration_extensions.rb#13
|
||||
HasAuxTable::TableDefinitionWithAux = T.type_alias { T.all(::HasAuxTable::AuxTableDefinition, T.any(::ActiveRecord::ConnectionAdapters::Table, ::ActiveRecord::ConnectionAdapters::TableDefinition)) }
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/util.rb#5
|
||||
module HasAuxTable::Util
|
||||
class << self
|
||||
# source://has_aux_table//lib/has_aux_table/util.rb#42
|
||||
sig { params(aux_config: ::HasAuxTable::AuxTableConfig).returns(T::Array[::String]) }
|
||||
def attributes_for_inspect(aux_config); end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/util.rb#63
|
||||
sig do
|
||||
type_parameters(:T)
|
||||
.params(
|
||||
instance: T.all(::Object, T.type_parameter(:T)),
|
||||
klass: T::Class[T.type_parameter(:T)]
|
||||
).void
|
||||
end
|
||||
def ensure_is_instance_of!(instance, klass); end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/util.rb#20
|
||||
sig do
|
||||
params(
|
||||
target: T.any(T.class_of(ActiveRecord::Base), T.class_of(ActiveRecord::Relation)),
|
||||
method_name: ::Symbol,
|
||||
is_instance_method: T::Boolean,
|
||||
hook_block: T.proc.params(args: T.untyped).void
|
||||
).void
|
||||
end
|
||||
def hook_method(target, method_name, is_instance_method, &hook_block); end
|
||||
end
|
||||
end
|
||||
|
||||
# source://has_aux_table//lib/has_aux_table/version.rb#5
|
||||
HasAuxTable::VERSION = T.let(T.unsafe(nil), String)
|
||||
9
sorbet/rbi/gems/language_server-protocol@3.17.0.5.rbi
generated
Normal file
9
sorbet/rbi/gems/language_server-protocol@3.17.0.5.rbi
generated
Normal file
@@ -0,0 +1,9 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for types exported from the `language_server-protocol` gem.
|
||||
# Please instead update this file by running `bin/tapioca gem language_server-protocol`.
|
||||
|
||||
|
||||
# THIS IS AN EMPTY RBI FILE.
|
||||
# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
|
||||
6978
sorbet/rbi/gems/rbs@3.9.4.rbi
generated
Normal file
6978
sorbet/rbi/gems/rbs@3.9.4.rbi
generated
Normal file
File diff suppressed because it is too large
Load Diff
15
sorbet/rbi/gems/ruby-lsp-rspec@0.1.26.rbi
generated
Normal file
15
sorbet/rbi/gems/ruby-lsp-rspec@0.1.26.rbi
generated
Normal file
@@ -0,0 +1,15 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for types exported from the `ruby-lsp-rspec` gem.
|
||||
# Please instead update this file by running `bin/tapioca gem ruby-lsp-rspec`.
|
||||
|
||||
|
||||
# source://ruby-lsp-rspec//lib/ruby_lsp_rspec/version.rb#4
|
||||
module RubyLsp; end
|
||||
|
||||
# source://ruby-lsp-rspec//lib/ruby_lsp_rspec/version.rb#5
|
||||
module RubyLsp::RSpec; end
|
||||
|
||||
# source://ruby-lsp-rspec//lib/ruby_lsp_rspec/version.rb#6
|
||||
RubyLsp::RSpec::VERSION = T.let(T.unsafe(nil), String)
|
||||
9
sorbet/rbi/gems/ruby-lsp@0.25.0.rbi
generated
Normal file
9
sorbet/rbi/gems/ruby-lsp@0.25.0.rbi
generated
Normal file
@@ -0,0 +1,9 @@
|
||||
# typed: true
|
||||
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for types exported from the `ruby-lsp` gem.
|
||||
# Please instead update this file by running `bin/tapioca gem ruby-lsp`.
|
||||
|
||||
|
||||
# THIS IS AN EMPTY RBI FILE.
|
||||
# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
|
||||
1692
sorbet/rbi/gems/sqlite3@1.7.3.rbi
generated
1692
sorbet/rbi/gems/sqlite3@1.7.3.rbi
generated
File diff suppressed because it is too large
Load Diff
6
sorbet/rbi/shims/sqlite3.rbi
Normal file
6
sorbet/rbi/shims/sqlite3.rbi
Normal file
@@ -0,0 +1,6 @@
|
||||
# typed: strict
|
||||
|
||||
module SQLite3
|
||||
class Database
|
||||
end
|
||||
end
|
||||
@@ -27,7 +27,6 @@ require "socket"
|
||||
require "sorbet-runtime"
|
||||
require "syntax_tree"
|
||||
require "timeout"
|
||||
require "xdiff/extension"
|
||||
require "rake/dsl_definition"
|
||||
|
||||
require "prometheus_exporter/client"
|
||||
|
||||
Reference in New Issue
Block a user