diff --git a/Gemfile.lock b/Gemfile.lock index 287a63855..f1e0b1502 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -290,21 +290,22 @@ GEM rack (~> 2.0) redis (>= 4.2.0) smart_properties (1.17.0) - sorbet (0.5.10151) - sorbet-static (= 0.5.10151) - sorbet-runtime (0.5.10151) - sorbet-static (0.5.10151-universal-darwin-14) - sorbet-static (0.5.10151-universal-darwin-15) - sorbet-static (0.5.10151-universal-darwin-16) - sorbet-static (0.5.10151-universal-darwin-17) - sorbet-static (0.5.10151-universal-darwin-18) - sorbet-static (0.5.10151-universal-darwin-19) - sorbet-static (0.5.10151-universal-darwin-20) - sorbet-static (0.5.10151-universal-darwin-21) - sorbet-static (0.5.10151-x86_64-linux) - sorbet-static-and-runtime (0.5.10151) - sorbet (= 0.5.10151) - sorbet-runtime (= 0.5.10151) + sorbet (0.5.10346) + sorbet-static (= 0.5.10346) + sorbet-runtime (0.5.10346) + sorbet-static (0.5.10346-universal-darwin-14) + sorbet-static (0.5.10346-universal-darwin-15) + sorbet-static (0.5.10346-universal-darwin-16) + sorbet-static (0.5.10346-universal-darwin-17) + sorbet-static (0.5.10346-universal-darwin-18) + sorbet-static (0.5.10346-universal-darwin-19) + sorbet-static (0.5.10346-universal-darwin-20) + sorbet-static (0.5.10346-universal-darwin-21) + sorbet-static (0.5.10346-universal-darwin-22) + sorbet-static (0.5.10346-x86_64-linux) + sorbet-static-and-runtime (0.5.10346) + sorbet (= 0.5.10346) + sorbet-runtime (= 0.5.10346) spoom (1.1.11) sorbet (>= 0.5.9204) sorbet-runtime (>= 0.5.9204) diff --git a/lib/tapioca/commands/annotations.rb b/lib/tapioca/commands/annotations.rb index f2b0d15fa..3d75f2502 100644 --- a/lib/tapioca/commands/annotations.rb +++ b/lib/tapioca/commands/annotations.rb @@ -111,7 +111,9 @@ def fetch_annotations(gem_names) fetchable_gems = T.let(Hash.new { |h, k| h[k] = [] }, T::Hash[String, T::Array[String]]) gem_names.each_with_object(fetchable_gems) do |gem_name, hash| - @indexes.each { |uri, index| hash[gem_name] << uri if index.has_gem?(gem_name) } + @indexes.each do |uri, index| + T.must(hash[gem_name]) << uri if index.has_gem?(gem_name) + end end if fetchable_gems.empty? diff --git a/lib/tapioca/dsl/compiler.rb b/lib/tapioca/dsl/compiler.rb index 88b3ef71b..14c799aeb 100644 --- a/lib/tapioca/dsl/compiler.rb +++ b/lib/tapioca/dsl/compiler.rb @@ -52,7 +52,6 @@ def self.processable_constants T::Set[Module].new(gather_constants).compare_by_identity, T.nilable(T::Set[Module]) ) - T.must(@processable_constants) end # NOTE: This should eventually accept an `Error` object or `Exception` rather than simply a `String`. diff --git a/lib/tapioca/dsl/compilers/active_record_relations.rb b/lib/tapioca/dsl/compilers/active_record_relations.rb index 2ccf5d0c0..676d38274 100644 --- a/lib/tapioca/dsl/compilers/active_record_relations.rb +++ b/lib/tapioca/dsl/compilers/active_record_relations.rb @@ -216,7 +216,6 @@ def self.gather_constants sig { returns(String) } def constant_name @constant_name ||= T.let(T.must(qualified_name_of(constant)), T.nilable(String)) - T.must(@constant_name) end sig { params(method_name: Symbol).returns(T::Boolean) } diff --git a/lib/tapioca/rbi_ext/model.rb b/lib/tapioca/rbi_ext/model.rb index 511e16c47..b339501c8 100644 --- a/lib/tapioca/rbi_ext/model.rb +++ b/lib/tapioca/rbi_ext/model.rb @@ -101,7 +101,7 @@ def create_method(name, parameters: [], return_type: "T.untyped", class_method: sig { returns(T::Hash[String, RBI::Node]) } def nodes_cache - T.must(@nodes_cache ||= T.let({}, T.nilable(T::Hash[String, Node]))) + @nodes_cache ||= T.let({}, T.nilable(T::Hash[String, Node])) end sig { params(node: RBI::Node).returns(RBI::Node) } diff --git a/sorbet/rbi/gems/activesupport@7.0.3.rbi b/sorbet/rbi/gems/activesupport@7.0.3.rbi index 9b40ce4d1..aa8bbbcf8 100644 --- a/sorbet/rbi/gems/activesupport@7.0.3.rbi +++ b/sorbet/rbi/gems/activesupport@7.0.3.rbi @@ -50,7 +50,7 @@ module ActiveSupport def error_reporter=(_arg0); end # source://activesupport-7.0.3/lib/active_support/json/encoding.rb:8 - def escape_html_entities_in_json(*_arg0, &_arg1); end + def escape_html_entities_in_json(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/json/encoding.rb:8 def escape_html_entities_in_json=(arg); end @@ -61,7 +61,7 @@ module ActiveSupport def gem_version; end # source://activesupport-7.0.3/lib/active_support/json/encoding.rb:8 - def json_encoder(*_arg0, &_arg1); end + def json_encoder(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/json/encoding.rb:8 def json_encoder=(arg); end @@ -85,7 +85,7 @@ module ActiveSupport def test_parallelization_threshold=(val); end # source://activesupport-7.0.3/lib/active_support/json/encoding.rb:8 - def time_precision(*_arg0, &_arg1); end + def time_precision(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/json/encoding.rb:8 def time_precision=(arg); end @@ -97,7 +97,7 @@ module ActiveSupport def to_time_preserves_timezone=(value); end # source://activesupport-7.0.3/lib/active_support/json/encoding.rb:8 - def use_standard_json_time_format(*_arg0, &_arg1); end + def use_standard_json_time_format(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/json/encoding.rb:8 def use_standard_json_time_format=(arg); end @@ -2564,8 +2564,6 @@ class ActiveSupport::Callbacks::Filters::Environment < ::Struct # # @param value [Object] the value to set the attribute halted to. # @return [Object] the newly set value - # - # source://activesupport-7.0.3/lib/active_support/callbacks.rb:160 def halted=(_); end # Returns the value of attribute target @@ -2577,8 +2575,6 @@ class ActiveSupport::Callbacks::Filters::Environment < ::Struct # # @param value [Object] the value to set the attribute target to. # @return [Object] the newly set value - # - # source://activesupport-7.0.3/lib/active_support/callbacks.rb:160 def target=(_); end # Returns the value of attribute value @@ -2590,13 +2586,12 @@ class ActiveSupport::Callbacks::Filters::Environment < ::Struct # # @param value [Object] the value to set the attribute value to. # @return [Object] the newly set value - # - # source://activesupport-7.0.3/lib/active_support/callbacks.rb:160 def value=(_); end class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end @@ -3310,7 +3305,7 @@ class ActiveSupport::CurrentAttributes def instance; end # source://activesupport-7.0.3/lib/active_support/current_attributes.rb:147 - def reset(*_arg0, &_arg1); end + def reset(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/current_attributes.rb:149 def reset_all; end @@ -3321,7 +3316,7 @@ class ActiveSupport::CurrentAttributes def resets(&block); end # source://activesupport-7.0.3/lib/active_support/current_attributes.rb:147 - def set(*_arg0, &_arg1); end + def set(*_arg0, **_arg1, &_arg2); end private @@ -3335,7 +3330,7 @@ class ActiveSupport::CurrentAttributes def generated_attribute_methods; end # source://activesupport-7.0.3/lib/active_support/current_attributes.rb:171 - def method_missing(name, *args, &block); end + def method_missing(name, *args, **_arg2, &block); end # @return [Boolean] # @@ -3484,7 +3479,7 @@ end # source://activesupport-7.0.3/lib/active_support/core_ext/range/deprecated_conversions.rb:4 module ActiveSupport::DeprecatedRangeWithFormat # source://activesupport-7.0.3/lib/active_support/deprecation/method_wrappers.rb:63 - def to_default_s(*args, &block); end + def to_default_s(*args, **_arg1, &block); end # source://activesupport-7.0.3/lib/active_support/core_ext/range/deprecated_conversions.rb:6 def to_s(format = T.unsafe(nil)); end @@ -3530,25 +3525,25 @@ class ActiveSupport::Deprecation class << self # source://activesupport-7.0.3/lib/active_support/deprecation/instance_delegator.rb:21 - def allow(*_arg0, &_arg1); end + def allow(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/deprecation/instance_delegator.rb:21 - def behavior(*_arg0, &_arg1); end + def behavior(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/deprecation/instance_delegator.rb:21 def behavior=(arg); end # source://activesupport-7.0.3/lib/active_support/deprecation/instance_delegator.rb:21 - def debug(*_arg0, &_arg1); end + def debug(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/deprecation/instance_delegator.rb:21 def debug=(arg); end # source://activesupport-7.0.3/lib/active_support/deprecation/instance_delegator.rb:21 - def deprecate_methods(*_arg0, &_arg1); end + def deprecate_methods(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/deprecation/instance_delegator.rb:21 - def deprecation_horizon(*_arg0, &_arg1); end + def deprecation_horizon(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/deprecation/instance_delegator.rb:21 def deprecation_horizon=(arg); end @@ -3557,28 +3552,28 @@ class ActiveSupport::Deprecation def deprecation_warning(deprecated_method_name, message = T.unsafe(nil), caller_backtrace = T.unsafe(nil)); end # source://activesupport-7.0.3/lib/active_support/deprecation/instance_delegator.rb:21 - def disallowed_behavior(*_arg0, &_arg1); end + def disallowed_behavior(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/deprecation/instance_delegator.rb:21 def disallowed_behavior=(arg); end # source://activesupport-7.0.3/lib/active_support/deprecation/instance_delegator.rb:21 - def disallowed_warnings(*_arg0, &_arg1); end + def disallowed_warnings(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/deprecation/instance_delegator.rb:21 def disallowed_warnings=(arg); end # source://activesupport-7.0.3/lib/active_support/deprecation/instance_delegator.rb:21 - def gem_name(*_arg0, &_arg1); end + def gem_name(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/deprecation/instance_delegator.rb:21 def gem_name=(arg); end # source://activesupport-7.0.3/lib/active_support/deprecation/instance_delegator.rb:21 - def silence(*_arg0, &_arg1); end + def silence(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/deprecation/instance_delegator.rb:21 - def silenced(*_arg0, &_arg1); end + def silenced(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/deprecation/instance_delegator.rb:21 def silenced=(arg); end @@ -3739,7 +3734,7 @@ class ActiveSupport::Deprecation::DeprecatedConstantProxy < ::Module def class; end # source://activesupport-7.0.3/lib/active_support/deprecation/proxy_wrappers.rb:150 - def hash(*_arg0, &_arg1); end + def hash(*_arg0, **_arg1, &_arg2); end # Don't give a deprecation warning on inspect since test/unit and error # logs rely on it for diagnostics. @@ -3748,13 +3743,13 @@ class ActiveSupport::Deprecation::DeprecatedConstantProxy < ::Module def inspect; end # source://activesupport-7.0.3/lib/active_support/deprecation/proxy_wrappers.rb:150 - def instance_methods(*_arg0, &_arg1); end + def instance_methods(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/deprecation/proxy_wrappers.rb:150 - def name(*_arg0, &_arg1); end + def name(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/deprecation/proxy_wrappers.rb:150 - def respond_to?(*_arg0, &_arg1); end + def respond_to?(*_arg0, **_arg1, &_arg2); end private @@ -4107,84 +4102,38 @@ class ActiveSupport::DeprecationException < ::StandardError; end # # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:9 module ActiveSupport::DescendantsTracker - # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:170 + # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:88 def descendants; end - # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:158 + # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:92 def direct_descendants; end - # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:153 - def inherited(base); end - - # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:166 + # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:82 def subclasses; end class << self - # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:118 + # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:66 def clear(classes); end - # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:112 + # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:62 def descendants(klass); end # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:11 def direct_descendants(klass); end - # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:103 + # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:50 def disable_clear!; end # @return [Boolean] # - # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:132 + # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:77 def native?; end - # This is the only method that is not thread safe, but is only ever called - # during the eager loading phase. - # - # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:138 - def store_inherited(klass, descendant); end - - # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:107 + # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:58 def subclasses(klass); end - - private - - # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:143 - def accumulate_descendants(klass, acc); end end end -# DescendantsArray is an array that contains weak references to classes. -# -# source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:175 -class ActiveSupport::DescendantsTracker::DescendantsArray - include ::Enumerable - - # @return [DescendantsArray] a new instance of DescendantsArray - # - # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:178 - def initialize; end - - # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:186 - def <<(klass); end - - # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:204 - def cleanup!; end - - # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:190 - def each; end - - # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:200 - def refs_size; end - - # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:208 - def reject!; end - - private - - # source://activesupport-7.0.3/lib/active_support/descendants_tracker.rb:182 - def initialize_copy(orig); end -end - # source://activesupport-7.0.3/lib/active_support/digest.rb:6 class ActiveSupport::Digest class << self @@ -4737,13 +4686,13 @@ class ActiveSupport::Duration::Scalar < ::Numeric def coerce(other); end # source://activesupport-7.0.3/lib/active_support/duration.rb:16 - def to_f(*_arg0, &_arg1); end + def to_f(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/duration.rb:16 - def to_i(*_arg0, &_arg1); end + def to_i(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/duration.rb:16 - def to_s(*_arg0, &_arg1); end + def to_s(*_arg0, **_arg1, &_arg2); end # Returns the value of attribute value. # @@ -4793,16 +4742,16 @@ class ActiveSupport::EncryptedConfiguration < ::ActiveSupport::EncryptedFile def initialize(config_path:, key_path:, env_key:, raise_if_missing_key:); end # source://activesupport-7.0.3/lib/active_support/encrypted_configuration.rb:11 - def [](*_arg0, &_arg1); end + def [](*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/encrypted_configuration.rb:32 def config; end # source://activesupport-7.0.3/lib/active_support/encrypted_configuration.rb:11 - def fetch(*_arg0, &_arg1); end + def fetch(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/core_ext/module/delegation.rb:302 - def method_missing(method, *args, &block); end + def method_missing(method, *args, **_arg2, &block); end # Allow a config to be started without a file present # @@ -5040,14 +4989,8 @@ class ActiveSupport::ErrorReporter # source://activesupport-7.0.3/lib/active_support/error_reporter.rb:95 def report(error, handled:, severity: T.unsafe(nil), context: T.unsafe(nil)); end - # Update the execution context that is accessible to error subscribers - # - # Rails.error.set_context(section: "checkout", user_id: @user.id) - # - # See +ActiveSupport::ExecutionContext.set+ - # # source://activesupport-7.0.3/lib/active_support/error_reporter.rb:88 - def set_context(*_arg0, &_arg1); end + def set_context(*_arg0, **_arg1, &_arg2); end # Register a new error subscriber. The subscriber must respond to # @@ -5224,13 +5167,12 @@ class ActiveSupport::ExecutionWrapper::CompleteHook < ::Struct # # @param value [Object] the value to set the attribute hook to. # @return [Object] the newly set value - # - # source://activesupport-7.0.3/lib/active_support/execution_wrapper.rb:33 def hook=(_); end class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end @@ -5253,13 +5195,12 @@ class ActiveSupport::ExecutionWrapper::RunHook < ::Struct # # @param value [Object] the value to set the attribute hook to. # @return [Object] the newly set value - # - # source://activesupport-7.0.3/lib/active_support/execution_wrapper.rb:26 def hook=(_); end class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end @@ -5381,11 +5322,13 @@ end # source://activesupport-7.0.3/lib/active_support/fork_tracker.rb:15 module ActiveSupport::ForkTracker::CoreExt # source://activesupport-7.0.3/lib/active_support/fork_tracker.rb:16 - def fork(*_arg0, &_arg1); end + def fork(*_arg0, **_arg1, &_arg2); end end # source://activesupport-7.0.3/lib/active_support/fork_tracker.rb:31 -module ActiveSupport::ForkTracker::CoreExtPrivate; end +module ActiveSupport::ForkTracker::CoreExtPrivate + include ::ActiveSupport::ForkTracker::CoreExt +end # source://activesupport-7.0.3/lib/active_support/fork_tracker.rb:5 module ActiveSupport::ForkTracker::ModernCoreExt @@ -7703,13 +7646,13 @@ class ActiveSupport::Multibyte::Chars def initialize(string); end # source://activesupport-7.0.3/lib/active_support/multibyte/chars.rb:51 - def <=>(*_arg0, &_arg1); end + def <=>(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/multibyte/chars.rb:51 - def =~(*_arg0, &_arg1); end + def =~(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/multibyte/chars.rb:51 - def acts_like_string?(*_arg0, &_arg1); end + def acts_like_string?(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/multibyte/chars.rb:159 def as_json(options = T.unsafe(nil)); end @@ -7748,7 +7691,7 @@ class ActiveSupport::Multibyte::Chars def limit(limit); end # source://activesupport-7.0.3/lib/active_support/multibyte/chars.rb:51 - def match?(*_arg0, &_arg1); end + def match?(*_arg0, **_arg1, &_arg2); end # Forward all undefined methods to the wrapped string. # @@ -8282,10 +8225,10 @@ class ActiveSupport::Notifications::Fanout # source://activesupport-7.0.3/lib/active_support/notifications/fanout.rb:117 def listening?(name); end - # source://RUBY_ROOT/mutex_m.rb:92 + # source://RUBY_ROOT/mutex_m.rb:93 def lock; end - # source://RUBY_ROOT/mutex_m.rb:82 + # source://RUBY_ROOT/mutex_m.rb:83 def locked?; end # source://activesupport-7.0.3/lib/active_support/notifications/fanout.rb:79 @@ -8300,13 +8243,13 @@ class ActiveSupport::Notifications::Fanout # source://activesupport-7.0.3/lib/active_support/notifications/fanout.rb:34 def subscribe(pattern = T.unsafe(nil), callable = T.unsafe(nil), monotonic: T.unsafe(nil), &block); end - # source://RUBY_ROOT/mutex_m.rb:77 + # source://RUBY_ROOT/mutex_m.rb:78 def synchronize(&block); end - # source://RUBY_ROOT/mutex_m.rb:87 + # source://RUBY_ROOT/mutex_m.rb:88 def try_lock; end - # source://RUBY_ROOT/mutex_m.rb:97 + # source://RUBY_ROOT/mutex_m.rb:98 def unlock; end # source://activesupport-7.0.3/lib/active_support/notifications/fanout.rb:51 @@ -9647,7 +9590,7 @@ module ActiveSupport::PerThreadRegistry private # source://activesupport-7.0.3/lib/active_support/per_thread_registry.rb:55 - def method_missing(name, *args, &block); end + def method_missing(name, *args, **_arg2, &block); end class << self # @private @@ -9973,6 +9916,11 @@ end # source://activesupport-7.0.3/lib/active_support/ruby_features.rb:4 module ActiveSupport::RubyFeatures; end +# RUBY_VERSION >= "3.1" +# +# source://activesupport-7.0.3/lib/active_support/ruby_features.rb:5 +ActiveSupport::RubyFeatures::CLASS_SUBCLASSES = T.let(T.unsafe(nil), TrueClass) + # source://activesupport-7.0.3/lib/active_support/core_ext/string/output_safety.rb:162 class ActiveSupport::SafeBuffer < ::String # @return [SafeBuffer] a new instance of SafeBuffer @@ -10453,16 +10401,16 @@ module ActiveSupport::TaggedLogging def broadcast_to(other_logger); end # source://activesupport-7.0.3/lib/active_support/tagged_logging.rb:96 - def clear_tags!(*_arg0, &_arg1); end + def clear_tags!(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/tagged_logging.rb:123 def flush; end # source://activesupport-7.0.3/lib/active_support/tagged_logging.rb:96 - def pop_tags(*_arg0, &_arg1); end + def pop_tags(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/tagged_logging.rb:96 - def push_tags(*_arg0, &_arg1); end + def push_tags(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/tagged_logging.rb:112 def tagged(*tags); end @@ -11377,8 +11325,6 @@ class ActiveSupport::Testing::SimpleStubs::Stub < ::Struct # # @param value [Object] the value to set the attribute method_name to. # @return [Object] the newly set value - # - # source://activesupport-7.0.3/lib/active_support/testing/time_helpers.rb:11 def method_name=(_); end # Returns the value of attribute object @@ -11390,8 +11336,6 @@ class ActiveSupport::Testing::SimpleStubs::Stub < ::Struct # # @param value [Object] the value to set the attribute object to. # @return [Object] the newly set value - # - # source://activesupport-7.0.3/lib/active_support/testing/time_helpers.rb:11 def object=(_); end # Returns the value of attribute original_method @@ -11403,13 +11347,12 @@ class ActiveSupport::Testing::SimpleStubs::Stub < ::Struct # # @param value [Object] the value to set the attribute original_method to. # @return [Object] the newly set value - # - # source://activesupport-7.0.3/lib/active_support/testing/time_helpers.rb:11 def original_method=(_); end class << self def [](*_arg0); end def inspect; end + def keyword_init?; end def members; end def new(*_arg0); end end @@ -12665,10 +12608,10 @@ end # source://activesupport-7.0.3/lib/active_support/core_ext/object/try.rb:6 module ActiveSupport::Tryable # source://activesupport-7.0.3/lib/active_support/core_ext/object/try.rb:7 - def try(*args, &block); end + def try(*args, **_arg1, &block); end # source://activesupport-7.0.3/lib/active_support/core_ext/object/try.rb:20 - def try!(*args, &block); end + def try!(*args, **_arg1, &block); end end # source://activesupport-7.0.3/lib/active_support/gem_version.rb:9 @@ -12787,7 +12730,7 @@ module ActiveSupport::XmlMini def depth=(_arg0); end # source://activesupport-7.0.3/lib/active_support/xml_mini.rb:95 - def parse(*_arg0, &_arg1); end + def parse(*_arg0, **_arg1, &_arg2); end # source://activesupport-7.0.3/lib/active_support/xml_mini.rb:148 def rename_key(key, options = T.unsafe(nil)); end @@ -13507,19 +13450,8 @@ class Class < ::Module # class D < C; end # C.descendants # => [B, A, D] # - # source://activesupport-7.0.3/lib/active_support/core_ext/class/subclasses.rb:24 + # source://activesupport-7.0.3/lib/active_support/core_ext/class/subclasses.rb:20 def descendants; end - - # Returns an array with the direct children of +self+. - # - # class Foo; end - # class Bar < Foo; end - # class Baz < Bar; end - # - # Foo.subclasses # => [Bar] - # - # source://activesupport-7.0.3/lib/active_support/core_ext/class/subclasses.rb:38 - def subclasses; end end # source://activesupport-7.0.3/lib/active_support/core_ext/date/zones.rb:6 @@ -13816,6 +13748,9 @@ Date::DATE_FORMATS = T.let(T.unsafe(nil), Hash) # source://activesupport-7.0.3/lib/active_support/core_ext/date/deprecated_conversions.rb:6 Date::NOT_SET = T.let(T.unsafe(nil), Object) +# source://RUBY_ROOT/date.rb:7 +Date::VERSION = T.let(T.unsafe(nil), String) + # source://activesupport-7.0.3/lib/active_support/core_ext/date_and_time/compatibility.rb:5 module DateAndTime; end @@ -15820,6 +15755,63 @@ class IO def as_json(options = T.unsafe(nil)); end end +class IO::Buffer + include ::Comparable + + def initialize(*_arg0); end + + def <=>(_arg0); end + def clear(*_arg0); end + def copy(*_arg0); end + def empty?; end + def external?; end + def free; end + def get_string(*_arg0); end + def get_value(_arg0, _arg1); end + def hexdump; end + def inspect; end + def internal?; end + def locked; end + def locked?; end + def mapped?; end + def null?; end + def pread(_arg0, _arg1, _arg2); end + def pwrite(_arg0, _arg1, _arg2); end + def read(_arg0, _arg1); end + def readonly?; end + def resize(_arg0); end + def set_string(*_arg0); end + def set_value(_arg0, _arg1, _arg2); end + def size; end + def slice(_arg0, _arg1); end + def to_s; end + def transfer; end + def valid?; end + def write(_arg0, _arg1); end + + class << self + def for(_arg0); end + def map(*_arg0); end + end +end + +class IO::Buffer::AccessError < ::RuntimeError; end +class IO::Buffer::AllocationError < ::RuntimeError; end +IO::Buffer::BIG_ENDIAN = T.let(T.unsafe(nil), Integer) +IO::Buffer::DEFAULT_SIZE = T.let(T.unsafe(nil), Integer) +IO::Buffer::EXTERNAL = T.let(T.unsafe(nil), Integer) +IO::Buffer::HOST_ENDIAN = T.let(T.unsafe(nil), Integer) +IO::Buffer::INTERNAL = T.let(T.unsafe(nil), Integer) +class IO::Buffer::InvalidatedError < ::RuntimeError; end +IO::Buffer::LITTLE_ENDIAN = T.let(T.unsafe(nil), Integer) +IO::Buffer::LOCKED = T.let(T.unsafe(nil), Integer) +class IO::Buffer::LockedError < ::RuntimeError; end +IO::Buffer::MAPPED = T.let(T.unsafe(nil), Integer) +IO::Buffer::NETWORK_ENDIAN = T.let(T.unsafe(nil), Integer) +IO::Buffer::PAGE_SIZE = T.let(T.unsafe(nil), Integer) +IO::Buffer::PRIVATE = T.let(T.unsafe(nil), Integer) +IO::Buffer::READONLY = T.let(T.unsafe(nil), Integer) + class IO::ConsoleMode def echo=(_arg0); end def raw(*_arg0); end @@ -15858,6 +15850,9 @@ class IPAddr def as_json(options = T.unsafe(nil)); end end +# source://RUBY_ROOT/ipaddr.rb:43 +IPAddr::VERSION = T.let(T.unsafe(nil), String) + # source://activesupport-7.0.3/lib/active_support/core_ext/integer/time.rb:6 class Integer < ::Numeric include ::ActiveSupport::NumericWithFormat @@ -15942,9 +15937,6 @@ module Kernel # source://activesupport-7.0.3/lib/active_support/core_ext/kernel/reporting.rb:20 def enable_warnings(&block); end - # source://activesupport-7.0.3/lib/active_support/fork_tracker.rb:16 - def fork(*_arg0, &_arg1); end - # Sets $VERBOSE to +nil+ for the duration of the block and back to its original # value afterwards. # @@ -17095,6 +17087,7 @@ Module::RUBY_RESERVED_KEYWORDS = T.let(T.unsafe(nil), Array) # source://activesupport-7.0.3/lib/active_support/core_ext/name_error.rb:3 class NameError < ::StandardError + include ::ErrorHighlight::CoreExt include ::DidYouMean::Correctable # Extract the name of the missing constant from the exception message. @@ -17429,8 +17422,6 @@ class Object < ::BasicObject include ::ActiveSupport::ToJsonWithActiveSupportEncoder include ::ActiveSupport::Dependencies::RequireDependency include ::Kernel - include ::ActiveSupport::ForkTracker::CoreExt - include ::ActiveSupport::ForkTracker::CoreExtPrivate include ::ActiveSupport::Tryable # Provides a way to check whether some class acts like some other class based on the existence of @@ -17702,9 +17693,11 @@ class Pathname end module Process + extend ::ActiveSupport::ForkTracker::ModernCoreExt + class << self - # source://activesupport-7.0.3/lib/active_support/fork_tracker.rb:16 - def fork(*_arg0, &_arg1); end + # source://activesupport-7.0.3/lib/active_support/fork_tracker.rb:6 + def _fork; end end end @@ -18533,20 +18526,11 @@ class Struct def as_json(options = T.unsafe(nil)); end end -# source://RUBY_ROOT/reline/line_editor.rb:50 -Struct::CompletionJourneyData = Struct - Struct::Group = Etc::Group # source://nokogiri-1.13.6-arm64-darwin/lib/nokogiri/html4/element_description_defaults.rb:11 Struct::HTMLElementDescription = Struct -# source://RUBY_ROOT/reline.rb:16 -Struct::Key = Struct - -# source://RUBY_ROOT/reline/line_editor.rb:51 -Struct::MenuInfo = Struct - Struct::Passwd = Etc::Passwd # source://activesupport-7.0.3/lib/active_support/core_ext/object/json.rb:98