diff --git a/Gemfile.lock b/Gemfile.lock
index 9696a82..b58a8b2 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -9,25 +9,26 @@ PATH
GEM
remote: https://rubygems.org/
specs:
- activesupport (7.1.3.4)
+ activesupport (7.2.1)
base64
bigdecimal
- concurrent-ruby (~> 1.0, >= 1.0.2)
+ concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
+ logger (>= 1.4.2)
minitest (>= 5.1)
- mutex_m
- tzinfo (~> 2.0)
+ securerandom (>= 0.3)
+ tzinfo (~> 2.0, >= 2.0.5)
ansi (1.5.0)
ast (2.4.2)
base64 (0.2.0)
bigdecimal (3.1.8)
builder (3.3.0)
- bundler-audit (0.9.1)
+ bundler-audit (0.9.2)
bundler (>= 1.2.0, < 3)
thor (~> 1.0)
- concurrent-ruby (1.3.3)
+ concurrent-ruby (1.3.4)
connection_pool (2.4.1)
docile (1.4.1)
drb (2.2.1)
@@ -64,20 +65,20 @@ GEM
reline (>= 0.4.2)
json (2.7.2)
language_server-protocol (3.17.0.3)
- minitest (5.24.1)
+ logger (1.6.0)
+ minitest (5.25.1)
minitest-reporters (1.7.1)
ansi
builder
minitest (>= 5.0)
ruby-progressbar
multi_json (1.15.0)
- mustermann (3.0.1)
+ mustermann (3.0.2)
ruby2_keywords (~> 0.0.1)
mustermann-grape (1.1.0)
mustermann (>= 1.0.0)
- mutex_m (0.2.0)
netrc (0.11.0)
- parallel (1.26.1)
+ parallel (1.26.3)
parser (3.3.4.2)
ast (~> 2.4.1)
racc
@@ -96,7 +97,7 @@ GEM
regexp_parser (2.9.2)
reline (0.5.9)
io-console (~> 0.5)
- rexml (3.3.4)
+ rexml (3.3.6)
strscan
rubocop (1.65.1)
json (~> 2.3)
@@ -109,7 +110,7 @@ GEM
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
- rubocop-ast (1.32.0)
+ rubocop-ast (1.32.1)
parser (>= 3.3.1.0)
rubocop-minitest (0.35.1)
rubocop (>= 1.61, < 2.0)
@@ -125,21 +126,22 @@ GEM
rubocop (>= 1)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
+ securerandom (0.3.1)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)
- sorbet (0.5.11514)
- sorbet-static (= 0.5.11514)
- sorbet-runtime (0.5.11514)
- sorbet-static (0.5.11514-aarch64-linux)
- sorbet-static (0.5.11514-universal-darwin)
- sorbet-static (0.5.11514-x86_64-linux)
- sorbet-static-and-runtime (0.5.11514)
- sorbet (= 0.5.11514)
- sorbet-runtime (= 0.5.11514)
+ sorbet (0.5.11547)
+ sorbet-static (= 0.5.11547)
+ sorbet-runtime (0.5.11547)
+ sorbet-static (0.5.11547-aarch64-linux)
+ sorbet-static (0.5.11547-universal-darwin)
+ sorbet-static (0.5.11547-x86_64-linux)
+ sorbet-static-and-runtime (0.5.11547)
+ sorbet (= 0.5.11547)
+ sorbet-runtime (= 0.5.11547)
spoom (1.4.2)
erubi (>= 1.10.0)
prism (>= 0.28.0)
@@ -147,7 +149,7 @@ GEM
thor (>= 0.19.2)
stringio (3.1.1)
strscan (3.1.0)
- tapioca (0.16.0)
+ tapioca (0.16.1)
bundler (>= 2.2.25)
netrc (>= 0.11.0)
parallel (>= 1.21.0)
diff --git a/sorbet/rbi/annotations/activesupport.rbi b/sorbet/rbi/annotations/activesupport.rbi
index 3659478..716210d 100644
--- a/sorbet/rbi/annotations/activesupport.rbi
+++ b/sorbet/rbi/annotations/activesupport.rbi
@@ -445,4 +445,8 @@ class ActiveSupport::ErrorReporter
sig { params(error: Exception, handled: T::Boolean, severity: T.nilable(Symbol), context: T::Hash[Symbol, T.untyped], source: T.nilable(String)).void }
def report(error, handled: true, severity: T.unsafe(nil), context: T.unsafe(nil), source: T.unsafe(nil)); end
+
+ # @version >= 7.2.0.beta1
+ sig { params(error: T.any(Exception, String), severity: T.nilable(Symbol), context: T::Hash[Symbol, T.untyped], source: T.nilable(String)).void }
+ def unexpected(error, severity: T.unsafe(nil), context: T.unsafe(nil), source: T.unsafe(nil)); end
end
diff --git a/sorbet/rbi/annotations/minitest.rbi b/sorbet/rbi/annotations/minitest.rbi
new file mode 100644
index 0000000..64a8928
--- /dev/null
+++ b/sorbet/rbi/annotations/minitest.rbi
@@ -0,0 +1,119 @@
+# typed: true
+
+# DO NOT EDIT MANUALLY
+# This file was pulled from a central RBI files repository.
+# Please run `bin/tapioca annotations` to update it.
+
+module Minitest::Assertions
+ sig { params(test: T.anything, msg: T.anything).returns(TrueClass) }
+ def assert(test, msg = nil); end
+
+ sig { params(obj: T.anything, msg: T.anything).returns(TrueClass) }
+ def assert_empty(obj, msg = nil); end
+
+ sig { params(exp: T.anything, act: T.anything, msg: T.anything).returns(TrueClass) }
+ def assert_equal(exp, act, msg = nil); end
+
+ sig { params(exp: T.anything, act: T.anything, delta: Numeric, msg: T.anything).returns(TrueClass) }
+ def assert_in_delta(exp, act, delta = T.unsafe(nil), msg = nil); end
+
+ sig { params(a: T.anything, b: T.anything, epsilon: Numeric, msg: T.anything).returns(TrueClass) }
+ def assert_in_epsilon(a, b, epsilon = T.unsafe(nil), msg = nil); end
+
+ sig { params(collection: T.anything, obj: T.anything, msg: T.anything).returns(TrueClass) }
+ def assert_includes(collection, obj, msg = nil); end
+
+ sig { params(cls: T.anything, obj: T.anything, msg: T.anything).returns(TrueClass) }
+ def assert_instance_of(cls, obj, msg = nil); end
+
+ sig { params(cls: T.anything, obj: T.anything, msg: T.anything).returns(TrueClass) }
+ def assert_kind_of(cls, obj, msg = nil); end
+
+ sig { params(matcher: T.any(String, Regexp), obj: T.anything, msg: T.anything).returns(MatchData) }
+ def assert_match(matcher, obj, msg = nil); end
+
+ sig { params(obj: T.anything, msg: T.anything).returns(TrueClass) }
+ def assert_nil(obj, msg = nil); end
+
+ sig { params(o1: T.anything, op: T.any(Symbol, String), o2: T.anything, msg: T.anything).returns(TrueClass) }
+ def assert_operator(o1, op, o2 = T.unsafe(nil), msg = nil); end
+
+ sig { params(stdout: T.nilable(T.any(String, Regexp)), stderr: T.nilable(T.any(String, Regexp)), block: T.proc.void).returns(T::Boolean) }
+ def assert_output(stdout = nil, stderr = nil, &block); end
+
+ sig { params(path: T.any(String, Pathname), msg: T.anything).returns(TrueClass) }
+ def assert_path_exists(path, msg = nil); end
+
+ sig { params(block: T.proc.void).returns(TrueClass) }
+ def assert_pattern(&block); end
+
+ sig { params(o1: T.anything, op: T.any(String, Symbol), msg: T.anything).returns(TrueClass) }
+ def assert_predicate(o1, op, msg = nil); end
+
+ sig { params(exp: NilClass, block: T.proc.void).returns(StandardError) }
+ sig { type_parameters(:T).params(exp: T.any(T::Class[T.type_parameter(:T)], Regexp, String), block: T.proc.void).returns(T.type_parameter(:T)) }
+ def assert_raises(*exp, &block); end
+
+ sig { params(obj: T.anything, meth: T.any(String, Symbol), msg: T.anything, include_all: T::Boolean).returns(TrueClass) }
+ def assert_respond_to(obj, meth, msg = nil, include_all: false); end
+
+ sig { params(exp: T.anything, act: T.anything, msg: T.anything).returns(TrueClass) }
+ def assert_same(exp, act, msg = nil); end
+
+ sig { params(send_ary: T::Array[T.anything], m: T.anything).returns(T::Boolean) }
+ def assert_send(send_ary, m = nil); end
+
+ sig { params(block: T.proc.void).returns(T::Boolean) }
+ def assert_silent(&block); end
+
+ sig { params(sym: Symbol, msg: T.anything, block: T.proc.void).returns(T.anything) }
+ def assert_throws(sym, msg = nil, &block); end
+
+ sig { params(test: T.anything, msg: T.anything).returns(TrueClass) }
+ def refute(test, msg = nil); end
+
+ sig { params(obj: T.anything, msg: T.anything).returns(TrueClass) }
+ def refute_empty(obj, msg = nil); end
+
+ sig { params(exp: T.anything, act: T.anything, msg: T.anything).returns(TrueClass) }
+ def refute_equal(exp, act, msg = nil); end
+
+ sig { params(exp: T.anything, act: T.anything, delta: Numeric, msg: T.anything).returns(TrueClass) }
+ def refute_in_delta(exp, act, delta = T.unsafe(nil), msg = nil); end
+
+ sig { params(a: T.anything, b: T.anything, epsilon: Numeric, msg: T.anything).returns(TrueClass) }
+ def refute_in_epsilon(a, b, epsilon = T.unsafe(nil), msg = nil); end
+
+ sig { params(collection: T.anything, obj: T.anything, msg: T.anything).returns(TrueClass) }
+ def refute_includes(collection, obj, msg = nil); end
+
+ sig { params(cls: T.anything, obj: T.anything, msg: T.anything).returns(TrueClass) }
+ def refute_instance_of(cls, obj, msg = nil); end
+
+ sig { params(cls: T.anything, obj: T.anything, msg: T.anything).returns(TrueClass) }
+ def refute_kind_of(cls, obj, msg = nil); end
+
+ sig { params(matcher: T.any(String, Regexp), obj: T.anything, msg: T.anything).returns(TrueClass) }
+ def refute_match(matcher, obj, msg = nil); end
+
+ sig { params(obj: T.anything, msg: T.anything).returns(TrueClass) }
+ def refute_nil(obj, msg = nil); end
+
+ sig { params(block: T.proc.void).returns(TrueClass) }
+ def refute_pattern(&block); end
+
+ sig { params(o1: T.anything, op: T.any(Symbol, String), o2: T.anything, msg: T.anything).returns(TrueClass) }
+ def refute_operator(o1, op, o2 = T.unsafe(nil), msg = nil); end
+
+ sig { params(path: T.any(String, Pathname), msg: T.anything).returns(TrueClass) }
+ def refute_path_exists(path, msg = nil); end
+
+ sig { params(o1: T.anything, op: T.any(String, Symbol), msg: T.anything).returns(TrueClass) }
+ def refute_predicate(o1, op, msg = nil); end
+
+ sig { params(obj: T.anything, meth: T.any(String, Symbol), msg: T.anything, include_all: T::Boolean).returns(TrueClass) }
+ def refute_respond_to(obj, meth, msg = nil, include_all: false); end
+
+ sig { params(exp: T.anything, act: T.anything, msg: T.anything).returns(TrueClass) }
+ def refute_same(exp, act, msg = nil); end
+end
diff --git a/sorbet/rbi/gems/activesupport@7.1.3.4.rbi b/sorbet/rbi/gems/activesupport@7.2.1.rbi
similarity index 94%
rename from sorbet/rbi/gems/activesupport@7.1.3.4.rbi
rename to sorbet/rbi/gems/activesupport@7.2.1.rbi
index b6bf0ea..421f096 100644
--- a/sorbet/rbi/gems/activesupport@7.1.3.4.rbi
+++ b/sorbet/rbi/gems/activesupport@7.2.1.rbi
@@ -5,7 +5,7 @@
# Please instead update this file by running `bin/tapioca gem activesupport`.
-# :include: activesupport/README.rdoc
+# :include: ../README.rdoc
#
# source://activesupport//lib/active_support/gem_version.rb#3
module ActiveSupport
@@ -18,35 +18,35 @@ module ActiveSupport
# source://activesupport//lib/active_support/json/decoding.rb#9
def parse_json_times=(val); end
- # source://activesupport//lib/active_support.rb#98
+ # source://activesupport//lib/active_support.rb#99
def test_order; end
- # source://activesupport//lib/active_support.rb#98
+ # source://activesupport//lib/active_support.rb#99
def test_order=(val); end
- # source://activesupport//lib/active_support.rb#99
+ # source://activesupport//lib/active_support.rb#100
def test_parallelization_threshold; end
- # source://activesupport//lib/active_support.rb#99
+ # source://activesupport//lib/active_support.rb#100
def test_parallelization_threshold=(val); end
class << self
- # source://activesupport//lib/active_support.rb#104
+ # source://activesupport//lib/active_support.rb#105
def cache_format_version; end
- # source://activesupport//lib/active_support.rb#108
+ # source://activesupport//lib/active_support.rb#109
def cache_format_version=(value); end
# source://activesupport//lib/active_support/deprecator.rb#4
def deprecator; end
- # source://activesupport//lib/active_support.rb#92
+ # source://activesupport//lib/active_support.rb#93
def eager_load!; end
- # source://activesupport//lib/active_support.rb#102
+ # source://activesupport//lib/active_support.rb#103
def error_reporter; end
- # source://activesupport//lib/active_support.rb#102
+ # source://activesupport//lib/active_support.rb#103
def error_reporter=(_arg0); end
# source://activesupport//lib/active_support/json/encoding.rb#8
@@ -72,16 +72,16 @@ module ActiveSupport
# source://activesupport//lib/active_support/json/decoding.rb#9
def parse_json_times=(val); end
- # source://activesupport//lib/active_support.rb#98
+ # source://activesupport//lib/active_support.rb#99
def test_order; end
- # source://activesupport//lib/active_support.rb#98
+ # source://activesupport//lib/active_support.rb#99
def test_order=(val); end
- # source://activesupport//lib/active_support.rb#99
+ # source://activesupport//lib/active_support.rb#100
def test_parallelization_threshold; end
- # source://activesupport//lib/active_support.rb#99
+ # source://activesupport//lib/active_support.rb#100
def test_parallelization_threshold=(val); end
# source://activesupport//lib/active_support/json/encoding.rb#8
@@ -90,10 +90,10 @@ module ActiveSupport
# source://activesupport//lib/active_support/json/encoding.rb#8
def time_precision=(arg); end
- # source://activesupport//lib/active_support.rb#112
+ # source://activesupport//lib/active_support.rb#113
def to_time_preserves_timezone; end
- # source://activesupport//lib/active_support.rb#116
+ # source://activesupport//lib/active_support.rb#117
def to_time_preserves_timezone=(value); end
# source://activesupport//lib/active_support/json/encoding.rb#8
@@ -102,10 +102,10 @@ module ActiveSupport
# source://activesupport//lib/active_support/json/encoding.rb#8
def use_standard_json_time_format=(arg); end
- # source://activesupport//lib/active_support.rb#126
+ # source://activesupport//lib/active_support.rb#127
def utc_to_local_returns_utc_offset_times; end
- # source://activesupport//lib/active_support.rb#130
+ # source://activesupport//lib/active_support.rb#131
def utc_to_local_returns_utc_offset_times=(value); end
# Returns the currently loaded version of Active Support as a +Gem::Version+.
@@ -205,7 +205,7 @@ class ActiveSupport::ArrayInquirer < ::Array
private
# source://activesupport//lib/active_support/array_inquirer.rb#42
- def method_missing(name, *args); end
+ def method_missing(name, *_arg1, **_arg2, &_arg3); end
# @return [Boolean]
#
@@ -239,25 +239,20 @@ end
#
# source://activesupport//lib/active_support/dependencies/autoload.rb#29
module ActiveSupport::Autoload
- # source://activesupport//lib/active_support/dependencies/autoload.rb#42
+ # source://activesupport//lib/active_support/dependencies/autoload.rb#30
def autoload(const_name, path = T.unsafe(nil)); end
- # source://activesupport//lib/active_support/dependencies/autoload.rb#63
+ # source://activesupport//lib/active_support/dependencies/autoload.rb#51
def autoload_at(path); end
- # source://activesupport//lib/active_support/dependencies/autoload.rb#56
+ # source://activesupport//lib/active_support/dependencies/autoload.rb#44
def autoload_under(path); end
- # source://activesupport//lib/active_support/dependencies/autoload.rb#70
+ # source://activesupport//lib/active_support/dependencies/autoload.rb#58
def eager_autoload; end
- # source://activesupport//lib/active_support/dependencies/autoload.rb#77
+ # source://activesupport//lib/active_support/dependencies/autoload.rb#65
def eager_load!; end
-
- class << self
- # source://activesupport//lib/active_support/dependencies/autoload.rb#30
- def extended(base); end
- end
end
# = Backtrace Cleaner
@@ -276,7 +271,8 @@ end
# can focus on the rest.
#
# bc = ActiveSupport::BacktraceCleaner.new
-# bc.add_filter { |line| line.gsub(Rails.root.to_s, '') } # strip the Rails.root prefix
+# root = "#{Rails.root}/"
+# bc.add_filter { |line| line.start_with?(root) ? line.from(root.size) : line } # strip the Rails.root prefix
# bc.add_silencer { |line| /puma|rubygems/.match?(line) } # skip any lines from puma or rubygems
# bc.clean(exception.backtrace) # perform the cleanup
#
@@ -290,20 +286,21 @@ end
#
# Inspired by the Quiet Backtrace gem by thoughtbot.
#
-# source://activesupport//lib/active_support/backtrace_cleaner.rb#33
+# source://activesupport//lib/active_support/backtrace_cleaner.rb#34
class ActiveSupport::BacktraceCleaner
# @return [BacktraceCleaner] a new instance of BacktraceCleaner
#
- # source://activesupport//lib/active_support/backtrace_cleaner.rb#34
+ # source://activesupport//lib/active_support/backtrace_cleaner.rb#35
def initialize; end
# Adds a filter from the block provided. Each line in the backtrace will be
# mapped against this filter.
#
- # # Will turn "/my/rails/root/app/models/person.rb" into "/app/models/person.rb"
- # backtrace_cleaner.add_filter { |line| line.gsub(Rails.root.to_s, '') }
+ # # Will turn "/my/rails/root/app/models/person.rb" into "app/models/person.rb"
+ # root = "#{Rails.root}/"
+ # backtrace_cleaner.add_filter { |line| line.start_with?(root) ? line.from(root.size) : line }
#
- # source://activesupport//lib/active_support/backtrace_cleaner.rb#80
+ # source://activesupport//lib/active_support/backtrace_cleaner.rb#83
def add_filter(&block); end
# Adds a silencer from the block provided. If the silencer returns +true+
@@ -312,63 +309,69 @@ class ActiveSupport::BacktraceCleaner
# # Will reject all lines that include the word "puma", like "/gems/puma/server.rb" or "/app/my_puma_server/rb"
# backtrace_cleaner.add_silencer { |line| /puma/.match?(line) }
#
- # source://activesupport//lib/active_support/backtrace_cleaner.rb#89
+ # source://activesupport//lib/active_support/backtrace_cleaner.rb#92
def add_silencer(&block); end
# Returns the backtrace after all filters and silencers have been run
# against it. Filters run first, then silencers.
#
- # source://activesupport//lib/active_support/backtrace_cleaner.rb#43
+ # source://activesupport//lib/active_support/backtrace_cleaner.rb#45
def clean(backtrace, kind = T.unsafe(nil)); end
# Returns the frame with all filters applied.
# returns +nil+ if the frame was silenced.
#
- # source://activesupport//lib/active_support/backtrace_cleaner.rb#59
+ # source://activesupport//lib/active_support/backtrace_cleaner.rb#61
def clean_frame(frame, kind = T.unsafe(nil)); end
# Returns the backtrace after all filters and silencers have been run
# against it. Filters run first, then silencers.
#
- # source://activesupport//lib/active_support/backtrace_cleaner.rb#43
+ # source://activesupport//lib/active_support/backtrace_cleaner.rb#45
def filter(backtrace, kind = T.unsafe(nil)); end
# Removes all filters, but leaves in the silencers. Useful if you suddenly
# need to see entire filepaths in the backtrace that you had already
# filtered out.
#
- # source://activesupport//lib/active_support/backtrace_cleaner.rb#103
+ # source://activesupport//lib/active_support/backtrace_cleaner.rb#106
def remove_filters!; end
# Removes all silencers, but leaves in the filters. Useful if your
# context of debugging suddenly expands as you suspect a bug in one of
# the libraries you use.
#
- # source://activesupport//lib/active_support/backtrace_cleaner.rb#96
+ # source://activesupport//lib/active_support/backtrace_cleaner.rb#99
def remove_silencers!; end
private
- # source://activesupport//lib/active_support/backtrace_cleaner.rb#110
+ # source://activesupport//lib/active_support/backtrace_cleaner.rb#127
+ def add_core_silencer; end
+
+ # source://activesupport//lib/active_support/backtrace_cleaner.rb#118
def add_gem_filter; end
- # source://activesupport//lib/active_support/backtrace_cleaner.rb#119
+ # source://activesupport//lib/active_support/backtrace_cleaner.rb#131
def add_gem_silencer; end
- # source://activesupport//lib/active_support/backtrace_cleaner.rb#123
+ # source://activesupport//lib/active_support/backtrace_cleaner.rb#135
def add_stdlib_silencer; end
- # source://activesupport//lib/active_support/backtrace_cleaner.rb#127
+ # source://activesupport//lib/active_support/backtrace_cleaner.rb#139
def filter_backtrace(backtrace); end
- # source://activesupport//lib/active_support/backtrace_cleaner.rb#143
+ # source://activesupport//lib/active_support/backtrace_cleaner.rb#113
+ def initialize_copy(_other); end
+
+ # source://activesupport//lib/active_support/backtrace_cleaner.rb#155
def noise(backtrace); end
- # source://activesupport//lib/active_support/backtrace_cleaner.rb#135
+ # source://activesupport//lib/active_support/backtrace_cleaner.rb#147
def silence(backtrace); end
end
-# source://activesupport//lib/active_support/backtrace_cleaner.rb#108
+# source://activesupport//lib/active_support/backtrace_cleaner.rb#111
ActiveSupport::BacktraceCleaner::FORMATTED_GEMS_PATTERN = T.let(T.unsafe(nil), Regexp)
# = \Benchmarkable
@@ -661,12 +664,12 @@ class ActiveSupport::BroadcastLogger
# source://activesupport//lib/active_support/broadcast_logger.rb#221
def initialize_copy(other); end
- # source://activesupport//lib/active_support/broadcast_logger.rb#234
- def method_missing(name, *args, **kwargs, &block); end
+ # source://activesupport//lib/active_support/broadcast_logger.rb#235
+ def method_missing(name, *_arg1, **_arg2, &_arg3); end
# @return [Boolean]
#
- # source://activesupport//lib/active_support/broadcast_logger.rb#246
+ # source://activesupport//lib/active_support/broadcast_logger.rb#247
def respond_to_missing?(method, include_all); end
class << self
@@ -696,7 +699,7 @@ module ActiveSupport::Cache
#
# The +key+ argument can also respond to +cache_key+ or +to_param+.
#
- # source://activesupport//lib/active_support/cache.rb#117
+ # source://activesupport//lib/active_support/cache.rb#111
def expand_cache_key(key, namespace = T.unsafe(nil)); end
# Returns the value of attribute format_version.
@@ -742,13 +745,13 @@ module ActiveSupport::Cache
private
- # source://activesupport//lib/active_support/cache.rb#129
+ # source://activesupport//lib/active_support/cache.rb#123
def retrieve_cache_key(key); end
# Obtains the specified cache store class, given the name of the +store+.
# Raises an error when the store class cannot be found.
#
- # source://activesupport//lib/active_support/cache.rb#141
+ # source://activesupport//lib/active_support/cache.rb#135
def retrieve_store_class(store); end
end
end
@@ -1005,58 +1008,58 @@ class ActiveSupport::Cache::FileStore < ::ActiveSupport::Cache::Store
# source://activesupport//lib/active_support/cache/file_store.rb#60
def increment(name, amount = T.unsafe(nil), options = T.unsafe(nil)); end
- # source://activesupport//lib/active_support/cache/file_store.rb#90
+ # source://activesupport//lib/active_support/cache/file_store.rb#91
def inspect; end
private
# Delete empty directories in the cache.
#
- # source://activesupport//lib/active_support/cache/file_store.rb#184
+ # source://activesupport//lib/active_support/cache/file_store.rb#185
def delete_empty_directories(dir); end
- # source://activesupport//lib/active_support/cache/file_store.rb#120
+ # source://activesupport//lib/active_support/cache/file_store.rb#121
def delete_entry(key, **options); end
# Make sure a file path's directories exist.
#
- # source://activesupport//lib/active_support/cache/file_store.rb#193
+ # source://activesupport//lib/active_support/cache/file_store.rb#194
def ensure_cache_path(path); end
# Translate a file path into a key.
#
- # source://activesupport//lib/active_support/cache/file_store.rb#178
+ # source://activesupport//lib/active_support/cache/file_store.rb#179
def file_path_key(path); end
# Lock a file for a block so only one process can modify it at a time.
#
- # source://activesupport//lib/active_support/cache/file_store.rb#137
+ # source://activesupport//lib/active_support/cache/file_store.rb#138
def lock_file(file_name, &block); end
# Modifies the amount of an integer value that is stored in the cache.
# If the key is not found it is created and set to +amount+.
#
- # source://activesupport//lib/active_support/cache/file_store.rb#211
+ # source://activesupport//lib/active_support/cache/file_store.rb#212
def modify_value(name, amount, options); end
# Translate a key into a file path.
#
- # source://activesupport//lib/active_support/cache/file_store.rb#151
+ # source://activesupport//lib/active_support/cache/file_store.rb#152
def normalize_key(key, options); end
- # source://activesupport//lib/active_support/cache/file_store.rb#95
+ # source://activesupport//lib/active_support/cache/file_store.rb#96
def read_entry(key, **options); end
- # source://activesupport//lib/active_support/cache/file_store.rb#102
+ # source://activesupport//lib/active_support/cache/file_store.rb#103
def read_serialized_entry(key, **_arg1); end
- # source://activesupport//lib/active_support/cache/file_store.rb#197
+ # source://activesupport//lib/active_support/cache/file_store.rb#198
def search_dir(dir, &callback); end
- # source://activesupport//lib/active_support/cache/file_store.rb#109
+ # source://activesupport//lib/active_support/cache/file_store.rb#110
def write_entry(key, entry, **options); end
- # source://activesupport//lib/active_support/cache/file_store.rb#113
+ # source://activesupport//lib/active_support/cache/file_store.rb#114
def write_serialized_entry(key, payload, **options); end
class << self
@@ -1158,7 +1161,7 @@ class ActiveSupport::Cache::MemoryStore < ::ActiveSupport::Cache::Store
# source://activesupport//lib/active_support/cache/memory_store.rb#149
def increment(name, amount = T.unsafe(nil), options = T.unsafe(nil)); end
- # source://activesupport//lib/active_support/cache/memory_store.rb#180
+ # source://activesupport//lib/active_support/cache/memory_store.rb#181
def inspect; end
# To ensure entries fit within the specified memory prune the cache by removing the least
@@ -1177,27 +1180,27 @@ class ActiveSupport::Cache::MemoryStore < ::ActiveSupport::Cache::Store
# Synchronize calls to the cache. This should be called wherever the underlying cache implementation
# is not thread safe.
#
- # source://activesupport//lib/active_support/cache/memory_store.rb#186
+ # source://activesupport//lib/active_support/cache/memory_store.rb#187
def synchronize(&block); end
private
- # source://activesupport//lib/active_support/cache/memory_store.rb#193
+ # source://activesupport//lib/active_support/cache/memory_store.rb#194
def cached_size(key, payload); end
- # source://activesupport//lib/active_support/cache/memory_store.rb#226
+ # source://activesupport//lib/active_support/cache/memory_store.rb#227
def delete_entry(key, **options); end
# Modifies the amount of an integer value that is stored in the cache.
# If the key is not found it is created and set to +amount+.
#
- # source://activesupport//lib/active_support/cache/memory_store.rb#236
+ # source://activesupport//lib/active_support/cache/memory_store.rb#237
def modify_value(name, amount, options); end
- # source://activesupport//lib/active_support/cache/memory_store.rb#197
+ # source://activesupport//lib/active_support/cache/memory_store.rb#198
def read_entry(key, **options); end
- # source://activesupport//lib/active_support/cache/memory_store.rb#209
+ # source://activesupport//lib/active_support/cache/memory_store.rb#210
def write_entry(key, entry, **options); end
class << self
@@ -1235,7 +1238,7 @@ end
# source://activesupport//lib/active_support/cache/memory_store.rb#54
ActiveSupport::Cache::MemoryStore::DupCoder::MARSHAL_SIGNATURE = T.let(T.unsafe(nil), String)
-# source://activesupport//lib/active_support/cache/memory_store.rb#191
+# source://activesupport//lib/active_support/cache/memory_store.rb#192
ActiveSupport::Cache::MemoryStore::PER_ENTRY_OVERHEAD = T.let(T.unsafe(nil), Integer)
# = Null \Cache \Store
@@ -1319,99 +1322,75 @@ module ActiveSupport::Cache::SerializerWithFallback
end
# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#66
-module ActiveSupport::Cache::SerializerWithFallback::Marshal61WithFallback
- include ::ActiveSupport::Cache::SerializerWithFallback
- extend ::ActiveSupport::Cache::SerializerWithFallback
- extend ::ActiveSupport::Cache::SerializerWithFallback::Marshal61WithFallback
-
- # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#39
- def _load(payload); end
-
- # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#72
- def dump(entry); end
-
- # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#76
- def dump_compressed(entry, threshold); end
-
- # @return [Boolean]
- #
- # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#83
- def dumped?(dumped); end
-end
-
-# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#70
-ActiveSupport::Cache::SerializerWithFallback::Marshal61WithFallback::MARSHAL_SIGNATURE = T.let(T.unsafe(nil), String)
-
-# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#88
module ActiveSupport::Cache::SerializerWithFallback::Marshal70WithFallback
include ::ActiveSupport::Cache::SerializerWithFallback
extend ::ActiveSupport::Cache::SerializerWithFallback
extend ::ActiveSupport::Cache::SerializerWithFallback::Marshal70WithFallback
- # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#110
+ # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#88
def _load(marked); end
- # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#95
+ # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#73
def dump(entry); end
- # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#99
+ # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#77
def dump_compressed(entry, threshold); end
# @return [Boolean]
#
- # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#116
+ # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#94
def dumped?(dumped); end
end
-# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#93
+# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#71
ActiveSupport::Cache::SerializerWithFallback::Marshal70WithFallback::MARK_COMPRESSED = T.let(T.unsafe(nil), String)
-# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#92
+# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#70
ActiveSupport::Cache::SerializerWithFallback::Marshal70WithFallback::MARK_UNCOMPRESSED = T.let(T.unsafe(nil), String)
-# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#121
+# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#99
module ActiveSupport::Cache::SerializerWithFallback::Marshal71WithFallback
include ::ActiveSupport::Cache::SerializerWithFallback
extend ::ActiveSupport::Cache::SerializerWithFallback
extend ::ActiveSupport::Cache::SerializerWithFallback::Marshal71WithFallback
- # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#131
+ # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#109
def _load(dumped); end
- # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#127
+ # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#105
def dump(value); end
# @return [Boolean]
#
- # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#135
+ # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#113
def dumped?(dumped); end
end
-# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#125
+# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#103
ActiveSupport::Cache::SerializerWithFallback::Marshal71WithFallback::MARSHAL_SIGNATURE = T.let(T.unsafe(nil), String)
-# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#140
+# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#118
module ActiveSupport::Cache::SerializerWithFallback::MessagePackWithFallback
include ::ActiveSupport::Cache::SerializerWithFallback
extend ::ActiveSupport::Cache::SerializerWithFallback
extend ::ActiveSupport::Cache::SerializerWithFallback::MessagePackWithFallback
- # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#148
+ # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#126
def _load(dumped); end
- # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#144
+ # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#122
def dump(value); end
# @return [Boolean]
#
- # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#152
+ # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#130
def dumped?(dumped); end
private
# @return [Boolean]
#
- # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#157
+ # source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#135
def available?; end
end
@@ -1436,7 +1415,7 @@ module ActiveSupport::Cache::SerializerWithFallback::PassthroughWithFallback
def dumped?(dumped); end
end
-# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#166
+# source://activesupport//lib/active_support/cache/serializer_with_fallback.rb#144
ActiveSupport::Cache::SerializerWithFallback::SERIALIZERS = T.let(T.unsafe(nil), Hash)
# = Active Support \Cache \Store
@@ -1456,7 +1435,7 @@ ActiveSupport::Cache::SerializerWithFallback::SERIALIZERS = T.let(T.unsafe(nil),
# cache = ActiveSupport::Cache::MemoryStore.new
#
# cache.read('city') # => nil
-# cache.write('city', "Duckburgh")
+# cache.write('city', "Duckburgh") # => true
# cache.read('city') # => "Duckburgh"
#
# cache.write('not serializable', Proc.new {}) # => TypeError
@@ -1481,7 +1460,7 @@ ActiveSupport::Cache::SerializerWithFallback::SERIALIZERS = T.let(T.unsafe(nil),
# cache.namespace = -> { @last_mod_time } # Set the namespace to a variable
# @last_mod_time = Time.now # Invalidate the entire cache by changing namespace
#
-# source://activesupport//lib/active_support/cache.rb#194
+# source://activesupport//lib/active_support/cache.rb#188
class ActiveSupport::Cache::Store
# Creates a new cache.
#
@@ -1557,7 +1536,7 @@ class ActiveSupport::Cache::Store
#
# @return [Store] a new instance of Store
#
- # source://activesupport//lib/active_support/cache.rb#319
+ # source://activesupport//lib/active_support/cache.rb#295
def initialize(options = T.unsafe(nil)); end
# Cleans up the cache by removing expired entries.
@@ -1599,7 +1578,7 @@ class ActiveSupport::Cache::Store
#
# Options are passed to the underlying cache implementation.
#
- # source://activesupport//lib/active_support/cache.rb#676
+ # source://activesupport//lib/active_support/cache.rb#674
def delete(name, options = T.unsafe(nil)); end
# Deletes all entries with keys matching the pattern.
@@ -1618,7 +1597,7 @@ class ActiveSupport::Cache::Store
#
# Options are passed to the underlying cache implementation.
#
- # source://activesupport//lib/active_support/cache.rb#688
+ # source://activesupport//lib/active_support/cache.rb#687
def delete_multi(names, options = T.unsafe(nil)); end
# Returns +true+ if the cache contains an entry for the given key.
@@ -1627,7 +1606,7 @@ class ActiveSupport::Cache::Store
#
# @return [Boolean]
#
- # source://activesupport//lib/active_support/cache.rb#702
+ # source://activesupport//lib/active_support/cache.rb#701
def exist?(name, options = T.unsafe(nil)); end
# Fetches data from the cache, using the given key. If there is data in
@@ -1691,31 +1670,47 @@ class ActiveSupport::Cache::Store
# has elapsed.
#
# # Set all values to expire after one minute.
- # cache = ActiveSupport::Cache::MemoryStore.new(expires_in: 1.minute)
+ # cache = ActiveSupport::Cache::MemoryStore.new(expires_in: 1)
#
- # cache.write('foo', 'original value')
+ # cache.write("foo", "original value")
# val_1 = nil
# val_2 = nil
- # sleep 60
+ # p cache.read("foo") # => "original value"
#
- # Thread.new do
- # val_1 = cache.fetch('foo', race_condition_ttl: 10.seconds) do
+ # sleep 1 # wait until the cache expires
+ #
+ # t1 = Thread.new do
+ # # fetch does the following:
+ # # 1. gets an recent expired entry
+ # # 2. extends the expiry by 2 seconds (race_condition_ttl)
+ # # 3. regenerates the new value
+ # val_1 = cache.fetch("foo", race_condition_ttl: 2) do
# sleep 1
- # 'new value 1'
+ # "new value 1"
# end
# end
#
- # Thread.new do
- # val_2 = cache.fetch('foo', race_condition_ttl: 10.seconds) do
- # 'new value 2'
- # end
+ # # Wait until t1 extends the expiry of the entry
+ # # but before generating the new value
+ # sleep 0.1
+ #
+ # val_2 = cache.fetch("foo", race_condition_ttl: 2) do
+ # # This block won't be executed because t1 extended the expiry
+ # "new value 2"
# end
#
- # cache.fetch('foo') # => "original value"
- # sleep 10 # First thread extended the life of cache by another 10 seconds
- # cache.fetch('foo') # => "new value 1"
- # val_1 # => "new value 1"
- # val_2 # => "original value"
+ # t1.join
+ #
+ # p val_1 # => "new value 1"
+ # p val_2 # => "oritinal value"
+ # p cache.fetch("foo") # => "new value 1"
+ #
+ # # The entry requires 3 seconds to expire (expires_in + race_condition_ttl)
+ # # We have waited 2 seconds already (sleep(1) + t1.join) thus we need to wait 1
+ # # more second to see the entry expire.
+ # sleep 1
+ #
+ # p cache.fetch("foo") # => nil
#
# ==== Dynamic Options
#
@@ -1729,7 +1724,7 @@ class ActiveSupport::Cache::Store
# token
# end
#
- # source://activesupport//lib/active_support/cache.rb#452
+ # source://activesupport//lib/active_support/cache.rb#444
def fetch(name, options = T.unsafe(nil), &block); end
# Fetches data from the cache, using the given keys. If there is data in
@@ -1764,7 +1759,7 @@ class ActiveSupport::Cache::Store
#
# @raise [ArgumentError]
#
- # source://activesupport//lib/active_support/cache.rb#601
+ # source://activesupport//lib/active_support/cache.rb#593
def fetch_multi(*names); end
# Increments an integer value in the cache.
@@ -1778,15 +1773,15 @@ class ActiveSupport::Cache::Store
# source://activesupport//lib/active_support/cache.rb#729
def increment(name, amount = T.unsafe(nil), options = T.unsafe(nil)); end
- # source://activesupport//lib/active_support/cache.rb#195
+ # source://activesupport//lib/active_support/cache.rb#189
def logger; end
- # source://activesupport//lib/active_support/cache.rb#195
+ # source://activesupport//lib/active_support/cache.rb#189
def logger=(val); end
# Silences the logger within a block.
#
- # source://activesupport//lib/active_support/cache.rb#346
+ # source://activesupport//lib/active_support/cache.rb#322
def mute; end
# source://activesupport//lib/active_support/cache.rb#711
@@ -1794,13 +1789,13 @@ class ActiveSupport::Cache::Store
# Returns the value of attribute options.
#
- # source://activesupport//lib/active_support/cache.rb#198
+ # source://activesupport//lib/active_support/cache.rb#192
def options; end
- # source://activesupport//lib/active_support/cache.rb#196
+ # source://activesupport//lib/active_support/cache.rb#190
def raise_on_invalid_cache_expiration_time; end
- # source://activesupport//lib/active_support/cache.rb#196
+ # source://activesupport//lib/active_support/cache.rb#190
def raise_on_invalid_cache_expiration_time=(val); end
# Reads data from the cache, using the given key. If there is data in
@@ -1820,7 +1815,7 @@ class ActiveSupport::Cache::Store
#
# Other options will be handled by the specific cache store implementation.
#
- # source://activesupport//lib/active_support/cache.rb#506
+ # source://activesupport//lib/active_support/cache.rb#498
def read(name, options = T.unsafe(nil)); end
# Reads multiple values at once from the cache. Options can be passed
@@ -1830,27 +1825,30 @@ class ActiveSupport::Cache::Store
#
# Returns a hash mapping the names provided to the values found.
#
- # source://activesupport//lib/active_support/cache.rb#544
+ # source://activesupport//lib/active_support/cache.rb#536
def read_multi(*names); end
# Returns the value of attribute silence.
#
- # source://activesupport//lib/active_support/cache.rb#198
+ # source://activesupport//lib/active_support/cache.rb#192
def silence; end
# Silences the logger.
#
- # source://activesupport//lib/active_support/cache.rb#340
+ # source://activesupport//lib/active_support/cache.rb#316
def silence!; end
# Returns the value of attribute silence.
#
- # source://activesupport//lib/active_support/cache.rb#198
+ # source://activesupport//lib/active_support/cache.rb#192
def silence?; end
# Writes the value to the cache with the key. The value must be supported
# by the +coder+'s +dump+ and +load+ methods.
#
+ # Returns +true+ if the write succeeded, +nil+ if there was an error talking
+ # to the cache backend, or +false+ if the write failed for another reason.
+ #
# By default, cache entries larger than 1kB are compressed. Compression
# allows more data to be stored in the same memory footprint, leading to
# fewer cache evictions and higher hit rates.
@@ -1882,17 +1880,17 @@ class ActiveSupport::Cache::Store
#
# Other options will be handled by the specific cache store implementation.
#
- # source://activesupport//lib/active_support/cache.rb#663
+ # source://activesupport//lib/active_support/cache.rb#660
def write(name, value, options = T.unsafe(nil)); end
# Cache Storage API to write multiple values at once.
#
- # source://activesupport//lib/active_support/cache.rb#558
+ # source://activesupport//lib/active_support/cache.rb#550
def write_multi(hash, options = T.unsafe(nil)); end
private
- # source://activesupport//lib/active_support/cache.rb#1013
+ # source://activesupport//lib/active_support/cache.rb#1005
def _instrument(operation, multi: T.unsafe(nil), options: T.unsafe(nil), **payload, &block); end
# source://activesupport//lib/active_support/cache.rb#762
@@ -1903,41 +1901,41 @@ class ActiveSupport::Cache::Store
#
# @raise [NotImplementedError]
#
- # source://activesupport//lib/active_support/cache.rb#856
+ # source://activesupport//lib/active_support/cache.rb#848
def delete_entry(key, **options); end
# Deletes multiples entries in the cache implementation. Subclasses MAY
# implement this method.
#
- # source://activesupport//lib/active_support/cache.rb#862
+ # source://activesupport//lib/active_support/cache.rb#854
def delete_multi_entries(entries, **options); end
- # source://activesupport//lib/active_support/cache.rb#821
+ # source://activesupport//lib/active_support/cache.rb#813
def deserialize_entry(payload, **_arg1); end
# Expands key to be a consistent string value. Invokes +cache_key+ if
# object responds to +cache_key+. Otherwise, +to_param+ method will be
# called. If the key is a Hash, then keys will be sorted alphabetically.
#
- # source://activesupport//lib/active_support/cache.rb#976
+ # source://activesupport//lib/active_support/cache.rb#968
def expanded_key(key); end
- # source://activesupport//lib/active_support/cache.rb#997
+ # source://activesupport//lib/active_support/cache.rb#989
def expanded_version(key); end
- # source://activesupport//lib/active_support/cache.rb#1050
+ # source://activesupport//lib/active_support/cache.rb#1043
def get_entry_value(entry, name, options); end
- # source://activesupport//lib/active_support/cache.rb#1034
+ # source://activesupport//lib/active_support/cache.rb#1026
def handle_expired_entry(entry, key, options); end
- # source://activesupport//lib/active_support/cache.rb#896
+ # source://activesupport//lib/active_support/cache.rb#888
def handle_invalid_expires_in(message); end
- # source://activesupport//lib/active_support/cache.rb#1005
+ # source://activesupport//lib/active_support/cache.rb#997
def instrument(operation, key, options = T.unsafe(nil), &block); end
- # source://activesupport//lib/active_support/cache.rb#1009
+ # source://activesupport//lib/active_support/cache.rb#1001
def instrument_multi(operation, keys, options = T.unsafe(nil), &block); end
# Adds the namespace defined in the options to a pattern designed to
@@ -1945,12 +1943,12 @@ class ActiveSupport::Cache::Store
# this method to translate a pattern that matches names into one that
# matches namespaced keys.
#
- # source://activesupport//lib/active_support/cache.rb#785
+ # source://activesupport//lib/active_support/cache.rb#777
def key_matcher(pattern, options); end
# Merges the default options with ones specific to a method call.
#
- # source://activesupport//lib/active_support/cache.rb#867
+ # source://activesupport//lib/active_support/cache.rb#859
def merged_options(call_options); end
# Prefix the key with a namespace string:
@@ -1963,7 +1961,7 @@ class ActiveSupport::Cache::Store
# namespace_key 'foo', namespace: -> { 'cache' }
# # => 'cache:foo'
#
- # source://activesupport//lib/active_support/cache.rb#954
+ # source://activesupport//lib/active_support/cache.rb#946
def namespace_key(key, options = T.unsafe(nil)); end
# Expands and namespaces the cache key.
@@ -1972,15 +1970,15 @@ class ActiveSupport::Cache::Store
#
# @raise [ArgumentError]
#
- # source://activesupport//lib/active_support/cache.rb#938
+ # source://activesupport//lib/active_support/cache.rb#930
def normalize_key(key, options = T.unsafe(nil)); end
# Normalize aliased options to their canonical form
#
- # source://activesupport//lib/active_support/cache.rb#907
+ # source://activesupport//lib/active_support/cache.rb#899
def normalize_options(options); end
- # source://activesupport//lib/active_support/cache.rb#993
+ # source://activesupport//lib/active_support/cache.rb#985
def normalize_version(key, options = T.unsafe(nil)); end
# Reads an entry from the cache implementation. Subclasses must implement
@@ -1988,22 +1986,22 @@ class ActiveSupport::Cache::Store
#
# @raise [NotImplementedError]
#
- # source://activesupport//lib/active_support/cache.rb#802
+ # source://activesupport//lib/active_support/cache.rb#794
def read_entry(key, **options); end
# Reads multiple entries from the cache implementation. Subclasses MAY
# implement this method.
#
- # source://activesupport//lib/active_support/cache.rb#829
+ # source://activesupport//lib/active_support/cache.rb#821
def read_multi_entries(names, **options); end
- # source://activesupport//lib/active_support/cache.rb#1055
- def save_block_result_to_cache(name, options); end
+ # source://activesupport//lib/active_support/cache.rb#1048
+ def save_block_result_to_cache(name, key, options); end
- # source://activesupport//lib/active_support/cache.rb#812
+ # source://activesupport//lib/active_support/cache.rb#804
def serialize_entry(entry, **options); end
- # source://activesupport//lib/active_support/cache.rb#918
+ # source://activesupport//lib/active_support/cache.rb#910
def validate_options(options); end
# Writes an entry to the cache implementation. Subclasses must implement
@@ -2011,31 +2009,31 @@ class ActiveSupport::Cache::Store
#
# @raise [NotImplementedError]
#
- # source://activesupport//lib/active_support/cache.rb#808
+ # source://activesupport//lib/active_support/cache.rb#800
def write_entry(key, entry, **options); end
# Writes multiple entries to the cache implementation. Subclasses MAY
# implement this method.
#
- # source://activesupport//lib/active_support/cache.rb#848
+ # source://activesupport//lib/active_support/cache.rb#840
def write_multi_entries(hash, **options); end
class << self
- # source://activesupport//lib/active_support/cache.rb#195
+ # source://activesupport//lib/active_support/cache.rb#189
def logger; end
- # source://activesupport//lib/active_support/cache.rb#195
+ # source://activesupport//lib/active_support/cache.rb#189
def logger=(val); end
- # source://activesupport//lib/active_support/cache.rb#196
+ # source://activesupport//lib/active_support/cache.rb#190
def raise_on_invalid_cache_expiration_time; end
- # source://activesupport//lib/active_support/cache.rb#196
+ # source://activesupport//lib/active_support/cache.rb#190
def raise_on_invalid_cache_expiration_time=(val); end
private
- # source://activesupport//lib/active_support/cache.rb#206
+ # source://activesupport//lib/active_support/cache.rb#200
def retrieve_pool_options(options); end
end
end
@@ -2186,37 +2184,37 @@ ActiveSupport::Cache::UNIVERSAL_OPTIONS = T.let(T.unsafe(nil), Array)
# ActiveSupport::Cache::Store#fetch, the second argument will be an
# instance of +WriteOptions+.
#
-# source://activesupport//lib/active_support/cache.rb#1071
+# source://activesupport//lib/active_support/cache.rb#1064
class ActiveSupport::Cache::WriteOptions
# @return [WriteOptions] a new instance of WriteOptions
#
- # source://activesupport//lib/active_support/cache.rb#1072
+ # source://activesupport//lib/active_support/cache.rb#1065
def initialize(options); end
- # source://activesupport//lib/active_support/cache.rb#1096
+ # source://activesupport//lib/active_support/cache.rb#1089
def expires_at; end
# Sets the Cache entry's +expires_at+ value. If an +expires_in+ option was
# previously set, this will unset it since +expires_at+ and +expires_in+
# cannot both be set.
#
- # source://activesupport//lib/active_support/cache.rb#1103
+ # source://activesupport//lib/active_support/cache.rb#1096
def expires_at=(expires_at); end
- # source://activesupport//lib/active_support/cache.rb#1084
+ # source://activesupport//lib/active_support/cache.rb#1077
def expires_in; end
# Sets the Cache entry's +expires_in+ value. If an +expires_at+ option was
# previously set, this will unset it since +expires_in+ and +expires_at+
# cannot both be set.
#
- # source://activesupport//lib/active_support/cache.rb#1091
+ # source://activesupport//lib/active_support/cache.rb#1084
def expires_in=(expires_in); end
- # source://activesupport//lib/active_support/cache.rb#1076
+ # source://activesupport//lib/active_support/cache.rb#1069
def version; end
- # source://activesupport//lib/active_support/cache.rb#1080
+ # source://activesupport//lib/active_support/cache.rb#1073
def version=(version); end
end
@@ -2355,7 +2353,7 @@ ActiveSupport::Callbacks::CALLBACK_FILTER_TYPES = T.let(T.unsafe(nil), Array)
# A future invocation of user-supplied code (either as a callback,
# or a condition filter).
#
-# source://activesupport//lib/active_support/callbacks.rb#378
+# source://activesupport//lib/active_support/callbacks.rb#337
module ActiveSupport::Callbacks::CallTemplate
class << self
# Filters support:
@@ -2367,69 +2365,69 @@ module ActiveSupport::Callbacks::CallTemplate
# All of these objects are converted into a CallTemplate and handled
# the same after this point.
#
- # source://activesupport//lib/active_support/callbacks.rb#536
+ # source://activesupport//lib/active_support/callbacks.rb#495
def build(filter, callback); end
end
end
-# source://activesupport//lib/active_support/callbacks.rb#437
+# source://activesupport//lib/active_support/callbacks.rb#396
class ActiveSupport::Callbacks::CallTemplate::InstanceExec0
# @return [InstanceExec0] a new instance of InstanceExec0
#
- # source://activesupport//lib/active_support/callbacks.rb#438
+ # source://activesupport//lib/active_support/callbacks.rb#397
def initialize(block); end
- # source://activesupport//lib/active_support/callbacks.rb#442
+ # source://activesupport//lib/active_support/callbacks.rb#401
def expand(target, value, block); end
- # source://activesupport//lib/active_support/callbacks.rb#452
+ # source://activesupport//lib/active_support/callbacks.rb#411
def inverted_lambda; end
- # source://activesupport//lib/active_support/callbacks.rb#446
+ # source://activesupport//lib/active_support/callbacks.rb#405
def make_lambda; end
end
-# source://activesupport//lib/active_support/callbacks.rb#459
+# source://activesupport//lib/active_support/callbacks.rb#418
class ActiveSupport::Callbacks::CallTemplate::InstanceExec1
# @return [InstanceExec1] a new instance of InstanceExec1
#
- # source://activesupport//lib/active_support/callbacks.rb#460
+ # source://activesupport//lib/active_support/callbacks.rb#419
def initialize(block); end
- # source://activesupport//lib/active_support/callbacks.rb#464
+ # source://activesupport//lib/active_support/callbacks.rb#423
def expand(target, value, block); end
- # source://activesupport//lib/active_support/callbacks.rb#474
+ # source://activesupport//lib/active_support/callbacks.rb#433
def inverted_lambda; end
- # source://activesupport//lib/active_support/callbacks.rb#468
+ # source://activesupport//lib/active_support/callbacks.rb#427
def make_lambda; end
end
-# source://activesupport//lib/active_support/callbacks.rb#481
+# source://activesupport//lib/active_support/callbacks.rb#440
class ActiveSupport::Callbacks::CallTemplate::InstanceExec2
# @return [InstanceExec2] a new instance of InstanceExec2
#
- # source://activesupport//lib/active_support/callbacks.rb#482
+ # source://activesupport//lib/active_support/callbacks.rb#441
def initialize(block); end
# @raise [ArgumentError]
#
- # source://activesupport//lib/active_support/callbacks.rb#486
+ # source://activesupport//lib/active_support/callbacks.rb#445
def expand(target, value, block); end
- # source://activesupport//lib/active_support/callbacks.rb#498
+ # source://activesupport//lib/active_support/callbacks.rb#457
def inverted_lambda; end
- # source://activesupport//lib/active_support/callbacks.rb#491
+ # source://activesupport//lib/active_support/callbacks.rb#450
def make_lambda; end
end
-# source://activesupport//lib/active_support/callbacks.rb#379
+# source://activesupport//lib/active_support/callbacks.rb#338
class ActiveSupport::Callbacks::CallTemplate::MethodCall
# @return [MethodCall] a new instance of MethodCall
#
- # source://activesupport//lib/active_support/callbacks.rb#380
+ # source://activesupport//lib/active_support/callbacks.rb#339
def initialize(method); end
# Return the parts needed to make this call, with the given
@@ -2446,199 +2444,202 @@ class ActiveSupport::Callbacks::CallTemplate::MethodCall
# The actual invocation is left up to the caller to minimize
# call stack pollution.
#
- # source://activesupport//lib/active_support/callbacks.rb#397
+ # source://activesupport//lib/active_support/callbacks.rb#356
def expand(target, value, block); end
- # source://activesupport//lib/active_support/callbacks.rb#407
+ # source://activesupport//lib/active_support/callbacks.rb#366
def inverted_lambda; end
- # source://activesupport//lib/active_support/callbacks.rb#401
+ # source://activesupport//lib/active_support/callbacks.rb#360
def make_lambda; end
end
-# source://activesupport//lib/active_support/callbacks.rb#414
+# source://activesupport//lib/active_support/callbacks.rb#373
class ActiveSupport::Callbacks::CallTemplate::ObjectCall
# @return [ObjectCall] a new instance of ObjectCall
#
- # source://activesupport//lib/active_support/callbacks.rb#415
+ # source://activesupport//lib/active_support/callbacks.rb#374
def initialize(target, method); end
- # source://activesupport//lib/active_support/callbacks.rb#420
+ # source://activesupport//lib/active_support/callbacks.rb#379
def expand(target, value, block); end
- # source://activesupport//lib/active_support/callbacks.rb#430
+ # source://activesupport//lib/active_support/callbacks.rb#389
def inverted_lambda; end
- # source://activesupport//lib/active_support/callbacks.rb#424
+ # source://activesupport//lib/active_support/callbacks.rb#383
def make_lambda; end
end
-# source://activesupport//lib/active_support/callbacks.rb#506
+# source://activesupport//lib/active_support/callbacks.rb#465
class ActiveSupport::Callbacks::CallTemplate::ProcCall
# @return [ProcCall] a new instance of ProcCall
#
- # source://activesupport//lib/active_support/callbacks.rb#507
+ # source://activesupport//lib/active_support/callbacks.rb#466
def initialize(target); end
- # source://activesupport//lib/active_support/callbacks.rb#511
+ # source://activesupport//lib/active_support/callbacks.rb#470
def expand(target, value, block); end
- # source://activesupport//lib/active_support/callbacks.rb#521
+ # source://activesupport//lib/active_support/callbacks.rb#480
def inverted_lambda; end
- # source://activesupport//lib/active_support/callbacks.rb#515
+ # source://activesupport//lib/active_support/callbacks.rb#474
def make_lambda; end
end
-# source://activesupport//lib/active_support/callbacks.rb#283
+# source://activesupport//lib/active_support/callbacks.rb#231
class ActiveSupport::Callbacks::Callback
# @return [Callback] a new instance of Callback
#
- # source://activesupport//lib/active_support/callbacks.rb#298
+ # source://activesupport//lib/active_support/callbacks.rb#246
def initialize(name, filter, kind, options, chain_config); end
# Wraps code with filter
#
- # source://activesupport//lib/active_support/callbacks.rb#333
+ # source://activesupport//lib/active_support/callbacks.rb#300
def apply(callback_sequence); end
# Returns the value of attribute chain_config.
#
- # source://activesupport//lib/active_support/callbacks.rb#296
+ # source://activesupport//lib/active_support/callbacks.rb#244
def chain_config; end
- # source://activesupport//lib/active_support/callbacks.rb#347
+ # source://activesupport//lib/active_support/callbacks.rb#282
+ def compiled; end
+
+ # source://activesupport//lib/active_support/callbacks.rb#304
def current_scopes; end
# @return [Boolean]
#
- # source://activesupport//lib/active_support/callbacks.rb#323
+ # source://activesupport//lib/active_support/callbacks.rb#273
def duplicates?(other); end
# Returns the value of attribute filter.
#
- # source://activesupport//lib/active_support/callbacks.rb#296
+ # source://activesupport//lib/active_support/callbacks.rb#244
def filter; end
# Returns the value of attribute kind.
#
- # source://activesupport//lib/active_support/callbacks.rb#295
+ # source://activesupport//lib/active_support/callbacks.rb#243
def kind; end
# Sets the attribute kind
#
# @param value the value to set the attribute kind to.
#
- # source://activesupport//lib/active_support/callbacks.rb#295
+ # source://activesupport//lib/active_support/callbacks.rb#243
def kind=(_arg0); end
# @return [Boolean]
#
- # source://activesupport//lib/active_support/callbacks.rb#319
+ # source://activesupport//lib/active_support/callbacks.rb#269
def matches?(_kind, _filter); end
- # source://activesupport//lib/active_support/callbacks.rb#307
+ # source://activesupport//lib/active_support/callbacks.rb#257
def merge_conditional_options(chain, if_option:, unless_option:); end
# Returns the value of attribute name.
#
- # source://activesupport//lib/active_support/callbacks.rb#295
+ # source://activesupport//lib/active_support/callbacks.rb#243
def name; end
# Sets the attribute name
#
# @param value the value to set the attribute name to.
#
- # source://activesupport//lib/active_support/callbacks.rb#295
+ # source://activesupport//lib/active_support/callbacks.rb#243
def name=(_arg0); end
private
- # source://activesupport//lib/active_support/callbacks.rb#355
+ # source://activesupport//lib/active_support/callbacks.rb#312
def check_conditionals(conditionals); end
- # source://activesupport//lib/active_support/callbacks.rb#370
+ # source://activesupport//lib/active_support/callbacks.rb#327
def conditions_lambdas; end
class << self
- # source://activesupport//lib/active_support/callbacks.rb#284
+ # source://activesupport//lib/active_support/callbacks.rb#232
def build(chain, filter, kind, options); end
end
end
-# source://activesupport//lib/active_support/callbacks.rb#352
+# source://activesupport//lib/active_support/callbacks.rb#309
ActiveSupport::Callbacks::Callback::EMPTY_ARRAY = T.let(T.unsafe(nil), Array)
-# source://activesupport//lib/active_support/callbacks.rb#606
+# source://activesupport//lib/active_support/callbacks.rb#567
class ActiveSupport::Callbacks::CallbackChain
include ::Enumerable
# @return [CallbackChain] a new instance of CallbackChain
#
- # source://activesupport//lib/active_support/callbacks.rb#611
+ # source://activesupport//lib/active_support/callbacks.rb#572
def initialize(name, config); end
- # source://activesupport//lib/active_support/callbacks.rb#671
+ # source://activesupport//lib/active_support/callbacks.rb#632
def append(*callbacks); end
- # source://activesupport//lib/active_support/callbacks.rb#639
+ # source://activesupport//lib/active_support/callbacks.rb#600
def clear; end
- # source://activesupport//lib/active_support/callbacks.rb#653
+ # source://activesupport//lib/active_support/callbacks.rb#614
def compile(type); end
# Returns the value of attribute config.
#
- # source://activesupport//lib/active_support/callbacks.rb#609
+ # source://activesupport//lib/active_support/callbacks.rb#570
def config; end
- # source://activesupport//lib/active_support/callbacks.rb#633
+ # source://activesupport//lib/active_support/callbacks.rb#594
def delete(o); end
- # source://activesupport//lib/active_support/callbacks.rb#623
+ # source://activesupport//lib/active_support/callbacks.rb#584
def each(&block); end
# @return [Boolean]
#
- # source://activesupport//lib/active_support/callbacks.rb#625
+ # source://activesupport//lib/active_support/callbacks.rb#586
def empty?; end
- # source://activesupport//lib/active_support/callbacks.rb#624
+ # source://activesupport//lib/active_support/callbacks.rb#585
def index(o); end
- # source://activesupport//lib/active_support/callbacks.rb#627
+ # source://activesupport//lib/active_support/callbacks.rb#588
def insert(index, o); end
# Returns the value of attribute name.
#
- # source://activesupport//lib/active_support/callbacks.rb#609
+ # source://activesupport//lib/active_support/callbacks.rb#570
def name; end
- # source://activesupport//lib/active_support/callbacks.rb#675
+ # source://activesupport//lib/active_support/callbacks.rb#636
def prepend(*callbacks); end
protected
# Returns the value of attribute chain.
#
- # source://activesupport//lib/active_support/callbacks.rb#680
+ # source://activesupport//lib/active_support/callbacks.rb#641
def chain; end
private
- # source://activesupport//lib/active_support/callbacks.rb#683
+ # source://activesupport//lib/active_support/callbacks.rb#644
def append_one(callback); end
- # source://activesupport//lib/active_support/callbacks.rb#703
+ # source://activesupport//lib/active_support/callbacks.rb#664
def default_terminator; end
- # source://activesupport//lib/active_support/callbacks.rb#646
+ # source://activesupport//lib/active_support/callbacks.rb#607
def initialize_copy(other); end
- # source://activesupport//lib/active_support/callbacks.rb#690
+ # source://activesupport//lib/active_support/callbacks.rb#651
def prepend_one(callback); end
- # source://activesupport//lib/active_support/callbacks.rb#697
+ # source://activesupport//lib/active_support/callbacks.rb#658
def remove_duplicates(callback); end
end
@@ -2646,53 +2647,53 @@ end
# chaining them with nested lambda calls, see:
# https://github.com/rails/rails/issues/18011
#
-# source://activesupport//lib/active_support/callbacks.rb#559
+# source://activesupport//lib/active_support/callbacks.rb#518
class ActiveSupport::Callbacks::CallbackSequence
# @return [CallbackSequence] a new instance of CallbackSequence
#
- # source://activesupport//lib/active_support/callbacks.rb#560
+ # source://activesupport//lib/active_support/callbacks.rb#519
def initialize(nested = T.unsafe(nil), call_template = T.unsafe(nil), user_conditions = T.unsafe(nil)); end
- # source://activesupport//lib/active_support/callbacks.rb#574
- def after(&after); end
+ # source://activesupport//lib/active_support/callbacks.rb#534
+ def after(after); end
- # source://activesupport//lib/active_support/callbacks.rb#579
+ # source://activesupport//lib/active_support/callbacks.rb#540
def around(call_template, user_conditions); end
- # source://activesupport//lib/active_support/callbacks.rb#569
- def before(&before); end
+ # source://activesupport//lib/active_support/callbacks.rb#528
+ def before(before); end
- # source://activesupport//lib/active_support/callbacks.rb#593
+ # source://activesupport//lib/active_support/callbacks.rb#554
def expand_call_template(arg, block); end
# @return [Boolean]
#
- # source://activesupport//lib/active_support/callbacks.rb#589
+ # source://activesupport//lib/active_support/callbacks.rb#550
def final?; end
- # source://activesupport//lib/active_support/callbacks.rb#601
+ # source://activesupport//lib/active_support/callbacks.rb#562
def invoke_after(arg); end
- # source://activesupport//lib/active_support/callbacks.rb#597
+ # source://activesupport//lib/active_support/callbacks.rb#558
def invoke_before(arg); end
# Returns the value of attribute nested.
#
- # source://activesupport//lib/active_support/callbacks.rb#587
+ # source://activesupport//lib/active_support/callbacks.rb#548
def nested; end
# @return [Boolean]
#
- # source://activesupport//lib/active_support/callbacks.rb#583
+ # source://activesupport//lib/active_support/callbacks.rb#544
def skip?(arg); end
end
-# source://activesupport//lib/active_support/callbacks.rb#715
+# source://activesupport//lib/active_support/callbacks.rb#676
module ActiveSupport::Callbacks::ClassMethods
# This is used internally to append, prepend and skip callbacks to the
# CallbackChain.
#
- # source://activesupport//lib/active_support/callbacks.rb#725
+ # source://activesupport//lib/active_support/callbacks.rb#686
def __update_callbacks(name); end
# Define sets of events in the object life cycle that support callbacks.
@@ -2774,15 +2775,15 @@ module ActiveSupport::Callbacks::ClassMethods
# Calling +define_callbacks+ multiple times with the same +names+ will
# overwrite previous callbacks registered with #set_callback.
#
- # source://activesupport//lib/active_support/callbacks.rb#940
+ # source://activesupport//lib/active_support/callbacks.rb#901
def define_callbacks(*names); end
- # source://activesupport//lib/active_support/callbacks.rb#716
+ # source://activesupport//lib/active_support/callbacks.rb#677
def normalize_callback_params(filters, block); end
# Remove all set callbacks for the given event.
#
- # source://activesupport//lib/active_support/callbacks.rb#850
+ # source://activesupport//lib/active_support/callbacks.rb#811
def reset_callbacks(name); end
# Install a callback for the given event.
@@ -2830,7 +2831,7 @@ module ActiveSupport::Callbacks::ClassMethods
# * :prepend - If +true+, the callback will be prepended to the
# existing chain rather than appended.
#
- # source://activesupport//lib/active_support/callbacks.rb#776
+ # source://activesupport//lib/active_support/callbacks.rb#737
def set_callback(name, *filter_list, &block); end
# Skip a previously set callback. Like #set_callback, :if or
@@ -2869,15 +2870,15 @@ module ActiveSupport::Callbacks::ClassMethods
# An ArgumentError will be raised if the callback has not
# already been set (unless the :raise option is set to false).
#
- # source://activesupport//lib/active_support/callbacks.rb#825
+ # source://activesupport//lib/active_support/callbacks.rb#786
def skip_callback(name, *filter_list, &block); end
protected
- # source://activesupport//lib/active_support/callbacks.rb#971
+ # source://activesupport//lib/active_support/callbacks.rb#932
def get_callbacks(name); end
- # source://activesupport//lib/active_support/callbacks.rb#975
+ # source://activesupport//lib/active_support/callbacks.rb#936
def set_callbacks(name, callbacks); end
end
@@ -2898,42 +2899,83 @@ end
# source://activesupport//lib/active_support/callbacks.rb#162
module ActiveSupport::Callbacks::Filters; end
-# source://activesupport//lib/active_support/callbacks.rb#215
+# source://activesupport//lib/active_support/callbacks.rb#194
class ActiveSupport::Callbacks::Filters::After
- class << self
- # source://activesupport//lib/active_support/callbacks.rb#216
- def build(callback_sequence, user_callback, user_conditions, chain_config); end
+ # @return [After] a new instance of After
+ #
+ # source://activesupport//lib/active_support/callbacks.rb#196
+ def initialize(user_callback, user_conditions, chain_config); end
- private
+ # source://activesupport//lib/active_support/callbacks.rb#214
+ def apply(callback_sequence); end
- # source://activesupport//lib/active_support/callbacks.rb#258
- def conditional(callback_sequence, user_callback, user_conditions); end
+ # source://activesupport//lib/active_support/callbacks.rb#202
+ def call(env); end
- # source://activesupport//lib/active_support/callbacks.rb#247
- def halting(callback_sequence, user_callback); end
+ # Returns the value of attribute halting.
+ #
+ # source://activesupport//lib/active_support/callbacks.rb#195
+ def halting; end
- # source://activesupport//lib/active_support/callbacks.rb#232
- def halting_and_conditional(callback_sequence, user_callback, user_conditions); end
+ # Returns the value of attribute user_callback.
+ #
+ # source://activesupport//lib/active_support/callbacks.rb#195
+ def user_callback; end
- # source://activesupport//lib/active_support/callbacks.rb#272
- def simple(callback_sequence, user_callback); end
- end
+ # Returns the value of attribute user_conditions.
+ #
+ # source://activesupport//lib/active_support/callbacks.rb#195
+ def user_conditions; end
+end
+
+# source://activesupport//lib/active_support/callbacks.rb#219
+class ActiveSupport::Callbacks::Filters::Around
+ # @return [Around] a new instance of Around
+ #
+ # source://activesupport//lib/active_support/callbacks.rb#220
+ def initialize(user_callback, user_conditions); end
+
+ # source://activesupport//lib/active_support/callbacks.rb#225
+ def apply(callback_sequence); end
end
# source://activesupport//lib/active_support/callbacks.rb#165
class ActiveSupport::Callbacks::Filters::Before
- class << self
- # source://activesupport//lib/active_support/callbacks.rb#166
- def build(callback_sequence, user_callback, user_conditions, chain_config, filter, name); end
+ # @return [Before] a new instance of Before
+ #
+ # source://activesupport//lib/active_support/callbacks.rb#166
+ def initialize(user_callback, user_conditions, chain_config, filter, name); end
- private
+ # source://activesupport//lib/active_support/callbacks.rb#189
+ def apply(callback_sequence); end
+
+ # source://activesupport//lib/active_support/callbacks.rb#173
+ def call(env); end
- # source://activesupport//lib/active_support/callbacks.rb#195
- def halting(callback_sequence, user_callback, halted_lambda, filter, name); end
+ # Returns the value of attribute filter.
+ #
+ # source://activesupport//lib/active_support/callbacks.rb#171
+ def filter; end
- # source://activesupport//lib/active_support/callbacks.rb#176
- def halting_and_conditional(callback_sequence, user_callback, user_conditions, halted_lambda, filter, name); end
- end
+ # Returns the value of attribute halted_lambda.
+ #
+ # source://activesupport//lib/active_support/callbacks.rb#171
+ def halted_lambda; end
+
+ # Returns the value of attribute name.
+ #
+ # source://activesupport//lib/active_support/callbacks.rb#171
+ def name; end
+
+ # Returns the value of attribute user_callback.
+ #
+ # source://activesupport//lib/active_support/callbacks.rb#171
+ def user_callback; end
+
+ # Returns the value of attribute user_conditions.
+ #
+ # source://activesupport//lib/active_support/callbacks.rb#171
+ def user_conditions; end
end
# source://activesupport//lib/active_support/callbacks.rb#163
@@ -2984,17 +3026,17 @@ end
class ActiveSupport::CodeGenerator
# @return [CodeGenerator] a new instance of CodeGenerator
#
- # source://activesupport//lib/active_support/code_generator.rb#48
+ # source://activesupport//lib/active_support/code_generator.rb#53
def initialize(owner, path, line); end
- # source://activesupport//lib/active_support/code_generator.rb#55
- def define_cached_method(name, namespace:, as: T.unsafe(nil), &block); end
+ # source://activesupport//lib/active_support/code_generator.rb#60
+ def define_cached_method(canonical_name, namespace:, as: T.unsafe(nil), &block); end
- # source://activesupport//lib/active_support/code_generator.rb#59
+ # source://activesupport//lib/active_support/code_generator.rb#64
def execute; end
class << self
- # source://activesupport//lib/active_support/code_generator.rb#36
+ # source://activesupport//lib/active_support/code_generator.rb#41
def batch(owner, path, line); end
end
end
@@ -3006,11 +3048,11 @@ class ActiveSupport::CodeGenerator::MethodSet
# source://activesupport//lib/active_support/code_generator.rb#8
def initialize(namespace); end
- # source://activesupport//lib/active_support/code_generator.rb#25
+ # source://activesupport//lib/active_support/code_generator.rb#28
def apply(owner, path, line); end
- # source://activesupport//lib/active_support/code_generator.rb#14
- def define_cached_method(name, as: T.unsafe(nil)); end
+ # source://activesupport//lib/active_support/code_generator.rb#15
+ def define_cached_method(canonical_name, as: T.unsafe(nil)); end
end
# source://activesupport//lib/active_support/code_generator.rb#6
@@ -3621,7 +3663,7 @@ end
# The attributes stuck in Current should be used by more or less all actions on all requests. If you start
# sticking controller-specific attributes in there, you're going to create a mess.
#
-# source://activesupport//lib/active_support/current_attributes.rb#91
+# source://activesupport//lib/active_support/current_attributes.rb#92
class ActiveSupport::CurrentAttributes
include ::ActiveSupport::Callbacks
extend ::ActiveSupport::Callbacks::ClassMethods
@@ -3638,10 +3680,10 @@ class ActiveSupport::CurrentAttributes
# source://activesupport//lib/active_support/callbacks.rb#70
def __callbacks?; end
- # source://activesupport//lib/active_support/callbacks.rb#963
+ # source://activesupport//lib/active_support/callbacks.rb#924
def _reset_callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#951
+ # source://activesupport//lib/active_support/callbacks.rb#912
def _run_reset_callbacks(&block); end
# Returns the value of attribute attributes.
@@ -3656,9 +3698,15 @@ class ActiveSupport::CurrentAttributes
# source://activesupport//lib/active_support/current_attributes.rb#195
def attributes=(_arg0); end
+ # source://activesupport//lib/active_support/current_attributes.rb#193
+ def defaults; end
+
+ # source://activesupport//lib/active_support/current_attributes.rb#193
+ def defaults?; end
+
# Reset all attributes. Should be called before and after actions, when used as a per-request singleton.
#
- # source://activesupport//lib/active_support/current_attributes.rb#220
+ # source://activesupport//lib/active_support/current_attributes.rb#216
def reset; end
# Expose one or more attributes within a block. Old values are returned after the block concludes.
@@ -3673,15 +3721,12 @@ class ActiveSupport::CurrentAttributes
# end
#
# source://activesupport//lib/active_support/current_attributes.rb#211
- def set(set_attributes); end
+ def set(attributes, &block); end
private
- # source://activesupport//lib/active_support/current_attributes.rb#227
- def assign_attributes(new_attributes); end
-
- # source://activesupport//lib/active_support/current_attributes.rb#231
- def compute_attributes(keys); end
+ # source://activesupport//lib/active_support/current_attributes.rb#223
+ def resolve_defaults; end
class << self
# source://activesupport//lib/active_support/callbacks.rb#70
@@ -3693,71 +3738,92 @@ class ActiveSupport::CurrentAttributes
# source://activesupport//lib/active_support/callbacks.rb#70
def __callbacks?; end
- # source://activesupport//lib/active_support/callbacks.rb#955
+ # source://activesupport//lib/active_support/callbacks.rb#916
def _reset_callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#959
+ # source://activesupport//lib/active_support/callbacks.rb#920
def _reset_callbacks=(value); end
# Calls this callback after #reset is called on the instance. Used for resetting external collaborators, like Time.zone.
#
- # source://activesupport//lib/active_support/current_attributes.rb#151
+ # source://activesupport//lib/active_support/current_attributes.rb#147
def after_reset(*methods, &block); end
# Declares one or more attributes that will be given both class and instance accessor methods.
#
- # source://activesupport//lib/active_support/current_attributes.rb#104
- def attribute(*names); end
+ # ==== Options
+ #
+ # * :default - The default value for the attributes. If the value
+ # is a proc or lambda, it will be called whenever an instance is
+ # constructed. Otherwise, the value will be duplicated with +#dup+.
+ # Default values are re-assigned when the attributes are reset.
+ #
+ # source://activesupport//lib/active_support/current_attributes.rb#112
+ def attribute(*names, default: T.unsafe(nil)); end
# Calls this callback before #reset is called on the instance. Used for resetting external collaborators that depend on current values.
#
- # source://activesupport//lib/active_support/current_attributes.rb#146
+ # source://activesupport//lib/active_support/current_attributes.rb#142
def before_reset(*methods, &block); end
- # source://activesupport//lib/active_support/current_attributes.rb#162
+ # source://activesupport//lib/active_support/current_attributes.rb#158
def clear_all; end
+ # source://activesupport//lib/active_support/current_attributes.rb#193
+ def defaults; end
+
+ # source://activesupport//lib/active_support/current_attributes.rb#193
+ def defaults=(value); end
+
+ # source://activesupport//lib/active_support/current_attributes.rb#193
+ def defaults?; end
+
# Returns singleton instance for this class in this thread. If none exists, one is created.
#
- # source://activesupport//lib/active_support/current_attributes.rb#99
+ # source://activesupport//lib/active_support/current_attributes.rb#100
def instance; end
- # source://activesupport//lib/active_support/current_attributes.rb#156
+ # source://activesupport//lib/active_support/current_attributes.rb#152
def reset(*_arg0, **_arg1, &_arg2); end
- # source://activesupport//lib/active_support/current_attributes.rb#158
+ # source://activesupport//lib/active_support/current_attributes.rb#154
def reset_all; end
# Calls this callback after #reset is called on the instance. Used for resetting external collaborators, like Time.zone.
#
- # source://activesupport//lib/active_support/current_attributes.rb#151
+ # source://activesupport//lib/active_support/current_attributes.rb#147
def resets(*methods, &block); end
- # source://activesupport//lib/active_support/current_attributes.rb#156
+ # source://activesupport//lib/active_support/current_attributes.rb#152
def set(*_arg0, **_arg1, &_arg2); end
private
- # source://activesupport//lib/active_support/current_attributes.rb#172
+ # source://activesupport//lib/active_support/current_attributes.rb#168
def current_instances; end
- # source://activesupport//lib/active_support/current_attributes.rb#176
+ # source://activesupport//lib/active_support/current_attributes.rb#172
def current_instances_key; end
- # source://activesupport//lib/active_support/current_attributes.rb#168
+ # source://activesupport//lib/active_support/current_attributes.rb#164
def generated_attribute_methods; end
- # source://activesupport//lib/active_support/current_attributes.rb#180
- def method_missing(name, *args, **_arg2, &block); end
+ # @private
+ #
+ # source://activesupport//lib/active_support/current_attributes.rb#184
+ def method_added(name); end
+
+ # source://activesupport//lib/active_support/current_attributes.rb#176
+ def method_missing(name, *_arg1, **_arg2, &_arg3); end
# @return [Boolean]
#
- # source://activesupport//lib/active_support/current_attributes.rb#190
+ # source://activesupport//lib/active_support/current_attributes.rb#180
def respond_to_missing?(name, _); end
end
end
-# source://activesupport//lib/active_support/current_attributes.rb#95
+# source://activesupport//lib/active_support/current_attributes.rb#96
ActiveSupport::CurrentAttributes::INVALID_ATTRIBUTE_NAMES = T.let(T.unsafe(nil), Array)
# Provides +deep_merge+ and +deep_merge!+ methods. Expects the including class
@@ -3805,6 +3871,34 @@ module ActiveSupport::DeepMergeable
def deep_merge?(other); end
end
+# source://activesupport//lib/active_support/delegation.rb#16
+module ActiveSupport::Delegation
+ class << self
+ # source://activesupport//lib/active_support/delegation.rb#23
+ def generate(owner, methods, location: T.unsafe(nil), to: T.unsafe(nil), prefix: T.unsafe(nil), allow_nil: T.unsafe(nil), nilable: T.unsafe(nil), private: T.unsafe(nil), as: T.unsafe(nil), signature: T.unsafe(nil)); end
+
+ # source://activesupport//lib/active_support/delegation.rb#152
+ def generate_method_missing(owner, target, allow_nil: T.unsafe(nil)); end
+ end
+end
+
+# source://activesupport//lib/active_support/delegation.rb#20
+ActiveSupport::Delegation::RESERVED_METHOD_NAMES = T.let(T.unsafe(nil), Set)
+
+# source://activesupport//lib/active_support/delegation.rb#17
+ActiveSupport::Delegation::RUBY_RESERVED_KEYWORDS = T.let(T.unsafe(nil), Array)
+
+# Error generated by +delegate+ when a method is called on +nil+ and +allow_nil+
+# option is not used.
+#
+# source://activesupport//lib/active_support/delegation.rb#8
+class ActiveSupport::DelegationError < ::NoMethodError
+ class << self
+ # source://activesupport//lib/active_support/delegation.rb#10
+ def nil_target(method_name, target); end
+ end
+end
+
# source://activesupport//lib/active_support/dependencies/interlock.rb#6
module ActiveSupport::Dependencies
class << self
@@ -3966,15 +4060,12 @@ end
# # in config/environments/test.rb
# config.active_support.deprecation = :raise
#
-# source://activesupport//lib/active_support/deprecation.rb#35
+# source://activesupport//lib/active_support/deprecation.rb#33
class ActiveSupport::Deprecation
- include ::ActiveSupport::Deprecation::InstanceDelegator
include ::ActiveSupport::Deprecation::Behavior
include ::ActiveSupport::Deprecation::Reporting
include ::ActiveSupport::Deprecation::Disallowed
include ::ActiveSupport::Deprecation::MethodWrapper
- extend ::ActiveSupport::Deprecation::InstanceDelegator::ClassMethods
- extend ::ActiveSupport::Deprecation::InstanceDelegator::OverrideDelegators
# It accepts two parameters on initialization. The first is a version of library
# and the second is a library name.
@@ -3983,82 +4074,22 @@ class ActiveSupport::Deprecation
#
# @return [Deprecation] a new instance of Deprecation
#
- # source://activesupport//lib/active_support/deprecation.rb#68
+ # source://activesupport//lib/active_support/deprecation.rb#71
def initialize(deprecation_horizon = T.unsafe(nil), gem_name = T.unsafe(nil)); end
# The version number in which the deprecated behavior will be removed, by default.
#
- # source://activesupport//lib/active_support/deprecation.rb#62
+ # source://activesupport//lib/active_support/deprecation.rb#65
def deprecation_horizon; end
# The version number in which the deprecated behavior will be removed, by default.
#
- # source://activesupport//lib/active_support/deprecation.rb#62
+ # source://activesupport//lib/active_support/deprecation.rb#65
def deprecation_horizon=(_arg0); end
class << self
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#34
- def allow(*_arg0, **_arg1, &_arg2); end
-
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#34
- def begin_silence(*_arg0, **_arg1, &_arg2); end
-
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#34
- def behavior(*_arg0, **_arg1, &_arg2); end
-
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#34
- def behavior=(arg); end
-
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#34
- def debug(*_arg0, **_arg1, &_arg2); end
-
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#34
- def debug=(arg); end
-
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#34
- def deprecate_methods(*_arg0, **_arg1, &_arg2); end
-
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#34
- def deprecation_horizon(*_arg0, **_arg1, &_arg2); end
-
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#34
- def deprecation_horizon=(arg); end
-
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#58
- def deprecation_warning(deprecated_method_name, message = T.unsafe(nil), caller_backtrace = T.unsafe(nil)); end
-
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#34
- def disallowed_behavior(*_arg0, **_arg1, &_arg2); end
-
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#34
- def disallowed_behavior=(arg); end
-
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#34
- def disallowed_warnings(*_arg0, **_arg1, &_arg2); end
-
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#34
- def disallowed_warnings=(arg); end
-
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#34
- def end_silence(*_arg0, **_arg1, &_arg2); end
-
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#34
- def gem_name(*_arg0, **_arg1, &_arg2); end
-
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#34
- def gem_name=(arg); end
-
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#34
- def silence(*_arg0, **_arg1, &_arg2); end
-
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#34
- def silenced(*_arg0, **_arg1, &_arg2); end
-
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#34
- def silenced=(arg); end
-
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#53
- def warn(message = T.unsafe(nil), callstack = T.unsafe(nil)); end
+ # source://activesupport//lib/active_support/deprecation.rb#60
+ def _instance; end
end
end
@@ -4152,35 +4183,12 @@ end
# source://activesupport//lib/active_support/deprecation/behaviors.rb#13
ActiveSupport::Deprecation::DEFAULT_BEHAVIORS = T.let(T.unsafe(nil), Hash)
-# DeprecatedConstantAccessor transforms a constant into a deprecated one by
-# hooking +const_missing+.
-#
-# It takes the names of an old (deprecated) constant and of a new constant
-# (both in string form) and a deprecator.
-#
-# The deprecated constant now returns the same object as the new one rather
-# than a proxy object, so it can be used transparently in +rescue+ blocks
-# etc.
-#
-# PLANETS = %w(mercury venus earth mars jupiter saturn uranus neptune pluto)
-#
-# # (In a later update, the original implementation of `PLANETS` has been removed.)
-#
-# PLANETS_POST_2006 = %w(mercury venus earth mars jupiter saturn uranus neptune)
-# include ActiveSupport::Deprecation::DeprecatedConstantAccessor
-# deprecate_constant 'PLANETS', 'PLANETS_POST_2006', deprecator: ActiveSupport::Deprecation.new
-#
-# PLANETS.map { |planet| planet.capitalize }
-# # => DEPRECATION WARNING: PLANETS is deprecated! Use PLANETS_POST_2006 instead.
-# (Backtrace information…)
-# ["Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune"]
-#
-# source://activesupport//lib/active_support/deprecation/constant_accessor.rb#27
+# source://activesupport//lib/active_support/deprecation/constant_accessor.rb#5
module ActiveSupport::Deprecation::DeprecatedConstantAccessor
class << self
# @private
#
- # source://activesupport//lib/active_support/deprecation/constant_accessor.rb#28
+ # source://activesupport//lib/active_support/deprecation/constant_accessor.rb#6
def included(base); end
end
end
@@ -4201,14 +4209,14 @@ end
# (Backtrace information…)
# ["Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune"]
#
-# source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#122
+# source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#120
class ActiveSupport::Deprecation::DeprecatedConstantProxy < ::Module
# @return [DeprecatedConstantProxy] a new instance of DeprecatedConstantProxy
#
- # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#130
- def initialize(old_const, new_const, deprecator = T.unsafe(nil), message: T.unsafe(nil)); end
+ # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#128
+ def initialize(old_const, new_const, deprecator, message: T.unsafe(nil)); end
- # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#161
+ # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#158
def append_features(base); end
# Returns the class of the new constant.
@@ -4217,46 +4225,46 @@ class ActiveSupport::Deprecation::DeprecatedConstantProxy < ::Module
# PLANETS = ActiveSupport::Deprecation::DeprecatedConstantProxy.new('PLANETS', 'PLANETS_POST_2006')
# PLANETS.class # => Array
#
- # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#157
+ # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#154
def class; end
- # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#171
+ # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#168
def extended(base); end
- # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#150
+ # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#147
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.
#
- # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#144
+ # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#141
def inspect; end
- # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#150
+ # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#147
def instance_methods(*_arg0, **_arg1, &_arg2); end
- # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#150
+ # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#147
def name(*_arg0, **_arg1, &_arg2); end
- # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#166
+ # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#163
def prepend_features(base); end
- # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#150
+ # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#147
def respond_to?(*_arg0, **_arg1, &_arg2); end
private
- # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#181
+ # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#178
def const_missing(name); end
- # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#186
- def method_missing(called, *args, &block); end
+ # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#183
+ def method_missing(*_arg0, **_arg1, &_arg2); end
- # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#177
+ # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#174
def target; end
class << self
- # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#123
+ # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#121
def new(*args, **options, &block); end
end
end
@@ -4294,19 +4302,19 @@ end
# example.request.to_s
# # => "special_request"
#
-# source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#88
+# source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#87
class ActiveSupport::Deprecation::DeprecatedInstanceVariableProxy < ::ActiveSupport::Deprecation::DeprecationProxy
# @return [DeprecatedInstanceVariableProxy] a new instance of DeprecatedInstanceVariableProxy
#
- # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#89
- def initialize(instance, method, var = T.unsafe(nil), deprecator = T.unsafe(nil)); end
+ # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#88
+ def initialize(instance, method, var = T.unsafe(nil), deprecator:); end
private
- # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#98
+ # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#96
def target; end
- # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#102
+ # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#100
def warn(callstack, called, args); end
end
@@ -4326,14 +4334,14 @@ class ActiveSupport::Deprecation::DeprecatedObjectProxy < ::ActiveSupport::Depre
# @return [DeprecatedObjectProxy] a new instance of DeprecatedObjectProxy
#
# source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#39
- def initialize(object, message, deprecator = T.unsafe(nil)); end
+ def initialize(object, message, deprecator); end
private
- # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#47
+ # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#46
def target; end
- # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#51
+ # source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#50
def warn(callstack, called, args); end
end
@@ -4352,7 +4360,7 @@ class ActiveSupport::Deprecation::DeprecationProxy
class << self
# source://activesupport//lib/active_support/deprecation/proxy_wrappers.rb#6
- def new(*args, &block); end
+ def new(*args, **kwargs, &block); end
end
end
@@ -4483,45 +4491,8 @@ module ActiveSupport::Deprecation::Disallowed
def explicitly_allowed?(message); end
end
-# source://activesupport//lib/active_support/deprecation/instance_delegator.rb#5
-module ActiveSupport::Deprecation::InstanceDelegator
- mixes_in_class_methods ::ActiveSupport::Deprecation::InstanceDelegator::ClassMethods
- mixes_in_class_methods ::ActiveSupport::Deprecation::InstanceDelegator::OverrideDelegators
-
- class << self
- # @private
- #
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#6
- def included(base); end
- end
-end
-
-# source://activesupport//lib/active_support/deprecation/instance_delegator.rb#11
-module ActiveSupport::Deprecation::InstanceDelegator::ClassMethods
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#47
- def _instance; end
-
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#15
- def include(included_module); end
-
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#42
- def instance; end
-
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#20
- def method_added(method_name); end
-end
-
-# source://activesupport//lib/active_support/deprecation/instance_delegator.rb#12
-ActiveSupport::Deprecation::InstanceDelegator::ClassMethods::MUTEX = T.let(T.unsafe(nil), Thread::Mutex)
-
-# source://activesupport//lib/active_support/deprecation/instance_delegator.rb#52
-module ActiveSupport::Deprecation::InstanceDelegator::OverrideDelegators
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#58
- def deprecation_warning(deprecated_method_name, message = T.unsafe(nil), caller_backtrace = T.unsafe(nil)); end
-
- # source://activesupport//lib/active_support/deprecation/instance_delegator.rb#53
- def warn(message = T.unsafe(nil), callstack = T.unsafe(nil)); end
-end
+# source://activesupport//lib/active_support/deprecation.rb#57
+ActiveSupport::Deprecation::MUTEX = T.let(T.unsafe(nil), Thread::Mutex)
# source://activesupport//lib/active_support/deprecation/method_wrappers.rb#8
module ActiveSupport::Deprecation::MethodWrapper
@@ -4669,14 +4640,14 @@ module ActiveSupport::Deprecation::Reporting
# @return [Boolean]
#
- # source://activesupport//lib/active_support/deprecation/reporting.rb#169
+ # source://activesupport//lib/active_support/deprecation/reporting.rb#174
def ignored_callstack?(path); end
end
-# source://activesupport//lib/active_support/deprecation/reporting.rb#167
+# source://activesupport//lib/active_support/deprecation/reporting.rb#172
ActiveSupport::Deprecation::Reporting::LIB_DIR = T.let(T.unsafe(nil), String)
-# source://activesupport//lib/active_support/deprecation/reporting.rb#166
+# source://activesupport//lib/active_support/deprecation/reporting.rb#171
ActiveSupport::Deprecation::Reporting::RAILS_GEM_ROOT = T.let(T.unsafe(nil), String)
# Raised when ActiveSupport::Deprecation::Behavior#behavior is set with :raise.
@@ -4694,35 +4665,35 @@ class ActiveSupport::DeprecationException < ::StandardError; end
# so if you know your code won't be executed on older rubies, including
# +ActiveSupport::DescendantsTracker+ does not provide any benefit.
#
-# source://activesupport//lib/active_support/descendants_tracker.rb#15
+# source://activesupport//lib/active_support/descendants_tracker.rb#14
module ActiveSupport::DescendantsTracker
- # source://activesupport//lib/active_support/descendants_tracker.rb#109
+ # source://activesupport//lib/active_support/descendants_tracker.rb#107
def descendants; end
class << self
- # source://activesupport//lib/active_support/descendants_tracker.rb#79
+ # source://activesupport//lib/active_support/descendants_tracker.rb#78
def clear(classes); end
- # source://activesupport//lib/active_support/descendants_tracker.rb#104
+ # source://activesupport//lib/active_support/descendants_tracker.rb#102
def descendants(klass); end
- # source://activesupport//lib/active_support/descendants_tracker.rb#70
+ # source://activesupport//lib/active_support/descendants_tracker.rb#69
def disable_clear!; end
- # source://activesupport//lib/active_support/descendants_tracker.rb#90
+ # source://activesupport//lib/active_support/descendants_tracker.rb#89
def reject!(classes); end
- # source://activesupport//lib/active_support/descendants_tracker.rb#100
+ # source://activesupport//lib/active_support/descendants_tracker.rb#98
def subclasses(klass); end
end
end
-# source://activesupport//lib/active_support/descendants_tracker.rb#59
+# source://activesupport//lib/active_support/descendants_tracker.rb#58
module ActiveSupport::DescendantsTracker::ReloadedClassesFiltering
- # source://activesupport//lib/active_support/descendants_tracker.rb#64
+ # source://activesupport//lib/active_support/descendants_tracker.rb#63
def descendants; end
- # source://activesupport//lib/active_support/descendants_tracker.rb#60
+ # source://activesupport//lib/active_support/descendants_tracker.rb#59
def subclasses; end
end
@@ -4732,9 +4703,9 @@ end
# JRuby for now doesn't have Class#descendant, but when it will, it will likely
# have the same WeakMap semantic than Truffle so we future proof this as much as possible.
#
-# source://activesupport//lib/active_support/descendants_tracker.rb#21
+# source://activesupport//lib/active_support/descendants_tracker.rb#20
class ActiveSupport::DescendantsTracker::WeakSet < ::ObjectSpace::WeakMap
- # source://activesupport//lib/active_support/descendants_tracker.rb#24
+ # source://activesupport//lib/active_support/descendants_tracker.rb#23
def <<(object); end
def to_a; end
@@ -4767,83 +4738,86 @@ end
class ActiveSupport::Duration
# @return [Duration] a new instance of Duration
#
- # source://activesupport//lib/active_support/duration.rb#224
+ # source://activesupport//lib/active_support/duration.rb#226
def initialize(value, parts, variable = T.unsafe(nil)); end
# Returns the modulo of this Duration by another Duration or Numeric.
# Numeric values are treated as seconds.
#
- # source://activesupport//lib/active_support/duration.rb#307
+ # source://activesupport//lib/active_support/duration.rb#312
def %(other); end
# Multiplies this Duration by a Numeric and returns a new Duration.
#
- # source://activesupport//lib/active_support/duration.rb#282
+ # source://activesupport//lib/active_support/duration.rb#287
def *(other); end
# Adds another Duration or a Numeric to this Duration. Numeric values
# are treated as seconds.
#
- # source://activesupport//lib/active_support/duration.rb#263
+ # source://activesupport//lib/active_support/duration.rb#268
def +(other); end
- # source://activesupport//lib/active_support/duration.rb#321
+ # source://activesupport//lib/active_support/duration.rb#326
def +@; end
# Subtracts another Duration or a Numeric from this Duration. Numeric
# values are treated as seconds.
#
- # source://activesupport//lib/active_support/duration.rb#277
+ # source://activesupport//lib/active_support/duration.rb#282
def -(other); end
- # source://activesupport//lib/active_support/duration.rb#317
+ # source://activesupport//lib/active_support/duration.rb#322
def -@; end
# Divides this Duration by a Numeric and returns a new Duration.
#
- # source://activesupport//lib/active_support/duration.rb#293
+ # source://activesupport//lib/active_support/duration.rb#298
def /(other); end
# Compares one Duration with another or a Numeric to this Duration.
# Numeric values are treated as seconds.
#
- # source://activesupport//lib/active_support/duration.rb#253
+ # source://activesupport//lib/active_support/duration.rb#258
def <=>(other); end
# Returns +true+ if +other+ is also a Duration instance with the
# same +value+, or if other == value.
#
- # source://activesupport//lib/active_support/duration.rb#336
+ # source://activesupport//lib/active_support/duration.rb#341
def ==(other); end
- # source://activesupport//lib/active_support/duration.rb#476
+ # source://activesupport//lib/active_support/duration.rb#481
def _parts; end
+ # source://activesupport//lib/active_support/duration.rb#224
+ def abs(&_arg0); end
+
# Calculates a new Time or Date that is as far in the future
# as this Duration represents.
#
- # source://activesupport//lib/active_support/duration.rb#431
+ # source://activesupport//lib/active_support/duration.rb#436
def after(time = T.unsafe(nil)); end
# Calculates a new Time or Date that is as far in the past
# as this Duration represents.
#
- # source://activesupport//lib/active_support/duration.rb#439
+ # source://activesupport//lib/active_support/duration.rb#444
def ago(time = T.unsafe(nil)); end
- # source://activesupport//lib/active_support/duration.rb#454
+ # source://activesupport//lib/active_support/duration.rb#459
def as_json(options = T.unsafe(nil)); end
# Calculates a new Time or Date that is as far in the past
# as this Duration represents.
#
- # source://activesupport//lib/active_support/duration.rb#439
+ # source://activesupport//lib/active_support/duration.rb#444
def before(time = T.unsafe(nil)); end
- # source://activesupport//lib/active_support/duration.rb#240
+ # source://activesupport//lib/active_support/duration.rb#245
def coerce(other); end
- # source://activesupport//lib/active_support/duration.rb#462
+ # source://activesupport//lib/active_support/duration.rb#467
def encode_with(coder); end
# Returns +true+ if +other+ is also a Duration instance, which has the
@@ -4851,44 +4825,44 @@ class ActiveSupport::Duration
#
# @return [Boolean]
#
- # source://activesupport//lib/active_support/duration.rb#421
+ # source://activesupport//lib/active_support/duration.rb#426
def eql?(other); end
# Calculates a new Time or Date that is as far in the future
# as this Duration represents.
#
- # source://activesupport//lib/active_support/duration.rb#431
+ # source://activesupport//lib/active_support/duration.rb#436
def from_now(time = T.unsafe(nil)); end
- # source://activesupport//lib/active_support/duration.rb#425
+ # source://activesupport//lib/active_support/duration.rb#430
def hash; end
# Returns the amount of days a duration covers as a float
#
# 12.hours.in_days # => 0.5
#
- # source://activesupport//lib/active_support/duration.rb#394
+ # source://activesupport//lib/active_support/duration.rb#399
def in_days; end
# Returns the amount of hours a duration covers as a float
#
# 1.day.in_hours # => 24.0
#
- # source://activesupport//lib/active_support/duration.rb#387
+ # source://activesupport//lib/active_support/duration.rb#392
def in_hours; end
# Returns the amount of minutes a duration covers as a float
#
# 1.day.in_minutes # => 1440.0
#
- # source://activesupport//lib/active_support/duration.rb#380
+ # source://activesupport//lib/active_support/duration.rb#385
def in_minutes; end
# Returns the amount of months a duration covers as a float
#
# 9.weeks.in_months # => 2.07
#
- # source://activesupport//lib/active_support/duration.rb#408
+ # source://activesupport//lib/active_support/duration.rb#413
def in_months; end
# Returns the number of seconds that this Duration represents.
@@ -4908,65 +4882,77 @@ class ActiveSupport::Duration
# 1.year.to_i # => 31556952
#
# In such cases, Ruby's core
- # Date[https://ruby-doc.org/stdlib/libdoc/date/rdoc/Date.html] and
- # Time[https://ruby-doc.org/stdlib/libdoc/time/rdoc/Time.html] should be used for precision
+ # Date[https://docs.ruby-lang.org/en/master/Date.html] and
+ # Time[https://docs.ruby-lang.org/en/master/Time.html] should be used for precision
# date and time arithmetic.
#
- # source://activesupport//lib/active_support/duration.rb#372
+ # source://activesupport//lib/active_support/duration.rb#377
def in_seconds; end
# Returns the amount of weeks a duration covers as a float
#
# 2.months.in_weeks # => 8.696
#
- # source://activesupport//lib/active_support/duration.rb#401
+ # source://activesupport//lib/active_support/duration.rb#406
def in_weeks; end
# Returns the amount of years a duration covers as a float
#
# 30.days.in_years # => 0.082
#
- # source://activesupport//lib/active_support/duration.rb#415
+ # source://activesupport//lib/active_support/duration.rb#420
def in_years; end
- # source://activesupport//lib/active_support/duration.rb#458
+ # source://activesupport//lib/active_support/duration.rb#463
def init_with(coder); end
- # source://activesupport//lib/active_support/duration.rb#445
+ # source://activesupport//lib/active_support/duration.rb#450
def inspect; end
# @return [Boolean]
#
- # source://activesupport//lib/active_support/duration.rb#330
+ # source://activesupport//lib/active_support/duration.rb#335
def instance_of?(klass); end
# @return [Boolean]
#
- # source://activesupport//lib/active_support/duration.rb#325
+ # source://activesupport//lib/active_support/duration.rb#330
def is_a?(klass); end
# Build ISO 8601 Duration string for this duration.
# The +precision+ parameter can be used to limit seconds' precision of duration.
#
- # source://activesupport//lib/active_support/duration.rb#468
+ # source://activesupport//lib/active_support/duration.rb#473
def iso8601(precision: T.unsafe(nil)); end
# @return [Boolean]
#
- # source://activesupport//lib/active_support/duration.rb#325
+ # source://activesupport//lib/active_support/duration.rb#330
def kind_of?(klass); end
- # Returns a copy of the parts hash that defines the duration
+ # source://activesupport//lib/active_support/duration.rb#224
+ def negative?(&_arg0); end
+
+ # Returns a copy of the parts hash that defines the duration.
+ #
+ # 5.minutes.parts # => {:minutes=>5}
+ # 3.years.parts # => {:years=>3}
#
- # source://activesupport//lib/active_support/duration.rb#236
+ # source://activesupport//lib/active_support/duration.rb#241
def parts; end
+ # source://activesupport//lib/active_support/duration.rb#224
+ def positive?(&_arg0); end
+
# Calculates a new Time or Date that is as far in the future
# as this Duration represents.
#
- # source://activesupport//lib/active_support/duration.rb#431
+ # source://activesupport//lib/active_support/duration.rb#436
def since(time = T.unsafe(nil)); end
+ # source://activesupport//lib/active_support/duration.rb#224
+ def to_f(&_arg0); end
+
# Returns the number of seconds that this Duration represents.
#
# 1.minute.to_i # => 60
@@ -4984,11 +4970,11 @@ class ActiveSupport::Duration
# 1.year.to_i # => 31556952
#
# In such cases, Ruby's core
- # Date[https://ruby-doc.org/stdlib/libdoc/date/rdoc/Date.html] and
- # Time[https://ruby-doc.org/stdlib/libdoc/time/rdoc/Time.html] should be used for precision
+ # Date[https://docs.ruby-lang.org/en/master/Date.html] and
+ # Time[https://docs.ruby-lang.org/en/master/Time.html] should be used for precision
# date and time arithmetic.
#
- # source://activesupport//lib/active_support/duration.rb#372
+ # source://activesupport//lib/active_support/duration.rb#377
def to_i; end
# Returns the amount of seconds a duration covers as a string.
@@ -4996,13 +4982,13 @@ class ActiveSupport::Duration
#
# 1.day.to_s # => "86400"
#
- # source://activesupport//lib/active_support/duration.rb#348
+ # source://activesupport//lib/active_support/duration.rb#353
def to_s; end
# Calculates a new Time or Date that is as far in the past
# as this Duration represents.
#
- # source://activesupport//lib/active_support/duration.rb#439
+ # source://activesupport//lib/active_support/duration.rb#444
def until(time = T.unsafe(nil)); end
# Returns the value of attribute value.
@@ -5012,25 +4998,28 @@ class ActiveSupport::Duration
# @return [Boolean]
#
- # source://activesupport//lib/active_support/duration.rb#472
+ # source://activesupport//lib/active_support/duration.rb#477
def variable?; end
+ # source://activesupport//lib/active_support/duration.rb#224
+ def zero?(&_arg0); end
+
private
- # source://activesupport//lib/active_support/duration.rb#507
- def method_missing(method, *args, &block); end
+ # source://activesupport//lib/active_support/duration.rb#512
+ def method_missing(*_arg0, **_arg1, &_arg2); end
# @raise [TypeError]
#
- # source://activesupport//lib/active_support/duration.rb#511
+ # source://activesupport//lib/active_support/duration.rb#516
def raise_type_error(other); end
# @return [Boolean]
#
- # source://activesupport//lib/active_support/duration.rb#503
+ # source://activesupport//lib/active_support/duration.rb#508
def respond_to_missing?(method, _); end
- # source://activesupport//lib/active_support/duration.rb#481
+ # source://activesupport//lib/active_support/duration.rb#486
def sum(sign, time = T.unsafe(nil)); end
class << self
@@ -5214,20 +5203,19 @@ class ActiveSupport::Duration::ISO8601Serializer
private
- # source://activesupport//lib/active_support/duration/iso8601_serializer.rb#56
+ # source://activesupport//lib/active_support/duration/iso8601_serializer.rb#55
def format_seconds(seconds); end
# Return pair of duration's parts and whole duration sign.
# Parts are summarized (as they can become repetitive due to addition, etc).
# Zero parts are removed as not significant.
- # If all parts are negative it will negate all of them and return minus as a sign.
#
- # source://activesupport//lib/active_support/duration/iso8601_serializer.rb#39
+ # source://activesupport//lib/active_support/duration/iso8601_serializer.rb#38
def normalize; end
# @return [Boolean]
#
- # source://activesupport//lib/active_support/duration/iso8601_serializer.rb#52
+ # source://activesupport//lib/active_support/duration/iso8601_serializer.rb#51
def week_mixed_with_date?(parts); end
end
@@ -5421,16 +5409,28 @@ ActiveSupport::EnvironmentInquirer::LOCAL_ENVIRONMENTS = T.let(T.unsafe(nil), Ar
class ActiveSupport::ErrorReporter
# @return [ErrorReporter] a new instance of ErrorReporter
#
- # source://activesupport//lib/active_support/error_reporter.rb#32
+ # source://activesupport//lib/active_support/error_reporter.rb#35
def initialize(*subscribers, logger: T.unsafe(nil)); end
+ # Returns the value of attribute debug_mode.
+ #
+ # source://activesupport//lib/active_support/error_reporter.rb#31
+ def debug_mode; end
+
+ # Sets the attribute debug_mode
+ #
+ # @param value the value to set the attribute debug_mode to.
+ #
+ # source://activesupport//lib/active_support/error_reporter.rb#31
+ def debug_mode=(_arg0); end
+
# Prevent a subscriber from being notified of errors for the
# duration of the block. You may pass in the subscriber itself, or its class.
#
# This can be helpful for error reporting service integrations, when they wish
# to handle any errors higher in the stack.
#
- # source://activesupport//lib/active_support/error_reporter.rb#147
+ # source://activesupport//lib/active_support/error_reporter.rb#185
def disable(subscriber); end
# Evaluates the given block, reporting and swallowing any unhandled error.
@@ -5471,19 +5471,19 @@ class ActiveSupport::ErrorReporter
# source of the error. Subscribers can use this value to ignore certain
# errors. Defaults to "application".
#
- # source://activesupport//lib/active_support/error_reporter.rb#74
+ # source://activesupport//lib/active_support/error_reporter.rb#78
def handle(*error_classes, severity: T.unsafe(nil), context: T.unsafe(nil), fallback: T.unsafe(nil), source: T.unsafe(nil)); end
# Returns the value of attribute logger.
#
- # source://activesupport//lib/active_support/error_reporter.rb#30
+ # source://activesupport//lib/active_support/error_reporter.rb#31
def logger; end
# Sets the attribute logger
#
# @param value the value to set the attribute logger to.
#
- # source://activesupport//lib/active_support/error_reporter.rb#30
+ # source://activesupport//lib/active_support/error_reporter.rb#31
def logger=(_arg0); end
# Evaluates the given block, reporting and re-raising any unhandled error.
@@ -5515,7 +5515,7 @@ class ActiveSupport::ErrorReporter
# source of the error. Subscribers can use this value to ignore certain
# errors. Defaults to "application".
#
- # source://activesupport//lib/active_support/error_reporter.rb#110
+ # source://activesupport//lib/active_support/error_reporter.rb#114
def record(*error_classes, severity: T.unsafe(nil), context: T.unsafe(nil), source: T.unsafe(nil)); end
# Report an error directly to subscribers. You can use this method when the
@@ -5523,7 +5523,7 @@ class ActiveSupport::ErrorReporter
#
# Rails.error.report(error)
#
- # source://activesupport//lib/active_support/error_reporter.rb#172
+ # source://activesupport//lib/active_support/error_reporter.rb#210
def report(error, handled: T.unsafe(nil), severity: T.unsafe(nil), context: T.unsafe(nil), source: T.unsafe(nil)); end
# Update the execution context that is accessible to error subscribers. Any
@@ -5532,7 +5532,7 @@ class ActiveSupport::ErrorReporter
#
# Rails.error.set_context(section: "checkout", user_id: @user.id)
#
- # source://activesupport//lib/active_support/error_reporter.rb#163
+ # source://activesupport//lib/active_support/error_reporter.rb#201
def set_context(*_arg0, **_arg1, &_arg2); end
# Register a new error subscriber. The subscriber must respond to
@@ -5541,9 +5541,35 @@ class ActiveSupport::ErrorReporter
#
# The +report+ method should never raise an error.
#
- # source://activesupport//lib/active_support/error_reporter.rb#123
+ # source://activesupport//lib/active_support/error_reporter.rb#161
def subscribe(subscriber); end
+ # Either report the given error when in production, or raise it when in development or test.
+ #
+ # When called in production, after the error is reported, this method will return
+ # nil and execution will continue.
+ #
+ # When called in development, the original error is wrapped in a different error class to ensure
+ # it's not being rescued higher in the stack and will be surfaced to the developer.
+ #
+ # This method is intended for reporting violated assertions about preconditions, or similar
+ # cases that can and should be gracefully handled in production, but that aren't supposed to happen.
+ #
+ # The error can be either an exception instance or a String.
+ #
+ # example:
+ #
+ # def edit
+ # if published?
+ # Rails.error.unexpected("[BUG] Attempting to edit a published article, that shouldn't be possible")
+ # return false
+ # end
+ # # ...
+ # end
+ #
+ # source://activesupport//lib/active_support/error_reporter.rb#145
+ def unexpected(error, severity: T.unsafe(nil), context: T.unsafe(nil), source: T.unsafe(nil)); end
+
# Unregister an error subscriber. Accepts either a subscriber or a class.
#
# subscriber = MyErrorSubscriber.new
@@ -5553,16 +5579,22 @@ class ActiveSupport::ErrorReporter
# # or
# Rails.error.unsubscribe(MyErrorSubscriber)
#
- # source://activesupport//lib/active_support/error_reporter.rb#138
+ # source://activesupport//lib/active_support/error_reporter.rb#176
def unsubscribe(subscriber); end
end
+# source://activesupport//lib/active_support/error_reporter.rb#29
+ActiveSupport::ErrorReporter::DEFAULT_RESCUE = T.let(T.unsafe(nil), Array)
+
# source://activesupport//lib/active_support/error_reporter.rb#28
ActiveSupport::ErrorReporter::DEFAULT_SOURCE = T.let(T.unsafe(nil), String)
# source://activesupport//lib/active_support/error_reporter.rb#27
ActiveSupport::ErrorReporter::SEVERITIES = T.let(T.unsafe(nil), Array)
+# source://activesupport//lib/active_support/error_reporter.rb#33
+class ActiveSupport::ErrorReporter::UnexpectedError < ::Exception; end
+
# source://activesupport//lib/active_support/execution_context.rb#4
module ActiveSupport::ExecutionContext
class << self
@@ -5591,7 +5623,7 @@ module ActiveSupport::ExecutionContext
end
end
-# source://activesupport//lib/active_support/execution_wrapper.rb#8
+# source://activesupport//lib/active_support/execution_wrapper.rb#7
class ActiveSupport::ExecutionWrapper
include ::ActiveSupport::Callbacks
extend ::ActiveSupport::Callbacks::ClassMethods
@@ -5603,19 +5635,19 @@ class ActiveSupport::ExecutionWrapper
# source://activesupport//lib/active_support/callbacks.rb#70
def __callbacks?; end
- # source://activesupport//lib/active_support/callbacks.rb#963
+ # source://activesupport//lib/active_support/callbacks.rb#924
def _complete_callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#963
+ # source://activesupport//lib/active_support/callbacks.rb#924
def _run_callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#951
+ # source://activesupport//lib/active_support/callbacks.rb#912
def _run_complete_callbacks(&block); end
- # source://activesupport//lib/active_support/callbacks.rb#951
+ # source://activesupport//lib/active_support/callbacks.rb#912
def _run_run_callbacks(&block); end
- # source://activesupport//lib/active_support/execution_wrapper.rb#142
+ # source://activesupport//lib/active_support/execution_wrapper.rb#141
def complete; end
# Complete this in-flight execution. This method *must* be called
@@ -5623,18 +5655,18 @@ class ActiveSupport::ExecutionWrapper
#
# Where possible, prefer +wrap+.
#
- # source://activesupport//lib/active_support/execution_wrapper.rb#136
+ # source://activesupport//lib/active_support/execution_wrapper.rb#135
def complete!; end
- # source://activesupport//lib/active_support/execution_wrapper.rb#128
+ # source://activesupport//lib/active_support/execution_wrapper.rb#127
def run; end
- # source://activesupport//lib/active_support/execution_wrapper.rb#123
+ # source://activesupport//lib/active_support/execution_wrapper.rb#122
def run!; end
private
- # source://activesupport//lib/active_support/execution_wrapper.rb#147
+ # source://activesupport//lib/active_support/execution_wrapper.rb#146
def hook_state; end
class << self
@@ -5647,30 +5679,30 @@ class ActiveSupport::ExecutionWrapper
# source://activesupport//lib/active_support/callbacks.rb#70
def __callbacks?; end
- # source://activesupport//lib/active_support/callbacks.rb#955
+ # source://activesupport//lib/active_support/callbacks.rb#916
def _complete_callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#959
+ # source://activesupport//lib/active_support/callbacks.rb#920
def _complete_callbacks=(value); end
- # source://activesupport//lib/active_support/callbacks.rb#955
+ # source://activesupport//lib/active_support/callbacks.rb#916
def _run_callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#959
+ # source://activesupport//lib/active_support/callbacks.rb#920
def _run_callbacks=(value); end
# @return [Boolean]
#
- # source://activesupport//lib/active_support/execution_wrapper.rb#119
+ # source://activesupport//lib/active_support/execution_wrapper.rb#118
def active?; end
- # source://activesupport//lib/active_support/execution_wrapper.rb#115
+ # source://activesupport//lib/active_support/execution_wrapper.rb#114
def active_key; end
- # source://activesupport//lib/active_support/execution_wrapper.rb#111
+ # source://activesupport//lib/active_support/execution_wrapper.rb#110
def error_reporter; end
- # source://activesupport//lib/active_support/execution_wrapper.rb#101
+ # source://activesupport//lib/active_support/execution_wrapper.rb#100
def perform; end
# Register an object to be invoked during both the +run+ and
@@ -5682,7 +5714,7 @@ class ActiveSupport::ExecutionWrapper
# a preceding +to_run+ block; all ordinary +to_complete+ blocks are
# invoked in that situation.)
#
- # source://activesupport//lib/active_support/execution_wrapper.rb#51
+ # source://activesupport//lib/active_support/execution_wrapper.rb#50
def register_hook(hook, outer: T.unsafe(nil)); end
# Run this execution.
@@ -5692,28 +5724,28 @@ class ActiveSupport::ExecutionWrapper
#
# Where possible, prefer +wrap+.
#
- # source://activesupport//lib/active_support/execution_wrapper.rb#67
+ # source://activesupport//lib/active_support/execution_wrapper.rb#66
def run!(reset: T.unsafe(nil)); end
- # source://activesupport//lib/active_support/execution_wrapper.rb#22
+ # source://activesupport//lib/active_support/execution_wrapper.rb#21
def to_complete(*args, &block); end
- # source://activesupport//lib/active_support/execution_wrapper.rb#18
+ # source://activesupport//lib/active_support/execution_wrapper.rb#17
def to_run(*args, &block); end
# Perform the work in the supplied block as an execution.
#
- # source://activesupport//lib/active_support/execution_wrapper.rb#87
+ # source://activesupport//lib/active_support/execution_wrapper.rb#86
def wrap(source: T.unsafe(nil)); end
end
end
-# source://activesupport//lib/active_support/execution_wrapper.rb#33
+# source://activesupport//lib/active_support/execution_wrapper.rb#32
class ActiveSupport::ExecutionWrapper::CompleteHook < ::Struct
- # source://activesupport//lib/active_support/execution_wrapper.rb#34
+ # source://activesupport//lib/active_support/execution_wrapper.rb#33
def after(target); end
- # source://activesupport//lib/active_support/execution_wrapper.rb#34
+ # source://activesupport//lib/active_support/execution_wrapper.rb#33
def before(target); end
# Returns the value of attribute hook
@@ -5736,12 +5768,12 @@ class ActiveSupport::ExecutionWrapper::CompleteHook < ::Struct
end
end
-# source://activesupport//lib/active_support/execution_wrapper.rb#11
+# source://activesupport//lib/active_support/execution_wrapper.rb#10
ActiveSupport::ExecutionWrapper::Null = T.let(T.unsafe(nil), Object)
-# source://activesupport//lib/active_support/execution_wrapper.rb#26
+# source://activesupport//lib/active_support/execution_wrapper.rb#25
class ActiveSupport::ExecutionWrapper::RunHook < ::Struct
- # source://activesupport//lib/active_support/execution_wrapper.rb#27
+ # source://activesupport//lib/active_support/execution_wrapper.rb#26
def before(target); end
# Returns the value of attribute hook
@@ -5865,41 +5897,22 @@ end
# source://activesupport//lib/active_support/fork_tracker.rb#4
module ActiveSupport::ForkTracker
class << self
- # source://activesupport//lib/active_support/fork_tracker.rb#67
+ # source://activesupport//lib/active_support/fork_tracker.rb#31
def after_fork(&block); end
- # source://activesupport//lib/active_support/fork_tracker.rb#40
+ # source://activesupport//lib/active_support/fork_tracker.rb#19
def after_fork_callback; end
- # source://activesupport//lib/active_support/fork_tracker.rb#49
- def check!; end
-
- # source://activesupport//lib/active_support/fork_tracker.rb#56
+ # source://activesupport//lib/active_support/fork_tracker.rb#27
def hook!; end
- # source://activesupport//lib/active_support/fork_tracker.rb#72
+ # source://activesupport//lib/active_support/fork_tracker.rb#36
def unregister(callback); end
end
end
-# source://activesupport//lib/active_support/fork_tracker.rb#15
-module ActiveSupport::ForkTracker::CoreExt
- # source://activesupport//lib/active_support/fork_tracker.rb#16
- def fork(*_arg0, **_arg1, &_arg2); end
-end
-
-# source://activesupport//lib/active_support/fork_tracker.rb#31
-module ActiveSupport::ForkTracker::CoreExtPrivate
- include ::ActiveSupport::ForkTracker::CoreExt
-
- private
-
- # source://activesupport//lib/active_support/fork_tracker.rb#16
- def fork(*_arg0, **_arg1, &_arg2); end
-end
-
# source://activesupport//lib/active_support/fork_tracker.rb#5
-module ActiveSupport::ForkTracker::ModernCoreExt
+module ActiveSupport::ForkTracker::CoreExt
# source://activesupport//lib/active_support/fork_tracker.rb#6
def _fork; end
end
@@ -6288,6 +6301,9 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash
# source://activesupport//lib/active_support/hash_with_indifferent_access.rb#325
def to_options!; end
+ # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#390
+ def to_proc; end
+
# source://activesupport//lib/active_support/hash_with_indifferent_access.rb#344
def transform_keys(hash = T.unsafe(nil), &block); end
@@ -6367,16 +6383,16 @@ class ActiveSupport::HashWithIndifferentAccess < ::Hash
private
- # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#392
+ # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#395
def convert_key(key); end
- # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#401
+ # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#399
def convert_value(value, conversion: T.unsafe(nil)); end
- # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#418
+ # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#416
def set_defaults(target); end
- # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#426
+ # source://activesupport//lib/active_support/hash_with_indifferent_access.rb#424
def update_with_single_argument(other_hash, block); end
class << self
@@ -7040,15 +7056,50 @@ end
# h.girl # => 'Mary'
# h.boy # => 'John'
#
-# source://activesupport//lib/active_support/ordered_options.rb#93
+# source://activesupport//lib/active_support/ordered_options.rb#89
class ActiveSupport::InheritableOptions < ::ActiveSupport::OrderedOptions
# @return [InheritableOptions] a new instance of InheritableOptions
#
- # source://activesupport//lib/active_support/ordered_options.rb#94
+ # source://activesupport//lib/active_support/ordered_options.rb#90
def initialize(parent = T.unsafe(nil)); end
- # source://activesupport//lib/active_support/ordered_options.rb#105
+ # source://activesupport//lib/active_support/ordered_options.rb#107
+ def ==(other); end
+
+ # source://activesupport//lib/active_support/ordered_options.rb#142
+ def each(&block); end
+
+ # source://activesupport//lib/active_support/ordered_options.rb#134
def inheritable_copy; end
+
+ # source://activesupport//lib/active_support/ordered_options.rb#111
+ def inspect; end
+
+ # @return [Boolean]
+ #
+ # source://activesupport//lib/active_support/ordered_options.rb#126
+ def key?(key); end
+
+ # @return [Boolean]
+ #
+ # source://activesupport//lib/active_support/ordered_options.rb#130
+ def overridden?(key); end
+
+ # source://activesupport//lib/active_support/ordered_options.rb#119
+ def pretty_print(pp); end
+
+ # source://activesupport//lib/active_support/ordered_options.rb#138
+ def to_a; end
+
+ # source://activesupport//lib/active_support/ordered_options.rb#103
+ def to_h; end
+
+ # source://activesupport//lib/active_support/ordered_options.rb#115
+ def to_s; end
+
+ private
+
+ def own_key?(_arg0); end
end
# source://activesupport//lib/active_support/isolated_execution_state.rb#6
@@ -7418,52 +7469,52 @@ end
# that all logs are flushed, and it is called in Rails::Rack::Logger after a
# request finishes.
#
-# source://activesupport//lib/active_support/log_subscriber.rb#63
+# source://activesupport//lib/active_support/log_subscriber.rb#64
class ActiveSupport::LogSubscriber < ::ActiveSupport::Subscriber
# @return [LogSubscriber] a new instance of LogSubscriber
#
- # source://activesupport//lib/active_support/log_subscriber.rb#136
+ # source://activesupport//lib/active_support/log_subscriber.rb#133
def initialize; end
- # source://activesupport//lib/active_support/log_subscriber.rb#149
+ # source://activesupport//lib/active_support/log_subscriber.rb#146
def call(event); end
- # source://activesupport//lib/active_support/log_subscriber.rb#86
+ # source://activesupport//lib/active_support/log_subscriber.rb#83
def colorize_logging; end
- # source://activesupport//lib/active_support/log_subscriber.rb#86
+ # source://activesupport//lib/active_support/log_subscriber.rb#83
def colorize_logging=(val); end
- # source://activesupport//lib/active_support/log_subscriber.rb#166
+ # source://activesupport//lib/active_support/log_subscriber.rb#163
def debug(progname = T.unsafe(nil), &block); end
- # source://activesupport//lib/active_support/log_subscriber.rb#166
+ # source://activesupport//lib/active_support/log_subscriber.rb#163
def error(progname = T.unsafe(nil), &block); end
- # source://activesupport//lib/active_support/log_subscriber.rb#161
+ # source://activesupport//lib/active_support/log_subscriber.rb#158
def event_levels=(_arg0); end
- # source://activesupport//lib/active_support/log_subscriber.rb#166
+ # source://activesupport//lib/active_support/log_subscriber.rb#163
def fatal(progname = T.unsafe(nil), &block); end
- # source://activesupport//lib/active_support/log_subscriber.rb#166
+ # source://activesupport//lib/active_support/log_subscriber.rb#163
def info(progname = T.unsafe(nil), &block); end
- # source://activesupport//lib/active_support/log_subscriber.rb#141
+ # source://activesupport//lib/active_support/log_subscriber.rb#138
def logger; end
- # source://activesupport//lib/active_support/log_subscriber.rb#155
+ # source://activesupport//lib/active_support/log_subscriber.rb#152
def publish_event(event); end
# @return [Boolean]
#
- # source://activesupport//lib/active_support/log_subscriber.rb#145
+ # source://activesupport//lib/active_support/log_subscriber.rb#142
def silenced?(event); end
- # source://activesupport//lib/active_support/log_subscriber.rb#166
+ # source://activesupport//lib/active_support/log_subscriber.rb#163
def unknown(progname = T.unsafe(nil), &block); end
- # source://activesupport//lib/active_support/log_subscriber.rb#166
+ # source://activesupport//lib/active_support/log_subscriber.rb#163
def warn(progname = T.unsafe(nil), &block); end
private
@@ -7472,105 +7523,97 @@ class ActiveSupport::LogSubscriber < ::ActiveSupport::Subscriber
# by specifying bold, italic, or underline options. Inspired by Highline,
# this method will automatically clear formatting at the end of the returned String.
#
- # source://activesupport//lib/active_support/log_subscriber.rb#175
+ # source://activesupport//lib/active_support/log_subscriber.rb#172
def color(text, color, mode_options = T.unsafe(nil)); end
- # source://activesupport//lib/active_support/log_subscriber.rb#197
+ # source://activesupport//lib/active_support/log_subscriber.rb#186
def log_exception(name, e); end
- # source://activesupport//lib/active_support/log_subscriber.rb#183
+ # source://activesupport//lib/active_support/log_subscriber.rb#180
def mode_from(options); end
class << self
- # source://activesupport//lib/active_support/log_subscriber.rb#102
+ # source://activesupport//lib/active_support/log_subscriber.rb#99
def attach_to(*_arg0, **_arg1, &_arg2); end
- # source://activesupport//lib/active_support/log_subscriber.rb#86
+ # source://activesupport//lib/active_support/log_subscriber.rb#83
def colorize_logging; end
- # source://activesupport//lib/active_support/log_subscriber.rb#86
+ # source://activesupport//lib/active_support/log_subscriber.rb#83
def colorize_logging=(val); end
# Flush all log_subscribers' logger.
#
- # source://activesupport//lib/active_support/log_subscriber.rb#115
+ # source://activesupport//lib/active_support/log_subscriber.rb#112
def flush_all!; end
- # source://activesupport//lib/active_support/log_subscriber.rb#87
+ # source://activesupport//lib/active_support/log_subscriber.rb#84
def log_levels; end
- # source://activesupport//lib/active_support/log_subscriber.rb#87
+ # source://activesupport//lib/active_support/log_subscriber.rb#84
def log_levels=(value); end
- # source://activesupport//lib/active_support/log_subscriber.rb#87
+ # source://activesupport//lib/active_support/log_subscriber.rb#84
def log_levels?; end
- # source://activesupport//lib/active_support/log_subscriber.rb#110
+ # source://activesupport//lib/active_support/log_subscriber.rb#107
def log_subscribers; end
- # source://activesupport//lib/active_support/log_subscriber.rb#96
+ # source://activesupport//lib/active_support/log_subscriber.rb#93
def logger; end
# Sets the attribute logger
#
# @param value the value to set the attribute logger to.
#
- # source://activesupport//lib/active_support/log_subscriber.rb#108
+ # source://activesupport//lib/active_support/log_subscriber.rb#105
def logger=(_arg0); end
private
- # source://activesupport//lib/active_support/log_subscriber.rb#120
+ # source://activesupport//lib/active_support/log_subscriber.rb#117
def fetch_public_methods(subscriber, inherit_all); end
- # source://activesupport//lib/active_support/log_subscriber.rb#124
+ # source://activesupport//lib/active_support/log_subscriber.rb#121
def set_event_levels; end
- # source://activesupport//lib/active_support/log_subscriber.rb#130
+ # source://activesupport//lib/active_support/log_subscriber.rb#127
def subscribe_log_level(method, level); end
end
end
# ANSI sequence colors
#
-# source://activesupport//lib/active_support/log_subscriber.rb#77
+# source://activesupport//lib/active_support/log_subscriber.rb#74
ActiveSupport::LogSubscriber::BLACK = T.let(T.unsafe(nil), String)
-# source://activesupport//lib/active_support/log_subscriber.rb#81
+# source://activesupport//lib/active_support/log_subscriber.rb#78
ActiveSupport::LogSubscriber::BLUE = T.let(T.unsafe(nil), String)
-# source://activesupport//lib/active_support/log_subscriber.rb#66
-ActiveSupport::LogSubscriber::BOLD = T.let(T.unsafe(nil), ActiveSupport::Deprecation::DeprecatedObjectProxy)
-
-# Embed in a String to clear all previous ANSI sequences.
-#
-# source://activesupport//lib/active_support/log_subscriber.rb#65
-ActiveSupport::LogSubscriber::CLEAR = T.let(T.unsafe(nil), ActiveSupport::Deprecation::DeprecatedObjectProxy)
-
-# source://activesupport//lib/active_support/log_subscriber.rb#83
+# source://activesupport//lib/active_support/log_subscriber.rb#80
ActiveSupport::LogSubscriber::CYAN = T.let(T.unsafe(nil), String)
-# source://activesupport//lib/active_support/log_subscriber.rb#79
+# source://activesupport//lib/active_support/log_subscriber.rb#76
ActiveSupport::LogSubscriber::GREEN = T.let(T.unsafe(nil), String)
-# source://activesupport//lib/active_support/log_subscriber.rb#89
+# source://activesupport//lib/active_support/log_subscriber.rb#86
ActiveSupport::LogSubscriber::LEVEL_CHECKS = T.let(T.unsafe(nil), Hash)
-# source://activesupport//lib/active_support/log_subscriber.rb#82
+# source://activesupport//lib/active_support/log_subscriber.rb#79
ActiveSupport::LogSubscriber::MAGENTA = T.let(T.unsafe(nil), String)
# ANSI sequence modes
#
-# source://activesupport//lib/active_support/log_subscriber.rb#69
+# source://activesupport//lib/active_support/log_subscriber.rb#66
ActiveSupport::LogSubscriber::MODES = T.let(T.unsafe(nil), Hash)
-# source://activesupport//lib/active_support/log_subscriber.rb#78
+# source://activesupport//lib/active_support/log_subscriber.rb#75
ActiveSupport::LogSubscriber::RED = T.let(T.unsafe(nil), String)
-# source://activesupport//lib/active_support/log_subscriber.rb#84
+# source://activesupport//lib/active_support/log_subscriber.rb#81
ActiveSupport::LogSubscriber::WHITE = T.let(T.unsafe(nil), String)
-# source://activesupport//lib/active_support/log_subscriber.rb#80
+# source://activesupport//lib/active_support/log_subscriber.rb#77
ActiveSupport::LogSubscriber::YELLOW = T.let(T.unsafe(nil), String)
# source://activesupport//lib/active_support/logger.rb#8
@@ -7580,7 +7623,7 @@ class ActiveSupport::Logger < ::Logger
# @return [Logger] a new instance of Logger
#
- # source://activesupport//lib/active_support/logger.rb#29
+ # source://activesupport//lib/active_support/logger.rb#33
def initialize(*args, **kwargs); end
# source://activesupport//lib/active_support/logger_silence.rb#12
@@ -7596,11 +7639,18 @@ class ActiveSupport::Logger < ::Logger
# ActiveSupport::Logger.logger_outputs_to?(logger, STDOUT)
# # => true
#
+ # logger = Logger.new('/var/log/rails.log')
+ # ActiveSupport::Logger.logger_outputs_to?(logger, '/var/log/rails.log')
+ # # => true
+ #
# @return [Boolean]
#
- # source://activesupport//lib/active_support/logger.rb#16
+ # source://activesupport//lib/active_support/logger.rb#20
def logger_outputs_to?(logger, *sources); end
+ # source://activesupport//lib/active_support/logger.rb#47
+ def normalize_sources(sources); end
+
# source://activesupport//lib/active_support/logger_silence.rb#12
def silencer; end
@@ -7611,11 +7661,11 @@ end
# Simple formatter which only displays the message.
#
-# source://activesupport//lib/active_support/logger.rb#35
+# source://activesupport//lib/active_support/logger.rb#39
class ActiveSupport::Logger::SimpleFormatter < ::Logger::Formatter
# This method is invoked when a log event occurs
#
- # source://activesupport//lib/active_support/logger.rb#37
+ # source://activesupport//lib/active_support/logger.rb#41
def call(severity, timestamp, progname, msg); end
end
@@ -7634,41 +7684,23 @@ end
module ActiveSupport::LoggerThreadSafeLevel
extend ::ActiveSupport::Concern
- # source://activesupport//lib/active_support/logger_thread_safe_level.rb#12
- def debug?; end
-
- # source://activesupport//lib/active_support/logger_thread_safe_level.rb#12
- def error?; end
-
- # source://activesupport//lib/active_support/logger_thread_safe_level.rb#12
- def fatal?; end
-
- # source://activesupport//lib/active_support/logger_thread_safe_level.rb#12
- def info?; end
-
- # source://activesupport//lib/active_support/logger_thread_safe_level.rb#38
+ # source://activesupport//lib/active_support/logger_thread_safe_level.rb#30
def level; end
- # source://activesupport//lib/active_support/logger_thread_safe_level.rb#18
+ # source://activesupport//lib/active_support/logger_thread_safe_level.rb#10
def local_level; end
- # source://activesupport//lib/active_support/logger_thread_safe_level.rb#22
+ # source://activesupport//lib/active_support/logger_thread_safe_level.rb#14
def local_level=(level); end
# Change the thread-local level for the duration of the given block.
#
- # source://activesupport//lib/active_support/logger_thread_safe_level.rb#43
+ # source://activesupport//lib/active_support/logger_thread_safe_level.rb#35
def log_at(level); end
- # source://activesupport//lib/active_support/logger_thread_safe_level.rb#12
- def unknown?; end
-
- # source://activesupport//lib/active_support/logger_thread_safe_level.rb#12
- def warn?; end
-
private
- # source://activesupport//lib/active_support/logger_thread_safe_level.rb#51
+ # source://activesupport//lib/active_support/logger_thread_safe_level.rb#43
def local_level_key; end
end
@@ -7999,6 +8031,18 @@ end
# self.current_user = User.find(id)
# end
#
+# === Signing is not encryption
+#
+# The signed messages are not encrypted. The payload is merely encoded (Base64 by default) and can be decoded by
+# anyone. The signature is just assuring that the message wasn't tampered with. For example:
+#
+# message = Rails.application.message_verifier('my_purpose').generate('never put secrets here')
+# # => "BAhJIhtuZXZlciBwdXQgc2VjcmV0cyBoZXJlBjoGRVQ=--a0c1c0827919da5e949e989c971249355735e140"
+# Base64.decode64(message.split("--").first) # no key needed
+# # => 'never put secrets here'
+#
+# If you also need to encrypt the contents, you must use ActiveSupport::MessageEncryptor instead.
+#
# === Confine messages to a specific purpose
#
# It's not recommended to use the same verifier for different purposes in your application.
@@ -8065,7 +8109,7 @@ end
#
# verifier.rotate(old_secret, digest: "SHA256", serializer: Marshal)
#
-# source://activesupport//lib/active_support/message_verifier.rb#98
+# source://activesupport//lib/active_support/message_verifier.rb#110
class ActiveSupport::MessageVerifier < ::ActiveSupport::Messages::Codec
include ::ActiveSupport::Messages::Rotator
@@ -8123,7 +8167,7 @@ class ActiveSupport::MessageVerifier < ::ActiveSupport::Messages::Codec
# source://activesupport//lib/active_support/messages/rotator.rb#6
def initialize(*args, on_rotation: T.unsafe(nil), **options); end
- # source://activesupport//lib/active_support/message_verifier.rb#296
+ # source://activesupport//lib/active_support/message_verifier.rb#308
def create_message(value, **options); end
# Generates a signed message for the provided value.
@@ -8161,10 +8205,10 @@ class ActiveSupport::MessageVerifier < ::ActiveSupport::Messages::Codec
# specified when verifying the message; otherwise, verification will fail.
# (See #verified and #verify.)
#
- # source://activesupport//lib/active_support/message_verifier.rb#292
+ # source://activesupport//lib/active_support/message_verifier.rb#304
def generate(value, **options); end
- # source://activesupport//lib/active_support/message_verifier.rb#304
+ # source://activesupport//lib/active_support/message_verifier.rb#316
def inspect; end
# source://activesupport//lib/active_support/messages/rotator.rb#23
@@ -8182,7 +8226,7 @@ class ActiveSupport::MessageVerifier < ::ActiveSupport::Messages::Codec
#
# @return [Boolean]
#
- # source://activesupport//lib/active_support/message_verifier.rb#169
+ # source://activesupport//lib/active_support/message_verifier.rb#181
def valid_message?(message); end
# Decodes the signed message using the +MessageVerifier+'s secret.
@@ -8222,7 +8266,7 @@ class ActiveSupport::MessageVerifier < ::ActiveSupport::Messages::Codec
# verifier.verified(message) # => "bye"
# verifier.verified(message, purpose: "greeting") # => nil
#
- # source://activesupport//lib/active_support/message_verifier.rb#210
+ # source://activesupport//lib/active_support/message_verifier.rb#222
def verified(message, **options); end
# Decodes the signed message using the +MessageVerifier+'s secret.
@@ -8253,44 +8297,44 @@ class ActiveSupport::MessageVerifier < ::ActiveSupport::Messages::Codec
# verifier.verify(message) # => "bye"
# verifier.verify(message, purpose: "greeting") # => raises InvalidSignature
#
- # source://activesupport//lib/active_support/message_verifier.rb#248
+ # source://activesupport//lib/active_support/message_verifier.rb#260
def verify(message, **options); end
private
- # source://activesupport//lib/active_support/message_verifier.rb#335
+ # source://activesupport//lib/active_support/message_verifier.rb#347
def digest_length_in_hex; end
# @return [Boolean]
#
- # source://activesupport//lib/active_support/message_verifier.rb#352
+ # source://activesupport//lib/active_support/message_verifier.rb#364
def digest_matches_data?(digest, data); end
- # source://activesupport//lib/active_support/message_verifier.rb#314
+ # source://activesupport//lib/active_support/message_verifier.rb#326
def extract_encoded(signed); end
- # source://activesupport//lib/active_support/message_verifier.rb#331
+ # source://activesupport//lib/active_support/message_verifier.rb#343
def generate_digest(data); end
# @return [Boolean]
#
- # source://activesupport//lib/active_support/message_verifier.rb#343
+ # source://activesupport//lib/active_support/message_verifier.rb#355
def separator_at?(signed_message, index); end
- # source://activesupport//lib/active_support/message_verifier.rb#347
+ # source://activesupport//lib/active_support/message_verifier.rb#359
def separator_index_for(signed_message); end
- # source://activesupport//lib/active_support/message_verifier.rb#309
+ # source://activesupport//lib/active_support/message_verifier.rb#321
def sign_encoded(encoded); end
end
-# source://activesupport//lib/active_support/message_verifier.rb#101
+# source://activesupport//lib/active_support/message_verifier.rb#113
class ActiveSupport::MessageVerifier::InvalidSignature < ::StandardError; end
-# source://activesupport//lib/active_support/message_verifier.rb#103
+# source://activesupport//lib/active_support/message_verifier.rb#115
ActiveSupport::MessageVerifier::SEPARATOR = T.let(T.unsafe(nil), String)
-# source://activesupport//lib/active_support/message_verifier.rb#104
+# source://activesupport//lib/active_support/message_verifier.rb#116
ActiveSupport::MessageVerifier::SEPARATOR_LENGTH = T.let(T.unsafe(nil), Integer)
# source://activesupport//lib/active_support/message_verifiers.rb#6
@@ -8756,7 +8800,7 @@ class ActiveSupport::Multibyte::Chars
# Forward all undefined methods to the wrapped string.
#
# source://activesupport//lib/active_support/multibyte/chars.rb#62
- def method_missing(method, *args, &block); end
+ def method_missing(method, *_arg1, **_arg2, &_arg3); end
# Reverses all characters in the string.
#
@@ -8907,6 +8951,16 @@ ActiveSupport::Multibyte::Unicode::UNICODE_VERSION = T.let(T.unsafe(nil), String
# You can consume those events and the information they provide by registering
# a subscriber.
#
+# ActiveSupport::Notifications.subscribe('render') do |event|
+# event.name # => "render"
+# event.duration # => 10 (in milliseconds)
+# event.payload # => { extra: :information }
+# event.allocations # => 1826 (objects)
+# end
+#
+# +Event+ objects record CPU time and allocations. If you don't need this
+# it's also possible to pass a block that accepts five arguments:
+#
# ActiveSupport::Notifications.subscribe('render') do |name, start, finish, id, payload|
# name # => String, name of the event (such as 'render' from above)
# start # => Time, when the instrumented block started execution
@@ -8920,20 +8974,18 @@ ActiveSupport::Multibyte::Unicode::UNICODE_VERSION = T.let(T.unsafe(nil), String
#
# ActiveSupport::Notifications.monotonic_subscribe('render') do |name, start, finish, id, payload|
# name # => String, name of the event (such as 'render' from above)
-# start # => Monotonic time, when the instrumented block started execution
-# finish # => Monotonic time, when the instrumented block ended execution
+# start # => Float, monotonic time when the instrumented block started execution
+# finish # => Float, monotonic time when the instrumented block ended execution
# id # => String, unique ID for the instrumenter that fired the event
# payload # => Hash, the payload
# end
#
-# The +start+ and +finish+ values above represent monotonic time.
-#
# For instance, let's store all "render" events in an array:
#
# events = []
#
-# ActiveSupport::Notifications.subscribe('render') do |*args|
-# events << ActiveSupport::Notifications::Event.new(*args)
+# ActiveSupport::Notifications.subscribe('render') do |event|
+# events << event
# end
#
# That code returns right away, you are just subscribing to "render" events.
@@ -8944,14 +8996,10 @@ ActiveSupport::Multibyte::Unicode::UNICODE_VERSION = T.let(T.unsafe(nil), String
# end
#
# event = events.first
-# event.name # => "render"
-# event.duration # => 10 (in milliseconds)
-# event.payload # => { extra: :information }
-#
-# The block in the subscribe call gets the name of the event, start
-# timestamp, end timestamp, a string with a unique identifier for that event's instrumenter
-# (something like "535801666f04d0298cd6"), and a hash with the payload, in
-# that order.
+# event.name # => "render"
+# event.duration # => 10 (in milliseconds)
+# event.payload # => { extra: :information }
+# event.allocations # => 1826 (objects)
#
# If an exception happens during that particular instrumentation the payload will
# have a key :exception with an array of two elements as value: a string with
@@ -9016,7 +9064,7 @@ ActiveSupport::Multibyte::Unicode::UNICODE_VERSION = T.let(T.unsafe(nil), String
# You can subscribe to some event temporarily while some block runs. For
# example, in
#
-# callback = lambda {|*args| ... }
+# callback = lambda {|event| ... }
# ActiveSupport::Notifications.subscribed(callback, "sql.active_record") do
# ...
# end
@@ -9039,7 +9087,7 @@ ActiveSupport::Multibyte::Unicode::UNICODE_VERSION = T.let(T.unsafe(nil), String
#
# The +subscribe+ method returns a subscriber object:
#
-# subscriber = ActiveSupport::Notifications.subscribe("render") do |*args|
+# subscriber = ActiveSupport::Notifications.subscribe("render") do |event|
# ...
# end
#
@@ -9070,10 +9118,10 @@ ActiveSupport::Multibyte::Unicode::UNICODE_VERSION = T.let(T.unsafe(nil), String
# source://activesupport//lib/active_support/notifications/instrumenter.rb#7
module ActiveSupport::Notifications
class << self
- # source://activesupport//lib/active_support/notifications.rb#204
+ # source://activesupport//lib/active_support/notifications.rb#208
def instrument(name, payload = T.unsafe(nil)); end
- # source://activesupport//lib/active_support/notifications.rb#268
+ # source://activesupport//lib/active_support/notifications.rb#269
def instrumenter; end
# Performs the same functionality as #subscribe, but the +start+ and
@@ -9083,25 +9131,25 @@ module ActiveSupport::Notifications
# duration is important. For example, computing elapsed time between
# two events.
#
- # source://activesupport//lib/active_support/notifications.rb#253
+ # source://activesupport//lib/active_support/notifications.rb#254
def monotonic_subscribe(pattern = T.unsafe(nil), callback = T.unsafe(nil), &block); end
# Returns the value of attribute notifier.
#
- # source://activesupport//lib/active_support/notifications.rb#194
+ # source://activesupport//lib/active_support/notifications.rb#198
def notifier; end
# Sets the attribute notifier
#
# @param value the value to set the attribute notifier to.
#
- # source://activesupport//lib/active_support/notifications.rb#194
+ # source://activesupport//lib/active_support/notifications.rb#198
def notifier=(_arg0); end
- # source://activesupport//lib/active_support/notifications.rb#196
+ # source://activesupport//lib/active_support/notifications.rb#200
def publish(name, *args); end
- # source://activesupport//lib/active_support/notifications.rb#200
+ # source://activesupport//lib/active_support/notifications.rb#204
def publish_event(event); end
# Subscribe to a given event name with the passed +block+.
@@ -9109,11 +9157,15 @@ module ActiveSupport::Notifications
# You can subscribe to events by passing a String to match exact event
# names, or by passing a Regexp to match all events that match a pattern.
#
- # ActiveSupport::Notifications.subscribe(/render/) do |*args|
- # @event = ActiveSupport::Notifications::Event.new(*args)
+ # If the block passed to the method only takes one argument,
+ # it will yield an +Event+ object to the block:
+ #
+ # ActiveSupport::Notifications.subscribe(/render/) do |event|
+ # @event = event
# end
#
- # The +block+ will receive five parameters with information about the event:
+ # Otherwise the +block+ will receive five arguments with information
+ # about the event:
#
# ActiveSupport::Notifications.subscribe('render') do |name, start, finish, id, payload|
# name # => String, name of the event (such as 'render' from above)
@@ -9123,30 +9175,23 @@ module ActiveSupport::Notifications
# payload # => Hash, the payload
# end
#
- # If the block passed to the method only takes one parameter,
- # it will yield an event object to the block:
- #
- # ActiveSupport::Notifications.subscribe(/render/) do |event|
- # @event = event
- # end
- #
# Raises an error if invalid event name type is passed:
#
- # ActiveSupport::Notifications.subscribe(:render) {|*args| ...}
+ # ActiveSupport::Notifications.subscribe(:render) {|event| ...}
# #=> ArgumentError (pattern must be specified as a String, Regexp or empty)
#
- # source://activesupport//lib/active_support/notifications.rb#243
+ # source://activesupport//lib/active_support/notifications.rb#244
def subscribe(pattern = T.unsafe(nil), callback = T.unsafe(nil), &block); end
- # source://activesupport//lib/active_support/notifications.rb#257
+ # source://activesupport//lib/active_support/notifications.rb#258
def subscribed(callback, pattern = T.unsafe(nil), monotonic: T.unsafe(nil), &block); end
- # source://activesupport//lib/active_support/notifications.rb#264
+ # source://activesupport//lib/active_support/notifications.rb#265
def unsubscribe(subscriber_or_name); end
private
- # source://activesupport//lib/active_support/notifications.rb#273
+ # source://activesupport//lib/active_support/notifications.rb#274
def registry; end
end
end
@@ -9161,23 +9206,20 @@ class ActiveSupport::Notifications::Event
# Returns the number of allocations made between the call to #start! and
# the call to #finish!.
#
- # source://activesupport//lib/active_support/notifications/instrumenter.rb#164
+ # source://activesupport//lib/active_support/notifications/instrumenter.rb#176
def allocations; end
- # source://activesupport//lib/active_support/notifications/instrumenter.rb#168
- def children; end
-
# Returns the CPU time (in milliseconds) passed between the call to
# #start! and the call to #finish!.
#
- # source://activesupport//lib/active_support/notifications/instrumenter.rb#151
+ # source://activesupport//lib/active_support/notifications/instrumenter.rb#163
def cpu_time; end
# Returns the difference in milliseconds between when the execution of the
# event started and when it ended.
#
- # ActiveSupport::Notifications.subscribe('wait') do |*args|
- # @event = ActiveSupport::Notifications::Event.new(*args)
+ # ActiveSupport::Notifications.subscribe('wait') do |event|
+ # @event = event
# end
#
# ActiveSupport::Notifications.instrument('wait') do
@@ -9186,23 +9228,27 @@ class ActiveSupport::Notifications::Event
#
# @event.duration # => 1000.138
#
- # source://activesupport//lib/active_support/notifications/instrumenter.rb#197
+ # source://activesupport//lib/active_support/notifications/instrumenter.rb#198
def duration; end
- # Returns the value of attribute end.
- #
- # source://activesupport//lib/active_support/notifications/instrumenter.rb#107
+ # source://activesupport//lib/active_support/notifications/instrumenter.rb#128
def end; end
# Record information at the time this event finishes
#
- # source://activesupport//lib/active_support/notifications/instrumenter.rb#143
+ # source://activesupport//lib/active_support/notifications/instrumenter.rb#154
def finish!; end
+ # Returns the time spent in GC (in milliseconds) between the call to #start!
+ # and the call to #finish!
+ #
+ # source://activesupport//lib/active_support/notifications/instrumenter.rb#182
+ def gc_time; end
+
# Returns the idle time time (in milliseconds) passed between the call to
# #start! and the call to #finish!.
#
- # source://activesupport//lib/active_support/notifications/instrumenter.rb#157
+ # source://activesupport//lib/active_support/notifications/instrumenter.rb#169
def idle_time; end
# Returns the value of attribute name.
@@ -9210,11 +9256,6 @@ class ActiveSupport::Notifications::Event
# source://activesupport//lib/active_support/notifications/instrumenter.rb#107
def name; end
- # @return [Boolean]
- #
- # source://activesupport//lib/active_support/notifications/instrumenter.rb#176
- def parent_of?(event); end
-
# Returns the value of attribute payload.
#
# source://activesupport//lib/active_support/notifications/instrumenter.rb#108
@@ -9227,17 +9268,15 @@ class ActiveSupport::Notifications::Event
# source://activesupport//lib/active_support/notifications/instrumenter.rb#108
def payload=(_arg0); end
- # source://activesupport//lib/active_support/notifications/instrumenter.rb#122
+ # source://activesupport//lib/active_support/notifications/instrumenter.rb#132
def record; end
# Record information at the time this event starts
#
- # source://activesupport//lib/active_support/notifications/instrumenter.rb#136
+ # source://activesupport//lib/active_support/notifications/instrumenter.rb#146
def start!; end
- # Returns the value of attribute time.
- #
- # source://activesupport//lib/active_support/notifications/instrumenter.rb#107
+ # source://activesupport//lib/active_support/notifications/instrumenter.rb#124
def time; end
# Returns the value of attribute transaction_id.
@@ -9247,16 +9286,19 @@ class ActiveSupport::Notifications::Event
private
- # source://activesupport//lib/active_support/notifications/instrumenter.rb#202
+ # source://activesupport//lib/active_support/notifications/instrumenter.rb#203
def now; end
# Likely on JRuby, TruffleRuby
#
- # source://activesupport//lib/active_support/notifications/instrumenter.rb#219
+ # source://activesupport//lib/active_support/notifications/instrumenter.rb#230
def now_allocations; end
- # source://activesupport//lib/active_support/notifications/instrumenter.rb#209
+ # source://activesupport//lib/active_support/notifications/instrumenter.rb#210
def now_cpu; end
+
+ # source://activesupport//lib/active_support/notifications/instrumenter.rb#220
+ def now_gc; end
end
# This is a default queue implementation that ships with Notifications.
@@ -9264,120 +9306,104 @@ end
#
# This class is thread safe. All methods are reentrant.
#
-# source://activesupport//lib/active_support/notifications/fanout.rb#51
+# source://activesupport//lib/active_support/notifications/fanout.rb#50
class ActiveSupport::Notifications::Fanout
- include ::Mutex_m
include ::ActiveSupport::Notifications::FanoutIteration
# @return [Fanout] a new instance of Fanout
#
- # source://activesupport//lib/active_support/notifications/fanout.rb#54
+ # source://activesupport//lib/active_support/notifications/fanout.rb#51
def initialize; end
- # source://activesupport//lib/active_support/notifications/fanout.rb#301
+ # source://activesupport//lib/active_support/notifications/fanout.rb#298
def all_listeners_for(name); end
- # source://activesupport//lib/active_support/notifications/fanout.rb#276
+ # source://activesupport//lib/active_support/notifications/fanout.rb#273
def build_handle(name, id, payload); end
- # source://activesupport//lib/active_support/notifications/fanout.rb#105
+ # source://activesupport//lib/active_support/notifications/fanout.rb#102
def clear_cache(key = T.unsafe(nil)); end
- # source://activesupport//lib/active_support/notifications/fanout.rb#287
+ # source://activesupport//lib/active_support/notifications/fanout.rb#284
def finish(name, id, payload, listeners = T.unsafe(nil)); end
- # source://activesupport//lib/active_support/notifications/fanout.rb#191
+ # source://activesupport//lib/active_support/notifications/fanout.rb#188
def groups_for(name); end
- # source://activesupport//lib/active_support/notifications/fanout.rb#63
+ # source://activesupport//lib/active_support/notifications/fanout.rb#60
def inspect; end
- # source://activesupport//lib/active_support/notifications/fanout.rb#310
+ # source://activesupport//lib/active_support/notifications/fanout.rb#307
def listeners_for(name); end
# @return [Boolean]
#
- # source://activesupport//lib/active_support/notifications/fanout.rb#314
+ # source://activesupport//lib/active_support/notifications/fanout.rb#311
def listening?(name); end
- # source://mutex_m/0.2.0/lib/mutex_m.rb#91
- def lock; end
-
- # source://mutex_m/0.2.0/lib/mutex_m.rb#81
- def locked?; end
-
- # source://activesupport//lib/active_support/notifications/fanout.rb#293
+ # source://activesupport//lib/active_support/notifications/fanout.rb#290
def publish(name, *args); end
- # source://activesupport//lib/active_support/notifications/fanout.rb#297
+ # source://activesupport//lib/active_support/notifications/fanout.rb#294
def publish_event(event); end
- # source://activesupport//lib/active_support/notifications/fanout.rb#280
+ # source://activesupport//lib/active_support/notifications/fanout.rb#277
def start(name, id, payload); end
- # source://activesupport//lib/active_support/notifications/fanout.rb#68
+ # source://activesupport//lib/active_support/notifications/fanout.rb#65
def subscribe(pattern = T.unsafe(nil), callable = T.unsafe(nil), monotonic: T.unsafe(nil), &block); end
- # source://mutex_m/0.2.0/lib/mutex_m.rb#76
- def synchronize(&block); end
-
- # source://mutex_m/0.2.0/lib/mutex_m.rb#86
- def try_lock; end
-
- # source://mutex_m/0.2.0/lib/mutex_m.rb#96
- def unlock; end
-
- # source://activesupport//lib/active_support/notifications/fanout.rb#85
+ # source://activesupport//lib/active_support/notifications/fanout.rb#82
def unsubscribe(subscriber_or_name); end
# This is a sync queue, so there is no waiting.
#
- # source://activesupport//lib/active_support/notifications/fanout.rb#319
+ # source://activesupport//lib/active_support/notifications/fanout.rb#316
def wait; end
end
-# source://activesupport//lib/active_support/notifications/fanout.rb#117
+# source://activesupport//lib/active_support/notifications/fanout.rb#114
class ActiveSupport::Notifications::Fanout::BaseGroup
include ::ActiveSupport::Notifications::FanoutIteration
# @return [BaseGroup] a new instance of BaseGroup
#
- # source://activesupport//lib/active_support/notifications/fanout.rb#120
+ # source://activesupport//lib/active_support/notifications/fanout.rb#117
def initialize(listeners, name, id, payload); end
- # source://activesupport//lib/active_support/notifications/fanout.rb#124
+ # source://activesupport//lib/active_support/notifications/fanout.rb#121
def each(&block); end
end
-# source://activesupport//lib/active_support/notifications/fanout.rb#129
+# source://activesupport//lib/active_support/notifications/fanout.rb#126
class ActiveSupport::Notifications::Fanout::BaseTimeGroup < ::ActiveSupport::Notifications::Fanout::BaseGroup
- # source://activesupport//lib/active_support/notifications/fanout.rb#134
+ # source://activesupport//lib/active_support/notifications/fanout.rb#131
def finish(name, id, payload); end
- # source://activesupport//lib/active_support/notifications/fanout.rb#130
+ # source://activesupport//lib/active_support/notifications/fanout.rb#127
def start(name, id, payload); end
end
-# source://activesupport//lib/active_support/notifications/fanout.rb#170
+# source://activesupport//lib/active_support/notifications/fanout.rb#167
class ActiveSupport::Notifications::Fanout::EventObjectGroup < ::ActiveSupport::Notifications::Fanout::BaseGroup
- # source://activesupport//lib/active_support/notifications/fanout.rb#176
+ # source://activesupport//lib/active_support/notifications/fanout.rb#173
def finish(name, id, payload); end
- # source://activesupport//lib/active_support/notifications/fanout.rb#171
+ # source://activesupport//lib/active_support/notifications/fanout.rb#168
def start(name, id, payload); end
private
- # source://activesupport//lib/active_support/notifications/fanout.rb#186
+ # source://activesupport//lib/active_support/notifications/fanout.rb#183
def build_event(name, id, payload); end
end
-# source://activesupport//lib/active_support/notifications/fanout.rb#156
+# source://activesupport//lib/active_support/notifications/fanout.rb#153
class ActiveSupport::Notifications::Fanout::EventedGroup < ::ActiveSupport::Notifications::Fanout::BaseGroup
- # source://activesupport//lib/active_support/notifications/fanout.rb#163
+ # source://activesupport//lib/active_support/notifications/fanout.rb#160
def finish(name, id, payload); end
- # source://activesupport//lib/active_support/notifications/fanout.rb#157
+ # source://activesupport//lib/active_support/notifications/fanout.rb#154
def start(name, id, payload); end
end
@@ -9396,179 +9422,179 @@ end
# handle.finish
# end
#
-# source://activesupport//lib/active_support/notifications/fanout.rb#231
+# source://activesupport//lib/active_support/notifications/fanout.rb#228
class ActiveSupport::Notifications::Fanout::Handle
include ::ActiveSupport::Notifications::FanoutIteration
# @return [Handle] a new instance of Handle
#
- # source://activesupport//lib/active_support/notifications/fanout.rb#234
+ # source://activesupport//lib/active_support/notifications/fanout.rb#231
def initialize(notifier, name, id, payload); end
- # source://activesupport//lib/active_support/notifications/fanout.rb#253
+ # source://activesupport//lib/active_support/notifications/fanout.rb#250
def finish; end
- # source://activesupport//lib/active_support/notifications/fanout.rb#257
+ # source://activesupport//lib/active_support/notifications/fanout.rb#254
def finish_with_values(name, id, payload); end
- # source://activesupport//lib/active_support/notifications/fanout.rb#244
+ # source://activesupport//lib/active_support/notifications/fanout.rb#241
def start; end
private
- # source://activesupport//lib/active_support/notifications/fanout.rb#267
+ # source://activesupport//lib/active_support/notifications/fanout.rb#264
def ensure_state!(expected); end
end
-# source://activesupport//lib/active_support/notifications/fanout.rb#142
+# source://activesupport//lib/active_support/notifications/fanout.rb#139
class ActiveSupport::Notifications::Fanout::MonotonicTimedGroup < ::ActiveSupport::Notifications::Fanout::BaseTimeGroup
private
- # source://activesupport//lib/active_support/notifications/fanout.rb#144
+ # source://activesupport//lib/active_support/notifications/fanout.rb#141
def now; end
end
-# source://activesupport//lib/active_support/notifications/fanout.rb#322
+# source://activesupport//lib/active_support/notifications/fanout.rb#319
module ActiveSupport::Notifications::Fanout::Subscribers
class << self
- # source://activesupport//lib/active_support/notifications/fanout.rb#323
+ # source://activesupport//lib/active_support/notifications/fanout.rb#320
def new(pattern, listener, monotonic); end
end
end
-# source://activesupport//lib/active_support/notifications/fanout.rb#437
+# source://activesupport//lib/active_support/notifications/fanout.rb#434
class ActiveSupport::Notifications::Fanout::Subscribers::EventObject < ::ActiveSupport::Notifications::Fanout::Subscribers::Evented
- # source://activesupport//lib/active_support/notifications/fanout.rb#438
+ # source://activesupport//lib/active_support/notifications/fanout.rb#435
def group_class; end
- # source://activesupport//lib/active_support/notifications/fanout.rb#442
+ # source://activesupport//lib/active_support/notifications/fanout.rb#439
def publish_event(event); end
end
-# source://activesupport//lib/active_support/notifications/fanout.rb#379
+# source://activesupport//lib/active_support/notifications/fanout.rb#376
class ActiveSupport::Notifications::Fanout::Subscribers::Evented
# @return [Evented] a new instance of Evented
#
- # source://activesupport//lib/active_support/notifications/fanout.rb#382
+ # source://activesupport//lib/active_support/notifications/fanout.rb#379
def initialize(pattern, delegate); end
# Returns the value of attribute delegate.
#
- # source://activesupport//lib/active_support/notifications/fanout.rb#380
+ # source://activesupport//lib/active_support/notifications/fanout.rb#377
def delegate; end
- # source://activesupport//lib/active_support/notifications/fanout.rb#390
+ # source://activesupport//lib/active_support/notifications/fanout.rb#387
def group_class; end
# Returns the value of attribute pattern.
#
- # source://activesupport//lib/active_support/notifications/fanout.rb#380
+ # source://activesupport//lib/active_support/notifications/fanout.rb#377
def pattern; end
- # source://activesupport//lib/active_support/notifications/fanout.rb#394
+ # source://activesupport//lib/active_support/notifications/fanout.rb#391
def publish(name, *args); end
- # source://activesupport//lib/active_support/notifications/fanout.rb#400
+ # source://activesupport//lib/active_support/notifications/fanout.rb#397
def publish_event(event); end
# Returns the value of attribute silenceable.
#
- # source://activesupport//lib/active_support/notifications/fanout.rb#380
+ # source://activesupport//lib/active_support/notifications/fanout.rb#377
def silenceable; end
# @return [Boolean]
#
- # source://activesupport//lib/active_support/notifications/fanout.rb#408
+ # source://activesupport//lib/active_support/notifications/fanout.rb#405
def silenced?(name); end
# @return [Boolean]
#
- # source://activesupport//lib/active_support/notifications/fanout.rb#412
+ # source://activesupport//lib/active_support/notifications/fanout.rb#409
def subscribed_to?(name); end
- # source://activesupport//lib/active_support/notifications/fanout.rb#416
+ # source://activesupport//lib/active_support/notifications/fanout.rb#413
def unsubscribe!(name); end
end
-# source://activesupport//lib/active_support/notifications/fanout.rb#342
+# source://activesupport//lib/active_support/notifications/fanout.rb#339
class ActiveSupport::Notifications::Fanout::Subscribers::Matcher
# @return [Matcher] a new instance of Matcher
#
- # source://activesupport//lib/active_support/notifications/fanout.rb#355
+ # source://activesupport//lib/active_support/notifications/fanout.rb#352
def initialize(pattern); end
- # source://activesupport//lib/active_support/notifications/fanout.rb#364
+ # source://activesupport//lib/active_support/notifications/fanout.rb#361
def ===(name); end
# Returns the value of attribute exclusions.
#
- # source://activesupport//lib/active_support/notifications/fanout.rb#343
+ # source://activesupport//lib/active_support/notifications/fanout.rb#340
def exclusions; end
# Returns the value of attribute pattern.
#
- # source://activesupport//lib/active_support/notifications/fanout.rb#343
+ # source://activesupport//lib/active_support/notifications/fanout.rb#340
def pattern; end
- # source://activesupport//lib/active_support/notifications/fanout.rb#360
+ # source://activesupport//lib/active_support/notifications/fanout.rb#357
def unsubscribe!(name); end
class << self
- # source://activesupport//lib/active_support/notifications/fanout.rb#345
+ # source://activesupport//lib/active_support/notifications/fanout.rb#342
def wrap(pattern); end
end
end
-# source://activesupport//lib/active_support/notifications/fanout.rb#368
+# source://activesupport//lib/active_support/notifications/fanout.rb#365
class ActiveSupport::Notifications::Fanout::Subscribers::Matcher::AllMessages
- # source://activesupport//lib/active_support/notifications/fanout.rb#369
+ # source://activesupport//lib/active_support/notifications/fanout.rb#366
def ===(name); end
- # source://activesupport//lib/active_support/notifications/fanout.rb#373
+ # source://activesupport//lib/active_support/notifications/fanout.rb#370
def unsubscribe!(*_arg0); end
end
-# source://activesupport//lib/active_support/notifications/fanout.rb#431
+# source://activesupport//lib/active_support/notifications/fanout.rb#428
class ActiveSupport::Notifications::Fanout::Subscribers::MonotonicTimed < ::ActiveSupport::Notifications::Fanout::Subscribers::Timed
- # source://activesupport//lib/active_support/notifications/fanout.rb#432
+ # source://activesupport//lib/active_support/notifications/fanout.rb#429
def group_class; end
end
-# source://activesupport//lib/active_support/notifications/fanout.rb#421
+# source://activesupport//lib/active_support/notifications/fanout.rb#418
class ActiveSupport::Notifications::Fanout::Subscribers::Timed < ::ActiveSupport::Notifications::Fanout::Subscribers::Evented
- # source://activesupport//lib/active_support/notifications/fanout.rb#422
+ # source://activesupport//lib/active_support/notifications/fanout.rb#419
def group_class; end
- # source://activesupport//lib/active_support/notifications/fanout.rb#426
+ # source://activesupport//lib/active_support/notifications/fanout.rb#423
def publish(name, *args); end
end
-# source://activesupport//lib/active_support/notifications/fanout.rb#149
+# source://activesupport//lib/active_support/notifications/fanout.rb#146
class ActiveSupport::Notifications::Fanout::TimedGroup < ::ActiveSupport::Notifications::Fanout::BaseTimeGroup
private
- # source://activesupport//lib/active_support/notifications/fanout.rb#151
+ # source://activesupport//lib/active_support/notifications/fanout.rb#148
def now; end
end
-# source://activesupport//lib/active_support/notifications/fanout.rb#20
+# source://activesupport//lib/active_support/notifications/fanout.rb#19
module ActiveSupport::Notifications::FanoutIteration
private
- # source://activesupport//lib/active_support/notifications/fanout.rb#22
+ # source://activesupport//lib/active_support/notifications/fanout.rb#21
def iterate_guarding_exceptions(collection); end
end
-# source://activesupport//lib/active_support/notifications/fanout.rb#10
+# source://activesupport//lib/active_support/notifications/fanout.rb#9
class ActiveSupport::Notifications::InstrumentationSubscriberError < ::RuntimeError
# @return [InstrumentationSubscriberError] a new instance of InstrumentationSubscriberError
#
- # source://activesupport//lib/active_support/notifications/fanout.rb#13
+ # source://activesupport//lib/active_support/notifications/fanout.rb#12
def initialize(exceptions); end
# Returns the value of attribute exceptions.
#
- # source://activesupport//lib/active_support/notifications/fanout.rb#11
+ # source://activesupport//lib/active_support/notifications/fanout.rb#10
def exceptions; end
end
@@ -10631,7 +10657,7 @@ class ActiveSupport::OptionMerger
# @return [Boolean]
#
# source://activesupport//lib/active_support/option_merger.rb#34
- def respond_to_missing?(*arguments); end
+ def respond_to_missing?(*_arg0, **_arg1, &_arg2); end
end
# DEPRECATED: +ActiveSupport::OrderedHash+ implements a hash that preserves
@@ -10714,14 +10740,14 @@ class ActiveSupport::OrderedOptions < ::Hash
# @return [Boolean]
#
- # source://activesupport//lib/active_support/ordered_options.rb#68
+ # source://activesupport//lib/active_support/ordered_options.rb#64
def extractable_options?; end
- # source://activesupport//lib/active_support/ordered_options.rb#72
+ # source://activesupport//lib/active_support/ordered_options.rb#68
def inspect; end
# source://activesupport//lib/active_support/ordered_options.rb#49
- def method_missing(name, *args); end
+ def method_missing(method, *args); end
protected
@@ -10732,21 +10758,23 @@ class ActiveSupport::OrderedOptions < ::Hash
# @return [Boolean]
#
- # source://activesupport//lib/active_support/ordered_options.rb#64
+ # source://activesupport//lib/active_support/ordered_options.rb#60
def respond_to_missing?(name, include_private); end
end
-# = Active Support Proxy \Object
-#
-# A class with no predefined methods that behaves similarly to Builder's
-# BlankSlate. Used for proxy classes.
-#
-# source://activesupport//lib/active_support/proxy_object.rb#8
+# source://activesupport//lib/active_support/proxy_object.rb#4
class ActiveSupport::ProxyObject < ::BasicObject
# Let ActiveSupport::ProxyObject at least raise exceptions.
#
- # source://activesupport//lib/active_support/proxy_object.rb#13
+ # source://activesupport//lib/active_support/proxy_object.rb#9
def raise(*args); end
+
+ class << self
+ # @private
+ #
+ # source://activesupport//lib/active_support/proxy_object.rb#13
+ def inherited(_subclass); end
+ end
end
# = \Range With Format
@@ -10835,16 +10863,16 @@ class ActiveSupport::Reloader < ::ActiveSupport::ExecutionWrapper
# source://activesupport//lib/active_support/reloader.rb#99
def initialize; end
- # source://activesupport//lib/active_support/callbacks.rb#963
+ # source://activesupport//lib/active_support/callbacks.rb#924
def _class_unload_callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#963
+ # source://activesupport//lib/active_support/callbacks.rb#924
def _prepare_callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#951
+ # source://activesupport//lib/active_support/callbacks.rb#912
def _run_class_unload_callbacks(&block); end
- # source://activesupport//lib/active_support/callbacks.rb#951
+ # source://activesupport//lib/active_support/callbacks.rb#912
def _run_prepare_callbacks(&block); end
# source://activesupport//lib/active_support/reloader.rb#85
@@ -10889,16 +10917,16 @@ class ActiveSupport::Reloader < ::ActiveSupport::ExecutionWrapper
# source://activesupport//lib/active_support/callbacks.rb#70
def __callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#955
+ # source://activesupport//lib/active_support/callbacks.rb#916
def _class_unload_callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#959
+ # source://activesupport//lib/active_support/callbacks.rb#920
def _class_unload_callbacks=(value); end
- # source://activesupport//lib/active_support/callbacks.rb#955
+ # source://activesupport//lib/active_support/callbacks.rb#916
def _prepare_callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#959
+ # source://activesupport//lib/active_support/callbacks.rb#920
def _prepare_callbacks=(value); end
# Registers a callback that will run immediately after the classes are unloaded.
@@ -11065,14 +11093,6 @@ module ActiveSupport::Rescuable::ClassMethods
def find_rescue_handler(exception); end
end
-# source://activesupport//lib/active_support/ruby_features.rb#4
-module ActiveSupport::RubyFeatures; end
-
-# RUBY_VERSION >= "3.1"
-#
-# source://activesupport//lib/active_support/ruby_features.rb#5
-ActiveSupport::RubyFeatures::CLASS_SUBCLASSES = T.let(T.unsafe(nil), TrueClass)
-
# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#19
class ActiveSupport::SafeBuffer < ::String
# @return [SafeBuffer] a new instance of SafeBuffer
@@ -11080,123 +11100,120 @@ class ActiveSupport::SafeBuffer < ::String
# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#70
def initialize(str = T.unsafe(nil)); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#130
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#123
def %(args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#123
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#116
def *(_); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#119
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#112
def +(other); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#87
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#80
def <<(value); end
# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#38
def [](*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#111
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#104
def []=(arg1, arg2, arg3 = T.unsafe(nil)); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#95
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#88
def bytesplice(*args, value); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#160
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
def capitalize(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#164
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
def capitalize!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#160
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
def chomp(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#164
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
def chomp!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#160
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
def chop(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#164
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
def chop!(*args); end
# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#59
def chr; end
# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#80
- def clone_empty; end
-
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#87
def concat(value); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#160
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
def delete(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#164
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
def delete!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#160
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
def delete_prefix(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#164
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
def delete_prefix!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#160
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
def delete_suffix(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#164
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
def delete_suffix!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#160
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
def downcase(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#164
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
def downcase!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#146
def encode_with(coder); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#174
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#167
def gsub(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#185
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#178
def gsub!(*args, &block); end
# Returns the value of attribute html_safe.
#
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#141
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#134
def html_safe?; end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#99
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#92
def insert(index, value); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#160
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
def lstrip(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#164
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
def lstrip!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#160
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
def next(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#164
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
def next!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#103
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#96
def prepend(value); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#107
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#100
def replace(value); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#160
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
def reverse(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#164
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
def reverse!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#160
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
def rstrip(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#164
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
def rstrip!(*args); end
# @raise [SafeConcatError]
@@ -11204,10 +11221,10 @@ class ActiveSupport::SafeBuffer < ::String
# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#65
def safe_concat(value); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#160
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
def scrub(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#164
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
def scrub!(*args); end
# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#38
@@ -11216,72 +11233,72 @@ class ActiveSupport::SafeBuffer < ::String
# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#51
def slice!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#160
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
def squeeze(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#164
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
def squeeze!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#160
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
def strip(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#164
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
def strip!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#174
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#167
def sub(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#185
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#178
def sub!(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#160
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
def succ(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#164
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
def succ!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#160
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
def swapcase(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#164
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
def swapcase!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#149
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#142
def to_param; end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#145
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#138
def to_s; end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#160
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
def tr(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#164
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
def tr!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#160
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
def tr_s(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#164
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
def tr_s!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#160
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
def unicode_normalize(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#164
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
def unicode_normalize!(*args); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#160
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#153
def upcase(*args, &block); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#164
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#157
def upcase!(*args); end
private
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#200
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#193
def explicit_html_escape_interpolated_argument(arg); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#204
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#197
def implicit_html_escape_interpolated_argument(arg); end
# source://activesupport//lib/active_support/core_ext/string/output_safety.rb#75
@@ -11289,10 +11306,10 @@ class ActiveSupport::SafeBuffer < ::String
def original_concat(*_arg0); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#212
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#205
def set_block_back_references(block, match_data); end
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#218
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#211
def string_into_safe_buffer(new_string, is_html_safe); end
end
@@ -11417,7 +11434,7 @@ class ActiveSupport::StringInquirer < ::String
private
# source://activesupport//lib/active_support/string_inquirer.rb#27
- def method_missing(method_name, *arguments); end
+ def method_missing(method_name, *_arg1, **_arg2, &_arg3); end
# @return [Boolean]
#
@@ -11456,16 +11473,16 @@ end
class ActiveSupport::Subscriber
# @return [Subscriber] a new instance of Subscriber
#
- # source://activesupport//lib/active_support/subscriber.rb#130
+ # source://activesupport//lib/active_support/subscriber.rb#131
def initialize; end
- # source://activesupport//lib/active_support/subscriber.rb#135
+ # source://activesupport//lib/active_support/subscriber.rb#136
def call(event); end
- # source://activesupport//lib/active_support/subscriber.rb#128
+ # source://activesupport//lib/active_support/subscriber.rb#129
def patterns; end
- # source://activesupport//lib/active_support/subscriber.rb#140
+ # source://activesupport//lib/active_support/subscriber.rb#141
def publish_event(event); end
class << self
@@ -11484,49 +11501,49 @@ class ActiveSupport::Subscriber
# source://activesupport//lib/active_support/subscriber.rb#69
def method_added(event); end
- # source://activesupport//lib/active_support/subscriber.rb#78
+ # source://activesupport//lib/active_support/subscriber.rb#79
def subscribers; end
private
- # source://activesupport//lib/active_support/subscriber.rb#85
+ # source://activesupport//lib/active_support/subscriber.rb#86
def add_event_subscriber(event); end
- # source://activesupport//lib/active_support/subscriber.rb#123
+ # source://activesupport//lib/active_support/subscriber.rb#124
def fetch_public_methods(subscriber, inherit_all); end
- # source://activesupport//lib/active_support/subscriber.rb#107
+ # source://activesupport//lib/active_support/subscriber.rb#108
def find_attached_subscriber; end
# @return [Boolean]
#
- # source://activesupport//lib/active_support/subscriber.rb#111
+ # source://activesupport//lib/active_support/subscriber.rb#112
def invalid_event?(event); end
# Returns the value of attribute namespace.
#
- # source://activesupport//lib/active_support/subscriber.rb#83
+ # source://activesupport//lib/active_support/subscriber.rb#84
def namespace; end
# Returns the value of attribute notifier.
#
- # source://activesupport//lib/active_support/subscriber.rb#83
+ # source://activesupport//lib/active_support/subscriber.rb#84
def notifier; end
# @return [Boolean]
#
- # source://activesupport//lib/active_support/subscriber.rb#119
+ # source://activesupport//lib/active_support/subscriber.rb#120
def pattern_subscribed?(pattern); end
- # source://activesupport//lib/active_support/subscriber.rb#115
+ # source://activesupport//lib/active_support/subscriber.rb#116
def prepare_pattern(event); end
- # source://activesupport//lib/active_support/subscriber.rb#96
+ # source://activesupport//lib/active_support/subscriber.rb#97
def remove_event_subscriber(event); end
# Returns the value of attribute subscriber.
#
- # source://activesupport//lib/active_support/subscriber.rb#83
+ # source://activesupport//lib/active_support/subscriber.rb#84
def subscriber; end
end
end
@@ -11553,108 +11570,109 @@ end
# it easy to stamp log lines with subdomains, request ids, and anything else
# to aid debugging of multi-user production applications.
#
-# source://activesupport//lib/active_support/tagged_logging.rb#30
+# source://activesupport//lib/active_support/tagged_logging.rb#29
module ActiveSupport::TaggedLogging
- # source://activesupport//lib/active_support/tagged_logging.rb#131
+ # source://activesupport//lib/active_support/tagged_logging.rb#134
def clear_tags!(*_arg0, **_arg1, &_arg2); end
- # source://activesupport//lib/active_support/tagged_logging.rb#144
+ # source://activesupport//lib/active_support/tagged_logging.rb#147
def flush; end
- # source://activesupport//lib/active_support/tagged_logging.rb#131
+ # source://activesupport//lib/active_support/tagged_logging.rb#134
def pop_tags(*_arg0, **_arg1, &_arg2); end
- # source://activesupport//lib/active_support/tagged_logging.rb#131
+ # source://activesupport//lib/active_support/tagged_logging.rb#134
def push_tags(*_arg0, **_arg1, &_arg2); end
- # source://activesupport//lib/active_support/tagged_logging.rb#133
+ # source://activesupport//lib/active_support/tagged_logging.rb#136
def tagged(*tags); end
class << self
- # source://activesupport//lib/active_support/tagged_logging.rb#117
+ # source://activesupport//lib/active_support/tagged_logging.rb#116
def new(logger); end
end
end
-# source://activesupport//lib/active_support/tagged_logging.rb#31
+# source://activesupport//lib/active_support/tagged_logging.rb#30
module ActiveSupport::TaggedLogging::Formatter
# This method is invoked when a log event occurs.
#
- # source://activesupport//lib/active_support/tagged_logging.rb#33
+ # source://activesupport//lib/active_support/tagged_logging.rb#32
def call(severity, timestamp, progname, msg); end
- # source://activesupport//lib/active_support/tagged_logging.rb#52
+ # source://activesupport//lib/active_support/tagged_logging.rb#51
def clear_tags!; end
- # source://activesupport//lib/active_support/tagged_logging.rb#62
+ # source://activesupport//lib/active_support/tagged_logging.rb#61
def current_tags; end
- # source://activesupport//lib/active_support/tagged_logging.rb#48
+ # source://activesupport//lib/active_support/tagged_logging.rb#47
def pop_tags(count = T.unsafe(nil)); end
- # source://activesupport//lib/active_support/tagged_logging.rb#44
+ # source://activesupport//lib/active_support/tagged_logging.rb#43
def push_tags(*tags); end
- # source://activesupport//lib/active_support/tagged_logging.rb#56
+ # source://activesupport//lib/active_support/tagged_logging.rb#55
def tag_stack; end
- # source://activesupport//lib/active_support/tagged_logging.rb#37
+ # source://activesupport//lib/active_support/tagged_logging.rb#36
def tagged(*tags); end
- # source://activesupport//lib/active_support/tagged_logging.rb#66
+ # source://activesupport//lib/active_support/tagged_logging.rb#65
def tags_text; end
end
-# source://activesupport//lib/active_support/tagged_logging.rb#109
+# source://activesupport//lib/active_support/tagged_logging.rb#108
module ActiveSupport::TaggedLogging::LocalTagStorage
# Returns the value of attribute tag_stack.
#
- # source://activesupport//lib/active_support/tagged_logging.rb#110
+ # source://activesupport//lib/active_support/tagged_logging.rb#109
def tag_stack; end
# Sets the attribute tag_stack
#
# @param value the value to set the attribute tag_stack to.
#
- # source://activesupport//lib/active_support/tagged_logging.rb#110
+ # source://activesupport//lib/active_support/tagged_logging.rb#109
def tag_stack=(_arg0); end
class << self
# @private
#
- # source://activesupport//lib/active_support/tagged_logging.rb#112
+ # source://activesupport//lib/active_support/tagged_logging.rb#111
def extended(base); end
end
end
-# source://activesupport//lib/active_support/tagged_logging.rb#71
+# source://activesupport//lib/active_support/tagged_logging.rb#70
class ActiveSupport::TaggedLogging::TagStack
# @return [TagStack] a new instance of TagStack
#
- # source://activesupport//lib/active_support/tagged_logging.rb#74
+ # source://activesupport//lib/active_support/tagged_logging.rb#73
def initialize; end
- # source://activesupport//lib/active_support/tagged_logging.rb#92
+ # source://activesupport//lib/active_support/tagged_logging.rb#91
def clear; end
- # source://activesupport//lib/active_support/tagged_logging.rb#97
+ # source://activesupport//lib/active_support/tagged_logging.rb#96
def format_message(message); end
- # source://activesupport//lib/active_support/tagged_logging.rb#87
+ # source://activesupport//lib/active_support/tagged_logging.rb#86
def pop_tags(count); end
- # source://activesupport//lib/active_support/tagged_logging.rb#79
+ # source://activesupport//lib/active_support/tagged_logging.rb#78
def push_tags(tags); end
# Returns the value of attribute tags.
#
- # source://activesupport//lib/active_support/tagged_logging.rb#72
+ # source://activesupport//lib/active_support/tagged_logging.rb#71
def tags; end
end
-# source://activesupport//lib/active_support/test_case.rb#20
+# source://activesupport//lib/active_support/test_case.rb#21
class ActiveSupport::TestCase < ::Minitest::Test
include ::ActiveSupport::Testing::SetupAndTeardown
+ include ::ActiveSupport::Testing::TestsWithoutAssertions
include ::ActiveSupport::Testing::TaggedLogging
include ::ActiveSupport::Callbacks
include ::ActiveSupport::Testing::Assertions
@@ -11674,55 +11692,55 @@ class ActiveSupport::TestCase < ::Minitest::Test
# source://activesupport//lib/active_support/callbacks.rb#70
def __callbacks?; end
- # source://activesupport//lib/active_support/callbacks.rb#951
+ # source://activesupport//lib/active_support/callbacks.rb#912
def _run_setup_callbacks(&block); end
- # source://activesupport//lib/active_support/callbacks.rb#951
+ # source://activesupport//lib/active_support/callbacks.rb#912
def _run_teardown_callbacks(&block); end
- # source://activesupport//lib/active_support/callbacks.rb#963
+ # source://activesupport//lib/active_support/callbacks.rb#924
def _setup_callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#963
+ # source://activesupport//lib/active_support/callbacks.rb#924
def _teardown_callbacks; end
- # source://minitest/5.24.1/lib/minitest/assertions.rb#736
+ # source://minitest/5.25.1/lib/minitest/assertions.rb#731
def assert_no_match(matcher, obj, msg = T.unsafe(nil)); end
- # source://minitest/5.24.1/lib/minitest/assertions.rb#665
+ # source://minitest/5.25.1/lib/minitest/assertions.rb#660
def assert_not_empty(obj, msg = T.unsafe(nil)); end
- # source://minitest/5.24.1/lib/minitest/assertions.rb#676
+ # source://minitest/5.25.1/lib/minitest/assertions.rb#671
def assert_not_equal(exp, act, msg = T.unsafe(nil)); end
- # source://minitest/5.24.1/lib/minitest/assertions.rb#688
+ # source://minitest/5.25.1/lib/minitest/assertions.rb#683
def assert_not_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end
- # source://minitest/5.24.1/lib/minitest/assertions.rb#700
+ # source://minitest/5.25.1/lib/minitest/assertions.rb#695
def assert_not_in_epsilon(a, b, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end
- # source://minitest/5.24.1/lib/minitest/assertions.rb#707
+ # source://minitest/5.25.1/lib/minitest/assertions.rb#702
def assert_not_includes(collection, obj, msg = T.unsafe(nil)); end
- # source://minitest/5.24.1/lib/minitest/assertions.rb#718
+ # source://minitest/5.25.1/lib/minitest/assertions.rb#713
def assert_not_instance_of(cls, obj, msg = T.unsafe(nil)); end
- # source://minitest/5.24.1/lib/minitest/assertions.rb#728
+ # source://minitest/5.25.1/lib/minitest/assertions.rb#723
def assert_not_kind_of(cls, obj, msg = T.unsafe(nil)); end
- # source://minitest/5.24.1/lib/minitest/assertions.rb#746
+ # source://minitest/5.25.1/lib/minitest/assertions.rb#741
def assert_not_nil(obj, msg = T.unsafe(nil)); end
- # source://minitest/5.24.1/lib/minitest/assertions.rb#781
+ # source://minitest/5.25.1/lib/minitest/assertions.rb#776
def assert_not_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end
- # source://minitest/5.24.1/lib/minitest/assertions.rb#804
+ # source://minitest/5.25.1/lib/minitest/assertions.rb#799
def assert_not_predicate(o1, op, msg = T.unsafe(nil)); end
- # source://minitest/5.24.1/lib/minitest/assertions.rb#813
+ # source://minitest/5.25.1/lib/minitest/assertions.rb#808
def assert_not_respond_to(obj, meth, msg = T.unsafe(nil), include_all: T.unsafe(nil)); end
- # source://minitest/5.24.1/lib/minitest/assertions.rb#822
+ # source://minitest/5.25.1/lib/minitest/assertions.rb#817
def assert_not_same(exp, act, msg = T.unsafe(nil)); end
# source://activesupport//lib/active_support/testing/file_fixtures.rb#20
@@ -11731,10 +11749,10 @@ class ActiveSupport::TestCase < ::Minitest::Test
# source://activesupport//lib/active_support/testing/file_fixtures.rb#20
def file_fixture_path?; end
- # source://activesupport//lib/active_support/test_case.rb#298
+ # source://activesupport//lib/active_support/test_case.rb#300
def inspect; end
- # source://minitest/5.24.1/lib/minitest.rb#376
+ # source://minitest/5.25.1/lib/minitest.rb#375
def method_name; end
class << self
@@ -11747,16 +11765,16 @@ class ActiveSupport::TestCase < ::Minitest::Test
# source://activesupport//lib/active_support/callbacks.rb#70
def __callbacks?; end
- # source://activesupport//lib/active_support/callbacks.rb#955
+ # source://activesupport//lib/active_support/callbacks.rb#916
def _setup_callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#959
+ # source://activesupport//lib/active_support/callbacks.rb#920
def _setup_callbacks=(value); end
- # source://activesupport//lib/active_support/callbacks.rb#955
+ # source://activesupport//lib/active_support/callbacks.rb#916
def _teardown_callbacks; end
- # source://activesupport//lib/active_support/callbacks.rb#959
+ # source://activesupport//lib/active_support/callbacks.rb#920
def _teardown_callbacks=(value); end
# source://activesupport//lib/active_support/testing/file_fixtures.rb#20
@@ -11802,7 +11820,7 @@ class ActiveSupport::TestCase < ::Minitest::Test
# number of tests to run is above the +threshold+ param. The default value is
# 50, and it's configurable via +config.active_support.test_parallelization_threshold+.
#
- # source://activesupport//lib/active_support/test_case.rb#80
+ # source://activesupport//lib/active_support/test_case.rb#81
def parallelize(workers: T.unsafe(nil), with: T.unsafe(nil), threshold: T.unsafe(nil)); end
# Set up hook for parallel testing. This can be used if you have multiple
@@ -11819,7 +11837,7 @@ class ActiveSupport::TestCase < ::Minitest::Test
# end
# end
#
- # source://activesupport//lib/active_support/test_case.rb#100
+ # source://activesupport//lib/active_support/test_case.rb#101
def parallelize_setup(&block); end
# Clean up hook for parallel testing. This can be used to drop databases
@@ -11836,7 +11854,7 @@ class ActiveSupport::TestCase < ::Minitest::Test
# end
# end
#
- # source://activesupport//lib/active_support/test_case.rb#117
+ # source://activesupport//lib/active_support/test_case.rb#118
def parallelize_teardown(&block); end
# Returns the order in which test cases are run.
@@ -11846,7 +11864,7 @@ class ActiveSupport::TestCase < ::Minitest::Test
# Possible values are +:random+, +:parallel+, +:alpha+, +:sorted+.
# Defaults to +:random+.
#
- # source://activesupport//lib/active_support/test_case.rb#43
+ # source://activesupport//lib/active_support/test_case.rb#44
def test_order; end
# Sets the order in which test cases are run.
@@ -11859,12 +11877,12 @@ class ActiveSupport::TestCase < ::Minitest::Test
# * +:sorted+ (to run tests alphabetically by method name)
# * +:alpha+ (equivalent to +:sorted+)
#
- # source://activesupport//lib/active_support/test_case.rb#33
+ # source://activesupport//lib/active_support/test_case.rb#34
def test_order=(new_order); end
end
end
-# source://activesupport//lib/active_support/test_case.rb#21
+# source://activesupport//lib/active_support/test_case.rb#22
ActiveSupport::TestCase::Assertion = Minitest::Assertion
# source://activesupport//lib/active_support/testing/tagged_logging.rb#4
@@ -12121,12 +12139,19 @@ module ActiveSupport::Testing::ConstantStubbing
# Using this method rather than forcing World::List::Import::LARGE_IMPORT_THRESHOLD = 5000 prevents
# warnings from being thrown, and ensures that the old value is returned after the test has completed.
#
+ # If the constant doesn't already exists, but you need it set for the duration of the block
+ # you can do so by passing `exists: false`.
+ #
+ # stub_const(object, :SOME_CONST, 1, exists: false) do
+ # assert_equal 1, SOME_CONST
+ # end
+ #
# Note: Stubbing a const will stub it across all threads. So if you have concurrent threads
# (like separate test suites running in parallel) that all depend on the same constant, it's possible
# divergent stubbing will trample on each other.
#
- # source://activesupport//lib/active_support/testing/constant_stubbing.rb#21
- def stub_const(mod, constant, new_value); end
+ # source://activesupport//lib/active_support/testing/constant_stubbing.rb#28
+ def stub_const(mod, constant, new_value, exists: T.unsafe(nil)); end
end
# source://activesupport//lib/active_support/testing/declarative.rb#5
@@ -12179,8 +12204,8 @@ module ActiveSupport::Testing::Deprecation
# CustomDeprecator.warn "message" # passes assertion, different deprecator
# end
#
- # source://activesupport//lib/active_support/testing/deprecation.rb#54
- def assert_not_deprecated(deprecator = T.unsafe(nil), &block); end
+ # source://activesupport//lib/active_support/testing/deprecation.rb#55
+ def assert_not_deprecated(deprecator, &block); end
# Returns the return value of the block and an array of all the deprecation warnings emitted by the given
# +deprecator+ during the execution of the yielded block.
@@ -12191,8 +12216,8 @@ module ActiveSupport::Testing::Deprecation
# :result
# end # => [:result, ["message"]]
#
- # source://activesupport//lib/active_support/testing/deprecation.rb#72
- def collect_deprecations(deprecator = T.unsafe(nil)); end
+ # source://activesupport//lib/active_support/testing/deprecation.rb#69
+ def collect_deprecations(deprecator); end
end
# source://activesupport//lib/active_support/testing/error_reporter_assertions.rb#5
@@ -12360,38 +12385,41 @@ end
module ActiveSupport::Testing::Isolation
include ::ActiveSupport::Testing::Isolation::Forking
- # source://activesupport//lib/active_support/testing/isolation.rb#18
+ # source://activesupport//lib/active_support/testing/isolation.rb#20
def run; end
class << self
# @return [Boolean]
#
- # source://activesupport//lib/active_support/testing/isolation.rb#14
+ # source://activesupport//lib/active_support/testing/isolation.rb#16
def forking_env?; end
- # source://activesupport//lib/active_support/testing/isolation.rb#8
+ # source://activesupport//lib/active_support/testing/isolation.rb#10
def included(klass); end
end
end
-# source://activesupport//lib/active_support/testing/isolation.rb#26
+# source://activesupport//lib/active_support/testing/isolation.rb#35
module ActiveSupport::Testing::Isolation::Forking
- # source://activesupport//lib/active_support/testing/isolation.rb#27
+ # source://activesupport//lib/active_support/testing/isolation.rb#36
def run_in_isolation(&blk); end
end
-# source://activesupport//lib/active_support/testing/isolation.rb#64
+# source://activesupport//lib/active_support/testing/isolation.rb#73
module ActiveSupport::Testing::Isolation::Subprocess
# Complicated H4X to get this working in Windows / JRuby with
# no forking.
#
- # source://activesupport//lib/active_support/testing/isolation.rb#69
+ # source://activesupport//lib/active_support/testing/isolation.rb#78
def run_in_isolation(&blk); end
end
-# source://activesupport//lib/active_support/testing/isolation.rb#65
+# source://activesupport//lib/active_support/testing/isolation.rb#74
ActiveSupport::Testing::Isolation::Subprocess::ORIG_ARGV = T.let(T.unsafe(nil), Array)
+# source://activesupport//lib/active_support/testing/isolation.rb#8
+class ActiveSupport::Testing::Isolation::SubprocessCrashed < ::StandardError; end
+
# source://activesupport//lib/active_support/testing/parallelization/server.rb#8
class ActiveSupport::Testing::Parallelization
# @return [Parallelization] a new instance of Parallelization
@@ -12719,6 +12747,16 @@ module ActiveSupport::Testing::TaggedLogging
def tagged_logger; end
end
+# Warns when a test case does not perform any assertions.
+#
+# This is helpful in detecting broken tests that do not perform intended assertions.
+#
+# source://activesupport//lib/active_support/testing/tests_without_assertions.rb#8
+module ActiveSupport::Testing::TestsWithoutAssertions
+ # source://activesupport//lib/active_support/testing/tests_without_assertions.rb#9
+ def after_teardown; end
+end
+
# Contains helpers that help you test passage of time.
#
# source://activesupport//lib/active_support/testing/time_helpers.rb#68
@@ -13077,8 +13115,8 @@ class ActiveSupport::TimeWithZone
#
# t = Time.zone.now # => Fri, 14 Apr 2017 11:45:15.116992711 EST -05:00
# t.change(year: 2020) # => Tue, 14 Apr 2020 11:45:15.116992711 EST -05:00
- # t.change(hour: 12) # => Fri, 14 Apr 2017 12:00:00.116992711 EST -05:00
- # t.change(min: 30) # => Fri, 14 Apr 2017 11:30:00.116992711 EST -05:00
+ # t.change(hour: 12) # => Fri, 14 Apr 2017 12:00:00.000000000 EST -05:00
+ # t.change(min: 30) # => Fri, 14 Apr 2017 11:30:00.000000000 EST -05:00
# t.change(offset: "-10:00") # => Fri, 14 Apr 2017 11:45:15.116992711 HST -10:00
# t.change(zone: "Hawaii") # => Fri, 14 Apr 2017 11:45:15.116992711 HST -10:00
#
@@ -13127,7 +13165,7 @@ class ActiveSupport::TimeWithZone
# source://activesupport//lib/active_support/time_with_zone.rb#125
def formatted_offset(colon = T.unsafe(nil), alternate_utc_string = T.unsafe(nil)); end
- # source://activesupport//lib/active_support/time_with_zone.rb#509
+ # source://activesupport//lib/active_support/time_with_zone.rb#513
def freeze; end
# Returns true if the current object's time is in the future.
@@ -13267,10 +13305,10 @@ class ActiveSupport::TimeWithZone
# source://activesupport//lib/active_support/time_with_zone.rb#83
def localtime(utc_offset = T.unsafe(nil)); end
- # source://activesupport//lib/active_support/time_with_zone.rb#515
+ # source://activesupport//lib/active_support/time_with_zone.rb#519
def marshal_dump; end
- # source://activesupport//lib/active_support/time_with_zone.rb#519
+ # source://activesupport//lib/active_support/time_with_zone.rb#523
def marshal_load(variables); end
# source://activesupport//lib/active_support/time_with_zone.rb#434
@@ -13279,7 +13317,7 @@ class ActiveSupport::TimeWithZone
# Send the missing method to +time+ instance, and wrap result in a new
# TimeWithZone with the existing +time_zone+.
#
- # source://activesupport//lib/active_support/time_with_zone.rb#540
+ # source://activesupport//lib/active_support/time_with_zone.rb#544
def method_missing(*_arg0, **_arg1, &_arg2); end
# source://activesupport//lib/active_support/time_with_zone.rb#434
@@ -13314,6 +13352,11 @@ class ActiveSupport::TimeWithZone
# source://activesupport//lib/active_support/time_with_zone.rb#72
def period; end
+ # @return [Boolean]
+ #
+ # source://activesupport//lib/active_support/time_with_zone.rb#509
+ def present?; end
+
# Returns true if the current object's time falls within
# the previous day (yesterday).
#
@@ -13327,7 +13370,7 @@ class ActiveSupport::TimeWithZone
#
# @return [Boolean]
#
- # source://activesupport//lib/active_support/time_with_zone.rb#525
+ # source://activesupport//lib/active_support/time_with_zone.rb#529
def respond_to?(sym, include_priv = T.unsafe(nil)); end
# Returns a string of the object's date and time in the RFC 2822 standard
@@ -13559,13 +13602,13 @@ class ActiveSupport::TimeWithZone
# @return [Boolean]
#
- # source://activesupport//lib/active_support/time_with_zone.rb#576
+ # source://activesupport//lib/active_support/time_with_zone.rb#580
def duration_of_variable_length?(obj); end
- # source://activesupport//lib/active_support/time_with_zone.rb#557
+ # source://activesupport//lib/active_support/time_with_zone.rb#561
def get_period_and_ensure_valid_local_time(period); end
- # source://activesupport//lib/active_support/time_with_zone.rb#549
+ # source://activesupport//lib/active_support/time_with_zone.rb#553
def incorporate_utc_offset(time, offset); end
# Ensure proxy class responds to all methods that underlying time instance
@@ -13573,20 +13616,20 @@ class ActiveSupport::TimeWithZone
#
# @return [Boolean]
#
- # source://activesupport//lib/active_support/time_with_zone.rb#533
+ # source://activesupport//lib/active_support/time_with_zone.rb#537
def respond_to_missing?(sym, include_priv); end
- # source://activesupport//lib/active_support/time_with_zone.rb#570
+ # source://activesupport//lib/active_support/time_with_zone.rb#574
def transfer_time_values_to_utc_constructor(time); end
- # source://activesupport//lib/active_support/time_with_zone.rb#580
+ # source://activesupport//lib/active_support/time_with_zone.rb#584
def wrap_with_time_zone(time); end
end
# source://activesupport//lib/active_support/time_with_zone.rb#45
ActiveSupport::TimeWithZone::PRECISIONS = T.let(T.unsafe(nil), Hash)
-# source://activesupport//lib/active_support/time_with_zone.rb#547
+# source://activesupport//lib/active_support/time_with_zone.rb#551
ActiveSupport::TimeWithZone::SECONDS_PER_DAY = T.let(T.unsafe(nil), Integer)
# = Active Support \Time Zone
@@ -13618,26 +13661,23 @@ ActiveSupport::TimeWithZone::SECONDS_PER_DAY = T.let(T.unsafe(nil), Integer)
class ActiveSupport::TimeZone
include ::Comparable
- # Create a new TimeZone object with the given name and offset. The
- # offset is the number of seconds that this time zone is offset from UTC
- # (GMT). Seconds were chosen as the offset unit because that is the unit
- # that Ruby uses to represent time zone offsets (see Time#utc_offset).
+ # :stopdoc:
#
# @return [TimeZone] a new instance of TimeZone
#
- # source://activesupport//lib/active_support/values/time_zone.rb#303
+ # source://activesupport//lib/active_support/values/time_zone.rb#311
def initialize(name, utc_offset = T.unsafe(nil), tzinfo = T.unsafe(nil)); end
# Compare this time zone to the parameter. The two are compared first on
# their offsets, and then by name.
#
- # source://activesupport//lib/active_support/values/time_zone.rb#326
+ # source://activesupport//lib/active_support/values/time_zone.rb#335
def <=>(zone); end
# Compare #name and TZInfo identifier to a supplied regexp, returning +true+
# if a match is found.
#
- # source://activesupport//lib/active_support/values/time_zone.rb#335
+ # source://activesupport//lib/active_support/values/time_zone.rb#344
def =~(re); end
# Method for creating new ActiveSupport::TimeWithZone instance in time zone
@@ -13652,10 +13692,10 @@ class ActiveSupport::TimeZone
# Time.zone = 'Hawaii' # => "Hawaii"
# Time.at(946684800, 123456.789).nsec # => 123456789
#
- # source://activesupport//lib/active_support/values/time_zone.rb#372
+ # source://activesupport//lib/active_support/values/time_zone.rb#381
def at(*args); end
- # source://activesupport//lib/active_support/values/time_zone.rb#568
+ # source://activesupport//lib/active_support/values/time_zone.rb#577
def encode_with(coder); end
# Returns a formatted string of the offset from UTC, or an alternative
@@ -13665,10 +13705,10 @@ class ActiveSupport::TimeZone
# zone.formatted_offset # => "-06:00"
# zone.formatted_offset(false) # => "-0600"
#
- # source://activesupport//lib/active_support/values/time_zone.rb#320
+ # source://activesupport//lib/active_support/values/time_zone.rb#329
def formatted_offset(colon = T.unsafe(nil), alternate_utc_string = T.unsafe(nil)); end
- # source://activesupport//lib/active_support/values/time_zone.rb#564
+ # source://activesupport//lib/active_support/values/time_zone.rb#573
def init_with(coder); end
# Method for creating new ActiveSupport::TimeWithZone instance in time zone
@@ -13685,7 +13725,7 @@ class ActiveSupport::TimeZone
# If the string is invalid then an +ArgumentError+ will be raised unlike +parse+
# which usually returns +nil+ when given an invalid date string.
#
- # source://activesupport//lib/active_support/values/time_zone.rb#389
+ # source://activesupport//lib/active_support/values/time_zone.rb#398
def iso8601(str); end
# Method for creating new ActiveSupport::TimeWithZone instance in time zone
@@ -13694,13 +13734,13 @@ class ActiveSupport::TimeZone
# Time.zone = 'Hawaii' # => "Hawaii"
# Time.zone.local(2007, 2, 1, 15, 30, 45) # => Thu, 01 Feb 2007 15:30:45 HST -10:00
#
- # source://activesupport//lib/active_support/values/time_zone.rb#356
+ # source://activesupport//lib/active_support/values/time_zone.rb#365
def local(*args); end
# Adjust the given time to the simultaneous time in UTC. Returns a
# Time.utc() instance.
#
- # source://activesupport//lib/active_support/values/time_zone.rb#544
+ # source://activesupport//lib/active_support/values/time_zone.rb#553
def local_to_utc(time, dst = T.unsafe(nil)); end
# Compare #name and TZInfo identifier to a supplied regexp, returning +true+
@@ -13708,12 +13748,12 @@ class ActiveSupport::TimeZone
#
# @return [Boolean]
#
- # source://activesupport//lib/active_support/values/time_zone.rb#341
+ # source://activesupport//lib/active_support/values/time_zone.rb#350
def match?(re); end
# Returns the value of attribute name.
#
- # source://activesupport//lib/active_support/values/time_zone.rb#296
+ # source://activesupport//lib/active_support/values/time_zone.rb#298
def name; end
# Returns an ActiveSupport::TimeWithZone instance representing the current
@@ -13722,7 +13762,7 @@ class ActiveSupport::TimeZone
# Time.zone = 'Hawaii' # => "Hawaii"
# Time.zone.now # => Wed, 23 Jan 2008 20:24:27 HST -10:00
#
- # source://activesupport//lib/active_support/values/time_zone.rb#509
+ # source://activesupport//lib/active_support/values/time_zone.rb#518
def now; end
# Method for creating new ActiveSupport::TimeWithZone instance in time zone
@@ -13744,22 +13784,22 @@ class ActiveSupport::TimeZone
#
# If the string is invalid then an +ArgumentError+ could be raised.
#
- # source://activesupport//lib/active_support/values/time_zone.rb#446
+ # source://activesupport//lib/active_support/values/time_zone.rb#455
def parse(str, now = T.unsafe(nil)); end
# Available so that TimeZone instances respond like +TZInfo::Timezone+
# instances.
#
- # source://activesupport//lib/active_support/values/time_zone.rb#556
+ # source://activesupport//lib/active_support/values/time_zone.rb#565
def period_for_local(time, dst = T.unsafe(nil)); end
# Available so that TimeZone instances respond like +TZInfo::Timezone+
# instances.
#
- # source://activesupport//lib/active_support/values/time_zone.rb#550
+ # source://activesupport//lib/active_support/values/time_zone.rb#559
def period_for_utc(time); end
- # source://activesupport//lib/active_support/values/time_zone.rb#560
+ # source://activesupport//lib/active_support/values/time_zone.rb#569
def periods_for_local(time); end
# Method for creating new ActiveSupport::TimeWithZone instance in time zone
@@ -13777,7 +13817,7 @@ class ActiveSupport::TimeZone
#
# @raise [ArgumentError]
#
- # source://activesupport//lib/active_support/values/time_zone.rb#462
+ # source://activesupport//lib/active_support/values/time_zone.rb#471
def rfc3339(str); end
# Parses +str+ according to +format+ and returns an ActiveSupport::TimeWithZone.
@@ -13801,32 +13841,32 @@ class ActiveSupport::TimeZone
#
# Time.zone.strptime('Mar 2000', '%b %Y') # => Wed, 01 Mar 2000 00:00:00 HST -10:00
#
- # source://activesupport//lib/active_support/values/time_zone.rb#500
+ # source://activesupport//lib/active_support/values/time_zone.rb#509
def strptime(str, format, now = T.unsafe(nil)); end
# Returns a textual representation of this time zone.
#
- # source://activesupport//lib/active_support/values/time_zone.rb#347
+ # source://activesupport//lib/active_support/values/time_zone.rb#356
def to_s; end
# Returns the current date in this time zone.
#
- # source://activesupport//lib/active_support/values/time_zone.rb#514
+ # source://activesupport//lib/active_support/values/time_zone.rb#523
def today; end
# Returns the next date in this time zone.
#
- # source://activesupport//lib/active_support/values/time_zone.rb#519
+ # source://activesupport//lib/active_support/values/time_zone.rb#528
def tomorrow; end
# Returns the value of attribute tzinfo.
#
- # source://activesupport//lib/active_support/values/time_zone.rb#297
+ # source://activesupport//lib/active_support/values/time_zone.rb#299
def tzinfo; end
# Returns the offset of this time zone from UTC in seconds.
#
- # source://activesupport//lib/active_support/values/time_zone.rb#310
+ # source://activesupport//lib/active_support/values/time_zone.rb#319
def utc_offset; end
# Adjust the given time to the simultaneous time in the time zone
@@ -13837,22 +13877,22 @@ class ActiveSupport::TimeZone
# As of tzinfo 2, utc_to_local returns a Time with a non-zero utc_offset.
# See the +utc_to_local_returns_utc_offset_times+ config for more info.
#
- # source://activesupport//lib/active_support/values/time_zone.rb#535
+ # source://activesupport//lib/active_support/values/time_zone.rb#544
def utc_to_local(time); end
# Returns the previous date in this time zone.
#
- # source://activesupport//lib/active_support/values/time_zone.rb#524
+ # source://activesupport//lib/active_support/values/time_zone.rb#533
def yesterday; end
private
# @raise [ArgumentError]
#
- # source://activesupport//lib/active_support/values/time_zone.rb#574
+ # source://activesupport//lib/active_support/values/time_zone.rb#583
def parts_to_time(parts, now); end
- # source://activesupport//lib/active_support/values/time_zone.rb#599
+ # source://activesupport//lib/active_support/values/time_zone.rb#608
def time_now; end
class << self
@@ -13862,25 +13902,26 @@ class ActiveSupport::TimeZone
# timezone to find. (The first one with that offset will be returned.)
# Returns +nil+ if no such time zone is known to the system.
#
- # source://activesupport//lib/active_support/values/time_zone.rb#232
+ # source://activesupport//lib/active_support/values/time_zone.rb#234
def [](arg); end
# Returns an array of all TimeZone objects. There are multiple
# TimeZone objects per time zone, in many cases, to make it easier
# for users to find their own time zone.
#
- # source://activesupport//lib/active_support/values/time_zone.rb#223
+ # source://activesupport//lib/active_support/values/time_zone.rb#225
def all; end
- # source://activesupport//lib/active_support/values/time_zone.rb#265
+ # source://activesupport//lib/active_support/values/time_zone.rb#267
def clear; end
# A convenience method for returning a collection of TimeZone objects
# for time zones in the country specified by its ISO 3166-1 Alpha2 code.
#
- # source://activesupport//lib/active_support/values/time_zone.rb#260
+ # source://activesupport//lib/active_support/values/time_zone.rb#262
def country_zones(country_code); end
+ # :stopdoc:
def create(*_arg0); end
# source://activesupport//lib/active_support/values/time_zone.rb#207
@@ -13890,7 +13931,7 @@ class ActiveSupport::TimeZone
# such TimeZone instance exists. (This exists to support the use of
# this class with the +composed_of+ macro.)
#
- # source://activesupport//lib/active_support/values/time_zone.rb#216
+ # source://activesupport//lib/active_support/values/time_zone.rb#218
def new(name); end
# Assumes self represents an offset from UTC in seconds (as returned from
@@ -13904,15 +13945,15 @@ class ActiveSupport::TimeZone
# A convenience method for returning a collection of TimeZone objects
# for time zones in the USA.
#
- # source://activesupport//lib/active_support/values/time_zone.rb#254
+ # source://activesupport//lib/active_support/values/time_zone.rb#256
def us_zones; end
private
- # source://activesupport//lib/active_support/values/time_zone.rb#273
+ # source://activesupport//lib/active_support/values/time_zone.rb#275
def load_country_zones(code); end
- # source://activesupport//lib/active_support/values/time_zone.rb#287
+ # source://activesupport//lib/active_support/values/time_zone.rb#289
def zones_map; end
end
end
@@ -13953,7 +13994,7 @@ ActiveSupport::VERSION::MAJOR = T.let(T.unsafe(nil), Integer)
ActiveSupport::VERSION::MINOR = T.let(T.unsafe(nil), Integer)
# source://activesupport//lib/active_support/gem_version.rb#13
-ActiveSupport::VERSION::PRE = T.let(T.unsafe(nil), String)
+ActiveSupport::VERSION::PRE = T.let(T.unsafe(nil), T.untyped)
# source://activesupport//lib/active_support/gem_version.rb#15
ActiveSupport::VERSION::STRING = T.let(T.unsafe(nil), String)
@@ -14036,70 +14077,71 @@ end
# = \XmlMini
#
# To use the much faster libxml parser:
-# gem 'libxml-ruby'
+# gem "libxml-ruby"
# XmlMini.backend = 'LibXML'
#
# source://activesupport//lib/active_support/xml_mini.rb#17
module ActiveSupport::XmlMini
extend ::ActiveSupport::XmlMini
- # source://activesupport//lib/active_support/xml_mini.rb#97
+ # source://activesupport//lib/active_support/xml_mini.rb#101
def backend; end
- # source://activesupport//lib/active_support/xml_mini.rb#101
+ # source://activesupport//lib/active_support/xml_mini.rb#105
def backend=(name); end
# Returns the value of attribute depth.
#
- # source://activesupport//lib/active_support/xml_mini.rb#92
+ # source://activesupport//lib/active_support/xml_mini.rb#96
def depth; end
# Sets the attribute depth
#
# @param value the value to set the attribute depth to.
#
- # source://activesupport//lib/active_support/xml_mini.rb#92
+ # source://activesupport//lib/active_support/xml_mini.rb#96
def depth=(_arg0); end
- # source://activesupport//lib/active_support/xml_mini.rb#95
+ # source://activesupport//lib/active_support/xml_mini.rb#99
def parse(*_arg0, **_arg1, &_arg2); end
- # source://activesupport//lib/active_support/xml_mini.rb#148
+ # source://activesupport//lib/active_support/xml_mini.rb#152
def rename_key(key, options = T.unsafe(nil)); end
- # source://activesupport//lib/active_support/xml_mini.rb#115
+ # source://activesupport//lib/active_support/xml_mini.rb#119
def to_tag(key, value, options); end
- # source://activesupport//lib/active_support/xml_mini.rb#107
+ # source://activesupport//lib/active_support/xml_mini.rb#111
def with_backend(name); end
private
- # source://activesupport//lib/active_support/xml_mini.rb#159
+ # source://activesupport//lib/active_support/xml_mini.rb#163
def _dasherize(key); end
- # TODO: Add support for other encodings
- #
- # source://activesupport//lib/active_support/xml_mini.rb#166
+ # source://activesupport//lib/active_support/xml_mini.rb#169
def _parse_binary(bin, entity); end
- # source://activesupport//lib/active_support/xml_mini.rb#175
+ # source://activesupport//lib/active_support/xml_mini.rb#180
def _parse_file(file, entity); end
- # source://activesupport//lib/active_support/xml_mini.rb#191
+ # source://activesupport//lib/active_support/xml_mini.rb#188
+ def _parse_hex_binary(bin); end
+
+ # source://activesupport//lib/active_support/xml_mini.rb#200
def cast_backend_name_to_module(name); end
- # source://activesupport//lib/active_support/xml_mini.rb#183
+ # source://activesupport//lib/active_support/xml_mini.rb#192
def current_thread_backend; end
- # source://activesupport//lib/active_support/xml_mini.rb#187
+ # source://activesupport//lib/active_support/xml_mini.rb#196
def current_thread_backend=(name); end
end
# source://activesupport//lib/active_support/xml_mini.rb#34
ActiveSupport::XmlMini::DEFAULT_ENCODINGS = T.let(T.unsafe(nil), Hash)
-# source://activesupport//lib/active_support/xml_mini.rb#55
+# source://activesupport//lib/active_support/xml_mini.rb#56
ActiveSupport::XmlMini::FORMATTING = T.let(T.unsafe(nil), Hash)
# This module decorates files deserialized using Hash.from_xml with
@@ -14120,7 +14162,7 @@ module ActiveSupport::XmlMini::FileLike
def original_filename=(_arg0); end
end
-# source://activesupport//lib/active_support/xml_mini.rb#65
+# source://activesupport//lib/active_support/xml_mini.rb#67
ActiveSupport::XmlMini::PARSING = T.let(T.unsafe(nil), Hash)
# source://activesupport//lib/active_support/xml_mini.rb#39
@@ -14375,6 +14417,11 @@ class Array
# source://activesupport//lib/active_support/core_ext/array/inquiry.rb#16
def inquiry; end
+ # @return [Boolean]
+ #
+ # source://activesupport//lib/active_support/core_ext/object/blank.rb#104
+ def present?; end
+
# Equal to self[1].
#
# %w( a b c d e ).second # => "b"
@@ -14424,9 +14471,6 @@ class Array
# source://activesupport//lib/active_support/core_ext/array/access.rb#24
def to(position); end
- # source://activesupport//lib/active_support/deprecation/method_wrappers.rb#46
- def to_default_s(*args, **_arg1, &block); end
-
# Extends Array#to_s to convert a collection of elements into a
# comma separated id list if :db argument is given as the format.
#
@@ -14595,7 +14639,7 @@ class Array
#
#
#
- # source://activesupport//lib/active_support/core_ext/array/conversions.rb#185
+ # source://activesupport//lib/active_support/core_ext/array/conversions.rb#183
def to_xml(options = T.unsafe(nil)); end
# Returns a copy of the Array excluding the specified elements.
@@ -14774,18 +14818,10 @@ class Class < ::Module
# class D < C; end
# C.descendants # => [B, A, D]
#
- # source://activesupport//lib/active_support/descendants_tracker.rb#64
+ # source://activesupport//lib/active_support/descendants_tracker.rb#63
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//lib/active_support/descendants_tracker.rb#60
+ # source://activesupport//lib/active_support/descendants_tracker.rb#59
def subclasses; end
end
@@ -14919,7 +14955,7 @@ class Date
# Overrides the default inspect method with a human readable one, e.g., "Mon, 21 Feb 2005"
#
- # source://activesupport//lib/active_support/core_ext/date/conversions.rb#63
+ # source://activesupport//lib/active_support/core_ext/date/conversions.rb#61
def inspect; end
# Converts Date to a Time (or DateTime if necessary) with the time portion set to the middle of the day (12:00)
@@ -14948,9 +14984,14 @@ class Date
# source://activesupport//lib/active_support/core_ext/date/calculations.rb#90
def plus_with_duration(other); end
+ # @return [Boolean]
+ #
+ # source://activesupport//lib/active_support/core_ext/date/blank.rb#15
+ def present?; end
+
# Overrides the default inspect method with a human readable one, e.g., "Mon, 21 Feb 2005"
#
- # source://activesupport//lib/active_support/core_ext/date/conversions.rb#63
+ # source://activesupport//lib/active_support/core_ext/date/conversions.rb#61
def readable_inspect; end
# Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00)
@@ -14959,9 +15000,6 @@ class Date
# source://activesupport//lib/active_support/core_ext/date/calculations.rb#61
def since(seconds); end
- # source://activesupport//lib/active_support/deprecation/method_wrappers.rb#46
- def to_default_s(*args, **_arg1, &block); end
-
# Convert to a formatted string. See DATE_FORMATS for predefined formats.
#
# This method is aliased to to_formatted_s.
@@ -15033,7 +15071,7 @@ class Date
#
# @raise [ArgumentError]
#
- # source://activesupport//lib/active_support/core_ext/date/conversions.rb#83
+ # source://activesupport//lib/active_support/core_ext/date/conversions.rb#81
def to_time(form = T.unsafe(nil)); end
# Returns a string which represents the time in used time zone as DateTime
@@ -15042,7 +15080,7 @@ class Date
# date = Date.new(2015, 05, 23) # => Sat, 23 May 2015
# date.xmlschema # => "2015-05-23T00:00:00+04:00"
#
- # source://activesupport//lib/active_support/core_ext/date/conversions.rb#95
+ # source://activesupport//lib/active_support/core_ext/date/conversions.rb#93
def xmlschema; end
class << self
@@ -15100,7 +15138,7 @@ end
# source://activesupport//lib/active_support/core_ext/date/conversions.rb#9
Date::DATE_FORMATS = T.let(T.unsafe(nil), Hash)
-# source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#5
+# source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#6
module DateAndTime; end
# source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#7
@@ -15562,25 +15600,31 @@ DateAndTime::Calculations::DAYS_INTO_WEEK = T.let(T.unsafe(nil), Hash)
# source://activesupport//lib/active_support/core_ext/date_and_time/calculations.rb#17
DateAndTime::Calculations::WEEKEND_DAYS = T.let(T.unsafe(nil), Array)
-# source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#6
+# source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#7
module DateAndTime::Compatibility
- # source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#14
+ # source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#39
def preserve_timezone; end
- # source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#29
+ # source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#56
def utc_to_local_returns_utc_offset_times; end
class << self
- # source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#14
+ # --
+ # This re-implements the behaviour of the mattr_reader, instead
+ # of prepending on to it, to avoid overcomplicating a module that
+ # is in turn included in several places. This will all go away in
+ # Rails 8.0 anyway.
+ #
+ # source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#24
def preserve_timezone; end
- # source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#14
+ # source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#15
def preserve_timezone=(val); end
- # source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#29
+ # source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#56
def utc_to_local_returns_utc_offset_times; end
- # source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#29
+ # source://activesupport//lib/active_support/core_ext/date_and_time/compatibility.rb#56
def utc_to_local_returns_utc_offset_times=(val); end
end
end
@@ -15770,7 +15814,7 @@ class DateTime < ::Date
# datetime.formatted_offset # => "-06:00"
# datetime.formatted_offset(false) # => "-0600"
#
- # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#55
+ # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#51
def formatted_offset(colon = T.unsafe(nil), alternate_utc_string = T.unsafe(nil)); end
# Returns a Time instance of the simultaneous time in the UTC timezone.
@@ -15811,7 +15855,7 @@ class DateTime < ::Date
# Overrides the default inspect method with a human readable one, e.g., "Mon, 21 Feb 2005 14:30:00 +0000".
#
- # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#60
+ # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#56
def inspect; end
# Returns a Time instance of the simultaneous time in the system timezone.
@@ -15841,12 +15885,17 @@ class DateTime < ::Date
# Returns the fraction of a second as nanoseconds
#
- # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#98
+ # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#94
def nsec; end
+ # @return [Boolean]
+ #
+ # source://activesupport//lib/active_support/core_ext/date_time/blank.rb#15
+ def present?; end
+
# Overrides the default inspect method with a human readable one, e.g., "Mon, 21 Feb 2005 14:30:00 +0000".
#
- # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#60
+ # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#56
def readable_inspect; end
# Returns the number of seconds since 00:00:00.
@@ -15881,12 +15930,9 @@ class DateTime < ::Date
# source://activesupport//lib/active_support/core_ext/date_time/calculations.rb#36
def subsec; end
- # source://activesupport//lib/active_support/deprecation/method_wrappers.rb#46
- def to_default_s(*args, **_arg1, &block); end
-
# Converts +self+ to a floating-point number of seconds, including fractional microseconds, since the Unix epoch.
#
- # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#83
+ # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#79
def to_f; end
# Convert to a formatted string. See Time::DATE_FORMATS for predefined formats.
@@ -15949,7 +15995,7 @@ class DateTime < ::Date
# Converts +self+ to an integer number of seconds since the Unix epoch.
#
- # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#88
+ # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#84
def to_i; end
# Either return an instance of +Time+ with the same UTC offset
@@ -15962,7 +16008,7 @@ class DateTime < ::Date
# Returns the fraction of a second as microseconds
#
- # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#93
+ # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#89
def usec; end
# Returns a Time instance of the simultaneous time in the UTC timezone.
@@ -15987,10 +16033,10 @@ class DateTime < ::Date
private
- # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#103
+ # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#99
def offset_in_seconds; end
- # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#107
+ # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#103
def seconds_since_unix_epoch; end
class << self
@@ -16002,7 +16048,7 @@ class DateTime < ::Date
# DateTime.civil_from_format :local, 2012, 12, 17
# # => Mon, 17 Dec 2012 00:00:00 +0000
#
- # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#73
+ # source://activesupport//lib/active_support/core_ext/date_time/conversions.rb#69
def civil_from_format(utc_or_local, year, month = T.unsafe(nil), day = T.unsafe(nil), hour = T.unsafe(nil), min = T.unsafe(nil), sec = T.unsafe(nil)); end
# Returns Time.zone.now.to_datetime when Time.zone or
@@ -16022,6 +16068,12 @@ end
# source://activesupport//lib/active_support/core_ext/digest/uuid.rb#7
module Digest::UUID
class << self
+ # Returns the nil UUID. This is a special form of UUID that is specified to
+ # have all 128 bits set to zero.
+ #
+ # source://activesupport//lib/active_support/core_ext/digest/uuid.rb#58
+ def nil_uuid; end
+
# Generates a v5 non-random UUID (Universally Unique IDentifier).
#
# Using OpenSSL::Digest::MD5 generates version 3 UUIDs; OpenSSL::Digest::SHA1 generates version 5 UUIDs.
@@ -16049,7 +16101,7 @@ module Digest::UUID
private
- # source://activesupport//lib/active_support/core_ext/digest/uuid.rb#56
+ # source://activesupport//lib/active_support/core_ext/digest/uuid.rb#62
def pack_uuid_namespace(namespace); end
end
end
@@ -16473,9 +16525,14 @@ class FalseClass
#
# @return [true]
#
- # source://activesupport//lib/active_support/core_ext/object/blank.rb#67
+ # source://activesupport//lib/active_support/core_ext/object/blank.rb#71
def blank?; end
+ # @return [Boolean]
+ #
+ # source://activesupport//lib/active_support/core_ext/object/blank.rb#75
+ def present?; end
+
# Returns +self+.
#
# source://activesupport//lib/active_support/core_ext/object/to_query.rb#34
@@ -16704,6 +16761,11 @@ class Hash
# source://activesupport//lib/active_support/core_ext/hash/indifferent_access.rb#9
def nested_under_indifferent_access; end
+ # @return [Boolean]
+ #
+ # source://activesupport//lib/active_support/core_ext/object/blank.rb#118
+ def present?; end
+
# Merges the caller into +other_hash+. For example,
#
# options = options.reverse_merge(size: 25, velocity: 10)
@@ -16980,7 +17042,7 @@ end
# :stopdoc:
#
-# source://activesupport//lib/active_support/hash_with_indifferent_access.rb#443
+# source://activesupport//lib/active_support/hash_with_indifferent_access.rb#441
HashWithIndifferentAccess = ActiveSupport::HashWithIndifferentAccess
# source://activesupport//lib/active_support/core_ext/object/json.rb#153
@@ -17294,19 +17356,6 @@ class LoadError < ::ScriptError
def is_missing?(location); end
end
-# source://activesupport//lib/active_support/core_ext/object/duplicable.rb#31
-class Method
- # Methods are not duplicable:
- #
- # method(:puts).duplicable? # => false
- # method(:puts).dup # => TypeError: allocator undefined for Method
- #
- # @return [Boolean]
- #
- # source://activesupport//lib/active_support/core_ext/object/duplicable.rb#36
- def duplicable?; end
-end
-
# == Attribute Accessors per Thread
#
# Extends the module object with class/module and instance accessors for
@@ -17586,7 +17635,7 @@ class Module
# ==== Options
# * :to - Specifies the target object name as a symbol or string
# * :prefix - Prefixes the new method with the target name or a custom prefix
- # * :allow_nil - If set to true, prevents a +Module::DelegationError+
+ # * :allow_nil - If set to true, prevents a +ActiveSupport::DelegationError+
# from being raised
# * :private - If set to true, changes method visibility to private
#
@@ -17697,7 +17746,7 @@ class Module
# User.new.age # => 2
#
# If the target is +nil+ and does not respond to the delegated method a
- # +Module::DelegationError+ is raised. If you wish to instead return +nil+,
+ # +ActiveSupport::DelegationError+ is raised. If you wish to instead return +nil+,
# use the :allow_nil option.
#
# class User < ActiveRecord::Base
@@ -17706,7 +17755,7 @@ class Module
# end
#
# User.new.age
- # # => Module::DelegationError: User#age delegated to profile.age, but profile is nil
+ # # => ActiveSupport::DelegationError: User#age delegated to profile.age, but profile is nil
#
# But if not having a profile yet is fine and should not be an error
# condition:
@@ -17734,7 +17783,7 @@ class Module
#
# The target method must be public, otherwise it will raise +NoMethodError+.
#
- # source://activesupport//lib/active_support/core_ext/module/delegation.rb#171
+ # source://activesupport//lib/active_support/core_ext/module/delegation.rb#160
def delegate(*methods, to: T.unsafe(nil), prefix: T.unsafe(nil), allow_nil: T.unsafe(nil), private: T.unsafe(nil)); end
# When building decorators, a common pattern may emerge:
@@ -17776,7 +17825,7 @@ class Module
# variables, methods, constants, etc.
#
# The delegated method must be public on the target, otherwise it will
- # raise +DelegationError+. If you wish to instead return +nil+,
+ # raise +ActiveSupport::DelegationError+. If you wish to instead return +nil+,
# use the :allow_nil option.
#
# The marshal_dump and _dump methods are exempt from
@@ -17784,7 +17833,7 @@ class Module
# Marshal.dump(object), should the delegation target method
# of object add or remove instance variables.
#
- # source://activesupport//lib/active_support/core_ext/module/delegation.rb#318
+ # source://activesupport//lib/active_support/core_ext/module/delegation.rb#218
def delegate_missing_to(target, allow_nil: T.unsafe(nil)); end
# deprecate :foo, deprecator: MyLib.deprecator
@@ -17802,7 +17851,7 @@ class Module
# end
#
# source://activesupport//lib/active_support/core_ext/module/deprecation.rb#17
- def deprecate(*method_names, deprecator: T.unsafe(nil), **options); end
+ def deprecate(*method_names, deprecator:, **options); end
# Defines both class and instance accessors for class attributes.
# All class and instance methods created will be public, even if
@@ -18254,24 +18303,17 @@ class Module
private
- # source://activesupport//lib/active_support/core_ext/module/attr_internal.rb#30
+ # source://activesupport//lib/active_support/core_ext/module/attr_internal.rb#41
def attr_internal_define(attr_name, type); end
- # source://activesupport//lib/active_support/core_ext/module/attr_internal.rb#26
- def attr_internal_ivar_name(attr); end
-
class << self
# Returns the value of attribute attr_internal_naming_format.
#
- # source://activesupport//lib/active_support/core_ext/module/attr_internal.rb#22
+ # source://activesupport//lib/active_support/core_ext/module/attr_internal.rb#23
def attr_internal_naming_format; end
- # Sets the attribute attr_internal_naming_format
- #
- # @param value the value to set the attribute attr_internal_naming_format to.
- #
- # source://activesupport//lib/active_support/core_ext/module/attr_internal.rb#22
- def attr_internal_naming_format=(_arg0); end
+ # source://activesupport//lib/active_support/core_ext/module/attr_internal.rb#25
+ def attr_internal_naming_format=(format); end
end
end
@@ -18407,20 +18449,8 @@ module Module::Concerning
def concerning(topic, prepend: T.unsafe(nil), &block); end
end
-# source://activesupport//lib/active_support/core_ext/module/delegation.rb#13
-Module::DELEGATION_RESERVED_KEYWORDS = T.let(T.unsafe(nil), Array)
-
-# source://activesupport//lib/active_support/core_ext/module/delegation.rb#14
-Module::DELEGATION_RESERVED_METHOD_NAMES = T.let(T.unsafe(nil), Set)
-
-# Error generated by +delegate+ when a method is called on +nil+ and +allow_nil+
-# option is not used.
-#
-# source://activesupport//lib/active_support/core_ext/module/delegation.rb#8
-class Module::DelegationError < ::NoMethodError; end
-
-# source://activesupport//lib/active_support/core_ext/module/delegation.rb#10
-Module::RUBY_RESERVED_KEYWORDS = T.let(T.unsafe(nil), Array)
+# source://activesupport//lib/active_support/core_ext/module/delegation.rb#5
+Module::DelegationError = ActiveSupport::DelegationError
# source://activesupport//lib/active_support/core_ext/name_error.rb#3
class NameError < ::StandardError
@@ -18476,6 +18506,11 @@ class NilClass
# source://activesupport//lib/active_support/core_ext/object/blank.rb#56
def blank?; end
+ # @return [Boolean]
+ #
+ # source://activesupport//lib/active_support/core_ext/object/blank.rb#60
+ def present?; end
+
# Returns +self+.
#
# source://activesupport//lib/active_support/core_ext/object/to_query.rb#20
@@ -18503,7 +18538,7 @@ class NilClass
def try!(*_arg0); end
end
-# source://activesupport//lib/active_support/core_ext/object/blank.rb#134
+# source://activesupport//lib/active_support/core_ext/object/blank.rb#170
class Numeric
include ::Comparable
@@ -18517,7 +18552,7 @@ class Numeric
#
# @return [false]
#
- # source://activesupport//lib/active_support/core_ext/object/blank.rb#141
+ # source://activesupport//lib/active_support/core_ext/object/blank.rb#177
def blank?; end
# Enables the use of byte calculations and declarations, like 45.bytes + 2.6.megabytes
@@ -18674,6 +18709,11 @@ class Numeric
# source://activesupport//lib/active_support/core_ext/numeric/bytes.rb#55
def petabytes; end
+ # @return [Boolean]
+ #
+ # source://activesupport//lib/active_support/core_ext/object/blank.rb#181
+ def present?; end
+
# Returns a Duration instance matching the number of seconds provided.
#
# 2.seconds # => 2 seconds
@@ -18773,11 +18813,11 @@ Numeric::ZETTABYTE = T.let(T.unsafe(nil), Integer)
#
# source://activesupport//lib/active_support/core_ext/object/try.rb#35
class Object < ::BasicObject
- include ::ActiveSupport::ToJsonWithActiveSupportEncoder
include ::ActiveSupport::Dependencies::RequireDependency
include ::Kernel
include ::PP::ObjectMixin
include ::ActiveSupport::Tryable
+ include ::ActiveSupport::ToJsonWithActiveSupportEncoder
# Provides a way to check whether some class acts like some other class based on the existence of
# an appropriately-named marker method.
@@ -18901,7 +18941,7 @@ class Object < ::BasicObject
#
# C.new(0, 1).instance_variable_names # => ["@y", "@x"]
#
- # source://activesupport//lib/active_support/core_ext/object/instance_variables.rb#30
+ # source://activesupport//lib/active_support/core_ext/object/instance_variables.rb#29
def instance_variable_names; end
# Returns the receiver if it's present otherwise returns +nil+.
@@ -18957,11 +18997,13 @@ class Object < ::BasicObject
# Set and restore public attributes around a block.
#
# client.timeout # => 5
- # client.with(timeout: 1) do
- # client.timeout # => 1
+ # client.with(timeout: 1) do |c|
+ # c.timeout # => 1
# end
# client.timeout # => 5
#
+ # The receiver is yielded to the provided block.
+ #
# This method is a shorthand for the common begin/ensure pattern:
#
# old_value = object.attribute
@@ -18975,7 +19017,7 @@ class Object < ::BasicObject
# It can be used on any object as long as both the reader and writer methods
# are public.
#
- # source://activesupport//lib/active_support/core_ext/object/with.rb#24
+ # source://activesupport//lib/active_support/core_ext/object/with.rb#26
def with(**attributes); end
# An elegant way to factor duplication out of options passed to a series of
@@ -19101,10 +19143,15 @@ class Pathname
#
# source://activesupport//lib/active_support/core_ext/pathname/existence.rb#20
def existence; end
+
+ # @return [Boolean]
+ #
+ # source://activesupport//lib/active_support/core_ext/pathname/blank.rb#17
+ def present?; end
end
module Process
- extend ::ActiveSupport::ForkTracker::ModernCoreExt
+ extend ::ActiveSupport::ForkTracker::CoreExt
class << self
# source://activesupport//lib/active_support/fork_tracker.rb#6
@@ -19169,10 +19216,33 @@ end
# source://activesupport//lib/active_support/core_ext/securerandom.rb#5
module SecureRandom
class << self
- # source://activesupport//lib/active_support/core_ext/securerandom.rb#45
+ # SecureRandom.base36 generates a random base36 string in lowercase.
+ #
+ # The argument _n_ specifies the length of the random string to be generated.
+ #
+ # If _n_ is not specified or is +nil+, 16 is assumed. It may be larger in the future.
+ # This method can be used over +base58+ if a deterministic case key is necessary.
+ #
+ # The result will contain alphanumeric characters in lowercase.
+ #
+ # p SecureRandom.base36 # => "4kugl2pdqmscqtje"
+ # p SecureRandom.base36(24) # => "77tmhrhjfvfdwodq8w7ev2m7"
+ #
+ # source://activesupport//lib/active_support/core_ext/securerandom.rb#34
def base36(n = T.unsafe(nil)); end
- # source://activesupport//lib/active_support/core_ext/securerandom.rb#20
+ # SecureRandom.base58 generates a random base58 string.
+ #
+ # The argument _n_ specifies the length of the random string to be generated.
+ #
+ # If _n_ is not specified or is +nil+, 16 is assumed. It may be larger in the future.
+ #
+ # The result may contain alphanumeric characters except 0, O, I, and l.
+ #
+ # p SecureRandom.base58 # => "4kUgL2pdQMSCQtjE"
+ # p SecureRandom.base58(24) # => "77TMHrHJFvFDwodq8w7Ev2m7"
+ #
+ # source://activesupport//lib/active_support/core_ext/securerandom.rb#19
def base58(n = T.unsafe(nil)); end
end
end
@@ -19183,7 +19253,7 @@ SecureRandom::BASE36_ALPHABET = T.let(T.unsafe(nil), Array)
# source://activesupport//lib/active_support/core_ext/securerandom.rb#6
SecureRandom::BASE58_ALPHABET = T.let(T.unsafe(nil), Array)
-# source://activesupport//lib/active_support/core_ext/object/duplicable.rb#53
+# source://activesupport//lib/active_support/core_ext/object/duplicable.rb#62
module Singleton
mixes_in_class_methods ::Singleton::SingletonClassMethods
@@ -19193,7 +19263,7 @@ module Singleton
#
# @return [Boolean]
#
- # source://activesupport//lib/active_support/core_ext/object/duplicable.rb#57
+ # source://activesupport//lib/active_support/core_ext/object/duplicable.rb#66
def duplicable?; end
end
@@ -19258,7 +19328,7 @@ class String
#
# @return [true, false]
#
- # source://activesupport//lib/active_support/core_ext/object/blank.rb#121
+ # source://activesupport//lib/active_support/core_ext/object/blank.rb#153
def blank?; end
# By default, +camelize+ converts strings to UpperCamelCase. If the argument to camelize
@@ -19427,7 +19497,7 @@ class String
# +raw+ helper in views. It is recommended that you use +sanitize+ instead of
# this method. It should never be called on user input.
#
- # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#232
+ # source://activesupport//lib/active_support/core_ext/string/output_safety.rb#225
def html_safe; end
# Capitalizes the first word, turns underscores into spaces, and (by default) strips a
@@ -19635,6 +19705,11 @@ class String
# source://activesupport//lib/active_support/core_ext/string/inflections.rb#35
def pluralize(count = T.unsafe(nil), locale = T.unsafe(nil)); end
+ # @return [Boolean]
+ #
+ # source://activesupport//lib/active_support/core_ext/object/blank.rb#165
+ def present?; end
+
# Returns a new string with all occurrences of the patterns removed.
# str = "foo bar test"
# str.remove(" test") # => "foo bar"
@@ -19918,10 +19993,10 @@ class String
def upcase_first; end
end
-# source://activesupport//lib/active_support/core_ext/object/blank.rb#104
+# source://activesupport//lib/active_support/core_ext/object/blank.rb#136
String::BLANK_RE = T.let(T.unsafe(nil), Regexp)
-# source://activesupport//lib/active_support/core_ext/object/blank.rb#105
+# source://activesupport//lib/active_support/core_ext/object/blank.rb#137
String::ENCODED_BLANKS = T.let(T.unsafe(nil), Concurrent::Map)
# source://activesupport//lib/active_support/core_ext/object/json.rb#76
@@ -19932,12 +20007,17 @@ class Struct
def as_json(options = T.unsafe(nil)); end
end
-# source://activesupport//lib/active_support/core_ext/object/json.rb#106
+# source://activesupport//lib/active_support/core_ext/object/blank.rb#123
class Symbol
include ::Comparable
# source://activesupport//lib/active_support/core_ext/object/json.rb#107
def as_json(options = T.unsafe(nil)); end
+
+ # @return [Boolean]
+ #
+ # source://activesupport//lib/active_support/core_ext/object/blank.rb#130
+ def present?; end
end
class Thread
@@ -19955,20 +20035,20 @@ class Time
include ::DateAndTime::Calculations
include ::DateAndTime::Compatibility
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#300
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#285
def +(other); end
# Time#- can also be used to determine the number of seconds between two Time instances.
# We're layering on additional behavior so that ActiveSupport::TimeWithZone instances
# are coerced into values that Time#- will recognize
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#323
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#308
def -(other); end
# Layers additional behavior on Time#<=> so that DateTime and ActiveSupport::TimeWithZone instances
# can be chronologically compared with a Time
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#332
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#317
def <=>(other); end
# Duck-types as a Time-like class. See Object#acts_like?.
@@ -19994,12 +20074,12 @@ class Time
# largest to smallest. This order can affect the result around the end of a
# month.
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#202
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#187
def advance(options); end
# Returns a new Time representing the time a number of seconds ago, this is basically a wrapper around the Numeric extension
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#228
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#213
def ago(seconds); end
# source://activesupport//lib/active_support/core_ext/object/json.rb#195
@@ -20007,67 +20087,67 @@ class Time
# Returns a new Time representing the start of the day (0:00)
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#241
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#226
def at_beginning_of_day; end
# Returns a new Time representing the start of the hour (x:00)
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#270
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#255
def at_beginning_of_hour; end
# Returns a new Time representing the start of the minute (x:xx:00)
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#286
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#271
def at_beginning_of_minute; end
# Returns a new Time representing the end of the day, 23:59:59.999999
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#259
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#244
def at_end_of_day; end
# Returns a new Time representing the end of the hour, x:59:59.999999
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#276
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#261
def at_end_of_hour; end
# Returns a new Time representing the end of the minute, x:xx:59.999999
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#292
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#277
def at_end_of_minute; end
# Returns a new Time representing the middle of the day (12:00)
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#249
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#234
def at_midday; end
# Returns a new Time representing the middle of the day (12:00)
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#249
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#234
def at_middle_of_day; end
# Returns a new Time representing the start of the day (0:00)
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#241
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#226
def at_midnight; end
# Returns a new Time representing the middle of the day (12:00)
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#249
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#234
def at_noon; end
# Returns a new Time representing the start of the day (0:00)
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#241
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#226
def beginning_of_day; end
# Returns a new Time representing the start of the hour (x:00)
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#270
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#255
def beginning_of_hour; end
# Returns a new Time representing the start of the minute (x:xx:00)
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#286
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#271
def beginning_of_minute; end
# No Time is blank:
@@ -20076,7 +20156,7 @@ class Time
#
# @return [false]
#
- # source://activesupport//lib/active_support/core_ext/object/blank.rb#152
+ # source://activesupport//lib/active_support/core_ext/object/blank.rb#192
def blank?; end
# Returns a new Time where one or more of the elements have been changed according
@@ -20094,40 +20174,40 @@ class Time
#
# @raise [ArgumentError]
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#138
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#123
def change(options); end
# Layers additional behavior on Time#<=> so that DateTime and ActiveSupport::TimeWithZone instances
# can be chronologically compared with a Time
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#332
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#317
def compare_with_coercion(other); end
# Returns a new Time representing the end of the day, 23:59:59.999999
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#259
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#244
def end_of_day; end
# Returns a new Time representing the end of the hour, x:59:59.999999
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#276
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#261
def end_of_hour; end
# Returns a new Time representing the end of the minute, x:xx:59.999999
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#292
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#277
def end_of_minute; end
# Layers additional behavior on Time#eql? so that ActiveSupport::TimeWithZone instances
# can be eql? to an equivalent Time
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#347
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#337
def eql?(other); end
# Layers additional behavior on Time#eql? so that ActiveSupport::TimeWithZone instances
# can be eql? to an equivalent Time
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#347
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#337
def eql_with_coercion(other); end
# Returns a formatted string of the offset from UTC, or an alternative
@@ -20136,78 +20216,86 @@ class Time
# Time.local(2000).formatted_offset # => "-06:00"
# Time.local(2000).formatted_offset(false) # => "-0600"
#
- # source://activesupport//lib/active_support/core_ext/time/conversions.rb#69
+ # source://activesupport//lib/active_support/core_ext/time/conversions.rb#67
def formatted_offset(colon = T.unsafe(nil), alternate_utc_string = T.unsafe(nil)); end
# Returns a new Time representing the time a number of seconds since the instance time
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#233
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#218
def in(seconds); end
# Returns a new Time representing the middle of the day (12:00)
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#249
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#234
def midday; end
# Returns a new Time representing the middle of the day (12:00)
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#249
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#234
def middle_of_day; end
# Returns a new Time representing the start of the day (0:00)
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#241
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#226
def midnight; end
# Time#- can also be used to determine the number of seconds between two Time instances.
# We're layering on additional behavior so that ActiveSupport::TimeWithZone instances
# are coerced into values that Time#- will recognize
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#323
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#308
def minus_with_coercion(other); end
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#310
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#295
def minus_with_duration(other); end
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#310
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#295
def minus_without_coercion(other); end
# Returns a new time the specified number of days in the future.
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#361
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#351
def next_day(days = T.unsafe(nil)); end
# Returns a new time the specified number of months in the future.
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#371
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#361
def next_month(months = T.unsafe(nil)); end
# Returns a new time the specified number of years in the future.
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#381
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#371
def next_year(years = T.unsafe(nil)); end
# Returns a new Time representing the middle of the day (12:00)
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#249
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#234
def noon; end
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#300
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#285
def plus_with_duration(other); end
+ # @return [Boolean]
+ #
+ # source://activesupport//lib/active_support/core_ext/object/blank.rb#196
+ def present?; end
+
+ # source://activesupport//lib/active_support/core_ext/time/compatibility.rb#17
+ def preserve_timezone; end
+
# Returns a new time the specified number of days ago.
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#356
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#346
def prev_day(days = T.unsafe(nil)); end
# Returns a new time the specified number of months ago.
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#366
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#356
def prev_month(months = T.unsafe(nil)); end
# Returns a new time the specified number of years ago.
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#376
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#366
def prev_year(years = T.unsafe(nil)); end
# Returns the fraction of a second as a +Rational+
@@ -20237,12 +20325,9 @@ class Time
# Returns a new Time representing the time a number of seconds since the instance time
#
- # source://activesupport//lib/active_support/core_ext/time/calculations.rb#233
+ # source://activesupport//lib/active_support/core_ext/time/calculations.rb#218
def since(seconds); end
- # source://activesupport//lib/active_support/deprecation/method_wrappers.rb#46
- def to_default_s(*args, **_arg1, &block); end
-
# Converts to a formatted string. See DATE_FORMATS for built-in formats.
#
# This method is aliased to to_formatted_s.
@@ -20307,6 +20392,11 @@ class Time
# source://activesupport//lib/active_support/core_ext/time/compatibility.rb#13
def to_time; end
+ private
+
+ # source://activesupport//lib/active_support/core_ext/time/compatibility.rb#24
+ def active_support_local_zone; end
+
class << self
# Overriding case equality method so that it returns true for ActiveSupport::TimeWithZone instances
#
@@ -20317,13 +20407,13 @@ class Time
# instances can be used when called with a single argument
#
# source://activesupport//lib/active_support/core_ext/time/calculations.rb#45
- def at(*args, **kwargs); end
+ def at(time_or_number, *args, **_arg2); end
# Layers additional behavior on Time.at so that ActiveSupport::TimeWithZone and DateTime
# instances can be used when called with a single argument
#
# source://activesupport//lib/active_support/core_ext/time/calculations.rb#45
- def at_with_coercion(*args, **kwargs); end
+ def at_with_coercion(time_or_number, *args, **_arg2); end
# Returns Time.zone.now when Time.zone or config.time_zone are set, otherwise just returns Time.now.
#
@@ -20463,9 +20553,14 @@ class TrueClass
#
# @return [false]
#
- # source://activesupport//lib/active_support/core_ext/object/blank.rb#78
+ # source://activesupport//lib/active_support/core_ext/object/blank.rb#86
def blank?; end
+ # @return [Boolean]
+ #
+ # source://activesupport//lib/active_support/core_ext/object/blank.rb#90
+ def present?; end
+
# Returns +self+.
#
# source://activesupport//lib/active_support/core_ext/object/to_query.rb#27
@@ -20479,16 +20574,3 @@ class URI::Generic
# source://activesupport//lib/active_support/core_ext/object/json.rb#225
def as_json(options = T.unsafe(nil)); end
end
-
-# source://activesupport//lib/active_support/core_ext/object/duplicable.rb#41
-class UnboundMethod
- # Unbound methods are not duplicable:
- #
- # method(:puts).unbind.duplicable? # => false
- # method(:puts).unbind.dup # => TypeError: allocator undefined for UnboundMethod
- #
- # @return [Boolean]
- #
- # source://activesupport//lib/active_support/core_ext/object/duplicable.rb#46
- def duplicable?; end
-end
diff --git a/sorbet/rbi/gems/bundler-audit@0.9.1.rbi b/sorbet/rbi/gems/bundler-audit@0.9.2.rbi
similarity index 87%
rename from sorbet/rbi/gems/bundler-audit@0.9.1.rbi
rename to sorbet/rbi/gems/bundler-audit@0.9.2.rbi
index 735581b..b63ba12 100644
--- a/sorbet/rbi/gems/bundler-audit@0.9.1.rbi
+++ b/sorbet/rbi/gems/bundler-audit@0.9.2.rbi
@@ -127,7 +127,7 @@ class Bundler::Audit::Database
# @yield [advisory] If a block is given, it will be passed each advisory.
# @yieldparam advisory [Advisory] An advisory from the database.
#
- # source://bundler-audit//lib/bundler/audit/database.rb#262
+ # source://bundler-audit//lib/bundler/audit/database.rb#265
def advisories(&block); end
# Enumerates over advisories for the given gem.
@@ -137,7 +137,7 @@ class Bundler::Audit::Database
# @yield [advisory] If a block is given, each advisory for the given gem will be yielded.
# @yieldparam advisory [Advisory] An advisory for the given gem.
#
- # source://bundler-audit//lib/bundler/audit/database.rb#285
+ # source://bundler-audit//lib/bundler/audit/database.rb#288
def advisories_for(name); end
# Verifies whether the gem is effected by any advisories.
@@ -148,7 +148,7 @@ class Bundler::Audit::Database
# the gem.
# @yieldparam advisory [Advisory] An advisory that effects the specific version of the gem.
#
- # source://bundler-audit//lib/bundler/audit/database.rb#309
+ # source://bundler-audit//lib/bundler/audit/database.rb#312
def check_gem(gem); end
# The last commit ID of the repository.
@@ -156,7 +156,7 @@ class Bundler::Audit::Database
# @return [String, nil] The commit hash or `nil` if the database is not a git repository.
# @since 0.9.0
#
- # source://bundler-audit//lib/bundler/audit/database.rb#225
+ # source://bundler-audit//lib/bundler/audit/database.rb#228
def commit_id; end
# Determines if the database is a git repository.
@@ -164,14 +164,14 @@ class Bundler::Audit::Database
# @return [Boolean]
# @since 0.8.0
#
- # source://bundler-audit//lib/bundler/audit/database.rb#181
+ # source://bundler-audit//lib/bundler/audit/database.rb#180
def git?; end
# Inspects the database.
#
# @return [String] The inspected database.
#
- # source://bundler-audit//lib/bundler/audit/database.rb#345
+ # source://bundler-audit//lib/bundler/audit/database.rb#348
def inspect; end
# Determines the time when the database was last updated.
@@ -179,7 +179,7 @@ class Bundler::Audit::Database
# @return [Time]
# @since 0.8.0
#
- # source://bundler-audit//lib/bundler/audit/database.rb#240
+ # source://bundler-audit//lib/bundler/audit/database.rb#243
def last_updated_at; end
# The path to the advisory database.
@@ -193,26 +193,28 @@ class Bundler::Audit::Database
#
# @return [Integer] The number of advisories.
#
- # source://bundler-audit//lib/bundler/audit/database.rb#325
+ # source://bundler-audit//lib/bundler/audit/database.rb#328
def size; end
# Converts the database to a String.
#
# @return [String] The path to the database.
#
- # source://bundler-audit//lib/bundler/audit/database.rb#335
+ # source://bundler-audit//lib/bundler/audit/database.rb#338
def to_s; end
# Updates the ruby-advisory-db.
#
# @option options
# @param options [Hash] Additional options.
- # @return [true, nil] `true` indicates that the update was successful.
- # `nil` indicates the database is not a git repository, thus not
- # capable of being updated.
+ # @raise [UpdateFailed] Could not update the ruby-advisory-db git repository.
+ # @return [true, nil] * `true` - the ruby-advisory-db git repository was successfully
+ # updated.
+ # * `nil` - the ruby-advisory-db is not a git repository or the `git`
+ # command is not installed.
# @since 0.8.0
#
- # source://bundler-audit//lib/bundler/audit/database.rb#201
+ # source://bundler-audit//lib/bundler/audit/database.rb#204
def update!(options = T.unsafe(nil)); end
protected
@@ -222,7 +224,7 @@ class Bundler::Audit::Database
# @yield [path] The given block will be passed each advisory path.
# @yieldparam path [String] A path to an advisory `.yml` file.
#
- # source://bundler-audit//lib/bundler/audit/database.rb#360
+ # source://bundler-audit//lib/bundler/audit/database.rb#363
def each_advisory_path(&block); end
# Enumerates over the advisories for the given gem.
@@ -231,7 +233,7 @@ class Bundler::Audit::Database
# @yield [path] The given block will be passed each advisory path.
# @yieldparam path [String] A path to an advisory `.yml` file.
#
- # source://bundler-audit//lib/bundler/audit/database.rb#376
+ # source://bundler-audit//lib/bundler/audit/database.rb#379
def each_advisory_path_for(name, &block); end
class << self
@@ -271,11 +273,10 @@ class Bundler::Audit::Database
# @option options
# @param options [Hash] Additional options.
# @raise [ArgumentError] Invalid options were given.
- # @return [Boolean, nil] Specifies whether the update was successful.
- # A `nil` indicates no update was performed.
+ # @return [Boolean] Specifies whether the update was successful.
# @since 0.3.0
#
- # source://bundler-audit//lib/bundler/audit/database.rb#158
+ # source://bundler-audit//lib/bundler/audit/database.rb#157
def update!(options = T.unsafe(nil)); end
end
end
diff --git a/sorbet/rbi/gems/concurrent-ruby@1.3.3.rbi b/sorbet/rbi/gems/concurrent-ruby@1.3.4.rbi
similarity index 99%
rename from sorbet/rbi/gems/concurrent-ruby@1.3.3.rbi
rename to sorbet/rbi/gems/concurrent-ruby@1.3.4.rbi
index 37b640f..e6a82d0 100644
--- a/sorbet/rbi/gems/concurrent-ruby@1.3.3.rbi
+++ b/sorbet/rbi/gems/concurrent-ruby@1.3.4.rbi
@@ -149,15 +149,16 @@ module Concurrent
def atomically; end
# Number of processors cores available for process scheduling.
- # Returns `nil` if there is no #cpu_quota, or a `Float` if the
- # process is inside a cgroup with a dedicated CPU quota (typically Docker).
+ # This method takes in account the CPU quota if the process is inside a cgroup with a
+ # dedicated CPU quota (typically Docker).
+ # Otherwise it returns the same value as #processor_count but as a Float.
#
# For performance reasons the calculated value will be memoized on the first
# call.
#
- # @return [nil, Float] number of available processors
+ # @return [Float] number of available processors
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#172
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#194
def available_processor_count; end
# @raise [ArgumentError]
@@ -177,9 +178,17 @@ module Concurrent
#
# @return [nil, Float] Maximum number of available processors as set by a cgroup CPU quota, or nil if none set
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#187
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#209
def cpu_quota; end
+ # The CPU shares requested by the process. For performance reasons the calculated
+ # value will be memoized on the first call.
+ #
+ # @return [Float, nil] CPU shares requested by the process, or nil if not set
+ #
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#217
+ def cpu_shares; end
+
# @return [Logger] Logger with provided level and output.
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#37
@@ -318,7 +327,7 @@ module Concurrent
# @see http://www.unix.com/man-page/osx/1/HWPREFS/
# @see http://linux.die.net/man/8/sysctl
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#160
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#181
def physical_processor_count; end
# Number of processors seen by the OS and used for process scheduling. For
@@ -329,18 +338,18 @@ module Concurrent
# `java.lang.Runtime.getRuntime.availableProcessors` will be used. According
# to the Java documentation this "value may change during a particular
# invocation of the virtual machine... [applications] should therefore
- # occasionally poll this property." Subsequently the result will NOT be
- # memoized under JRuby.
+ # occasionally poll this property." We still memoize this value once under
+ # JRuby.
#
# Otherwise Ruby's Etc.nprocessors will be used.
#
# @return [Integer] number of processors seen by the OS or Java runtime
# @see http://docs.oracle.com/javase/6/docs/api/java/lang/Runtime.html#availableProcessors()
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#139
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#160
def processor_count; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#121
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#142
def processor_counter; end
# Use logger created by #create_simple_logger to log concurrent-ruby messages.
@@ -11599,30 +11608,36 @@ class Concurrent::Utility::ProcessorCounter
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#11
def initialize; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#25
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#26
def available_processor_count; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#40
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#41
def cpu_quota; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#21
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#45
+ def cpu_shares; end
+
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#22
def physical_processor_count; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#17
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#18
def processor_count; end
private
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#99
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#104
def compute_cpu_quota; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#54
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#124
+ def compute_cpu_shares; end
+
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#59
def compute_physical_processor_count; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#46
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#51
def compute_processor_count; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#94
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#99
def run(command); end
end
diff --git a/sorbet/rbi/gems/grape@2.1.3.rbi b/sorbet/rbi/gems/grape@2.1.3.rbi
index 571b0c6..818149f 100644
--- a/sorbet/rbi/gems/grape@2.1.3.rbi
+++ b/sorbet/rbi/gems/grape@2.1.3.rbi
@@ -3602,8 +3602,8 @@ class Grape::Router::BaseRoute
# source://grape//lib/grape/router/base_route.rb#8
def index; end
- # source://activesupport/7.1.3.4/lib/active_support/core_ext/module/delegation.rb#331
- def method_missing(method, *args, **_arg2, &block); end
+ # source://activesupport/7.2.1/lib/active_support/delegation.rb#187
+ def method_missing(method, *_arg1, **_arg2, &_arg3); end
# Returns the value of attribute options.
#
@@ -3626,7 +3626,7 @@ class Grape::Router::BaseRoute
private
- # source://activesupport/7.1.3.4/lib/active_support/core_ext/module/delegation.rb#323
+ # source://activesupport/7.2.1/lib/active_support/delegation.rb#179
def respond_to_missing?(name, include_private = T.unsafe(nil)); end
end
diff --git a/sorbet/rbi/gems/logger@1.6.0.rbi b/sorbet/rbi/gems/logger@1.6.0.rbi
new file mode 100644
index 0000000..0723d96
--- /dev/null
+++ b/sorbet/rbi/gems/logger@1.6.0.rbi
@@ -0,0 +1,912 @@
+# typed: false
+
+# DO NOT EDIT MANUALLY
+# This is an autogenerated file for types exported from the `logger` gem.
+# Please instead update this file by running `bin/tapioca gem logger`.
+
+
+# \Class \Logger provides a simple but sophisticated logging utility that
+# you can use to create one or more
+# {event logs}[https://en.wikipedia.org/wiki/Logging_(software)#Event_logs]
+# for your program.
+# Each such log contains a chronological sequence of entries
+# that provides a record of the program's activities.
+#
+# == About the Examples
+#
+# All examples on this page assume that \Logger has been required:
+#
+# require 'logger'
+#
+# == Synopsis
+#
+# Create a log with Logger.new:
+#
+# # Single log file.
+# logger = Logger.new('t.log')
+# # Size-based rotated logging: 3 10-megabyte files.
+# logger = Logger.new('t.log', 3, 10485760)
+# # Period-based rotated logging: daily (also allowed: 'weekly', 'monthly').
+# logger = Logger.new('t.log', 'daily')
+# # Log to an IO stream.
+# logger = Logger.new($stdout)
+#
+# Add entries (level, message) with Logger#add:
+#
+# logger.add(Logger::DEBUG, 'Maximal debugging info')
+# logger.add(Logger::INFO, 'Non-error information')
+# logger.add(Logger::WARN, 'Non-error warning')
+# logger.add(Logger::ERROR, 'Non-fatal error')
+# logger.add(Logger::FATAL, 'Fatal error')
+# logger.add(Logger::UNKNOWN, 'Most severe')
+#
+# Close the log with Logger#close:
+#
+# logger.close
+#
+# == Entries
+#
+# You can add entries with method Logger#add:
+#
+# logger.add(Logger::DEBUG, 'Maximal debugging info')
+# logger.add(Logger::INFO, 'Non-error information')
+# logger.add(Logger::WARN, 'Non-error warning')
+# logger.add(Logger::ERROR, 'Non-fatal error')
+# logger.add(Logger::FATAL, 'Fatal error')
+# logger.add(Logger::UNKNOWN, 'Most severe')
+#
+# These shorthand methods also add entries:
+#
+# logger.debug('Maximal debugging info')
+# logger.info('Non-error information')
+# logger.warn('Non-error warning')
+# logger.error('Non-fatal error')
+# logger.fatal('Fatal error')
+# logger.unknown('Most severe')
+#
+# When you call any of these methods,
+# the entry may or may not be written to the log,
+# depending on the entry's severity and on the log level;
+# see {Log Level}[rdoc-ref:Logger@Log+Level]
+#
+# An entry always has:
+#
+# - A severity (the required argument to #add).
+# - An automatically created timestamp.
+#
+# And may also have:
+#
+# - A message.
+# - A program name.
+#
+# Example:
+#
+# logger = Logger.new($stdout)
+# logger.add(Logger::INFO, 'My message.', 'mung')
+# # => I, [2022-05-07T17:21:46.536234 #20536] INFO -- mung: My message.
+#
+# The default format for an entry is:
+#
+# "%s, [%s #%d] %5s -- %s: %s\n"
+#
+# where the values to be formatted are:
+#
+# - \Severity (one letter).
+# - Timestamp.
+# - Process id.
+# - \Severity (word).
+# - Program name.
+# - Message.
+#
+# You can use a different entry format by:
+#
+# - Setting a custom format proc (affects following entries);
+# see {formatter=}[Logger.html#attribute-i-formatter].
+# - Calling any of the methods above with a block
+# (affects only the one entry).
+# Doing so can have two benefits:
+#
+# - Context: the block can evaluate the entire program context
+# and create a context-dependent message.
+# - Performance: the block is not evaluated unless the log level
+# permits the entry actually to be written:
+#
+# logger.error { my_slow_message_generator }
+#
+# Contrast this with the string form, where the string is
+# always evaluated, regardless of the log level:
+#
+# logger.error("#{my_slow_message_generator}")
+#
+# === \Severity
+#
+# The severity of a log entry has two effects:
+#
+# - Determines whether the entry is selected for inclusion in the log;
+# see {Log Level}[rdoc-ref:Logger@Log+Level].
+# - Indicates to any log reader (whether a person or a program)
+# the relative importance of the entry.
+#
+# === Timestamp
+#
+# The timestamp for a log entry is generated automatically
+# when the entry is created.
+#
+# The logged timestamp is formatted by method
+# {Time#strftime}[https://docs.ruby-lang.org/en/master/Time.html#method-i-strftime]
+# using this format string:
+#
+# '%Y-%m-%dT%H:%M:%S.%6N'
+#
+# Example:
+#
+# logger = Logger.new($stdout)
+# logger.add(Logger::INFO)
+# # => I, [2022-05-07T17:04:32.318331 #20536] INFO -- : nil
+#
+# You can set a different format using method #datetime_format=.
+#
+# === Message
+#
+# The message is an optional argument to an entry method:
+#
+# logger = Logger.new($stdout)
+# logger.add(Logger::INFO, 'My message')
+# # => I, [2022-05-07T18:15:37.647581 #20536] INFO -- : My message
+#
+# For the default entry formatter, Logger::Formatter,
+# the message object may be:
+#
+# - A string: used as-is.
+# - An Exception: message.message is used.
+# - Anything else: message.inspect is used.
+#
+# *Note*: Logger::Formatter does not escape or sanitize
+# the message passed to it.
+# Developers should be aware that malicious data (user input)
+# may be in the message, and should explicitly escape untrusted data.
+#
+# You can use a custom formatter to escape message data;
+# see the example at {formatter=}[Logger.html#attribute-i-formatter].
+#
+# === Program Name
+#
+# The program name is an optional argument to an entry method:
+#
+# logger = Logger.new($stdout)
+# logger.add(Logger::INFO, 'My message', 'mung')
+# # => I, [2022-05-07T18:17:38.084716 #20536] INFO -- mung: My message
+#
+# The default program name for a new logger may be set in the call to
+# Logger.new via optional keyword argument +progname+:
+#
+# logger = Logger.new('t.log', progname: 'mung')
+#
+# The default program name for an existing logger may be set
+# by a call to method #progname=:
+#
+# logger.progname = 'mung'
+#
+# The current program name may be retrieved with method
+# {progname}[Logger.html#attribute-i-progname]:
+#
+# logger.progname # => "mung"
+#
+# == Log Level
+#
+# The log level setting determines whether an entry is actually
+# written to the log, based on the entry's severity.
+#
+# These are the defined severities (least severe to most severe):
+#
+# logger = Logger.new($stdout)
+# logger.add(Logger::DEBUG, 'Maximal debugging info')
+# # => D, [2022-05-07T17:57:41.776220 #20536] DEBUG -- : Maximal debugging info
+# logger.add(Logger::INFO, 'Non-error information')
+# # => I, [2022-05-07T17:59:14.349167 #20536] INFO -- : Non-error information
+# logger.add(Logger::WARN, 'Non-error warning')
+# # => W, [2022-05-07T18:00:45.337538 #20536] WARN -- : Non-error warning
+# logger.add(Logger::ERROR, 'Non-fatal error')
+# # => E, [2022-05-07T18:02:41.592912 #20536] ERROR -- : Non-fatal error
+# logger.add(Logger::FATAL, 'Fatal error')
+# # => F, [2022-05-07T18:05:24.703931 #20536] FATAL -- : Fatal error
+# logger.add(Logger::UNKNOWN, 'Most severe')
+# # => A, [2022-05-07T18:07:54.657491 #20536] ANY -- : Most severe
+#
+# The default initial level setting is Logger::DEBUG, the lowest level,
+# which means that all entries are to be written, regardless of severity:
+#
+# logger = Logger.new($stdout)
+# logger.level # => 0
+# logger.add(0, "My message")
+# # => D, [2022-05-11T15:10:59.773668 #20536] DEBUG -- : My message
+#
+# You can specify a different setting in a new logger
+# using keyword argument +level+ with an appropriate value:
+#
+# logger = Logger.new($stdout, level: Logger::ERROR)
+# logger = Logger.new($stdout, level: 'error')
+# logger = Logger.new($stdout, level: :error)
+# logger.level # => 3
+#
+# With this level, entries with severity Logger::ERROR and higher
+# are written, while those with lower severities are not written:
+#
+# logger = Logger.new($stdout, level: Logger::ERROR)
+# logger.add(3)
+# # => E, [2022-05-11T15:17:20.933362 #20536] ERROR -- : nil
+# logger.add(2) # Silent.
+#
+# You can set the log level for an existing logger
+# with method #level=:
+#
+# logger.level = Logger::ERROR
+#
+# These shorthand methods also set the level:
+#
+# logger.debug! # => 0
+# logger.info! # => 1
+# logger.warn! # => 2
+# logger.error! # => 3
+# logger.fatal! # => 4
+#
+# You can retrieve the log level with method #level.
+#
+# logger.level = Logger::ERROR
+# logger.level # => 3
+#
+# These methods return whether a given
+# level is to be written:
+#
+# logger.level = Logger::ERROR
+# logger.debug? # => false
+# logger.info? # => false
+# logger.warn? # => false
+# logger.error? # => true
+# logger.fatal? # => true
+#
+# == Log File Rotation
+#
+# By default, a log file is a single file that grows indefinitely
+# (until explicitly closed); there is no file rotation.
+#
+# To keep log files to a manageable size,
+# you can use _log_ _file_ _rotation_, which uses multiple log files:
+#
+# - Each log file has entries for a non-overlapping
+# time interval.
+# - Only the most recent log file is open and active;
+# the others are closed and inactive.
+#
+# === Size-Based Rotation
+#
+# For size-based log file rotation, call Logger.new with:
+#
+# - Argument +logdev+ as a file path.
+# - Argument +shift_age+ with a positive integer:
+# the number of log files to be in the rotation.
+# - Argument +shift_size+ as a positive integer:
+# the maximum size (in bytes) of each log file;
+# defaults to 1048576 (1 megabyte).
+#
+# Examples:
+#
+# logger = Logger.new('t.log', 3) # Three 1-megabyte files.
+# logger = Logger.new('t.log', 5, 10485760) # Five 10-megabyte files.
+#
+# For these examples, suppose:
+#
+# logger = Logger.new('t.log', 3)
+#
+# Logging begins in the new log file, +t.log+;
+# the log file is "full" and ready for rotation
+# when a new entry would cause its size to exceed +shift_size+.
+#
+# The first time +t.log+ is full:
+#
+# - +t.log+ is closed and renamed to +t.log.0+.
+# - A new file +t.log+ is opened.
+#
+# The second time +t.log+ is full:
+#
+# - +t.log.0 is renamed as +t.log.1+.
+# - +t.log+ is closed and renamed to +t.log.0+.
+# - A new file +t.log+ is opened.
+#
+# Each subsequent time that +t.log+ is full,
+# the log files are rotated:
+#
+# - +t.log.1+ is removed.
+# - +t.log.0 is renamed as +t.log.1+.
+# - +t.log+ is closed and renamed to +t.log.0+.
+# - A new file +t.log+ is opened.
+#
+# === Periodic Rotation
+#
+# For periodic rotation, call Logger.new with:
+#
+# - Argument +logdev+ as a file path.
+# - Argument +shift_age+ as a string period indicator.
+#
+# Examples:
+#
+# logger = Logger.new('t.log', 'daily') # Rotate log files daily.
+# logger = Logger.new('t.log', 'weekly') # Rotate log files weekly.
+# logger = Logger.new('t.log', 'monthly') # Rotate log files monthly.
+#
+# Example:
+#
+# logger = Logger.new('t.log', 'daily')
+#
+# When the given period expires:
+#
+# - The base log file, +t.log+ is closed and renamed
+# with a date-based suffix such as +t.log.20220509+.
+# - A new log file +t.log+ is opened.
+# - Nothing is removed.
+#
+# The default format for the suffix is '%Y%m%d',
+# which produces a suffix similar to the one above.
+# You can set a different format using create-time option
+# +shift_period_suffix+;
+# see details and suggestions at
+# {Time#strftime}[https://docs.ruby-lang.org/en/master/Time.html#method-i-strftime].
+#
+# source://logger//lib/logger/version.rb#3
+class Logger
+ include ::Logger::Severity
+
+ # :call-seq:
+ # Logger.new(logdev, shift_age = 0, shift_size = 1048576, **options)
+ #
+ # With the single argument +logdev+,
+ # returns a new logger with all default options:
+ #
+ # Logger.new('t.log') # => #
+ #
+ # Argument +logdev+ must be one of:
+ #
+ # - A string filepath: entries are to be written
+ # to the file at that path; if the file at that path exists,
+ # new entries are appended.
+ # - An IO stream (typically +$stdout+, +$stderr+. or an open file):
+ # entries are to be written to the given stream.
+ # - +nil+ or +File::NULL+: no entries are to be written.
+ #
+ # Examples:
+ #
+ # Logger.new('t.log')
+ # Logger.new($stdout)
+ #
+ # The keyword options are:
+ #
+ # - +level+: sets the log level; default value is Logger::DEBUG.
+ # See {Log Level}[rdoc-ref:Logger@Log+Level]:
+ #
+ # Logger.new('t.log', level: Logger::ERROR)
+ #
+ # - +progname+: sets the default program name; default is +nil+.
+ # See {Program Name}[rdoc-ref:Logger@Program+Name]:
+ #
+ # Logger.new('t.log', progname: 'mung')
+ #
+ # - +formatter+: sets the entry formatter; default is +nil+.
+ # See {formatter=}[Logger.html#attribute-i-formatter].
+ # - +datetime_format+: sets the format for entry timestamp;
+ # default is +nil+.
+ # See #datetime_format=.
+ # - +binmode+: sets whether the logger writes in binary mode;
+ # default is +false+.
+ # - +shift_period_suffix+: sets the format for the filename suffix
+ # for periodic log file rotation; default is '%Y%m%d'.
+ # See {Periodic Rotation}[rdoc-ref:Logger@Periodic+Rotation].
+ #
+ # @return [Logger] a new instance of Logger
+ #
+ # source://logger//lib/logger.rb#578
+ def initialize(logdev, shift_age = T.unsafe(nil), shift_size = T.unsafe(nil), level: T.unsafe(nil), progname: T.unsafe(nil), formatter: T.unsafe(nil), datetime_format: T.unsafe(nil), binmode: T.unsafe(nil), shift_period_suffix: T.unsafe(nil)); end
+
+ # Writes the given +msg+ to the log with no formatting;
+ # returns the number of characters written,
+ # or +nil+ if no log device exists:
+ #
+ # logger = Logger.new($stdout)
+ # logger << 'My message.' # => 10
+ #
+ # Output:
+ #
+ # My message.
+ #
+ # source://logger//lib/logger.rb#684
+ def <<(msg); end
+
+ # Creates a log entry, which may or may not be written to the log,
+ # depending on the entry's severity and on the log level.
+ # See {Log Level}[rdoc-ref:Logger@Log+Level]
+ # and {Entries}[rdoc-ref:Logger@Entries] for details.
+ #
+ # Examples:
+ #
+ # logger = Logger.new($stdout, progname: 'mung')
+ # logger.add(Logger::INFO)
+ # logger.add(Logger::ERROR, 'No good')
+ # logger.add(Logger::ERROR, 'No good', 'gnum')
+ #
+ # Output:
+ #
+ # I, [2022-05-12T16:25:31.469726 #36328] INFO -- mung: mung
+ # E, [2022-05-12T16:25:55.349414 #36328] ERROR -- mung: No good
+ # E, [2022-05-12T16:26:35.841134 #36328] ERROR -- gnum: No good
+ #
+ # These convenience methods have implicit severity:
+ #
+ # - #debug.
+ # - #info.
+ # - #warn.
+ # - #error.
+ # - #fatal.
+ # - #unknown.
+ #
+ # source://logger//lib/logger.rb#651
+ def add(severity, message = T.unsafe(nil), progname = T.unsafe(nil)); end
+
+ # Closes the logger; returns +nil+:
+ #
+ # logger = Logger.new('t.log')
+ # logger.close # => nil
+ # logger.info('foo') # Prints "log writing failed. closed stream"
+ #
+ # Related: Logger#reopen.
+ #
+ # source://logger//lib/logger.rb#731
+ def close; end
+
+ # Returns the date-time format; see #datetime_format=.
+ #
+ # source://logger//lib/logger.rb#438
+ def datetime_format; end
+
+ # Sets the date-time format.
+ #
+ # Argument +datetime_format+ should be either of these:
+ #
+ # - A string suitable for use as a format for method
+ # {Time#strftime}[https://docs.ruby-lang.org/en/master/Time.html#method-i-strftime].
+ # - +nil+: the logger uses '%Y-%m-%dT%H:%M:%S.%6N'.
+ #
+ # source://logger//lib/logger.rb#432
+ def datetime_format=(datetime_format); end
+
+ # Equivalent to calling #add with severity Logger::DEBUG.
+ #
+ # source://logger//lib/logger.rb#690
+ def debug(progname = T.unsafe(nil), &block); end
+
+ # Sets the log level to Logger::DEBUG.
+ # See {Log Level}[rdoc-ref:Logger@Log+Level].
+ #
+ # source://logger//lib/logger.rb#487
+ def debug!; end
+
+ # Returns +true+ if the log level allows entries with severity
+ # Logger::DEBUG to be written, +false+ otherwise.
+ # See {Log Level}[rdoc-ref:Logger@Log+Level].
+ #
+ # @return [Boolean]
+ #
+ # source://logger//lib/logger.rb#482
+ def debug?; end
+
+ # Equivalent to calling #add with severity Logger::ERROR.
+ #
+ # source://logger//lib/logger.rb#708
+ def error(progname = T.unsafe(nil), &block); end
+
+ # Sets the log level to Logger::ERROR.
+ # See {Log Level}[rdoc-ref:Logger@Log+Level].
+ #
+ # source://logger//lib/logger.rb#520
+ def error!; end
+
+ # Returns +true+ if the log level allows entries with severity
+ # Logger::ERROR to be written, +false+ otherwise.
+ # See {Log Level}[rdoc-ref:Logger@Log+Level].
+ #
+ # @return [Boolean]
+ #
+ # source://logger//lib/logger.rb#515
+ def error?; end
+
+ # Equivalent to calling #add with severity Logger::FATAL.
+ #
+ # source://logger//lib/logger.rb#714
+ def fatal(progname = T.unsafe(nil), &block); end
+
+ # Sets the log level to Logger::FATAL.
+ # See {Log Level}[rdoc-ref:Logger@Log+Level].
+ #
+ # source://logger//lib/logger.rb#531
+ def fatal!; end
+
+ # Returns +true+ if the log level allows entries with severity
+ # Logger::FATAL to be written, +false+ otherwise.
+ # See {Log Level}[rdoc-ref:Logger@Log+Level].
+ #
+ # @return [Boolean]
+ #
+ # source://logger//lib/logger.rb#526
+ def fatal?; end
+
+ # Sets or retrieves the logger entry formatter proc.
+ #
+ # When +formatter+ is +nil+, the logger uses Logger::Formatter.
+ #
+ # When +formatter+ is a proc, a new entry is formatted by the proc,
+ # which is called with four arguments:
+ #
+ # - +severity+: The severity of the entry.
+ # - +time+: A Time object representing the entry's timestamp.
+ # - +progname+: The program name for the entry.
+ # - +msg+: The message for the entry (string or string-convertible object).
+ #
+ # The proc should return a string containing the formatted entry.
+ #
+ # This custom formatter uses
+ # {String#dump}[https://docs.ruby-lang.org/en/master/String.html#method-i-dump]
+ # to escape the message string:
+ #
+ # logger = Logger.new($stdout, progname: 'mung')
+ # original_formatter = logger.formatter || Logger::Formatter.new
+ # logger.formatter = proc { |severity, time, progname, msg|
+ # original_formatter.call(severity, time, progname, msg.dump)
+ # }
+ # logger.add(Logger::INFO, "hello \n ''")
+ # logger.add(Logger::INFO, "\f\x00\xff\\\"")
+ #
+ # Output:
+ #
+ # I, [2022-05-13T13:16:29.637488 #8492] INFO -- mung: "hello \n ''"
+ # I, [2022-05-13T13:16:29.637610 #8492] INFO -- mung: "\f\x00\xFF\\\""
+ #
+ # source://logger//lib/logger.rb#473
+ def formatter; end
+
+ # Sets or retrieves the logger entry formatter proc.
+ #
+ # When +formatter+ is +nil+, the logger uses Logger::Formatter.
+ #
+ # When +formatter+ is a proc, a new entry is formatted by the proc,
+ # which is called with four arguments:
+ #
+ # - +severity+: The severity of the entry.
+ # - +time+: A Time object representing the entry's timestamp.
+ # - +progname+: The program name for the entry.
+ # - +msg+: The message for the entry (string or string-convertible object).
+ #
+ # The proc should return a string containing the formatted entry.
+ #
+ # This custom formatter uses
+ # {String#dump}[https://docs.ruby-lang.org/en/master/String.html#method-i-dump]
+ # to escape the message string:
+ #
+ # logger = Logger.new($stdout, progname: 'mung')
+ # original_formatter = logger.formatter || Logger::Formatter.new
+ # logger.formatter = proc { |severity, time, progname, msg|
+ # original_formatter.call(severity, time, progname, msg.dump)
+ # }
+ # logger.add(Logger::INFO, "hello \n ''")
+ # logger.add(Logger::INFO, "\f\x00\xff\\\"")
+ #
+ # Output:
+ #
+ # I, [2022-05-13T13:16:29.637488 #8492] INFO -- mung: "hello \n ''"
+ # I, [2022-05-13T13:16:29.637610 #8492] INFO -- mung: "\f\x00\xFF\\\""
+ #
+ # source://logger//lib/logger.rb#473
+ def formatter=(_arg0); end
+
+ # Equivalent to calling #add with severity Logger::INFO.
+ #
+ # source://logger//lib/logger.rb#696
+ def info(progname = T.unsafe(nil), &block); end
+
+ # Sets the log level to Logger::INFO.
+ # See {Log Level}[rdoc-ref:Logger@Log+Level].
+ #
+ # source://logger//lib/logger.rb#498
+ def info!; end
+
+ # Returns +true+ if the log level allows entries with severity
+ # Logger::INFO to be written, +false+ otherwise.
+ # See {Log Level}[rdoc-ref:Logger@Log+Level].
+ #
+ # @return [Boolean]
+ #
+ # source://logger//lib/logger.rb#493
+ def info?; end
+
+ # Logging severity threshold (e.g. Logger::INFO).
+ #
+ # source://logger//lib/logger.rb#383
+ def level; end
+
+ # Sets the log level; returns +severity+.
+ # See {Log Level}[rdoc-ref:Logger@Log+Level].
+ #
+ # Argument +severity+ may be an integer, a string, or a symbol:
+ #
+ # logger.level = Logger::ERROR # => 3
+ # logger.level = 3 # => 3
+ # logger.level = 'error' # => "error"
+ # logger.level = :error # => :error
+ #
+ # Logger#sev_threshold= is an alias for Logger#level=.
+ #
+ # source://logger//lib/logger.rb#399
+ def level=(severity); end
+
+ # Creates a log entry, which may or may not be written to the log,
+ # depending on the entry's severity and on the log level.
+ # See {Log Level}[rdoc-ref:Logger@Log+Level]
+ # and {Entries}[rdoc-ref:Logger@Entries] for details.
+ #
+ # Examples:
+ #
+ # logger = Logger.new($stdout, progname: 'mung')
+ # logger.add(Logger::INFO)
+ # logger.add(Logger::ERROR, 'No good')
+ # logger.add(Logger::ERROR, 'No good', 'gnum')
+ #
+ # Output:
+ #
+ # I, [2022-05-12T16:25:31.469726 #36328] INFO -- mung: mung
+ # E, [2022-05-12T16:25:55.349414 #36328] ERROR -- mung: No good
+ # E, [2022-05-12T16:26:35.841134 #36328] ERROR -- gnum: No good
+ #
+ # These convenience methods have implicit severity:
+ #
+ # - #debug.
+ # - #info.
+ # - #warn.
+ # - #error.
+ # - #fatal.
+ # - #unknown.
+ #
+ # source://logger//lib/logger.rb#651
+ def log(severity, message = T.unsafe(nil), progname = T.unsafe(nil)); end
+
+ # Program name to include in log messages.
+ #
+ # source://logger//lib/logger.rb#422
+ def progname; end
+
+ # Program name to include in log messages.
+ #
+ # source://logger//lib/logger.rb#422
+ def progname=(_arg0); end
+
+ # Sets the logger's output stream:
+ #
+ # - If +logdev+ is +nil+, reopens the current output stream.
+ # - If +logdev+ is a filepath, opens the indicated file for append.
+ # - If +logdev+ is an IO stream
+ # (usually $stdout, $stderr, or an open File object),
+ # opens the stream for append.
+ #
+ # Example:
+ #
+ # logger = Logger.new('t.log')
+ # logger.add(Logger::ERROR, 'one')
+ # logger.close
+ # logger.add(Logger::ERROR, 'two') # Prints 'log writing failed. closed stream'
+ # logger.reopen
+ # logger.add(Logger::ERROR, 'three')
+ # logger.close
+ # File.readlines('t.log')
+ # # =>
+ # # ["# Logfile created on 2022-05-12 14:21:19 -0500 by logger.rb/v1.5.0\n",
+ # # "E, [2022-05-12T14:21:27.596726 #22428] ERROR -- : one\n",
+ # # "E, [2022-05-12T14:23:05.847241 #22428] ERROR -- : three\n"]
+ #
+ # source://logger//lib/logger.rb#619
+ def reopen(logdev = T.unsafe(nil)); end
+
+ # Logging severity threshold (e.g. Logger::INFO).
+ #
+ # source://logger//lib/logger.rb#383
+ def sev_threshold; end
+
+ # Sets the log level; returns +severity+.
+ # See {Log Level}[rdoc-ref:Logger@Log+Level].
+ #
+ # Argument +severity+ may be an integer, a string, or a symbol:
+ #
+ # logger.level = Logger::ERROR # => 3
+ # logger.level = 3 # => 3
+ # logger.level = 'error' # => "error"
+ # logger.level = :error # => :error
+ #
+ # Logger#sev_threshold= is an alias for Logger#level=.
+ #
+ # source://logger//lib/logger.rb#399
+ def sev_threshold=(severity); end
+
+ # Equivalent to calling #add with severity Logger::UNKNOWN.
+ #
+ # source://logger//lib/logger.rb#720
+ def unknown(progname = T.unsafe(nil), &block); end
+
+ # Equivalent to calling #add with severity Logger::WARN.
+ #
+ # source://logger//lib/logger.rb#702
+ def warn(progname = T.unsafe(nil), &block); end
+
+ # Sets the log level to Logger::WARN.
+ # See {Log Level}[rdoc-ref:Logger@Log+Level].
+ #
+ # source://logger//lib/logger.rb#509
+ def warn!; end
+
+ # Returns +true+ if the log level allows entries with severity
+ # Logger::WARN to be written, +false+ otherwise.
+ # See {Log Level}[rdoc-ref:Logger@Log+Level].
+ #
+ # @return [Boolean]
+ #
+ # source://logger//lib/logger.rb#504
+ def warn?; end
+
+ # Adjust the log level during the block execution for the current Fiber only
+ #
+ # logger.with_level(:debug) do
+ # logger.debug { "Hello" }
+ # end
+ #
+ # source://logger//lib/logger.rb#408
+ def with_level(severity); end
+
+ private
+
+ # source://logger//lib/logger.rb#744
+ def format_message(severity, datetime, progname, msg); end
+
+ # source://logger//lib/logger.rb#740
+ def format_severity(severity); end
+end
+
+# Default formatter for log messages.
+#
+# source://logger//lib/logger/formatter.rb#5
+class Logger::Formatter
+ # @return [Formatter] a new instance of Formatter
+ #
+ # source://logger//lib/logger/formatter.rb#11
+ def initialize; end
+
+ # source://logger//lib/logger/formatter.rb#15
+ def call(severity, time, progname, msg); end
+
+ # Returns the value of attribute datetime_format.
+ #
+ # source://logger//lib/logger/formatter.rb#9
+ def datetime_format; end
+
+ # Sets the attribute datetime_format
+ #
+ # @param value the value to set the attribute datetime_format to.
+ #
+ # source://logger//lib/logger/formatter.rb#9
+ def datetime_format=(_arg0); end
+
+ private
+
+ # source://logger//lib/logger/formatter.rb#21
+ def format_datetime(time); end
+
+ # source://logger//lib/logger/formatter.rb#25
+ def msg2str(msg); end
+end
+
+# source://logger//lib/logger/formatter.rb#7
+Logger::Formatter::DatetimeFormat = T.let(T.unsafe(nil), String)
+
+# source://logger//lib/logger/formatter.rb#6
+Logger::Formatter::Format = T.let(T.unsafe(nil), String)
+
+# Device used for logging messages.
+#
+# source://logger//lib/logger/log_device.rb#7
+class Logger::LogDevice
+ include ::Logger::Period
+ include ::MonitorMixin
+
+ # @return [LogDevice] a new instance of LogDevice
+ #
+ # source://logger//lib/logger/log_device.rb#14
+ def initialize(log = T.unsafe(nil), shift_age: T.unsafe(nil), shift_size: T.unsafe(nil), shift_period_suffix: T.unsafe(nil), binmode: T.unsafe(nil)); end
+
+ # source://logger//lib/logger/log_device.rb#52
+ def close; end
+
+ # Returns the value of attribute dev.
+ #
+ # source://logger//lib/logger/log_device.rb#10
+ def dev; end
+
+ # Returns the value of attribute filename.
+ #
+ # source://logger//lib/logger/log_device.rb#11
+ def filename; end
+
+ # source://logger//lib/logger/log_device.rb#62
+ def reopen(log = T.unsafe(nil)); end
+
+ # source://logger//lib/logger/log_device.rb#31
+ def write(message); end
+
+ private
+
+ # source://logger//lib/logger/log_device.rb#119
+ def add_log_header(file); end
+
+ # source://logger//lib/logger/log_device.rb#125
+ def check_shift_log; end
+
+ # source://logger//lib/logger/log_device.rb#103
+ def create_logfile(filename); end
+
+ # source://logger//lib/logger/log_device.rb#145
+ def lock_shift_log; end
+
+ # source://logger//lib/logger/log_device.rb#95
+ def open_logfile(filename); end
+
+ # source://logger//lib/logger/log_device.rb#79
+ def set_dev(log); end
+
+ # source://logger//lib/logger/log_device.rb#176
+ def shift_log_age; end
+
+ # source://logger//lib/logger/log_device.rb#188
+ def shift_log_period(period_end); end
+end
+
+# source://logger//lib/logger/period.rb#4
+module Logger::Period
+ private
+
+ # source://logger//lib/logger/period.rb#9
+ def next_rotate_time(now, shift_age); end
+
+ # source://logger//lib/logger/period.rb#31
+ def previous_period_end(now, shift_age); end
+
+ class << self
+ # source://logger//lib/logger/period.rb#9
+ def next_rotate_time(now, shift_age); end
+
+ # source://logger//lib/logger/period.rb#31
+ def previous_period_end(now, shift_age); end
+ end
+end
+
+# source://logger//lib/logger/period.rb#7
+Logger::Period::SiD = T.let(T.unsafe(nil), Integer)
+
+# \Severity label for logging (max 5 chars).
+#
+# source://logger//lib/logger.rb#738
+Logger::SEV_LABEL = T.let(T.unsafe(nil), Array)
+
+# Logging severity.
+#
+# source://logger//lib/logger/severity.rb#5
+module Logger::Severity
+ class << self
+ # source://logger//lib/logger/severity.rb#29
+ def coerce(severity); end
+ end
+end
+
+# source://logger//lib/logger/severity.rb#19
+Logger::Severity::LEVELS = T.let(T.unsafe(nil), Hash)
diff --git a/sorbet/rbi/gems/minitest-reporters@1.7.1.rbi b/sorbet/rbi/gems/minitest-reporters@1.7.1.rbi
index 438c200..2b0e28a 100644
--- a/sorbet/rbi/gems/minitest-reporters@1.7.1.rbi
+++ b/sorbet/rbi/gems/minitest-reporters@1.7.1.rbi
@@ -8,85 +8,85 @@
# source://minitest-reporters//lib/minitest/reporters.rb#3
module Minitest
class << self
- # source://minitest/5.24.1/lib/minitest.rb#323
+ # source://minitest/5.25.1/lib/minitest.rb#322
def __run(reporter, options); end
- # source://minitest/5.24.1/lib/minitest.rb#97
+ # source://minitest/5.25.1/lib/minitest.rb#96
def after_run(&block); end
- # source://minitest/5.24.1/lib/minitest.rb#19
+ # source://minitest/5.25.1/lib/minitest.rb#19
def allow_fork; end
- # source://minitest/5.24.1/lib/minitest.rb#19
+ # source://minitest/5.25.1/lib/minitest.rb#19
def allow_fork=(_arg0); end
- # source://minitest/5.24.1/lib/minitest.rb#69
+ # source://minitest/5.25.1/lib/minitest.rb#69
def autorun; end
- # source://minitest/5.24.1/lib/minitest.rb#19
+ # source://minitest/5.25.1/lib/minitest.rb#19
def backtrace_filter; end
- # source://minitest/5.24.1/lib/minitest.rb#19
+ # source://minitest/5.25.1/lib/minitest.rb#19
def backtrace_filter=(_arg0); end
- # source://minitest/5.24.1/lib/minitest.rb#18
+ # source://minitest/5.25.1/lib/minitest.rb#18
def cattr_accessor(name); end
- # source://minitest/5.24.1/lib/minitest.rb#1208
+ # source://minitest/5.25.1/lib/minitest.rb#1215
def clock_time; end
- # source://minitest/5.24.1/lib/minitest.rb#303
+ # source://minitest/5.25.1/lib/minitest.rb#302
def empty_run!(options); end
- # source://minitest/5.24.1/lib/minitest.rb#19
+ # source://minitest/5.25.1/lib/minitest.rb#19
def extensions; end
- # source://minitest/5.24.1/lib/minitest.rb#19
+ # source://minitest/5.25.1/lib/minitest.rb#19
def extensions=(_arg0); end
- # source://minitest/5.24.1/lib/minitest.rb#336
+ # source://minitest/5.25.1/lib/minitest.rb#335
def filter_backtrace(bt); end
- # source://minitest/5.24.1/lib/minitest.rb#19
+ # source://minitest/5.25.1/lib/minitest.rb#19
def info_signal; end
- # source://minitest/5.24.1/lib/minitest.rb#19
+ # source://minitest/5.25.1/lib/minitest.rb#19
def info_signal=(_arg0); end
- # source://minitest/5.24.1/lib/minitest.rb#125
+ # source://minitest/5.25.1/lib/minitest.rb#124
def init_plugins(options); end
- # source://minitest/5.24.1/lib/minitest.rb#109
+ # source://minitest/5.25.1/lib/minitest.rb#108
def load_plugins; end
- # source://minitest/5.24.1/lib/minitest.rb#19
+ # source://minitest/5.25.1/lib/minitest.rb#19
def parallel_executor; end
- # source://minitest/5.24.1/lib/minitest.rb#19
+ # source://minitest/5.25.1/lib/minitest.rb#19
def parallel_executor=(_arg0); end
- # source://minitest/5.24.1/lib/minitest.rb#143
+ # source://minitest/5.25.1/lib/minitest.rb#142
def process_args(args = T.unsafe(nil)); end
- # source://minitest/5.24.1/lib/minitest.rb#104
+ # source://minitest/5.25.1/lib/minitest.rb#103
def register_plugin(name_or_mod); end
- # source://minitest/5.24.1/lib/minitest.rb#19
+ # source://minitest/5.25.1/lib/minitest.rb#19
def reporter; end
- # source://minitest/5.24.1/lib/minitest.rb#19
+ # source://minitest/5.25.1/lib/minitest.rb#19
def reporter=(_arg0); end
- # source://minitest/5.24.1/lib/minitest.rb#269
+ # source://minitest/5.25.1/lib/minitest.rb#268
def run(args = T.unsafe(nil)); end
- # source://minitest/5.24.1/lib/minitest.rb#1199
+ # source://minitest/5.25.1/lib/minitest.rb#1206
def run_one_method(klass, method_name); end
- # source://minitest/5.24.1/lib/minitest.rb#19
+ # source://minitest/5.25.1/lib/minitest.rb#19
def seed; end
- # source://minitest/5.24.1/lib/minitest.rb#19
+ # source://minitest/5.25.1/lib/minitest.rb#19
def seed=(_arg0); end
end
end
diff --git a/sorbet/rbi/gems/minitest@5.24.1.rbi b/sorbet/rbi/gems/minitest@5.25.1.rbi
similarity index 83%
rename from sorbet/rbi/gems/minitest@5.24.1.rbi
rename to sorbet/rbi/gems/minitest@5.25.1.rbi
index 3d6b9c8..d8d67f0 100644
--- a/sorbet/rbi/gems/minitest@5.24.1.rbi
+++ b/sorbet/rbi/gems/minitest@5.25.1.rbi
@@ -57,7 +57,7 @@ module Minitest
# Internal run method. Responsible for telling all Runnable
# sub-classes to run.
#
- # source://minitest//lib/minitest.rb#323
+ # source://minitest//lib/minitest.rb#322
def __run(reporter, options); end
# A simple hook allowing you to run a block of code after everything
@@ -65,7 +65,7 @@ module Minitest
#
# Minitest.after_run { p $debugging_info }
#
- # source://minitest//lib/minitest.rb#97
+ # source://minitest//lib/minitest.rb#96
def after_run(&block); end
# source://minitest//lib/minitest.rb#19
@@ -88,10 +88,10 @@ module Minitest
# source://minitest//lib/minitest.rb#18
def cattr_accessor(name); end
- # source://minitest//lib/minitest.rb#1208
+ # source://minitest//lib/minitest.rb#1215
def clock_time; end
- # source://minitest//lib/minitest.rb#303
+ # source://minitest//lib/minitest.rb#302
def empty_run!(options); end
# source://minitest//lib/minitest.rb#19
@@ -100,7 +100,7 @@ module Minitest
# source://minitest//lib/minitest.rb#19
def extensions=(_arg0); end
- # source://minitest//lib/minitest.rb#336
+ # source://minitest//lib/minitest.rb#335
def filter_backtrace(bt); end
# source://minitest//lib/minitest.rb#19
@@ -109,10 +109,10 @@ module Minitest
# source://minitest//lib/minitest.rb#19
def info_signal=(_arg0); end
- # source://minitest//lib/minitest.rb#125
+ # source://minitest//lib/minitest.rb#124
def init_plugins(options); end
- # source://minitest//lib/minitest.rb#109
+ # source://minitest//lib/minitest.rb#108
def load_plugins; end
# source://minitest//lib/minitest.rb#19
@@ -121,12 +121,12 @@ module Minitest
# source://minitest//lib/minitest.rb#19
def parallel_executor=(_arg0); end
- # source://minitest//lib/minitest.rb#143
+ # source://minitest//lib/minitest.rb#142
def process_args(args = T.unsafe(nil)); end
# Register a plugin to be used. Does NOT require / load it.
#
- # source://minitest//lib/minitest.rb#104
+ # source://minitest//lib/minitest.rb#103
def register_plugin(name_or_mod); end
# source://minitest//lib/minitest.rb#19
@@ -154,10 +154,10 @@ module Minitest
# Minitest.run_one_method(klass, runnable_method)
# klass.new(runnable_method).run
#
- # source://minitest//lib/minitest.rb#269
+ # source://minitest//lib/minitest.rb#268
def run(args = T.unsafe(nil)); end
- # source://minitest//lib/minitest.rb#1199
+ # source://minitest//lib/minitest.rb#1206
def run_one_method(klass, method_name); end
# source://minitest//lib/minitest.rb#19
@@ -171,24 +171,24 @@ end
# Defines the API for Reporters. Subclass this and override whatever
# you want. Go nuts.
#
-# source://minitest//lib/minitest.rb#682
+# source://minitest//lib/minitest.rb#686
class Minitest::AbstractReporter
# @return [AbstractReporter] a new instance of AbstractReporter
#
- # source://minitest//lib/minitest.rb#684
+ # source://minitest//lib/minitest.rb#688
def initialize; end
# Did this run pass?
#
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#719
+ # source://minitest//lib/minitest.rb#723
def passed?; end
# About to start running a test. This allows a reporter to show
# that it is starting or that we are in the middle of a test run.
#
- # source://minitest//lib/minitest.rb#698
+ # source://minitest//lib/minitest.rb#702
def prerecord(klass, name); end
# Output and record the result of the test. Call
@@ -196,43 +196,43 @@ class Minitest::AbstractReporter
# result character string. Stores the result of the run if the run
# did not pass.
#
- # source://minitest//lib/minitest.rb#707
+ # source://minitest//lib/minitest.rb#711
def record(result); end
# Outputs the summary of the run.
#
- # source://minitest//lib/minitest.rb#713
+ # source://minitest//lib/minitest.rb#717
def report; end
# Starts reporting on the run.
#
- # source://minitest//lib/minitest.rb#691
+ # source://minitest//lib/minitest.rb#695
def start; end
- # source://minitest//lib/minitest.rb#723
+ # source://minitest//lib/minitest.rb#727
def synchronize(&block); end
end
# Represents run failures.
#
-# source://minitest//lib/minitest.rb#1015
+# source://minitest//lib/minitest.rb#1019
class Minitest::Assertion < ::Exception
- # source://minitest//lib/minitest.rb#1018
+ # source://minitest//lib/minitest.rb#1022
def error; end
# Where was this run before an assertion was raised?
#
- # source://minitest//lib/minitest.rb#1025
+ # source://minitest//lib/minitest.rb#1029
def location; end
- # source://minitest//lib/minitest.rb#1033
+ # source://minitest//lib/minitest.rb#1037
def result_code; end
- # source://minitest//lib/minitest.rb#1037
+ # source://minitest//lib/minitest.rb#1041
def result_label; end
end
-# source://minitest//lib/minitest.rb#1016
+# source://minitest//lib/minitest.rb#1020
Minitest::Assertion::RE = T.let(T.unsafe(nil), Regexp)
# Minitest Assertions. All assertion methods accept a +msg+ which is
@@ -244,22 +244,22 @@ Minitest::Assertion::RE = T.let(T.unsafe(nil), Regexp)
# provided by the thing including Assertions. See Minitest::Runnable
# for an example.
#
-# source://minitest//lib/minitest/assertions.rb#18
+# source://minitest//lib/minitest/assertions.rb#16
module Minitest::Assertions
- # source://minitest//lib/minitest/assertions.rb#188
+ # source://minitest//lib/minitest/assertions.rb#181
def _synchronize; end
- # source://minitest//lib/minitest/assertions.rb#201
+ # source://minitest//lib/minitest/assertions.rb#194
def _where; end
# Fails unless +test+ is truthy.
#
- # source://minitest//lib/minitest/assertions.rb#178
+ # source://minitest//lib/minitest/assertions.rb#171
def assert(test, msg = T.unsafe(nil)); end
# Fails unless +obj+ is empty.
#
- # source://minitest//lib/minitest/assertions.rb#195
+ # source://minitest//lib/minitest/assertions.rb#188
def assert_empty(obj, msg = T.unsafe(nil)); end
# Fails unless exp == act printing the difference between
@@ -274,7 +274,7 @@ module Minitest::Assertions
#
# See also: Minitest::Assertions.diff
#
- # source://minitest//lib/minitest/assertions.rb#221
+ # source://minitest//lib/minitest/assertions.rb#214
def assert_equal(exp, act, msg = T.unsafe(nil)); end
# For comparing Floats. Fails unless +exp+ and +act+ are within +delta+
@@ -282,45 +282,45 @@ module Minitest::Assertions
#
# assert_in_delta Math::PI, (22.0 / 7.0), 0.01
#
- # source://minitest//lib/minitest/assertions.rb#242
+ # source://minitest//lib/minitest/assertions.rb#235
def assert_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end
# For comparing Floats. Fails unless +exp+ and +act+ have a relative
# error less than +epsilon+.
#
- # source://minitest//lib/minitest/assertions.rb#254
+ # source://minitest//lib/minitest/assertions.rb#247
def assert_in_epsilon(exp, act, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end
# Fails unless +collection+ includes +obj+.
#
- # source://minitest//lib/minitest/assertions.rb#261
+ # source://minitest//lib/minitest/assertions.rb#254
def assert_includes(collection, obj, msg = T.unsafe(nil)); end
# Fails unless +obj+ is an instance of +cls+.
#
- # source://minitest//lib/minitest/assertions.rb#272
+ # source://minitest//lib/minitest/assertions.rb#265
def assert_instance_of(cls, obj, msg = T.unsafe(nil)); end
# Fails unless +obj+ is a kind of +cls+.
#
- # source://minitest//lib/minitest/assertions.rb#283
+ # source://minitest//lib/minitest/assertions.rb#276
def assert_kind_of(cls, obj, msg = T.unsafe(nil)); end
# Fails unless +matcher+ =~ +obj+.
#
- # source://minitest//lib/minitest/assertions.rb#293
+ # source://minitest//lib/minitest/assertions.rb#287
def assert_match(matcher, obj, msg = T.unsafe(nil)); end
# Fails unless +obj+ is nil
#
- # source://minitest//lib/minitest/assertions.rb#305
+ # source://minitest//lib/minitest/assertions.rb#299
def assert_nil(obj, msg = T.unsafe(nil)); end
# For testing with binary operators. Eg:
#
# assert_operator 5, :<=, 4
#
- # source://minitest//lib/minitest/assertions.rb#315
+ # source://minitest//lib/minitest/assertions.rb#309
def assert_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end
# Fails if stdout or stderr do not output the expected results.
@@ -334,12 +334,12 @@ module Minitest::Assertions
#
# See also: #assert_silent
#
- # source://minitest//lib/minitest/assertions.rb#333
+ # source://minitest//lib/minitest/assertions.rb#327
def assert_output(stdout = T.unsafe(nil), stderr = T.unsafe(nil)); end
# Fails unless +path+ exists.
#
- # source://minitest//lib/minitest/assertions.rb#357
+ # source://minitest//lib/minitest/assertions.rb#351
def assert_path_exists(path, msg = T.unsafe(nil)); end
# For testing with pattern matching (only supported with Ruby 3.0 and later)
@@ -357,7 +357,7 @@ module Minitest::Assertions
#
# @raise [NotImplementedError]
#
- # source://minitest//lib/minitest/assertions.rb#376
+ # source://minitest//lib/minitest/assertions.rb#370
def assert_pattern; end
# For testing with predicates. Eg:
@@ -368,7 +368,7 @@ module Minitest::Assertions
#
# str.must_be :empty?
#
- # source://minitest//lib/minitest/assertions.rb#397
+ # source://minitest//lib/minitest/assertions.rb#391
def assert_predicate(o1, op, msg = T.unsafe(nil)); end
# Fails unless the block raises one of +exp+. Returns the
@@ -392,37 +392,37 @@ module Minitest::Assertions
#
# assert_equal 'This is really bad', error.message
#
- # source://minitest//lib/minitest/assertions.rb#424
+ # source://minitest//lib/minitest/assertions.rb#418
def assert_raises(*exp); end
# Fails unless +obj+ responds to +meth+.
# include_all defaults to false to match Object#respond_to?
#
- # source://minitest//lib/minitest/assertions.rb#456
+ # source://minitest//lib/minitest/assertions.rb#450
def assert_respond_to(obj, meth, msg = T.unsafe(nil), include_all: T.unsafe(nil)); end
# Fails unless +exp+ and +act+ are #equal?
#
- # source://minitest//lib/minitest/assertions.rb#466
+ # source://minitest//lib/minitest/assertions.rb#460
def assert_same(exp, act, msg = T.unsafe(nil)); end
# +send_ary+ is a receiver, message and arguments.
#
# Fails unless the call returns a true value
#
- # source://minitest//lib/minitest/assertions.rb#479
+ # source://minitest//lib/minitest/assertions.rb#473
def assert_send(send_ary, m = T.unsafe(nil)); end
# Fails if the block outputs anything to stderr or stdout.
#
# See also: #assert_output
#
- # source://minitest//lib/minitest/assertions.rb#493
+ # source://minitest//lib/minitest/assertions.rb#488
def assert_silent; end
# Fails unless the block throws +sym+
#
- # source://minitest//lib/minitest/assertions.rb#502
+ # source://minitest//lib/minitest/assertions.rb#497
def assert_throws(sym, msg = T.unsafe(nil)); end
# Captures $stdout and $stderr into strings:
@@ -439,7 +439,7 @@ module Minitest::Assertions
# capture IO for subprocesses. Use #capture_subprocess_io for
# that.
#
- # source://minitest//lib/minitest/assertions.rb#543
+ # source://minitest//lib/minitest/assertions.rb#538
def capture_io; end
# Captures $stdout and $stderr into strings, using Tempfile to
@@ -456,7 +456,7 @@ module Minitest::Assertions
# NOTE: This method is approximately 10x slower than #capture_io so
# only use it when you need to test the output of a subprocess.
#
- # source://minitest//lib/minitest/assertions.rb#576
+ # source://minitest//lib/minitest/assertions.rb#571
def capture_subprocess_io; end
# Returns a diff between +exp+ and +act+. If there is no known
@@ -466,29 +466,29 @@ module Minitest::Assertions
#
# See +things_to_diff+ for more info.
#
- # source://minitest//lib/minitest/assertions.rb#59
+ # source://minitest//lib/minitest/assertions.rb#57
def diff(exp, act); end
# Returns details for exception +e+
#
- # source://minitest//lib/minitest/assertions.rb#608
+ # source://minitest//lib/minitest/assertions.rb#603
def exception_details(e, msg); end
# Fails after a given date (in the local time zone). This allows
# you to put time-bombs in your tests if you need to keep
# something around until a later date lest you forget about it.
#
- # source://minitest//lib/minitest/assertions.rb#624
+ # source://minitest//lib/minitest/assertions.rb#619
def fail_after(y, m, d, msg); end
# Fails with +msg+.
#
- # source://minitest//lib/minitest/assertions.rb#631
+ # source://minitest//lib/minitest/assertions.rb#626
def flunk(msg = T.unsafe(nil)); end
# Returns a proc that will output +msg+ along with the default message.
#
- # source://minitest//lib/minitest/assertions.rb#639
+ # source://minitest//lib/minitest/assertions.rb#634
def message(msg = T.unsafe(nil), ending = T.unsafe(nil), &default); end
# This returns a human-readable version of +obj+. By default
@@ -497,7 +497,7 @@ module Minitest::Assertions
#
# See Minitest::Test.make_my_diffs_pretty!
#
- # source://minitest//lib/minitest/assertions.rb#129
+ # source://minitest//lib/minitest/assertions.rb#127
def mu_pp(obj); end
# This returns a diff-able more human-readable version of +obj+.
@@ -505,67 +505,67 @@ module Minitest::Assertions
# newlines and makes hex-values (like object_ids) generic. This
# uses mu_pp to do the first pass and then cleans it up.
#
- # source://minitest//lib/minitest/assertions.rb#152
+ # source://minitest//lib/minitest/assertions.rb#145
def mu_pp_for_diff(obj); end
# used for counting assertions
#
- # source://minitest//lib/minitest/assertions.rb#650
+ # source://minitest//lib/minitest/assertions.rb#645
def pass(_msg = T.unsafe(nil)); end
# Fails if +test+ is truthy.
#
- # source://minitest//lib/minitest/assertions.rb#657
+ # source://minitest//lib/minitest/assertions.rb#652
def refute(test, msg = T.unsafe(nil)); end
# Fails if +obj+ is empty.
#
- # source://minitest//lib/minitest/assertions.rb#665
+ # source://minitest//lib/minitest/assertions.rb#660
def refute_empty(obj, msg = T.unsafe(nil)); end
# Fails if exp == act.
#
# For floats use refute_in_delta.
#
- # source://minitest//lib/minitest/assertions.rb#676
+ # source://minitest//lib/minitest/assertions.rb#671
def refute_equal(exp, act, msg = T.unsafe(nil)); end
# For comparing Floats. Fails if +exp+ is within +delta+ of +act+.
#
# refute_in_delta Math::PI, (22.0 / 7.0)
#
- # source://minitest//lib/minitest/assertions.rb#688
+ # source://minitest//lib/minitest/assertions.rb#683
def refute_in_delta(exp, act, delta = T.unsafe(nil), msg = T.unsafe(nil)); end
# For comparing Floats. Fails if +exp+ and +act+ have a relative error
# less than +epsilon+.
#
- # source://minitest//lib/minitest/assertions.rb#700
+ # source://minitest//lib/minitest/assertions.rb#695
def refute_in_epsilon(a, b, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end
# Fails if +collection+ includes +obj+.
#
- # source://minitest//lib/minitest/assertions.rb#707
+ # source://minitest//lib/minitest/assertions.rb#702
def refute_includes(collection, obj, msg = T.unsafe(nil)); end
# Fails if +obj+ is an instance of +cls+.
#
- # source://minitest//lib/minitest/assertions.rb#718
+ # source://minitest//lib/minitest/assertions.rb#713
def refute_instance_of(cls, obj, msg = T.unsafe(nil)); end
# Fails if +obj+ is a kind of +cls+.
#
- # source://minitest//lib/minitest/assertions.rb#728
+ # source://minitest//lib/minitest/assertions.rb#723
def refute_kind_of(cls, obj, msg = T.unsafe(nil)); end
# Fails if +matcher+ =~ +obj+.
#
- # source://minitest//lib/minitest/assertions.rb#736
+ # source://minitest//lib/minitest/assertions.rb#731
def refute_match(matcher, obj, msg = T.unsafe(nil)); end
# Fails if +obj+ is nil.
#
- # source://minitest//lib/minitest/assertions.rb#746
+ # source://minitest//lib/minitest/assertions.rb#741
def refute_nil(obj, msg = T.unsafe(nil)); end
# Fails if +o1+ is not +op+ +o2+. Eg:
@@ -573,12 +573,12 @@ module Minitest::Assertions
# refute_operator 1, :>, 2 #=> pass
# refute_operator 1, :<, 2 #=> fail
#
- # source://minitest//lib/minitest/assertions.rb#781
+ # source://minitest//lib/minitest/assertions.rb#776
def refute_operator(o1, op, o2 = T.unsafe(nil), msg = T.unsafe(nil)); end
# Fails if +path+ exists.
#
- # source://minitest//lib/minitest/assertions.rb#790
+ # source://minitest//lib/minitest/assertions.rb#785
def refute_path_exists(path, msg = T.unsafe(nil)); end
# For testing with pattern matching (only supported with Ruby 3.0 and later)
@@ -594,7 +594,7 @@ module Minitest::Assertions
#
# @raise [NotImplementedError]
#
- # source://minitest//lib/minitest/assertions.rb#763
+ # source://minitest//lib/minitest/assertions.rb#758
def refute_pattern; end
# For testing with predicates.
@@ -605,18 +605,18 @@ module Minitest::Assertions
#
# str.wont_be :empty?
#
- # source://minitest//lib/minitest/assertions.rb#804
+ # source://minitest//lib/minitest/assertions.rb#799
def refute_predicate(o1, op, msg = T.unsafe(nil)); end
# Fails if +obj+ responds to the message +meth+.
# include_all defaults to false to match Object#respond_to?
#
- # source://minitest//lib/minitest/assertions.rb#813
+ # source://minitest//lib/minitest/assertions.rb#808
def refute_respond_to(obj, meth, msg = T.unsafe(nil), include_all: T.unsafe(nil)); end
# Fails if +exp+ is the same (by object identity) as +act+.
#
- # source://minitest//lib/minitest/assertions.rb#822
+ # source://minitest//lib/minitest/assertions.rb#817
def refute_same(exp, act, msg = T.unsafe(nil)); end
# Skips the current run. If run in verbose-mode, the skipped run
@@ -625,7 +625,7 @@ module Minitest::Assertions
#
# @raise [Minitest::Skip]
#
- # source://minitest//lib/minitest/assertions.rb#835
+ # source://minitest//lib/minitest/assertions.rb#830
def skip(msg = T.unsafe(nil), _ignored = T.unsafe(nil)); end
# Skips the current run until a given date (in the local time
@@ -633,14 +633,14 @@ module Minitest::Assertions
# date, but still holds you accountable and prevents you from
# forgetting it.
#
- # source://minitest//lib/minitest/assertions.rb#847
+ # source://minitest//lib/minitest/assertions.rb#842
def skip_until(y, m, d, msg); end
# Was this testcase skipped? Meant for #teardown.
#
# @return [Boolean]
#
- # source://minitest//lib/minitest/assertions.rb#856
+ # source://minitest//lib/minitest/assertions.rb#851
def skipped?; end
# Returns things to diff [expect, butwas], or [nil, nil] if nothing to diff.
@@ -652,104 +652,102 @@ module Minitest::Assertions
# 3. or: Strings are equal to each other (but maybe different encodings?).
# 4. and: we found a diff executable.
#
- # source://minitest//lib/minitest/assertions.rb#104
+ # source://minitest//lib/minitest/assertions.rb#102
def things_to_diff(exp, act); end
class << self
# Returns the diff command to use in #diff. Tries to intelligently
# figure out what diff to use.
#
- # source://minitest//lib/minitest/assertions.rb#29
+ # source://minitest//lib/minitest/assertions.rb#27
def diff; end
# Set the diff command to use in #diff.
#
- # source://minitest//lib/minitest/assertions.rb#47
+ # source://minitest//lib/minitest/assertions.rb#45
def diff=(o); end
end
end
-# source://minitest//lib/minitest/assertions.rb#206
+# source://minitest//lib/minitest/assertions.rb#199
Minitest::Assertions::E = T.let(T.unsafe(nil), String)
-# source://minitest//lib/minitest/assertions.rb#19
+# source://minitest//lib/minitest/assertions.rb#17
Minitest::Assertions::UNDEFINED = T.let(T.unsafe(nil), Object)
# The standard backtrace filter for minitest.
#
# See Minitest.backtrace_filter=.
#
-# source://minitest//lib/minitest.rb#1170
+# source://minitest//lib/minitest.rb#1174
class Minitest::BacktraceFilter
# @return [BacktraceFilter] a new instance of BacktraceFilter
#
- # source://minitest//lib/minitest.rb#1176
+ # source://minitest//lib/minitest.rb#1183
def initialize(regexp = T.unsafe(nil)); end
# Filter +bt+ to something useful. Returns the whole thing if
# $DEBUG (ruby) or $MT_DEBUG (env).
#
- # source://minitest//lib/minitest.rb#1184
+ # source://minitest//lib/minitest.rb#1191
def filter(bt); end
- # Returns the value of attribute regexp.
+ # The regular expression to use to filter backtraces. Defaults to +MT_RE+.
#
- # source://minitest//lib/minitest.rb#1174
+ # source://minitest//lib/minitest.rb#1181
def regexp; end
- # Sets the attribute regexp
+ # The regular expression to use to filter backtraces. Defaults to +MT_RE+.
#
- # @param value the value to set the attribute regexp to.
- #
- # source://minitest//lib/minitest.rb#1174
+ # source://minitest//lib/minitest.rb#1181
def regexp=(_arg0); end
end
-# source://minitest//lib/minitest.rb#1172
+# source://minitest//lib/minitest.rb#1176
Minitest::BacktraceFilter::MT_RE = T.let(T.unsafe(nil), Regexp)
# Dispatch to multiple reporters as one.
#
-# source://minitest//lib/minitest.rb#964
+# source://minitest//lib/minitest.rb#968
class Minitest::CompositeReporter < ::Minitest::AbstractReporter
# @return [CompositeReporter] a new instance of CompositeReporter
#
- # source://minitest//lib/minitest.rb#970
+ # source://minitest//lib/minitest.rb#974
def initialize(*reporters); end
# Add another reporter to the mix.
#
- # source://minitest//lib/minitest.rb#982
+ # source://minitest//lib/minitest.rb#986
def <<(reporter); end
- # source://minitest//lib/minitest.rb#975
+ # source://minitest//lib/minitest.rb#979
def io; end
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#986
+ # source://minitest//lib/minitest.rb#990
def passed?; end
- # source://minitest//lib/minitest.rb#994
+ # source://minitest//lib/minitest.rb#998
def prerecord(klass, name); end
- # source://minitest//lib/minitest.rb#1001
+ # source://minitest//lib/minitest.rb#1005
def record(result); end
- # source://minitest//lib/minitest.rb#1007
+ # source://minitest//lib/minitest.rb#1011
def report; end
# The list of reporters to dispatch to.
#
- # source://minitest//lib/minitest.rb#968
+ # source://minitest//lib/minitest.rb#972
def reporters; end
# The list of reporters to dispatch to.
#
- # source://minitest//lib/minitest.rb#968
+ # source://minitest//lib/minitest.rb#972
def reporters=(_arg0); end
- # source://minitest//lib/minitest.rb#990
+ # source://minitest//lib/minitest.rb#994
def start; end
end
@@ -1020,48 +1018,48 @@ end
# # ... lots of test methods ...
# end
#
-# source://minitest//lib/minitest.rb#1114
+# source://minitest//lib/minitest.rb#1118
module Minitest::Guard
# Is this running on jruby?
#
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#1119
+ # source://minitest//lib/minitest.rb#1123
def jruby?(platform = T.unsafe(nil)); end
# Is this running on maglev?
#
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#1126
+ # source://minitest//lib/minitest.rb#1130
def maglev?(platform = T.unsafe(nil)); end
# Is this running on mri?
#
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#1136
+ # source://minitest//lib/minitest.rb#1140
def mri?(platform = T.unsafe(nil)); end
# Is this running on macOS?
#
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#1143
+ # source://minitest//lib/minitest.rb#1147
def osx?(platform = T.unsafe(nil)); end
# Is this running on rubinius?
#
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#1150
+ # source://minitest//lib/minitest.rb#1154
def rubinius?(platform = T.unsafe(nil)); end
# Is this running on windows?
#
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#1160
+ # source://minitest//lib/minitest.rb#1164
def windows?(platform = T.unsafe(nil)); end
end
@@ -1124,36 +1122,36 @@ end
# plugin, pull this out of the composite and replace it with your
# own.
#
-# source://minitest//lib/minitest.rb#754
+# source://minitest//lib/minitest.rb#758
class Minitest::ProgressReporter < ::Minitest::Reporter
- # source://minitest//lib/minitest.rb#755
+ # source://minitest//lib/minitest.rb#759
def prerecord(klass, name); end
- # source://minitest//lib/minitest.rb#762
+ # source://minitest//lib/minitest.rb#766
def record(result); end
end
# Shared code for anything that can get passed to a Reporter. See
# Minitest::Test & Minitest::Result.
#
-# source://minitest//lib/minitest.rb#576
+# source://minitest//lib/minitest.rb#580
module Minitest::Reportable
# @raise [NotImplementedError]
#
- # source://minitest//lib/minitest.rb#598
+ # source://minitest//lib/minitest.rb#602
def class_name; end
# Did this run error?
#
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#619
+ # source://minitest//lib/minitest.rb#623
def error?; end
# The location identifier of this test. Depends on a method
# existing called class_name.
#
- # source://minitest//lib/minitest.rb#593
+ # source://minitest//lib/minitest.rb#597
def location; end
# Did this run pass?
@@ -1163,50 +1161,50 @@ module Minitest::Reportable
#
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#583
+ # source://minitest//lib/minitest.rb#587
def passed?; end
# Returns ".", "F", or "E" based on the result of the run.
#
- # source://minitest//lib/minitest.rb#605
+ # source://minitest//lib/minitest.rb#609
def result_code; end
# Was this run skipped?
#
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#612
+ # source://minitest//lib/minitest.rb#616
def skipped?; end
end
-# source://minitest//lib/minitest.rb#587
+# source://minitest//lib/minitest.rb#591
Minitest::Reportable::BASE_DIR = T.let(T.unsafe(nil), String)
-# source://minitest//lib/minitest.rb#730
+# source://minitest//lib/minitest.rb#734
class Minitest::Reporter < ::Minitest::AbstractReporter
# @return [Reporter] a new instance of Reporter
#
- # source://minitest//lib/minitest.rb#739
+ # source://minitest//lib/minitest.rb#743
def initialize(io = T.unsafe(nil), options = T.unsafe(nil)); end
# The IO used to report.
#
- # source://minitest//lib/minitest.rb#732
+ # source://minitest//lib/minitest.rb#736
def io; end
# The IO used to report.
#
- # source://minitest//lib/minitest.rb#732
+ # source://minitest//lib/minitest.rb#736
def io=(_arg0); end
# Command-line options for this run.
#
- # source://minitest//lib/minitest.rb#737
+ # source://minitest//lib/minitest.rb#741
def options; end
# Command-line options for this run.
#
- # source://minitest//lib/minitest.rb#737
+ # source://minitest//lib/minitest.rb#741
def options=(_arg0); end
end
@@ -1216,80 +1214,80 @@ end
# blow up. By using Result.from(a_test) you can be reasonably sure
# that the test result can be marshalled.
#
-# source://minitest//lib/minitest.rb#631
+# source://minitest//lib/minitest.rb#635
class Minitest::Result < ::Minitest::Runnable
include ::Minitest::Reportable
- # source://minitest//lib/minitest.rb#665
+ # source://minitest//lib/minitest.rb#669
def class_name; end
# The class name of the test result.
#
- # source://minitest//lib/minitest.rb#640
+ # source://minitest//lib/minitest.rb#644
def klass; end
# The class name of the test result.
#
- # source://minitest//lib/minitest.rb#640
+ # source://minitest//lib/minitest.rb#644
def klass=(_arg0); end
# The location of the test method.
#
- # source://minitest//lib/minitest.rb#645
+ # source://minitest//lib/minitest.rb#649
def source_location; end
# The location of the test method.
#
- # source://minitest//lib/minitest.rb#645
+ # source://minitest//lib/minitest.rb#649
def source_location=(_arg0); end
- # source://minitest//lib/minitest.rb#669
+ # source://minitest//lib/minitest.rb#673
def to_s; end
class << self
# Create a new test result from a Runnable instance.
#
- # source://minitest//lib/minitest.rb#650
+ # source://minitest//lib/minitest.rb#654
def from(runnable); end
end
end
# re-open
#
-# source://minitest//lib/minitest.rb#349
+# source://minitest//lib/minitest.rb#348
class Minitest::Runnable
# @return [Runnable] a new instance of Runnable
#
- # source://minitest//lib/minitest.rb#507
+ # source://minitest//lib/minitest.rb#511
def initialize(name); end
# Number of assertions executed in this run.
#
- # source://minitest//lib/minitest.rb#353
+ # source://minitest//lib/minitest.rb#352
def assertions; end
# Number of assertions executed in this run.
#
- # source://minitest//lib/minitest.rb#353
+ # source://minitest//lib/minitest.rb#352
def assertions=(_arg0); end
- # source://minitest//lib/minitest.rb#503
+ # source://minitest//lib/minitest.rb#507
def failure; end
# An assertion raised during the run, if any.
#
- # source://minitest//lib/minitest.rb#358
+ # source://minitest//lib/minitest.rb#357
def failures; end
# An assertion raised during the run, if any.
#
- # source://minitest//lib/minitest.rb#358
+ # source://minitest//lib/minitest.rb#357
def failures=(_arg0); end
- # source://minitest//lib/minitest.rb#489
+ # source://minitest//lib/minitest.rb#493
def marshal_dump; end
- # source://minitest//lib/minitest.rb#499
+ # source://minitest//lib/minitest.rb#503
def marshal_load(ary); end
# Metadata you attach to the test results that get sent to the reporter.
@@ -1299,29 +1297,29 @@ class Minitest::Runnable
# NOTE: this data *must* be plain (read: marshal-able) data!
# Hashes! Arrays! Strings!
#
- # source://minitest//lib/minitest.rb#522
+ # source://minitest//lib/minitest.rb#526
def metadata; end
# Sets metadata, mainly used for +Result.from+.
#
- # source://minitest//lib/minitest.rb#529
+ # source://minitest//lib/minitest.rb#533
def metadata=(_arg0); end
# Returns true if metadata exists.
#
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#534
+ # source://minitest//lib/minitest.rb#538
def metadata?; end
# Name of the run.
#
- # source://minitest//lib/minitest.rb#376
+ # source://minitest//lib/minitest.rb#375
def name; end
# Set the name of the run.
#
- # source://minitest//lib/minitest.rb#383
+ # source://minitest//lib/minitest.rb#382
def name=(o); end
# Did this run pass?
@@ -1332,7 +1330,7 @@ class Minitest::Runnable
# @raise [NotImplementedError]
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#551
+ # source://minitest//lib/minitest.rb#555
def passed?; end
# Returns a single character string to print based on the result
@@ -1341,14 +1339,14 @@ class Minitest::Runnable
#
# @raise [NotImplementedError]
#
- # source://minitest//lib/minitest.rb#560
+ # source://minitest//lib/minitest.rb#564
def result_code; end
# Runs a single method. Needs to return self.
#
# @raise [NotImplementedError]
#
- # source://minitest//lib/minitest.rb#541
+ # source://minitest//lib/minitest.rb#545
def run; end
# Was this run skipped? See #passed? for more information.
@@ -1356,42 +1354,42 @@ class Minitest::Runnable
# @raise [NotImplementedError]
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#567
+ # source://minitest//lib/minitest.rb#571
def skipped?; end
# The time it took to run.
#
- # source://minitest//lib/minitest.rb#363
+ # source://minitest//lib/minitest.rb#362
def time; end
# The time it took to run.
#
- # source://minitest//lib/minitest.rb#363
+ # source://minitest//lib/minitest.rb#362
def time=(_arg0); end
- # source://minitest//lib/minitest.rb#365
+ # source://minitest//lib/minitest.rb#364
def time_it; end
class << self
- # source://minitest//lib/minitest.rb#1218
+ # source://minitest//lib/minitest.rb#1225
def inherited(klass); end
# Returns all instance methods matching the pattern +re+.
#
- # source://minitest//lib/minitest.rb#390
+ # source://minitest//lib/minitest.rb#389
def methods_matching(re); end
- # source://minitest//lib/minitest.rb#459
+ # source://minitest//lib/minitest.rb#463
def on_signal(name, action); end
- # source://minitest//lib/minitest.rb#394
+ # source://minitest//lib/minitest.rb#393
def reset; end
# Responsible for running all runnable methods in a given class,
# each in its own instance. Each instance is passed to the
# reporter to record.
#
- # source://minitest//lib/minitest.rb#405
+ # source://minitest//lib/minitest.rb#404
def run(reporter, options = T.unsafe(nil)); end
# Runs a single method and has the reporter record the result.
@@ -1399,7 +1397,7 @@ class Minitest::Runnable
# that subclasses can specialize the running of an individual
# test. See Minitest::ParallelTest::ClassMethods for an example.
#
- # source://minitest//lib/minitest.rb#431
+ # source://minitest//lib/minitest.rb#444
def run_one_method(klass, method_name, reporter); end
# Each subclass of Runnable is responsible for overriding this
@@ -1407,33 +1405,33 @@ class Minitest::Runnable
#
# @raise [NotImplementedError]
#
- # source://minitest//lib/minitest.rb#476
+ # source://minitest//lib/minitest.rb#480
def runnable_methods; end
# Returns all subclasses of Runnable.
#
- # source://minitest//lib/minitest.rb#483
+ # source://minitest//lib/minitest.rb#487
def runnables; end
# Defines the order to run tests (:random by default). Override
# this or use a convenience method to change it for your tests.
#
- # source://minitest//lib/minitest.rb#440
+ # source://minitest//lib/minitest.rb#453
def test_order; end
- # source://minitest//lib/minitest.rb#444
+ # source://minitest//lib/minitest.rb#457
def with_info_handler(reporter, &block); end
end
end
-# source://minitest//lib/minitest.rb#457
+# source://minitest//lib/minitest.rb#461
Minitest::Runnable::SIGNALS = T.let(T.unsafe(nil), Hash)
# Assertion raised when skipping a run.
#
-# source://minitest//lib/minitest.rb#1045
+# source://minitest//lib/minitest.rb#1049
class Minitest::Skip < ::Minitest::Assertion
- # source://minitest//lib/minitest.rb#1046
+ # source://minitest//lib/minitest.rb#1050
def result_label; end
end
@@ -1690,123 +1688,123 @@ Minitest::Spec::TYPES = T.let(T.unsafe(nil), Array)
# end
# end
#
-# source://minitest//lib/minitest.rb#790
+# source://minitest//lib/minitest.rb#794
class Minitest::StatisticsReporter < ::Minitest::Reporter
# @return [StatisticsReporter] a new instance of StatisticsReporter
#
- # source://minitest//lib/minitest.rb#839
+ # source://minitest//lib/minitest.rb#843
def initialize(io = T.unsafe(nil), options = T.unsafe(nil)); end
# Total number of assertions.
#
- # source://minitest//lib/minitest.rb#794
+ # source://minitest//lib/minitest.rb#798
def assertions; end
# Total number of assertions.
#
- # source://minitest//lib/minitest.rb#794
+ # source://minitest//lib/minitest.rb#798
def assertions=(_arg0); end
# Total number of test cases.
#
- # source://minitest//lib/minitest.rb#799
+ # source://minitest//lib/minitest.rb#803
def count; end
# Total number of test cases.
#
- # source://minitest//lib/minitest.rb#799
+ # source://minitest//lib/minitest.rb#803
def count=(_arg0); end
# Total number of tests that erred.
#
- # source://minitest//lib/minitest.rb#827
+ # source://minitest//lib/minitest.rb#831
def errors; end
# Total number of tests that erred.
#
- # source://minitest//lib/minitest.rb#827
+ # source://minitest//lib/minitest.rb#831
def errors=(_arg0); end
# Total number of tests that failed.
#
- # source://minitest//lib/minitest.rb#822
+ # source://minitest//lib/minitest.rb#826
def failures; end
# Total number of tests that failed.
#
- # source://minitest//lib/minitest.rb#822
+ # source://minitest//lib/minitest.rb#826
def failures=(_arg0); end
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#853
+ # source://minitest//lib/minitest.rb#857
def passed?; end
- # source://minitest//lib/minitest.rb#861
+ # source://minitest//lib/minitest.rb#865
def record(result); end
# Report on the tracked statistics.
#
- # source://minitest//lib/minitest.rb#871
+ # source://minitest//lib/minitest.rb#875
def report; end
# An +Array+ of test cases that failed or were skipped.
#
- # source://minitest//lib/minitest.rb#804
+ # source://minitest//lib/minitest.rb#808
def results; end
# An +Array+ of test cases that failed or were skipped.
#
- # source://minitest//lib/minitest.rb#804
+ # source://minitest//lib/minitest.rb#808
def results=(_arg0); end
# Total number of tests that where skipped.
#
- # source://minitest//lib/minitest.rb#837
+ # source://minitest//lib/minitest.rb#841
def skips; end
# Total number of tests that where skipped.
#
- # source://minitest//lib/minitest.rb#837
+ # source://minitest//lib/minitest.rb#841
def skips=(_arg0); end
- # source://minitest//lib/minitest.rb#857
+ # source://minitest//lib/minitest.rb#861
def start; end
# Time the test run started. If available, the monotonic clock is
# used and this is a +Float+, otherwise it's an instance of
# +Time+.
#
- # source://minitest//lib/minitest.rb#811
+ # source://minitest//lib/minitest.rb#815
def start_time; end
# Time the test run started. If available, the monotonic clock is
# used and this is a +Float+, otherwise it's an instance of
# +Time+.
#
- # source://minitest//lib/minitest.rb#811
+ # source://minitest//lib/minitest.rb#815
def start_time=(_arg0); end
# Test run time. If available, the monotonic clock is used and
# this is a +Float+, otherwise it's an instance of +Time+.
#
- # source://minitest//lib/minitest.rb#817
+ # source://minitest//lib/minitest.rb#821
def total_time; end
# Test run time. If available, the monotonic clock is used and
# this is a +Float+, otherwise it's an instance of +Time+.
#
- # source://minitest//lib/minitest.rb#817
+ # source://minitest//lib/minitest.rb#821
def total_time=(_arg0); end
# Total number of tests that warned.
#
- # source://minitest//lib/minitest.rb#832
+ # source://minitest//lib/minitest.rb#836
def warnings; end
# Total number of tests that warned.
#
- # source://minitest//lib/minitest.rb#832
+ # source://minitest//lib/minitest.rb#836
def warnings=(_arg0); end
end
@@ -1818,48 +1816,36 @@ end
# plugin, pull this out of the composite and replace it with your
# own.
#
-# source://minitest//lib/minitest.rb#892
+# source://minitest//lib/minitest.rb#896
class Minitest::SummaryReporter < ::Minitest::StatisticsReporter
- # source://minitest//lib/minitest.rb#927
+ # source://minitest//lib/minitest.rb#929
def aggregated_results(io); end
- # Returns the value of attribute old_sync.
- #
- # source://minitest//lib/minitest.rb#895
+ # source://minitest//lib/minitest.rb#898
def old_sync; end
- # Sets the attribute old_sync
- #
- # @param value the value to set the attribute old_sync to.
- #
- # source://minitest//lib/minitest.rb#895
+ # source://minitest//lib/minitest.rb#898
def old_sync=(_arg0); end
- # source://minitest//lib/minitest.rb#910
+ # source://minitest//lib/minitest.rb#912
def report; end
- # :startdoc:
- #
- # source://minitest//lib/minitest.rb#898
+ # source://minitest//lib/minitest.rb#900
def start; end
- # source://minitest//lib/minitest.rb#922
+ # source://minitest//lib/minitest.rb#924
def statistics; end
- # source://minitest//lib/minitest.rb#947
+ # source://minitest//lib/minitest.rb#949
def summary; end
- # :stopdoc:
- #
- # source://minitest//lib/minitest.rb#894
+ # source://minitest//lib/minitest.rb#897
def sync; end
- # :stopdoc:
- #
- # source://minitest//lib/minitest.rb#894
+ # source://minitest//lib/minitest.rb#897
def sync=(_arg0); end
- # source://minitest//lib/minitest.rb#943
+ # source://minitest//lib/minitest.rb#945
def to_s; end
end
@@ -1878,16 +1864,16 @@ class Minitest::Test < ::Minitest::Runnable
# LifecycleHooks
#
- # source://minitest//lib/minitest/test.rb#191
+ # source://minitest//lib/minitest/test.rb#189
def capture_exceptions; end
# source://minitest//lib/minitest/test.rb#15
def class_name; end
- # source://minitest//lib/minitest/test.rb#208
+ # source://minitest//lib/minitest/test.rb#206
def neuter_exception(e); end
- # source://minitest//lib/minitest/test.rb#219
+ # source://minitest//lib/minitest/test.rb#217
def new_exception(klass, msg, bt, kill = T.unsafe(nil)); end
# Runs a single test with setup/teardown hooks.
@@ -1895,12 +1881,9 @@ class Minitest::Test < ::Minitest::Runnable
# source://minitest//lib/minitest/test.rb#87
def run; end
- # source://minitest//lib/minitest/test.rb#201
+ # source://minitest//lib/minitest/test.rb#199
def sanitize_exception(e); end
- # source://minitest//lib/minitest/test.rb#233
- def with_info_handler(&block); end
-
class << self
# Call this at the top of your tests when you absolutely
# positively need to have ordered tests. In doing so, you're
@@ -1950,7 +1933,7 @@ end
# meant for library writers, NOT for regular test authors. See
# #before_setup for an example.
#
-# source://minitest//lib/minitest/test.rb#114
+# source://minitest//lib/minitest/test.rb#112
module Minitest::Test::LifecycleHooks
# Runs before every test, after setup. This hook is meant for
# libraries to extend minitest. It is not meant to be used by
@@ -1958,7 +1941,7 @@ module Minitest::Test::LifecycleHooks
#
# See #before_setup for an example.
#
- # source://minitest//lib/minitest/test.rb#164
+ # source://minitest//lib/minitest/test.rb#162
def after_setup; end
# Runs after every test, after teardown. This hook is meant for
@@ -1967,7 +1950,7 @@ module Minitest::Test::LifecycleHooks
#
# See #before_setup for an example.
#
- # source://minitest//lib/minitest/test.rb#188
+ # source://minitest//lib/minitest/test.rb#186
def after_teardown; end
# Runs before every test, before setup. This hook is meant for
@@ -2002,7 +1985,7 @@ module Minitest::Test::LifecycleHooks
# include MyMinitestPlugin
# end
#
- # source://minitest//lib/minitest/test.rb#149
+ # source://minitest//lib/minitest/test.rb#147
def before_setup; end
# Runs after every test, before teardown. This hook is meant for
@@ -2011,19 +1994,19 @@ module Minitest::Test::LifecycleHooks
#
# See #before_setup for an example.
#
- # source://minitest//lib/minitest/test.rb#173
+ # source://minitest//lib/minitest/test.rb#171
def before_teardown; end
# Runs before every test. Use this to set up before each test
# run.
#
- # source://minitest//lib/minitest/test.rb#155
+ # source://minitest//lib/minitest/test.rb#153
def setup; end
# Runs after every test. Use this to clean up after each test
# run.
#
- # source://minitest//lib/minitest/test.rb#179
+ # source://minitest//lib/minitest/test.rb#177
def teardown; end
end
@@ -2038,43 +2021,43 @@ Minitest::Test::TEARDOWN_METHODS = T.let(T.unsafe(nil), Array)
# Assertion wrapping an unexpected error that was raised during a run.
#
-# source://minitest//lib/minitest.rb#1054
+# source://minitest//lib/minitest.rb#1058
class Minitest::UnexpectedError < ::Minitest::Assertion
include ::Minitest::Compress
# @return [UnexpectedError] a new instance of UnexpectedError
#
- # source://minitest//lib/minitest.rb#1060
+ # source://minitest//lib/minitest.rb#1064
def initialize(error); end
- # source://minitest//lib/minitest.rb#1073
+ # source://minitest//lib/minitest.rb#1077
def backtrace; end
# TODO: figure out how to use `cause` instead
#
- # source://minitest//lib/minitest.rb#1058
+ # source://minitest//lib/minitest.rb#1062
def error; end
# TODO: figure out how to use `cause` instead
#
- # source://minitest//lib/minitest.rb#1058
+ # source://minitest//lib/minitest.rb#1062
def error=(_arg0); end
- # source://minitest//lib/minitest.rb#1079
+ # source://minitest//lib/minitest.rb#1083
def message; end
- # source://minitest//lib/minitest.rb#1085
+ # source://minitest//lib/minitest.rb#1089
def result_label; end
end
-# source://minitest//lib/minitest.rb#1077
+# source://minitest//lib/minitest.rb#1081
Minitest::UnexpectedError::BASE_RE = T.let(T.unsafe(nil), Regexp)
# Assertion raised on warning when running in -Werror mode.
#
-# source://minitest//lib/minitest.rb#1093
+# source://minitest//lib/minitest.rb#1097
class Minitest::UnexpectedWarning < ::Minitest::Assertion
- # source://minitest//lib/minitest.rb#1094
+ # source://minitest//lib/minitest.rb#1098
def result_label; end
end
diff --git a/sorbet/rbi/gems/mustermann-grape@1.1.0.rbi b/sorbet/rbi/gems/mustermann-grape@1.1.0.rbi
index 78452bc..2df1890 100644
--- a/sorbet/rbi/gems/mustermann-grape@1.1.0.rbi
+++ b/sorbet/rbi/gems/mustermann-grape@1.1.0.rbi
@@ -8,22 +8,22 @@
# source://mustermann-grape//lib/mustermann/grape.rb#6
module Mustermann
class << self
- # source://mustermann/3.0.1/lib/mustermann.rb#89
+ # source://mustermann/3.0.2/lib/mustermann.rb#89
def [](name); end
- # source://mustermann/3.0.1/lib/mustermann.rb#120
+ # source://mustermann/3.0.2/lib/mustermann.rb#120
def extend_object(object); end
- # source://mustermann/3.0.1/lib/mustermann.rb#62
+ # source://mustermann/3.0.2/lib/mustermann.rb#62
def new(*input, type: T.unsafe(nil), operator: T.unsafe(nil), **options); end
- # source://mustermann/3.0.1/lib/mustermann.rb#115
+ # source://mustermann/3.0.2/lib/mustermann.rb#115
def normalized_type(type); end
- # source://mustermann/3.0.1/lib/mustermann.rb#110
+ # source://mustermann/3.0.2/lib/mustermann.rb#110
def register(name, type); end
- # source://mustermann/3.0.1/lib/mustermann.rb#101
+ # source://mustermann/3.0.2/lib/mustermann.rb#101
def try_require(path); end
end
end
diff --git a/sorbet/rbi/gems/mustermann@3.0.1.rbi b/sorbet/rbi/gems/mustermann@3.0.2.rbi
similarity index 100%
rename from sorbet/rbi/gems/mustermann@3.0.1.rbi
rename to sorbet/rbi/gems/mustermann@3.0.2.rbi
diff --git a/sorbet/rbi/gems/mutex_m@0.2.0.rbi b/sorbet/rbi/gems/mutex_m@0.2.0.rbi
deleted file mode 100644
index cc4b046..0000000
--- a/sorbet/rbi/gems/mutex_m@0.2.0.rbi
+++ /dev/null
@@ -1,94 +0,0 @@
-# typed: false
-
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `mutex_m` gem.
-# Please instead update this file by running `bin/tapioca gem mutex_m`.
-
-
-# = mutex_m.rb
-#
-# When 'mutex_m' is required, any object that extends or includes Mutex_m will
-# be treated like a Mutex.
-#
-# Start by requiring the standard library Mutex_m:
-#
-# require "mutex_m.rb"
-#
-# From here you can extend an object with Mutex instance methods:
-#
-# obj = Object.new
-# obj.extend Mutex_m
-#
-# Or mixin Mutex_m into your module to your class inherit Mutex instance
-# methods --- remember to call super() in your class initialize method.
-#
-# class Foo
-# include Mutex_m
-# def initialize
-# # ...
-# super()
-# end
-# # ...
-# end
-# obj = Foo.new
-# # this obj can be handled like Mutex
-#
-# source://mutex_m//lib/mutex_m.rb#41
-module Mutex_m
- # source://mutex_m//lib/mutex_m.rb#111
- def initialize(*args, **_arg1); end
-
- # source://mutex_m//lib/mutex_m.rb#64
- def mu_extended; end
-
- # See Thread::Mutex#lock
- #
- # source://mutex_m//lib/mutex_m.rb#91
- def mu_lock; end
-
- # See Thread::Mutex#locked?
- #
- # @return [Boolean]
- #
- # source://mutex_m//lib/mutex_m.rb#81
- def mu_locked?; end
-
- # See Thread::Mutex#synchronize
- #
- # source://mutex_m//lib/mutex_m.rb#76
- def mu_synchronize(&block); end
-
- # See Thread::Mutex#try_lock
- #
- # source://mutex_m//lib/mutex_m.rb#86
- def mu_try_lock; end
-
- # See Thread::Mutex#unlock
- #
- # source://mutex_m//lib/mutex_m.rb#96
- def mu_unlock; end
-
- # See Thread::Mutex#sleep
- #
- # source://mutex_m//lib/mutex_m.rb#101
- def sleep(timeout = T.unsafe(nil)); end
-
- private
-
- # source://mutex_m//lib/mutex_m.rb#107
- def mu_initialize; end
-
- class << self
- # source://mutex_m//lib/mutex_m.rb#54
- def append_features(cl); end
-
- # source://mutex_m//lib/mutex_m.rb#46
- def define_aliases(cl); end
-
- # source://mutex_m//lib/mutex_m.rb#59
- def extend_object(obj); end
- end
-end
-
-# source://mutex_m//lib/mutex_m.rb#43
-Mutex_m::VERSION = T.let(T.unsafe(nil), String)
diff --git a/sorbet/rbi/gems/parallel@1.26.1.rbi b/sorbet/rbi/gems/parallel@1.26.3.rbi
similarity index 96%
rename from sorbet/rbi/gems/parallel@1.26.1.rbi
rename to sorbet/rbi/gems/parallel@1.26.3.rbi
index a2dec08..854c487 100644
--- a/sorbet/rbi/gems/parallel@1.26.1.rbi
+++ b/sorbet/rbi/gems/parallel@1.26.3.rbi
@@ -47,9 +47,10 @@ module Parallel
# source://parallel//lib/parallel.rb#312
def physical_processor_count; end
- # Number of processors seen by the OS, used for process scheduling
+ # Number of processors seen by the OS or value considering CPU quota if the process is inside a cgroup,
+ # used for process scheduling
#
- # source://parallel//lib/parallel.rb#341
+ # source://parallel//lib/parallel.rb#342
def processor_count; end
# source://parallel//lib/parallel.rb#346
@@ -65,6 +66,9 @@ module Parallel
# source://parallel//lib/parallel.rb#384
def add_progress_bar!(job_factory, options); end
+ # source://parallel//lib/parallel.rb#699
+ def available_processor_count; end
+
# source://parallel//lib/parallel.rb#647
def call_with_index(item, index, options, &block); end
diff --git a/sorbet/rbi/gems/rake@13.2.1.rbi b/sorbet/rbi/gems/rake@13.2.1.rbi
index b7c41d4..f919bb3 100644
--- a/sorbet/rbi/gems/rake@13.2.1.rbi
+++ b/sorbet/rbi/gems/rake@13.2.1.rbi
@@ -1554,9 +1554,6 @@ class Rake::FileList
# source://rake//lib/rake/file_list.rb#182
def to_ary; end
- # source://rake//lib/rake/file_list.rb#77
- def to_default_s(*args, &block); end
-
# source://rake//lib/rake/file_list.rb#77
def to_formatted_s(*args, &block); end
diff --git a/sorbet/rbi/gems/rbi@0.1.14.rbi b/sorbet/rbi/gems/rbi@0.1.14.rbi
index 8f0c3c2..67d2530 100644
--- a/sorbet/rbi/gems/rbi@0.1.14.rbi
+++ b/sorbet/rbi/gems/rbi@0.1.14.rbi
@@ -2099,7 +2099,7 @@ class RBI::Rewriters::Merge::Conflict < ::T::Struct
def to_s; end
class << self
- # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11547/lib/types/struct.rb#13
def inherited(s); end
end
end
@@ -2316,7 +2316,7 @@ class RBI::Rewriters::RemoveKnownDefinitions::Operation < ::T::Struct
def to_s; end
class << self
- # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11547/lib/types/struct.rb#13
def inherited(s); end
end
end
@@ -2878,7 +2878,7 @@ class RBI::Tree < ::RBI::NodeWithComments
sig { params(annotation: ::String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void }
def annotate!(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end
- # source://tapioca/0.16.0/lib/tapioca/rbi_ext/model.rb#38
+ # source://tapioca/0.16.1/lib/tapioca/rbi_ext/model.rb#38
sig do
params(
name: ::String,
@@ -2888,19 +2888,19 @@ class RBI::Tree < ::RBI::NodeWithComments
end
def create_class(name, superclass_name: T.unsafe(nil), &block); end
- # source://tapioca/0.16.0/lib/tapioca/rbi_ext/model.rb#45
+ # source://tapioca/0.16.1/lib/tapioca/rbi_ext/model.rb#45
sig { params(name: ::String, value: ::String).void }
def create_constant(name, value:); end
- # source://tapioca/0.16.0/lib/tapioca/rbi_ext/model.rb#55
+ # source://tapioca/0.16.1/lib/tapioca/rbi_ext/model.rb#55
sig { params(name: ::String).void }
def create_extend(name); end
- # source://tapioca/0.16.0/lib/tapioca/rbi_ext/model.rb#50
+ # source://tapioca/0.16.1/lib/tapioca/rbi_ext/model.rb#50
sig { params(name: ::String).void }
def create_include(name); end
- # source://tapioca/0.16.0/lib/tapioca/rbi_ext/model.rb#90
+ # source://tapioca/0.16.1/lib/tapioca/rbi_ext/model.rb#90
sig do
params(
name: ::String,
@@ -2914,19 +2914,19 @@ class RBI::Tree < ::RBI::NodeWithComments
end
def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil), &block); end
- # source://tapioca/0.16.0/lib/tapioca/rbi_ext/model.rb#60
+ # source://tapioca/0.16.1/lib/tapioca/rbi_ext/model.rb#60
sig { params(name: ::String).void }
def create_mixes_in_class_methods(name); end
- # source://tapioca/0.16.0/lib/tapioca/rbi_ext/model.rb#25
+ # source://tapioca/0.16.1/lib/tapioca/rbi_ext/model.rb#25
sig { params(name: ::String, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) }
def create_module(name, &block); end
- # source://tapioca/0.16.0/lib/tapioca/rbi_ext/model.rb#9
+ # source://tapioca/0.16.1/lib/tapioca/rbi_ext/model.rb#9
sig { params(constant: ::Module, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) }
def create_path(constant, &block); end
- # source://tapioca/0.16.0/lib/tapioca/rbi_ext/model.rb#74
+ # source://tapioca/0.16.1/lib/tapioca/rbi_ext/model.rb#74
sig do
params(
name: ::String,
@@ -2992,11 +2992,11 @@ class RBI::Tree < ::RBI::NodeWithComments
private
- # source://tapioca/0.16.0/lib/tapioca/rbi_ext/model.rb#123
+ # source://tapioca/0.16.1/lib/tapioca/rbi_ext/model.rb#123
sig { params(node: ::RBI::Node).returns(::RBI::Node) }
def create_node(node); end
- # source://tapioca/0.16.0/lib/tapioca/rbi_ext/model.rb#118
+ # source://tapioca/0.16.1/lib/tapioca/rbi_ext/model.rb#118
sig { returns(T::Hash[::String, ::RBI::Node]) }
def nodes_cache; end
end
diff --git a/sorbet/rbi/gems/rexml@3.3.4.rbi b/sorbet/rbi/gems/rexml@3.3.6.rbi
similarity index 95%
rename from sorbet/rbi/gems/rexml@3.3.4.rbi
rename to sorbet/rbi/gems/rexml@3.3.6.rbi
index 2a8a8ed..ba7066b 100644
--- a/sorbet/rbi/gems/rexml@3.3.4.rbi
+++ b/sorbet/rbi/gems/rexml@3.3.6.rbi
@@ -227,7 +227,7 @@ end
# A class that defines the set of Attributes of an Element and provides
# operations for accessing elements in that set.
#
-# source://rexml//lib/rexml/element.rb#2128
+# source://rexml//lib/rexml/element.rb#2137
class REXML::Attributes < ::Hash
# :call-seq:
# new(element)
@@ -248,7 +248,7 @@ class REXML::Attributes < ::Hash
#
# @return [Attributes] a new instance of Attributes
#
- # source://rexml//lib/rexml/element.rb#2147
+ # source://rexml//lib/rexml/element.rb#2156
def initialize(element); end
# :call-seq:
@@ -271,7 +271,7 @@ class REXML::Attributes < ::Hash
# attrs.add(REXML::Attribute.new('baz', '3')) # => baz='3'
# attrs.include?('baz') # => true
#
- # source://rexml//lib/rexml/element.rb#2524
+ # source://rexml//lib/rexml/element.rb#2522
def <<(attribute); end
# :call-seq:
@@ -295,7 +295,7 @@ class REXML::Attributes < ::Hash
#
# Related: get_attribute (returns an \Attribute object).
#
- # source://rexml//lib/rexml/element.rb#2172
+ # source://rexml//lib/rexml/element.rb#2181
def [](name); end
# :call-seq:
@@ -321,7 +321,7 @@ class REXML::Attributes < ::Hash
# attrs['baz:att'] = nil
# attrs.include?('baz:att') # => false
#
- # source://rexml//lib/rexml/element.rb#2356
+ # source://rexml//lib/rexml/element.rb#2365
def []=(name, value); end
# :call-seq:
@@ -344,7 +344,7 @@ class REXML::Attributes < ::Hash
# attrs.add(REXML::Attribute.new('baz', '3')) # => baz='3'
# attrs.include?('baz') # => true
#
- # source://rexml//lib/rexml/element.rb#2524
+ # source://rexml//lib/rexml/element.rb#2522
def add(attribute); end
# :call-seq:
@@ -375,7 +375,7 @@ class REXML::Attributes < ::Hash
# attrs.delete(attr) # => # =>
# attrs.delete(attr) # => # =>
#
- # source://rexml//lib/rexml/element.rb#2477
+ # source://rexml//lib/rexml/element.rb#2475
def delete(attribute); end
# :call-seq:
@@ -394,7 +394,7 @@ class REXML::Attributes < ::Hash
# attrs = ele.attributes
# attrs.delete_all('att') # => [att='<']
#
- # source://rexml//lib/rexml/element.rb#2546
+ # source://rexml//lib/rexml/element.rb#2544
def delete_all(name); end
# :call-seq:
@@ -419,7 +419,7 @@ class REXML::Attributes < ::Hash
# ["bar:att", "2"]
# ["att", "<"]
#
- # source://rexml//lib/rexml/element.rb#2274
+ # source://rexml//lib/rexml/element.rb#2283
def each; end
# :call-seq:
@@ -444,7 +444,7 @@ class REXML::Attributes < ::Hash
# [REXML::Attribute, bar:att='2']
# [REXML::Attribute, att='<']
#
- # source://rexml//lib/rexml/element.rb#2241
+ # source://rexml//lib/rexml/element.rb#2250
def each_attribute; end
# :call-seq:
@@ -466,7 +466,7 @@ class REXML::Attributes < ::Hash
# attrs.get_attribute('att') # => att='<'
# attrs.get_attribute('nosuch') # => nil
#
- # source://rexml//lib/rexml/element.rb#2300
+ # source://rexml//lib/rexml/element.rb#2309
def get_attribute(name); end
# :call-seq:
@@ -486,7 +486,7 @@ class REXML::Attributes < ::Hash
# attrs.get_attribute_ns('http://foo', 'att') # => foo:att='1'
# attrs.get_attribute_ns('http://foo', 'nosuch') # => nil
#
- # source://rexml//lib/rexml/element.rb#2572
+ # source://rexml//lib/rexml/element.rb#2570
def get_attribute_ns(namespace, name); end
# :call-seq:
@@ -503,7 +503,7 @@ class REXML::Attributes < ::Hash
# ele = d.root.elements['//ele'] # =>
# ele.attributes.length # => 3
#
- # source://rexml//lib/rexml/element.rb#2212
+ # source://rexml//lib/rexml/element.rb#2221
def length; end
# :call-seq:
@@ -515,7 +515,7 @@ class REXML::Attributes < ::Hash
# d = REXML::Document.new(xml_string)
# d.root.attributes.namespaces # => {"xmlns"=>"foo", "x"=>"bar", "y"=>"twee"}
#
- # source://rexml//lib/rexml/element.rb#2433
+ # source://rexml//lib/rexml/element.rb#2431
def namespaces; end
# :call-seq:
@@ -529,7 +529,7 @@ class REXML::Attributes < ::Hash
# d = REXML::Document.new(xml_string)
# d.root.attributes.prefixes # => ["x", "y"]
#
- # source://rexml//lib/rexml/element.rb#2408
+ # source://rexml//lib/rexml/element.rb#2406
def prefixes; end
# :call-seq:
@@ -546,7 +546,7 @@ class REXML::Attributes < ::Hash
# ele = d.root.elements['//ele'] # =>
# ele.attributes.length # => 3
#
- # source://rexml//lib/rexml/element.rb#2212
+ # source://rexml//lib/rexml/element.rb#2221
def size; end
# :call-seq:
@@ -565,7 +565,7 @@ class REXML::Attributes < ::Hash
# attrs = ele.attributes.to_a # => [foo:att='1', bar:att='2', att='<']
# attrs.first.class # => REXML::Attribute
#
- # source://rexml//lib/rexml/element.rb#2194
+ # source://rexml//lib/rexml/element.rb#2203
def to_a; end
end
@@ -1663,7 +1663,7 @@ class REXML::Element < ::REXML::Parent
# root[:attr] # => "value"
# root[:nosuch] # => nil
#
- # source://rexml//lib/rexml/element.rb#1237
+ # source://rexml//lib/rexml/element.rb#1246
def [](name_or_index); end
# :call-seq:
@@ -1692,7 +1692,7 @@ class REXML::Element < ::REXML::Parent
# e.add_attribute(a) # => attr='VALUE'
# e['attr'] # => "VALUE"
#
- # source://rexml//lib/rexml/element.rb#1336
+ # source://rexml//lib/rexml/element.rb#1345
def add_attribute(key, value = T.unsafe(nil)); end
# :call-seq:
@@ -1718,7 +1718,7 @@ class REXML::Element < ::REXML::Parent
# a = [['foo' => 'bar'], ['baz' => 'bat']]
# e.add_attributes(a)
#
- # source://rexml//lib/rexml/element.rb#1367
+ # source://rexml//lib/rexml/element.rb#1376
def add_attributes(hash); end
# :call-seq:
@@ -1755,7 +1755,7 @@ class REXML::Element < ::REXML::Parent
# e0.add_element(e1, {'bat' => '0', 'bam' => '1'})
# e0[1] # =>
#
- # source://rexml//lib/rexml/element.rb#723
+ # source://rexml//lib/rexml/element.rb#732
def add_element(element, attrs = T.unsafe(nil)); end
# :call-seq:
@@ -1776,7 +1776,7 @@ class REXML::Element < ::REXML::Parent
# e.add_namespace('baz', 'bat')
# e.namespaces # => {"xmlns"=>"bar", "baz"=>"bat"}
#
- # source://rexml//lib/rexml/element.rb#646
+ # source://rexml//lib/rexml/element.rb#655
def add_namespace(prefix, uri = T.unsafe(nil)); end
# :call-seq:
@@ -1818,7 +1818,7 @@ class REXML::Element < ::REXML::Parent
# a.add_text(REXML::Text.new('baz'))
# a.to_a # => ["foo", , "bar", "baz", "baz"]
#
- # source://rexml//lib/rexml/element.rb#1138
+ # source://rexml//lib/rexml/element.rb#1147
def add_text(text); end
# :call-seq:
@@ -1850,7 +1850,7 @@ class REXML::Element < ::REXML::Parent
# document.root.attribute("x") # => x='x'
# document.root.attribute("x", "a") # => a:x='a:x'
#
- # source://rexml//lib/rexml/element.rb#1278
+ # source://rexml//lib/rexml/element.rb#1287
def attribute(name, namespace = T.unsafe(nil)); end
# Mechanisms for accessing attributes and child elements of this
@@ -1875,7 +1875,7 @@ class REXML::Element < ::REXML::Parent
# cds.frozen? # => true
# cds.map {|cd| cd.class } # => [REXML::CData, REXML::CData]
#
- # source://rexml//lib/rexml/element.rb#1411
+ # source://rexml//lib/rexml/element.rb#1420
def cdatas; end
# :call-seq:
@@ -1908,7 +1908,7 @@ class REXML::Element < ::REXML::Parent
# cs.map {|c| c.class } # => [REXML::Comment, REXML::Comment]
# cs.map {|c| c.to_s } # => ["foo", "bar"]
#
- # source://rexml//lib/rexml/element.rb#1432
+ # source://rexml//lib/rexml/element.rb#1441
def comments; end
# The context holds information about the processing environment, such as
@@ -1934,7 +1934,7 @@ class REXML::Element < ::REXML::Parent
# e.delete_attribute('bar') # =>
# e.delete_attribute('bar') # => nil
#
- # source://rexml//lib/rexml/element.rb#1386
+ # source://rexml//lib/rexml/element.rb#1395
def delete_attribute(key); end
# :call-seq:
@@ -1974,7 +1974,7 @@ class REXML::Element < ::REXML::Parent
# a.delete_element('//c') # =>
# a.delete_element('//c') # => nil
#
- # source://rexml//lib/rexml/element.rb#769
+ # source://rexml//lib/rexml/element.rb#778
def delete_element(element); end
# :call-seq:
@@ -1999,7 +1999,7 @@ class REXML::Element < ::REXML::Parent
# d.root.delete_namespace('nosuch')
# d.to_s # => ""
#
- # source://rexml//lib/rexml/element.rb#678
+ # source://rexml//lib/rexml/element.rb#687
def delete_namespace(namespace = T.unsafe(nil)); end
# :call-seq:
@@ -2023,7 +2023,7 @@ class REXML::Element < ::REXML::Parent
#
# Related: #root, #root_node.
#
- # source://rexml//lib/rexml/element.rb#470
+ # source://rexml//lib/rexml/element.rb#475
def document; end
# :call-seq:
@@ -2042,7 +2042,7 @@ class REXML::Element < ::REXML::Parent
# ... >
#
#
- # source://rexml//lib/rexml/element.rb#921
+ # source://rexml//lib/rexml/element.rb#930
def each_element(xpath = T.unsafe(nil), &block); end
# :call-seq:
@@ -2094,7 +2094,7 @@ class REXML::Element < ::REXML::Parent
#
#
#
- # source://rexml//lib/rexml/element.rb#838
+ # source://rexml//lib/rexml/element.rb#847
def each_element_with_attribute(key, value = T.unsafe(nil), max = T.unsafe(nil), name = T.unsafe(nil), &block); end
# :call-seq:
@@ -2144,7 +2144,7 @@ class REXML::Element < ::REXML::Parent
#
# ... >
#
- # source://rexml//lib/rexml/element.rb#895
+ # source://rexml//lib/rexml/element.rb#904
def each_element_with_text(text = T.unsafe(nil), max = T.unsafe(nil), name = T.unsafe(nil), &block); end
# Mechanisms for accessing attributes and child elements of this
@@ -2168,7 +2168,7 @@ class REXML::Element < ::REXML::Parent
# d = REXML::Document.new(xml_string)
# d.root.get_elements('//a') # => [ ... >, ]
#
- # source://rexml//lib/rexml/element.rb#940
+ # source://rexml//lib/rexml/element.rb#949
def get_elements(xpath); end
# :call-seq:
@@ -2188,7 +2188,7 @@ class REXML::Element < ::REXML::Parent
#
# d.root.get_text(1) # => "this is bold!"
#
- # source://rexml//lib/rexml/element.rb#1044
+ # source://rexml//lib/rexml/element.rb#1053
def get_text(path = T.unsafe(nil)); end
# :call-seq:
@@ -2203,7 +2203,7 @@ class REXML::Element < ::REXML::Parent
#
# @return [Boolean]
#
- # source://rexml//lib/rexml/element.rb#1306
+ # source://rexml//lib/rexml/element.rb#1315
def has_attributes?; end
# :call-seq:
@@ -2220,7 +2220,7 @@ class REXML::Element < ::REXML::Parent
#
# @return [Boolean]
#
- # source://rexml//lib/rexml/element.rb#785
+ # source://rexml//lib/rexml/element.rb#794
def has_elements?; end
# :call-seq:
@@ -2237,7 +2237,7 @@ class REXML::Element < ::REXML::Parent
#
# @return [Boolean]
#
- # source://rexml//lib/rexml/element.rb#993
+ # source://rexml//lib/rexml/element.rb#1002
def has_text?; end
# :call-seq:
@@ -2247,7 +2247,7 @@ class REXML::Element < ::REXML::Parent
#
# See {Element Context}[../doc/rexml/context_rdoc.html].
#
- # source://rexml//lib/rexml/element.rb#508
+ # source://rexml//lib/rexml/element.rb#513
def ignore_whitespace_nodes; end
# :call-seq:
@@ -2291,7 +2291,7 @@ class REXML::Element < ::REXML::Parent
# is.map {|i| i.class } # => [REXML::Instruction, REXML::Instruction]
# is.map {|i| i.to_s } # => ["", ""]
#
- # source://rexml//lib/rexml/element.rb#1453
+ # source://rexml//lib/rexml/element.rb#1462
def instructions; end
# :call-seq:
@@ -2314,7 +2314,7 @@ class REXML::Element < ::REXML::Parent
# b.namespace('y') # => "2"
# b.namespace('nosuch') # => nil
#
- # source://rexml//lib/rexml/element.rb#613
+ # source://rexml//lib/rexml/element.rb#618
def namespace(prefix = T.unsafe(nil)); end
# :call-seq:
@@ -2336,7 +2336,7 @@ class REXML::Element < ::REXML::Parent
# d.elements['//b'].namespaces # => {"x"=>"1", "y"=>"2"}
# d.elements['//c'].namespaces # => {"x"=>"1", "y"=>"2", "z"=>"3"}
#
- # source://rexml//lib/rexml/element.rb#586
+ # source://rexml//lib/rexml/element.rb#591
def namespaces; end
# :call-seq:
@@ -2349,7 +2349,7 @@ class REXML::Element < ::REXML::Parent
# d.root.elements['b'].next_element #->
# d.root.elements['c'].next_element #-> nil
#
- # source://rexml//lib/rexml/element.rb#954
+ # source://rexml//lib/rexml/element.rb#963
def next_element; end
# :call-seq:
@@ -2361,7 +2361,7 @@ class REXML::Element < ::REXML::Parent
# a = d.root # =>
# a.node_type # => :element
#
- # source://rexml//lib/rexml/element.rb#1159
+ # source://rexml//lib/rexml/element.rb#1168
def node_type; end
# :call-seq:
@@ -2383,7 +2383,7 @@ class REXML::Element < ::REXML::Parent
# d.elements['//b'].prefixes # => ["x", "y"]
# d.elements['//c'].prefixes # => ["x", "y", "z"]
#
- # source://rexml//lib/rexml/element.rb#560
+ # source://rexml//lib/rexml/element.rb#565
def prefixes; end
# :call-seq:
@@ -2396,7 +2396,7 @@ class REXML::Element < ::REXML::Parent
# d.root.elements['c'].previous_element #->
# d.root.elements['b'].previous_element #-> nil
#
- # source://rexml//lib/rexml/element.rb#970
+ # source://rexml//lib/rexml/element.rb#979
def previous_element; end
# :call-seq:
@@ -2409,7 +2409,7 @@ class REXML::Element < ::REXML::Parent
# The evaluation is tested against +expanded_name+, and so is namespace
# sensitive.
#
- # source://rexml//lib/rexml/element.rb#528
+ # source://rexml//lib/rexml/element.rb#533
def raw; end
# :call-seq:
@@ -2494,7 +2494,7 @@ class REXML::Element < ::REXML::Parent
# Note also that the text note is retrieved by method get_text,
# and so is always normalized text.
#
- # source://rexml//lib/rexml/element.rb#1021
+ # source://rexml//lib/rexml/element.rb#1030
def text(path = T.unsafe(nil)); end
# :call-seq:
@@ -2522,7 +2522,7 @@ class REXML::Element < ::REXML::Parent
#
# d.root.text = nil #-> ''
#
- # source://rexml//lib/rexml/element.rb#1080
+ # source://rexml//lib/rexml/element.rb#1089
def text=(text); end
# :call-seq:
@@ -2537,7 +2537,7 @@ class REXML::Element < ::REXML::Parent
# ts.map {|t| t.class } # => [REXML::Text, REXML::Text]
# ts.map {|t| t.to_s } # => ["text", "more"]
#
- # source://rexml//lib/rexml/element.rb#1469
+ # source://rexml//lib/rexml/element.rb#1478
def texts; end
# :call-seq:
@@ -2551,7 +2551,7 @@ class REXML::Element < ::REXML::Parent
# The evaluation is tested against the element's +expanded_name+,
# and so is namespace-sensitive.
#
- # source://rexml//lib/rexml/element.rb#485
+ # source://rexml//lib/rexml/element.rb#490
def whitespace; end
# == DEPRECATED
@@ -2577,7 +2577,7 @@ class REXML::Element < ::REXML::Parent
# doc.write( out ) #-> doc is written to the string 'out'
# doc.write( $stdout ) #-> doc written to the console
#
- # source://rexml//lib/rexml/element.rb#1495
+ # source://rexml//lib/rexml/element.rb#1504
def write(output = T.unsafe(nil), indent = T.unsafe(nil), transitive = T.unsafe(nil), ie_hack = T.unsafe(nil)); end
# :call-seq:
@@ -2600,17 +2600,17 @@ class REXML::Element < ::REXML::Parent
# e = REXML::Element.new('foo')
# e.xpath # => "foo"
#
- # source://rexml//lib/rexml/element.rb#1183
+ # source://rexml//lib/rexml/element.rb#1192
def xpath; end
private
- # source://rexml//lib/rexml/element.rb#1512
+ # source://rexml//lib/rexml/element.rb#1521
def __to_xpath_helper(node); end
# A private helper method
#
- # source://rexml//lib/rexml/element.rb#1527
+ # source://rexml//lib/rexml/element.rb#1536
def each_with_something(test, max = T.unsafe(nil), name = T.unsafe(nil)); end
end
@@ -2664,7 +2664,7 @@ end
# elements = d.root.elements
# elements # => # ... >>
#
-# source://rexml//lib/rexml/element.rb#1582
+# source://rexml//lib/rexml/element.rb#1591
class REXML::Elements
include ::Enumerable
@@ -2681,7 +2681,7 @@ class REXML::Elements
#
# @return [Elements] a new instance of Elements
#
- # source://rexml//lib/rexml/element.rb#1595
+ # source://rexml//lib/rexml/element.rb#1604
def initialize(parent); end
# :call-seq:
@@ -2746,7 +2746,7 @@ class REXML::Elements
# element.parent # => ... >
# element.context # => {:raw=>:all}
#
- # source://rexml//lib/rexml/element.rb#1912
+ # source://rexml//lib/rexml/element.rb#1921
def <<(element = T.unsafe(nil)); end
# :call-seq:
@@ -2802,7 +2802,7 @@ class REXML::Elements
# eles[4, 'book'] # => ... >
# eles[5, 'book'] # => nil
#
- # source://rexml//lib/rexml/element.rb#1667
+ # source://rexml//lib/rexml/element.rb#1676
def [](index, name = T.unsafe(nil)); end
# :call-seq:
@@ -2841,7 +2841,7 @@ class REXML::Elements
# eles[50] = REXML::Text.new('bar') # => "bar"
# eles.size # => 5
#
- # source://rexml//lib/rexml/element.rb#1722
+ # source://rexml//lib/rexml/element.rb#1731
def []=(index, element); end
# :call-seq:
@@ -2906,7 +2906,7 @@ class REXML::Elements
# element.parent # => ... >
# element.context # => {:raw=>:all}
#
- # source://rexml//lib/rexml/element.rb#1912
+ # source://rexml//lib/rexml/element.rb#1921
def add(element = T.unsafe(nil)); end
# :call-seq:
@@ -2926,7 +2926,7 @@ class REXML::Elements
# xpath = '//book [@category="web"]'
# elements.collect(xpath) {|element| element.size } # => [17, 9]
#
- # source://rexml//lib/rexml/element.rb#1975
+ # source://rexml//lib/rexml/element.rb#1984
def collect(xpath = T.unsafe(nil)); end
# :call-seq:
@@ -2970,7 +2970,7 @@ class REXML::Elements
# elements.delete('//book [@category="children"]') # => ... >
# elements.delete('//nosuch') # => nil
#
- # source://rexml//lib/rexml/element.rb#1812
+ # source://rexml//lib/rexml/element.rb#1821
def delete(element); end
# :call-seq:
@@ -2990,7 +2990,7 @@ class REXML::Elements
# elements.size # => 0
# elements.delete_all('//book') # => []
#
- # source://rexml//lib/rexml/element.rb#1838
+ # source://rexml//lib/rexml/element.rb#1847
def delete_all(xpath); end
# :call-seq:
@@ -3021,7 +3021,7 @@ class REXML::Elements
# ... >
# ... >
#
- # source://rexml//lib/rexml/element.rb#1954
+ # source://rexml//lib/rexml/element.rb#1963
def each(xpath = T.unsafe(nil)); end
# :call-seq:
@@ -3036,7 +3036,7 @@ class REXML::Elements
#
# @return [Boolean]
#
- # source://rexml//lib/rexml/element.rb#1742
+ # source://rexml//lib/rexml/element.rb#1751
def empty?; end
# :call-seq:
@@ -3053,7 +3053,7 @@ class REXML::Elements
# elements.index(ele_4) # => 3
# elements.index(ele_3) # => -1
#
- # source://rexml//lib/rexml/element.rb#1760
+ # source://rexml//lib/rexml/element.rb#1769
def index(element); end
# :call-seq:
@@ -3133,7 +3133,7 @@ class REXML::Elements
# total += element.size
# end # => 26
#
- # source://rexml//lib/rexml/element.rb#2060
+ # source://rexml//lib/rexml/element.rb#2069
def inject(xpath = T.unsafe(nil), initial = T.unsafe(nil)); end
# :call-seq:
@@ -3147,7 +3147,7 @@ class REXML::Elements
# elements = REXML::Elements.new(d.root)
# elements.parent == d.root # => true
#
- # source://rexml//lib/rexml/element.rb#1610
+ # source://rexml//lib/rexml/element.rb#1619
def parent; end
# :call-seq:
@@ -3159,7 +3159,7 @@ class REXML::Elements
# d.root.elements.size # => 3 # Three elements.
# d.root.size # => 6 # Three elements plus three text nodes..
#
- # source://rexml//lib/rexml/element.rb#2084
+ # source://rexml//lib/rexml/element.rb#2093
def size; end
# :call-seq:
@@ -3180,14 +3180,14 @@ class REXML::Elements
#
# elements.to_a('//c') # => []
#
- # source://rexml//lib/rexml/element.rb#2108
+ # source://rexml//lib/rexml/element.rb#2117
def to_a(xpath = T.unsafe(nil)); end
private
# Private helper class. Removes quotes from quoted strings
#
- # source://rexml//lib/rexml/element.rb#2116
+ # source://rexml//lib/rexml/element.rb#2125
def literalize(name); end
end
@@ -3229,65 +3229,54 @@ class REXML::Entity < ::REXML::Child
#
# @return [Entity] a new instance of Entity
#
- # source://rexml//lib/rexml/entity.rb#33
+ # source://rexml//lib/rexml/entity.rb#34
def initialize(stream, value = T.unsafe(nil), parent = T.unsafe(nil), reference = T.unsafe(nil)); end
# Returns the value of attribute external.
#
- # source://rexml//lib/rexml/entity.rb#22
+ # source://rexml//lib/rexml/entity.rb#23
def external; end
# Returns the value of attribute name.
#
- # source://rexml//lib/rexml/entity.rb#22
+ # source://rexml//lib/rexml/entity.rb#23
def name; end
# Returns the value of attribute ndata.
#
- # source://rexml//lib/rexml/entity.rb#22
+ # source://rexml//lib/rexml/entity.rb#23
def ndata; end
# Returns the value of this entity unprocessed -- raw. This is the
# normalized value; that is, with all %ent; and &ent; entities intact
#
- # source://rexml//lib/rexml/entity.rb#85
+ # source://rexml//lib/rexml/entity.rb#83
def normalized; end
- # source://rexml//lib/rexml/entity.rb#138
- def parent=(other); end
-
# Returns the value of attribute pubid.
#
- # source://rexml//lib/rexml/entity.rb#22
+ # source://rexml//lib/rexml/entity.rb#23
def pubid; end
# Returns the value of attribute ref.
#
- # source://rexml//lib/rexml/entity.rb#22
+ # source://rexml//lib/rexml/entity.rb#23
def ref; end
# Returns this entity as a string. See write().
#
- # source://rexml//lib/rexml/entity.rb#119
+ # source://rexml//lib/rexml/entity.rb#117
def to_s; end
# Evaluates to the unnormalized value of this entity; that is, replacing
- # all entities -- both %ent; and &ent; entities. This differs from
- # +value()+ in that +value+ only replaces %ent; entities.
+ # &ent; entities.
#
# source://rexml//lib/rexml/entity.rb#73
def unnormalized; end
- # Returns the value of this entity. At the moment, only internal entities
- # are processed. If the value contains internal references (IE,
- # %blah;), those are replaced with their values. IE, if the doctype
- # contains:
- #
- #
- # then:
- # doctype.entity('yada').value #-> "nanoo bar nanoo"
+ # Returns the value of attribute value.
#
- # source://rexml//lib/rexml/entity.rb#134
+ # source://rexml//lib/rexml/entity.rb#23
def value; end
# Write out a fully formed, correct entity definition (assuming the Entity
@@ -3299,21 +3288,16 @@ class REXML::Entity < ::REXML::Child
# indent::
# *DEPRECATED* and ignored
#
- # source://rexml//lib/rexml/entity.rb#97
+ # source://rexml//lib/rexml/entity.rb#95
def write(out, indent = T.unsafe(nil)); end
- private
-
- # source://rexml//lib/rexml/entity.rb#144
- def resolve_value; end
-
class << self
# Evaluates whether the given string matches an entity definition,
# returning true if so, and false otherwise.
#
# @return [Boolean]
#
- # source://rexml//lib/rexml/entity.rb#66
+ # source://rexml//lib/rexml/entity.rb#67
def matches?(string); end
end
end
@@ -3883,41 +3867,41 @@ end
#
# Nat Price gave me some good ideas for the API.
#
-# source://rexml//lib/rexml/parsers/baseparser.rb#41
+# source://rexml//lib/rexml/parsers/baseparser.rb#57
class REXML::Parsers::BaseParser
# @return [BaseParser] a new instance of BaseParser
#
- # source://rexml//lib/rexml/parsers/baseparser.rb#145
+ # source://rexml//lib/rexml/parsers/baseparser.rb#162
def initialize(source); end
- # source://rexml//lib/rexml/parsers/baseparser.rb#152
+ # source://rexml//lib/rexml/parsers/baseparser.rb#169
def add_listener(listener); end
# Returns true if there are no more events
#
# @return [Boolean]
#
- # source://rexml//lib/rexml/parsers/baseparser.rb#180
+ # source://rexml//lib/rexml/parsers/baseparser.rb#198
def empty?; end
- # source://rexml//lib/rexml/parsers/baseparser.rb#507
+ # source://rexml//lib/rexml/parsers/baseparser.rb#530
def entity(reference, entities); end
# Returns the value of attribute entity_expansion_count.
#
- # source://rexml//lib/rexml/parsers/baseparser.rb#157
+ # source://rexml//lib/rexml/parsers/baseparser.rb#174
def entity_expansion_count; end
# Returns true if there are more events. Synonymous with !empty?
#
# @return [Boolean]
#
- # source://rexml//lib/rexml/parsers/baseparser.rb#185
+ # source://rexml//lib/rexml/parsers/baseparser.rb#203
def has_next?; end
# Escapes all possible entities
#
- # source://rexml//lib/rexml/parsers/baseparser.rb#520
+ # source://rexml//lib/rexml/parsers/baseparser.rb#541
def normalize(input, entities = T.unsafe(nil), entity_filter = T.unsafe(nil)); end
# Peek at the +depth+ event in the stack. The first element on the stack
@@ -3927,111 +3911,123 @@ class REXML::Parsers::BaseParser
# event, so you can effectively pre-parse the entire document (pull the
# entire thing into memory) using this method.
#
- # source://rexml//lib/rexml/parsers/baseparser.rb#201
+ # source://rexml//lib/rexml/parsers/baseparser.rb#219
def peek(depth = T.unsafe(nil)); end
- # source://rexml//lib/rexml/parsers/baseparser.rb#170
+ # source://rexml//lib/rexml/parsers/baseparser.rb#188
def position; end
# Returns the next event. This is a +PullEvent+ object.
#
- # source://rexml//lib/rexml/parsers/baseparser.rb#216
+ # source://rexml//lib/rexml/parsers/baseparser.rb#234
def pull; end
# Returns the value of attribute source.
#
- # source://rexml//lib/rexml/parsers/baseparser.rb#156
+ # source://rexml//lib/rexml/parsers/baseparser.rb#173
def source; end
- # source://rexml//lib/rexml/parsers/baseparser.rb#159
+ # source://rexml//lib/rexml/parsers/baseparser.rb#176
def stream=(source); end
# Unescapes all possible entities
#
- # source://rexml//lib/rexml/parsers/baseparser.rb#536
+ # source://rexml//lib/rexml/parsers/baseparser.rb#557
def unnormalize(string, entities = T.unsafe(nil), filter = T.unsafe(nil)); end
# Push an event back on the head of the stream. This method
# has (theoretically) infinite depth.
#
- # source://rexml//lib/rexml/parsers/baseparser.rb#191
+ # source://rexml//lib/rexml/parsers/baseparser.rb#209
def unshift(token); end
private
+ # source://rexml//lib/rexml/parsers/baseparser.rb#602
+ def add_namespace(prefix, uri); end
+
# @return [Boolean]
#
- # source://rexml//lib/rexml/parsers/baseparser.rb#582
+ # source://rexml//lib/rexml/parsers/baseparser.rb#635
def need_source_encoding_update?(xml_declaration_encoding); end
- # source://rexml//lib/rexml/parsers/baseparser.rb#702
- def parse_attributes(prefixes, curr_ns); end
+ # source://rexml//lib/rexml/parsers/baseparser.rb#755
+ def parse_attributes(prefixes); end
- # source://rexml//lib/rexml/parsers/baseparser.rb#601
+ # source://rexml//lib/rexml/parsers/baseparser.rb#654
def parse_id(base_error_message, accept_external_id:, accept_public_id:); end
- # source://rexml//lib/rexml/parsers/baseparser.rb#629
+ # source://rexml//lib/rexml/parsers/baseparser.rb#682
def parse_id_invalid_details(accept_external_id:, accept_public_id:); end
- # source://rexml//lib/rexml/parsers/baseparser.rb#588
+ # source://rexml//lib/rexml/parsers/baseparser.rb#641
def parse_name(base_error_message); end
- # source://rexml//lib/rexml/parsers/baseparser.rb#667
+ # source://rexml//lib/rexml/parsers/baseparser.rb#617
+ def pop_namespaces_restore; end
+
+ # source://rexml//lib/rexml/parsers/baseparser.rb#720
def process_instruction; end
- # source://rexml//lib/rexml/parsers/baseparser.rb#226
+ # source://rexml//lib/rexml/parsers/baseparser.rb#244
def pull_event; end
- # source://rexml//lib/rexml/parsers/baseparser.rb#575
- def record_entity_expansion; end
+ # source://rexml//lib/rexml/parsers/baseparser.rb#611
+ def push_namespaces_restore; end
+
+ # source://rexml//lib/rexml/parsers/baseparser.rb#628
+ def record_entity_expansion(delta = T.unsafe(nil)); end
end
-# source://rexml//lib/rexml/parsers/baseparser.rb#114
+# source://rexml//lib/rexml/parsers/baseparser.rb#130
REXML::Parsers::BaseParser::EXTERNAL_ID_PUBLIC = T.let(T.unsafe(nil), Regexp)
-# source://rexml//lib/rexml/parsers/baseparser.rb#115
+# source://rexml//lib/rexml/parsers/baseparser.rb#131
REXML::Parsers::BaseParser::EXTERNAL_ID_SYSTEM = T.let(T.unsafe(nil), Regexp)
-# source://rexml//lib/rexml/parsers/baseparser.rb#116
+# source://rexml//lib/rexml/parsers/baseparser.rb#132
REXML::Parsers::BaseParser::PUBLIC_ID = T.let(T.unsafe(nil), Regexp)
-# source://rexml//lib/rexml/parsers/baseparser.rb#127
+# source://rexml//lib/rexml/parsers/baseparser.rb#143
module REXML::Parsers::BaseParser::Private; end
-# source://rexml//lib/rexml/parsers/baseparser.rb#130
+# source://rexml//lib/rexml/parsers/baseparser.rb#147
REXML::Parsers::BaseParser::Private::ATTLISTDECL_END = T.let(T.unsafe(nil), Regexp)
-# source://rexml//lib/rexml/parsers/baseparser.rb#135
+# source://rexml//lib/rexml/parsers/baseparser.rb#152
REXML::Parsers::BaseParser::Private::CARRIAGE_RETURN_NEWLINE_PATTERN = T.let(T.unsafe(nil), Regexp)
-# source://rexml//lib/rexml/parsers/baseparser.rb#136
+# source://rexml//lib/rexml/parsers/baseparser.rb#153
REXML::Parsers::BaseParser::Private::CHARACTER_REFERENCES = T.let(T.unsafe(nil), Regexp)
-# source://rexml//lib/rexml/parsers/baseparser.rb#129
+# source://rexml//lib/rexml/parsers/baseparser.rb#146
REXML::Parsers::BaseParser::Private::CLOSE_PATTERN = T.let(T.unsafe(nil), Regexp)
-# source://rexml//lib/rexml/parsers/baseparser.rb#137
+# source://rexml//lib/rexml/parsers/baseparser.rb#154
REXML::Parsers::BaseParser::Private::DEFAULT_ENTITIES_PATTERNS = T.let(T.unsafe(nil), Hash)
-# source://rexml//lib/rexml/parsers/baseparser.rb#134
+# source://rexml//lib/rexml/parsers/baseparser.rb#151
REXML::Parsers::BaseParser::Private::ENTITYDECL_PATTERN = T.let(T.unsafe(nil), Regexp)
-# source://rexml//lib/rexml/parsers/baseparser.rb#132
+# source://rexml//lib/rexml/parsers/baseparser.rb#149
REXML::Parsers::BaseParser::Private::GEDECL_PATTERN = T.let(T.unsafe(nil), String)
-# source://rexml//lib/rexml/parsers/baseparser.rb#131
+# source://rexml//lib/rexml/parsers/baseparser.rb#148
REXML::Parsers::BaseParser::Private::NAME_PATTERN = T.let(T.unsafe(nil), Regexp)
-# source://rexml//lib/rexml/parsers/baseparser.rb#133
+# source://rexml//lib/rexml/parsers/baseparser.rb#150
REXML::Parsers::BaseParser::Private::PEDECL_PATTERN = T.let(T.unsafe(nil), String)
-# source://rexml//lib/rexml/parsers/baseparser.rb#128
+# source://rexml//lib/rexml/parsers/baseparser.rb#144
+REXML::Parsers::BaseParser::Private::PEREFERENCE_PATTERN = T.let(T.unsafe(nil), Regexp)
+
+# source://rexml//lib/rexml/parsers/baseparser.rb#145
REXML::Parsers::BaseParser::Private::TAG_PATTERN = T.let(T.unsafe(nil), Regexp)
-# source://rexml//lib/rexml/parsers/baseparser.rb#50
+# source://rexml//lib/rexml/parsers/baseparser.rb#66
REXML::Parsers::BaseParser::QNAME = T.let(T.unsafe(nil), Regexp)
-# source://rexml//lib/rexml/parsers/baseparser.rb#49
+# source://rexml//lib/rexml/parsers/baseparser.rb#65
REXML::Parsers::BaseParser::QNAME_STR = T.let(T.unsafe(nil), String)
# source://rexml//lib/rexml/parsers/streamparser.rb#6
@@ -4045,6 +4041,9 @@ class REXML::Parsers::StreamParser
def add_listener(listener); end
# source://rexml//lib/rexml/parsers/streamparser.rb#17
+ def entity_expansion_count; end
+
+ # source://rexml//lib/rexml/parsers/streamparser.rb#21
def parse; end
end
diff --git a/sorbet/rbi/gems/rubocop-ast@1.32.0.rbi b/sorbet/rbi/gems/rubocop-ast@1.32.1.rbi
similarity index 99%
rename from sorbet/rbi/gems/rubocop-ast@1.32.0.rbi
rename to sorbet/rbi/gems/rubocop-ast@1.32.1.rbi
index 880a0af..d63e4a9 100644
--- a/sorbet/rbi/gems/rubocop-ast@1.32.0.rbi
+++ b/sorbet/rbi/gems/rubocop-ast@1.32.1.rbi
@@ -1092,9 +1092,6 @@ module RuboCop::AST::CollectionNode
# source://forwardable/1.3.3/forwardable.rb#231
def to_ary(*args, **_arg1, &block); end
- # source://forwardable/1.3.3/forwardable.rb#231
- def to_default_s(*args, **_arg1, &block); end
-
# source://forwardable/1.3.3/forwardable.rb#231
def to_formatted_s(*args, **_arg1, &block); end
@@ -1420,6 +1417,14 @@ class RuboCop::AST::EnsureNode < ::RuboCop::AST::Node
#
# source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#12
def body; end
+
+ # Checks whether this node body is a void context.
+ # Always `true` for `ensure`.
+ #
+ # @return [true] whether the `ensure` node body is a void context
+ #
+ # source://rubocop-ast//lib/rubocop/ast/node/ensure_node.rb#20
+ def void_context?; end
end
# source://rubocop-ast//lib/rubocop/ast/ext/range.rb#5
diff --git a/sorbet/rbi/gems/securerandom@0.3.1.rbi b/sorbet/rbi/gems/securerandom@0.3.1.rbi
new file mode 100644
index 0000000..e2e1d29
--- /dev/null
+++ b/sorbet/rbi/gems/securerandom@0.3.1.rbi
@@ -0,0 +1,396 @@
+# typed: false
+
+# DO NOT EDIT MANUALLY
+# This is an autogenerated file for types exported from the `securerandom` gem.
+# Please instead update this file by running `bin/tapioca gem securerandom`.
+
+
+class Random::Base
+ include ::Random::Formatter
+ extend ::Random::Formatter
+
+ def initialize(*_arg0); end
+
+ def bytes(_arg0); end
+ def rand(*_arg0); end
+ def seed; end
+end
+
+# == \Random number formatter.
+#
+# Formats generated random numbers in many manners. When 'random/formatter'
+# is required, several methods are added to empty core module Random::Formatter,
+# making them available as Random's instance and module methods.
+#
+# Standard library SecureRandom is also extended with the module, and the methods
+# described below are available as a module methods in it.
+#
+# === Examples
+#
+# Generate random hexadecimal strings:
+#
+# require 'random/formatter'
+#
+# prng = Random.new
+# prng.hex(10) #=> "52750b30ffbc7de3b362"
+# prng.hex(10) #=> "92b15d6c8dc4beb5f559"
+# prng.hex(13) #=> "39b290146bea6ce975c37cfc23"
+# # or just
+# Random.hex #=> "1aed0c631e41be7f77365415541052ee"
+#
+# Generate random base64 strings:
+#
+# prng.base64(10) #=> "EcmTPZwWRAozdA=="
+# prng.base64(10) #=> "KO1nIU+p9DKxGg=="
+# prng.base64(12) #=> "7kJSM/MzBJI+75j8"
+# Random.base64(4) #=> "bsQ3fQ=="
+#
+# Generate random binary strings:
+#
+# prng.random_bytes(10) #=> "\016\t{\370g\310pbr\301"
+# prng.random_bytes(10) #=> "\323U\030TO\234\357\020\a\337"
+# Random.random_bytes(6) #=> "\xA1\xE6Lr\xC43"
+#
+# Generate alphanumeric strings:
+#
+# prng.alphanumeric(10) #=> "S8baxMJnPl"
+# prng.alphanumeric(10) #=> "aOxAg8BAJe"
+# Random.alphanumeric #=> "TmP9OsJHJLtaZYhP"
+#
+# Generate UUIDs:
+#
+# prng.uuid #=> "2d931510-d99f-494a-8c67-87feb05e1594"
+# prng.uuid #=> "bad85eb9-0713-4da7-8d36-07a8e4b00eab"
+# Random.uuid #=> "f14e0271-de96-45cc-8911-8910292a42cd"
+#
+# All methods are available in the standard library SecureRandom, too:
+#
+# SecureRandom.hex #=> "05b45376a30c67238eb93b16499e50cf"
+#
+# source://securerandom//lib/random/formatter.rb#55
+module Random::Formatter
+ # Generate a random alphanumeric string.
+ #
+ # The argument _n_ specifies the length, in characters, of the alphanumeric
+ # string to be generated.
+ # The argument _chars_ specifies the character list which the result is
+ # consist of.
+ #
+ # If _n_ is not specified or is nil, 16 is assumed.
+ # It may be larger in the future.
+ #
+ # The result may contain A-Z, a-z and 0-9, unless _chars_ is specified.
+ #
+ # require 'random/formatter'
+ #
+ # Random.alphanumeric #=> "2BuBuLf3WfSKyQbR"
+ # # or
+ # prng = Random.new
+ # prng.alphanumeric(10) #=> "i6K93NdqiH"
+ #
+ # Random.alphanumeric(4, chars: [*"0".."9"]) #=> "2952"
+ # # or
+ # prng = Random.new
+ # prng.alphanumeric(10, chars: [*"!".."/"]) #=> ",.,++%/''."
+ #
+ # source://securerandom//lib/random/formatter.rb#369
+ def alphanumeric(n = T.unsafe(nil), chars: T.unsafe(nil)); end
+
+ # Generate a random base64 string.
+ #
+ # The argument _n_ specifies the length, in bytes, of the random number
+ # to be generated. The length of the result string is about 4/3 of _n_.
+ #
+ # If _n_ is not specified or is nil, 16 is assumed.
+ # It may be larger in the future.
+ #
+ # The result may contain A-Z, a-z, 0-9, "+", "/" and "=".
+ #
+ # require 'random/formatter'
+ #
+ # Random.base64 #=> "/2BuBuLf3+WfSKyQbRcc/A=="
+ # # or
+ # prng = Random.new
+ # prng.base64 #=> "6BbW0pxO0YENxn38HMUbcQ=="
+ #
+ # See RFC 3548 for the definition of base64.
+ #
+ # source://securerandom//lib/random/formatter.rb#115
+ def base64(n = T.unsafe(nil)); end
+
+ # Generate a random hexadecimal string.
+ #
+ # The argument _n_ specifies the length, in bytes, of the random number to be generated.
+ # The length of the resulting hexadecimal string is twice of _n_.
+ #
+ # If _n_ is not specified or is nil, 16 is assumed.
+ # It may be larger in the future.
+ #
+ # The result may contain 0-9 and a-f.
+ #
+ # require 'random/formatter'
+ #
+ # Random.hex #=> "eb693ec8252cd630102fd0d0fb7c3485"
+ # # or
+ # prng = Random.new
+ # prng.hex #=> "91dc3bfb4de5b11d029d376634589b61"
+ #
+ # source://securerandom//lib/random/formatter.rb#93
+ def hex(n = T.unsafe(nil)); end
+
+ # Generate a random binary string.
+ #
+ # The argument _n_ specifies the length of the result string.
+ #
+ # If _n_ is not specified or is nil, 16 is assumed.
+ # It may be larger in future.
+ #
+ # The result may contain any byte: "\x00" - "\xff".
+ #
+ # require 'random/formatter'
+ #
+ # Random.random_bytes #=> "\xD8\\\xE0\xF4\r\xB2\xFC*WM\xFF\x83\x18\xF45\xB6"
+ # # or
+ # prng = Random.new
+ # prng.random_bytes #=> "m\xDC\xFC/\a\x00Uf\xB2\xB2P\xBD\xFF6S\x97"
+ #
+ # source://securerandom//lib/random/formatter.rb#72
+ def random_bytes(n = T.unsafe(nil)); end
+
+ # Generate a random URL-safe base64 string.
+ #
+ # The argument _n_ specifies the length, in bytes, of the random number
+ # to be generated. The length of the result string is about 4/3 of _n_.
+ #
+ # If _n_ is not specified or is nil, 16 is assumed.
+ # It may be larger in the future.
+ #
+ # The boolean argument _padding_ specifies the padding.
+ # If it is false or nil, padding is not generated.
+ # Otherwise padding is generated.
+ # By default, padding is not generated because "=" may be used as a URL delimiter.
+ #
+ # The result may contain A-Z, a-z, 0-9, "-" and "_".
+ # "=" is also used if _padding_ is true.
+ #
+ # require 'random/formatter'
+ #
+ # Random.urlsafe_base64 #=> "b4GOKm4pOYU_-BOXcrUGDg"
+ # # or
+ # prng = Random.new
+ # prng.urlsafe_base64 #=> "UZLdOkzop70Ddx-IJR0ABg"
+ #
+ # prng.urlsafe_base64(nil, true) #=> "i0XQ-7gglIsHGV2_BNPrdQ=="
+ # prng.urlsafe_base64(nil, true) #=> "-M8rLhr7JEpJlqFGUMmOxg=="
+ #
+ # See RFC 3548 for the definition of URL-safe base64.
+ #
+ # source://securerandom//lib/random/formatter.rb#146
+ def urlsafe_base64(n = T.unsafe(nil), padding = T.unsafe(nil)); end
+
+ # Generate a random v4 UUID (Universally Unique IDentifier).
+ #
+ # require 'random/formatter'
+ #
+ # Random.uuid #=> "2d931510-d99f-494a-8c67-87feb05e1594"
+ # Random.uuid #=> "bad85eb9-0713-4da7-8d36-07a8e4b00eab"
+ # # or
+ # prng = Random.new
+ # prng.uuid #=> "62936e70-1815-439b-bf89-8492855a7e6b"
+ #
+ # The version 4 UUID is purely random (except the version).
+ # It doesn't contain meaningful information such as MAC addresses, timestamps, etc.
+ #
+ # The result contains 122 random bits (15.25 random bytes).
+ #
+ # See RFC4122[https://datatracker.ietf.org/doc/html/rfc4122] for details of UUID.
+ #
+ # source://securerandom//lib/random/formatter.rb#170
+ def uuid; end
+
+ # Generate a random v4 UUID (Universally Unique IDentifier).
+ #
+ # require 'random/formatter'
+ #
+ # Random.uuid #=> "2d931510-d99f-494a-8c67-87feb05e1594"
+ # Random.uuid #=> "bad85eb9-0713-4da7-8d36-07a8e4b00eab"
+ # # or
+ # prng = Random.new
+ # prng.uuid #=> "62936e70-1815-439b-bf89-8492855a7e6b"
+ #
+ # The version 4 UUID is purely random (except the version).
+ # It doesn't contain meaningful information such as MAC addresses, timestamps, etc.
+ #
+ # The result contains 122 random bits (15.25 random bytes).
+ #
+ # See RFC4122[https://datatracker.ietf.org/doc/html/rfc4122] for details of UUID.
+ #
+ # source://securerandom//lib/random/formatter.rb#170
+ def uuid_v4; end
+
+ # Generate a random v7 UUID (Universally Unique IDentifier).
+ #
+ # require 'random/formatter'
+ #
+ # Random.uuid_v7 # => "0188d4c3-1311-7f96-85c7-242a7aa58f1e"
+ # Random.uuid_v7 # => "0188d4c3-16fe-744f-86af-38fa04c62bb5"
+ # Random.uuid_v7 # => "0188d4c3-1af8-764f-b049-c204ce0afa23"
+ # Random.uuid_v7 # => "0188d4c3-1e74-7085-b14f-ef6415dc6f31"
+ # # |<--sorted-->| |<----- random ---->|
+ #
+ # # or
+ # prng = Random.new
+ # prng.uuid_v7 # => "0188ca51-5e72-7950-a11d-def7ff977c98"
+ #
+ # The version 7 UUID starts with the least significant 48 bits of a 64 bit
+ # Unix timestamp (milliseconds since the epoch) and fills the remaining bits
+ # with random data, excluding the version and variant bits.
+ #
+ # This allows version 7 UUIDs to be sorted by creation time. Time ordered
+ # UUIDs can be used for better database index locality of newly inserted
+ # records, which may have a significant performance benefit compared to random
+ # data inserts.
+ #
+ # The result contains 74 random bits (9.25 random bytes).
+ #
+ # Note that this method cannot be made reproducable because its output
+ # includes not only random bits but also timestamp.
+ #
+ # See draft-ietf-uuidrev-rfc4122bis[https://datatracker.ietf.org/doc/draft-ietf-uuidrev-rfc4122bis/]
+ # for details of UUIDv7.
+ #
+ # ==== Monotonicity
+ #
+ # UUIDv7 has millisecond precision by default, so multiple UUIDs created
+ # within the same millisecond are not issued in monotonically increasing
+ # order. To create UUIDs that are time-ordered with sub-millisecond
+ # precision, up to 12 bits of additional timestamp may added with
+ # +extra_timestamp_bits+. The extra timestamp precision comes at the expense
+ # of random bits. Setting extra_timestamp_bits: 12 provides ~244ns
+ # of precision, but only 62 random bits (7.75 random bytes).
+ #
+ # prng = Random.new
+ # Array.new(4) { prng.uuid_v7(extra_timestamp_bits: 12) }
+ # # =>
+ # ["0188d4c7-13da-74f9-8b53-22a786ffdd5a",
+ # "0188d4c7-13da-753b-83a5-7fb9b2afaeea",
+ # "0188d4c7-13da-754a-88ea-ac0baeedd8db",
+ # "0188d4c7-13da-7557-83e1-7cad9cda0d8d"]
+ # # |<--- sorted --->| |<-- random --->|
+ #
+ # Array.new(4) { prng.uuid_v7(extra_timestamp_bits: 8) }
+ # # =>
+ # ["0188d4c7-3333-7a95-850a-de6edb858f7e",
+ # "0188d4c7-3333-7ae8-842e-bc3a8b7d0cf9", # <- out of order
+ # "0188d4c7-3333-7ae2-995a-9f135dc44ead", # <- out of order
+ # "0188d4c7-3333-7af9-87c3-8f612edac82e"]
+ # # |<--- sorted -->||<---- random --->|
+ #
+ # Any rollbacks of the system clock will break monotonicity. UUIDv7 is based
+ # on UTC, which excludes leap seconds and can rollback the clock. To avoid
+ # this, the system clock can synchronize with an NTP server configured to use
+ # a "leap smear" approach. NTP or PTP will also be needed to synchronize
+ # across distributed nodes.
+ #
+ # Counters and other mechanisms for stronger guarantees of monotonicity are
+ # not implemented. Applications with stricter requirements should follow
+ # {Section 6.2}[https://www.ietf.org/archive/id/draft-ietf-uuidrev-rfc4122bis-07.html#monotonicity_counters]
+ # of the specification.
+ #
+ # source://securerandom//lib/random/formatter.rb#248
+ def uuid_v7(extra_timestamp_bits: T.unsafe(nil)); end
+
+ private
+
+ # Generate a string that randomly draws from a
+ # source array of characters.
+ #
+ # The argument _source_ specifies the array of characters from which
+ # to generate the string.
+ # The argument _n_ specifies the length, in characters, of the string to be
+ # generated.
+ #
+ # The result may contain whatever characters are in the source array.
+ #
+ # require 'random/formatter'
+ #
+ # prng.choose([*'l'..'r'], 16) #=> "lmrqpoonmmlqlron"
+ # prng.choose([*'0'..'9'], 5) #=> "27309"
+ #
+ # source://securerandom//lib/random/formatter.rb#314
+ def choose(source, n); end
+
+ # Internal interface to Random; Generate random data _n_ bytes.
+ #
+ # source://securerandom//lib/random/formatter.rb#296
+ def gen_random(n); end
+end
+
+# == Secure random number generator interface.
+#
+# This library is an interface to secure random number generators which are
+# suitable for generating session keys in HTTP cookies, etc.
+#
+# You can use this library in your application by requiring it:
+#
+# require 'securerandom'
+#
+# It supports the following secure random number generators:
+#
+# * openssl
+# * /dev/urandom
+# * Win32
+#
+# SecureRandom is extended by the Random::Formatter module which
+# defines the following methods:
+#
+# * alphanumeric
+# * base64
+# * choose
+# * gen_random
+# * hex
+# * rand
+# * random_bytes
+# * random_number
+# * urlsafe_base64
+# * uuid
+#
+# These methods are usable as class methods of SecureRandom such as
+# +SecureRandom.hex+.
+#
+# If a secure random number generator is not available,
+# +NotImplementedError+ is raised.
+#
+# source://securerandom//lib/securerandom.rb#41
+module SecureRandom
+ extend ::Random::Formatter
+
+ class << self
+ # Returns a random binary string containing +size+ bytes.
+ #
+ # See Random.bytes
+ #
+ # source://securerandom//lib/securerandom.rb#50
+ def bytes(n); end
+
+ # source://securerandom//lib/securerandom.rb#64
+ def gen_random(n); end
+
+ private
+
+ # Implementation using OpenSSL
+ #
+ # source://securerandom//lib/securerandom.rb#59
+ def gen_random_openssl(n); end
+
+ # Implementation using system random device
+ #
+ # source://securerandom//lib/securerandom.rb#64
+ def gen_random_urandom(n); end
+ end
+end
+
+# The version
+#
+# source://securerandom//lib/securerandom.rb#44
+SecureRandom::VERSION = T.let(T.unsafe(nil), String)
diff --git a/sorbet/rbi/gems/spoom@1.4.2.rbi b/sorbet/rbi/gems/spoom@1.4.2.rbi
index f281022..6a92ad3 100644
--- a/sorbet/rbi/gems/spoom@1.4.2.rbi
+++ b/sorbet/rbi/gems/spoom@1.4.2.rbi
@@ -1004,7 +1004,7 @@ class Spoom::Coverage::D3::ColorPalette < ::T::Struct
prop :strong, ::String
class << self
- # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11547/lib/types/struct.rb#13
def inherited(s); end
end
end
@@ -1344,7 +1344,7 @@ class Spoom::Coverage::Snapshot < ::T::Struct
sig { params(obj: T::Hash[::String, T.untyped]).returns(::Spoom::Coverage::Snapshot) }
def from_obj(obj); end
- # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11547/lib/types/struct.rb#13
def inherited(s); end
end
end
@@ -1480,7 +1480,7 @@ class Spoom::Deadcode::Definition < ::T::Struct
def to_json(*args); end
class << self
- # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11547/lib/types/struct.rb#13
def inherited(s); end
end
end
@@ -2368,7 +2368,7 @@ class Spoom::Deadcode::Send < ::T::Struct
def each_arg_assoc(&block); end
class << self
- # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11547/lib/types/struct.rb#13
def inherited(s); end
end
end
@@ -2388,7 +2388,7 @@ class Spoom::ExecResult < ::T::Struct
def to_s; end
class << self
- # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11547/lib/types/struct.rb#13
def inherited(s); end
end
end
@@ -2586,7 +2586,7 @@ class Spoom::FileTree::Node < ::T::Struct
def path; end
class << self
- # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11547/lib/types/struct.rb#13
def inherited(s); end
end
end
@@ -2652,7 +2652,7 @@ class Spoom::Git::Commit < ::T::Struct
def timestamp; end
class << self
- # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11547/lib/types/struct.rb#13
def inherited(s); end
# Parse a line formatted as `%h %at` into a `Commit`
@@ -2764,7 +2764,7 @@ class Spoom::LSP::Diagnostic < ::T::Struct
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Diagnostic) }
def from_json(json); end
- # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11547/lib/types/struct.rb#13
def inherited(s); end
end
end
@@ -2797,7 +2797,7 @@ class Spoom::LSP::DocumentSymbol < ::T::Struct
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::DocumentSymbol) }
def from_json(json); end
- # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11547/lib/types/struct.rb#13
def inherited(s); end
end
end
@@ -2855,7 +2855,7 @@ class Spoom::LSP::Hover < ::T::Struct
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Hover) }
def from_json(json); end
- # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11547/lib/types/struct.rb#13
def inherited(s); end
end
end
@@ -2880,7 +2880,7 @@ class Spoom::LSP::Location < ::T::Struct
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Location) }
def from_json(json); end
- # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11547/lib/types/struct.rb#13
def inherited(s); end
end
end
@@ -2943,7 +2943,7 @@ class Spoom::LSP::Position < ::T::Struct
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Position) }
def from_json(json); end
- # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11547/lib/types/struct.rb#13
def inherited(s); end
end
end
@@ -2981,7 +2981,7 @@ class Spoom::LSP::Range < ::T::Struct
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Range) }
def from_json(json); end
- # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11547/lib/types/struct.rb#13
def inherited(s); end
end
end
@@ -3047,7 +3047,7 @@ class Spoom::LSP::SignatureHelp < ::T::Struct
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::SignatureHelp) }
def from_json(json); end
- # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11547/lib/types/struct.rb#13
def inherited(s); end
end
end
@@ -3473,7 +3473,7 @@ class Spoom::Model::Reference < ::T::Struct
sig { params(name: ::String, location: ::Spoom::Location).returns(::Spoom::Model::Reference) }
def constant(name, location); end
- # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11547/lib/types/struct.rb#13
def inherited(s); end
# source://spoom//lib/spoom/model/reference.rb#29
diff --git a/sorbet/rbi/gems/tapioca@0.16.0.rbi b/sorbet/rbi/gems/tapioca@0.16.1.rbi
similarity index 96%
rename from sorbet/rbi/gems/tapioca@0.16.0.rbi
rename to sorbet/rbi/gems/tapioca@0.16.1.rbi
index 2e3d88a..6671c88 100644
--- a/sorbet/rbi/gems/tapioca@0.16.0.rbi
+++ b/sorbet/rbi/gems/tapioca@0.16.1.rbi
@@ -206,7 +206,7 @@ class RBI::TypedParam < ::T::Struct
const :type, ::String
class << self
- # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11547/lib/types/struct.rb#13
def inherited(s); end
end
end
@@ -665,11 +665,11 @@ class Tapioca::Commands::AbstractGem < ::Tapioca::Commands::Command
private
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#223
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#230
sig { returns(T::Array[::String]) }
def added_rbis; end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#284
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#291
sig { params(cause: ::Symbol, files: T::Array[::String]).returns(::String) }
def build_error_for_files(cause, files); end
@@ -677,19 +677,19 @@ class Tapioca::Commands::AbstractGem < ::Tapioca::Commands::Command
sig { params(gem: ::Tapioca::Gemfile::GemSpec).void }
def compile_gem_rbi(gem); end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#218
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#225
sig { params(gem_name: ::String).returns(::Pathname) }
def existing_rbi(gem_name); end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#266
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#273
sig { returns(T::Hash[::String, ::String]) }
def existing_rbis; end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#230
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#237
sig { params(gem_name: ::String).returns(::Pathname) }
def expected_rbi(gem_name); end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#272
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#279
sig { returns(T::Hash[::String, ::String]) }
def expected_rbis; end
@@ -702,11 +702,11 @@ class Tapioca::Commands::AbstractGem < ::Tapioca::Commands::Command
end
def gem_dependencies(gem, dependencies = T.unsafe(nil)); end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#235
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#242
sig { params(gem_name: ::String).returns(T::Boolean) }
def gem_rbi_exists?(gem_name); end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#279
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#286
sig { params(gem_name: ::String, version: ::String).returns(::Pathname) }
def gem_rbi_filename(gem_name, version); end
@@ -714,27 +714,27 @@ class Tapioca::Commands::AbstractGem < ::Tapioca::Commands::Command
sig { params(gem_names: T::Array[::String]).returns(T::Array[::Tapioca::Gemfile::GemSpec]) }
def gems_to_generate(gem_names); end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#289
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#296
sig { params(gem: ::Tapioca::Gemfile::GemSpec, file: ::RBI::File).void }
def merge_with_exported_rbi(gem, file); end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#260
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#267
sig { params(old_filename: ::Pathname, new_filename: ::Pathname).void }
def move(old_filename, new_filename); end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#170
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#177
sig { void }
def perform_additions; end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#143
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#150
sig { void }
def perform_removals; end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#213
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#220
sig { returns(T::Array[::String]) }
def removed_rbis; end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#240
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#247
sig { params(diff: T::Hash[::String, ::Symbol], command: ::Symbol).void }
def report_diff_and_exit_if_out_of_date(diff, command); end
end
@@ -1129,7 +1129,7 @@ class Tapioca::ConfigHelper::ConfigError < ::T::Struct
const :message_parts, T::Array[::Tapioca::ConfigHelper::ConfigErrorMessagePart]
class << self
- # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11547/lib/types/struct.rb#13
def inherited(s); end
end
end
@@ -1140,7 +1140,7 @@ class Tapioca::ConfigHelper::ConfigErrorMessagePart < ::T::Struct
const :colors, T::Array[::Symbol]
class << self
- # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11547/lib/types/struct.rb#13
def inherited(s); end
end
end
@@ -1595,6 +1595,10 @@ class Tapioca::Gem::Listeners::Methods < ::Tapioca::Gem::Listeners::Base
sig { params(constant: ::Module).returns(T.nilable(::UnboundMethod)) }
def initialize_method_for(constant); end
+ # source://tapioca//lib/tapioca/gem/listeners/methods.rb#216
+ sig { params(method: ::UnboundMethod).returns(T.untyped) }
+ def lookup_signature_of(method); end
+
# source://tapioca//lib/tapioca/gem/listeners/methods.rb#172
sig { params(mod: ::Module).returns(T::Hash[::Symbol, T::Array[::Symbol]]) }
def method_names_by_visibility(mod); end
@@ -1924,49 +1928,60 @@ class Tapioca::Gem::Pipeline
include ::Tapioca::SorbetHelper
include ::Tapioca::RBIHelper
- # source://tapioca//lib/tapioca/gem/pipeline.rb#17
- sig { params(gem: ::Tapioca::Gemfile::GemSpec, include_doc: T::Boolean, include_loc: T::Boolean).void }
- def initialize(gem, include_doc: T.unsafe(nil), include_loc: T.unsafe(nil)); end
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#27
+ sig do
+ params(
+ gem: ::Tapioca::Gemfile::GemSpec,
+ error_handler: T.proc.params(error: ::String).void,
+ include_doc: T::Boolean,
+ include_loc: T::Boolean
+ ).void
+ end
+ def initialize(gem, error_handler:, include_doc: T.unsafe(nil), include_loc: T.unsafe(nil)); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#48
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#64
sig { returns(::RBI::Tree) }
def compile; end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#119
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#135
sig { params(name: T.any(::String, ::Symbol)).returns(T::Boolean) }
def constant_in_gem?(name); end
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#17
+ sig { returns(T.proc.params(error: ::String).void) }
+ def error_handler; end
+
# source://tapioca//lib/tapioca/gem/pipeline.rb#14
sig { returns(::Tapioca::Gemfile::GemSpec) }
def gem; end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#137
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#153
sig { params(method: ::UnboundMethod).returns(T::Boolean) }
def method_in_gem?(method); end
# Helpers
#
- # source://tapioca//lib/tapioca/gem/pipeline.rb#147
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#163
sig { params(constant: ::Module).returns(T.nilable(::String)) }
def name_of(constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#71
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#87
sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Const).void }
def push_const(symbol, constant, node); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#61
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#77
sig { params(symbol: ::String, constant: ::BasicObject).void }
def push_constant(symbol, constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#66
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#82
sig { params(symbol: ::String, constant: ::Module).void }
def push_foreign_constant(symbol, constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#85
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#101
sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void }
def push_foreign_scope(symbol, constant, node); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#99
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#115
sig do
params(
symbol: ::String,
@@ -1979,137 +1994,137 @@ class Tapioca::Gem::Pipeline
end
def push_method(symbol, constant, method, node, signature, parameters); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#78
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#94
sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void }
def push_scope(symbol, constant, node); end
# Events handling
#
- # source://tapioca//lib/tapioca/gem/pipeline.rb#56
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#72
sig { params(symbol: ::String).void }
def push_symbol(symbol); end
# Constants and properties filtering
#
- # source://tapioca//lib/tapioca/gem/pipeline.rb#106
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#122
sig { params(symbol_name: ::String).returns(T::Boolean) }
def symbol_in_payload?(symbol_name); end
private
- # source://tapioca//lib/tapioca/gem/pipeline.rb#440
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#456
sig { params(name: ::String).void }
def add_to_alias_namespace(name); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#445
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#461
sig { params(name: ::String).returns(T::Boolean) }
def alias_namespaced?(name); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#244
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#260
sig { params(name: ::String, constant: ::Module).void }
def compile_alias(name, constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#230
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#246
sig { params(symbol: ::String, constant: ::BasicObject).void }
def compile_constant(symbol, constant); end
# Compiling
#
- # source://tapioca//lib/tapioca/gem/pipeline.rb#219
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#235
sig { params(symbol: ::String, constant: ::Module).void }
def compile_foreign_constant(symbol, constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#298
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#314
sig { params(name: ::String, constant: ::Module).void }
def compile_module(name, constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#265
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#281
sig { params(name: ::String, value: ::BasicObject).void }
def compile_object(name, value); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#309
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#325
sig { params(name: ::String, constant: ::Module).returns(::RBI::Scope) }
def compile_scope(name, constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#323
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#339
sig { params(constant: T::Class[T.anything]).returns(T.nilable(::String)) }
def compile_superclass(constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#421
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#437
sig { params(constant: ::Module, strict: T::Boolean).returns(T::Boolean) }
def defined_in_gem?(constant, strict: T.unsafe(nil)); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#177
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#193
sig { params(event: ::Tapioca::Gem::Event).void }
def dispatch(event); end
# Helpers
#
- # source://tapioca//lib/tapioca/gem/pipeline.rb#464
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#480
sig { params(constant: T.all(::Module, ::T::Generic)).returns(::String) }
def generic_name_of(constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#433
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#449
sig { params(constant: ::Module).returns(T::Set[::String]) }
def get_file_candidates(constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#162
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#178
sig { params(gem: ::Tapioca::Gemfile::GemSpec).returns(T::Set[::String]) }
def load_bootstrap_symbols(gem); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#480
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#496
sig { params(constant: ::Module, class_name: T.nilable(::String)).returns(T.nilable(::String)) }
def name_of_proxy_target(constant, class_name); end
# Events handling
#
- # source://tapioca//lib/tapioca/gem/pipeline.rb#172
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#188
sig { returns(::Tapioca::Gem::Event) }
def next_event; end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#200
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#216
sig { params(event: ::Tapioca::Gem::ConstantFound).void }
def on_constant(event); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#212
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#228
sig { params(event: ::Tapioca::Gem::NodeAdded).void }
def on_node(event); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#191
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#207
sig { params(event: ::Tapioca::Gem::SymbolFound).void }
def on_symbol(event); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#452
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#468
sig { params(name: ::String).void }
def seen!(name); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#457
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#473
sig { params(name: ::String).returns(T::Boolean) }
def seen?(name); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#391
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#407
sig { params(name: ::String, constant: ::Module).returns(T::Boolean) }
def skip_alias?(name, constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#379
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#395
sig { params(name: ::String, constant: T.anything).returns(T::Boolean) }
def skip_constant?(name, constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#408
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#424
sig { params(name: ::String, constant: ::Module).returns(T::Boolean) }
def skip_foreign_constant?(name, constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#413
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#429
sig { params(name: ::String, constant: ::Module).returns(T::Boolean) }
def skip_module?(name, constant); end
- # source://tapioca//lib/tapioca/gem/pipeline.rb#400
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#416
sig { params(name: ::String, constant: ::BasicObject).returns(T::Boolean) }
def skip_object?(name, constant); end
# Constants and properties filtering
#
- # source://tapioca//lib/tapioca/gem/pipeline.rb#374
+ # source://tapioca//lib/tapioca/gem/pipeline.rb#390
sig { params(name: ::String).returns(T::Boolean) }
def skip_symbol?(name); end
end
@@ -2118,7 +2133,7 @@ end
# "(eval at /path/to/file.rb:123)"
# and we are just interested in the "/path/to/file.rb" part
#
-# source://tapioca//lib/tapioca/gem/pipeline.rb#116
+# source://tapioca//lib/tapioca/gem/pipeline.rb#132
Tapioca::Gem::Pipeline::EVAL_SOURCE_FILE_PATTERN = T.let(T.unsafe(nil), Regexp)
# source://tapioca//lib/tapioca/gem/pipeline.rb#11
@@ -2181,7 +2196,7 @@ class Tapioca::GemInfo < ::T::Struct
sig { params(spec: ::Bundler::LazySpecification).returns(::Tapioca::GemInfo) }
def from_spec(spec); end
- # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11547/lib/types/struct.rb#13
def inherited(s); end
end
end
@@ -2661,8 +2676,8 @@ class Tapioca::Loaders::Loader
# @param engine [T.class_of(Rails::Engine)]
# @return [Array]
#
- # source://sorbet-runtime/0.5.11514/lib/types/private/methods/_methods.rb#257
- def eager_load_paths(*args, **_arg1, &blk); end
+ # source://tapioca//lib/tapioca/loaders/loader.rb#234
+ def eager_load_paths(engine); end
# source://tapioca//lib/tapioca/loaders/loader.rb#199
sig { void }
@@ -3091,7 +3106,7 @@ class Tapioca::Runtime::GenericTypeRegistry::GenericType < ::T::Types::Simple
def initialize(raw_type, underlying_type); end
# source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#45
- sig { params(obj: T.untyped).returns(T::Boolean) }
+ sig { override.params(obj: T.untyped).returns(T::Boolean) }
def valid?(obj); end
end
@@ -3100,7 +3115,7 @@ module Tapioca::Runtime::Reflection
extend ::Tapioca::Runtime::AttachedClassOf
extend ::Tapioca::Runtime::Reflection
- # source://tapioca//lib/tapioca/runtime/reflection.rb#196
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#201
sig { params(constant: ::Module).returns(T.untyped) }
def abstract_type_of(constant); end
@@ -3144,7 +3159,7 @@ module Tapioca::Runtime::Reflection
# class D < C; end
# descendants_of(C) # => [B, A, D]
#
- # source://tapioca//lib/tapioca/runtime/reflection.rb#167
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#172
sig do
type_parameters(:U)
.params(
@@ -3153,11 +3168,11 @@ module Tapioca::Runtime::Reflection
end
def descendants_of(klass); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#189
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#194
sig { params(constant: ::Module).returns(T::Set[::String]) }
def file_candidates_for(constant); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#202
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#207
sig { params(constant: ::Module).returns(T::Boolean) }
def final_module?(constant); end
@@ -3165,7 +3180,7 @@ module Tapioca::Runtime::Reflection
sig { params(constant: ::Module).returns(T::Array[::Module]) }
def inherited_ancestors_of(constant); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#145
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#150
sig { params(constant: ::Module, method: ::Symbol).returns(::Method) }
def method_of(constant, method); end
@@ -3173,7 +3188,7 @@ module Tapioca::Runtime::Reflection
sig { params(constant: ::Module).returns(T.nilable(::String)) }
def name_of(constant); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#140
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#145
sig { params(type: ::T::Types::Base).returns(::String) }
def name_of_type(type); end
@@ -3201,18 +3216,22 @@ module Tapioca::Runtime::Reflection
# by searching for the label "". If none is found, it returns the location
# labeled "", which is the original call site.
#
- # source://tapioca//lib/tapioca/runtime/reflection.rb#179
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#184
sig { params(locations: T.nilable(T::Array[::Thread::Backtrace::Location])).returns(::String) }
def resolve_loc(locations); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#207
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#212
sig { params(constant: ::Module).returns(T::Boolean) }
def sealed_module?(constant); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#133
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#138
sig { params(method: T.any(::Method, ::UnboundMethod)).returns(T.untyped) }
def signature_of(method); end
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#133
+ sig { params(method: T.any(::Method, ::UnboundMethod)).returns(T.untyped) }
+ def signature_of!(method); end
+
# source://tapioca//lib/tapioca/runtime/reflection.rb#72
sig { params(constant: ::Module).returns(T::Class[T.anything]) }
def singleton_class_of(constant); end
@@ -3223,23 +3242,23 @@ module Tapioca::Runtime::Reflection
private
- # source://tapioca//lib/tapioca/runtime/reflection.rb#244
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#249
sig { params(parent: ::Module, name: ::String).returns(T.nilable(::Module)) }
def child_module_for_parent_with_name(parent, name); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#260
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#265
sig { params(name: ::String).returns(T::Boolean) }
def has_aliased_namespace?(name); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#255
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#260
sig { params(method: ::UnboundMethod).returns(T::Boolean) }
def method_defined_by_forwardable_module?(method); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#230
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#235
sig { params(constant: ::Module).returns(T::Array[::UnboundMethod]) }
def methods_for(constant); end
- # source://tapioca//lib/tapioca/runtime/reflection.rb#214
+ # source://tapioca//lib/tapioca/runtime/reflection.rb#219
sig { params(constant: ::Module).returns(T::Array[::UnboundMethod]) }
def relevant_methods_for(constant); end
end
@@ -3569,8 +3588,8 @@ module Tapioca::Static::SymbolLoader
# @return [Array]
#
- # source://sorbet-runtime/0.5.11514/lib/types/private/methods/_methods.rb#257
- def engines(*args, **_arg1, &blk); end
+ # source://tapioca//lib/tapioca/static/symbol_loader.rb#69
+ def engines; end
# source://tapioca//lib/tapioca/static/symbol_loader.rb#82
sig { params(input: ::String, table_type: ::String).returns(::String) }
diff --git a/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi b/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi
index 2293beb..5e5265c 100644
--- a/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi
+++ b/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi
@@ -388,7 +388,7 @@ class YARDSorbet::TStructProp < ::T::Struct
const :types, T::Array[::String]
class << self
- # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11547/lib/types/struct.rb#13
def inherited(s); end
end
end
diff --git a/sorbet/rbi/gems/yard@0.9.36.rbi b/sorbet/rbi/gems/yard@0.9.36.rbi
index 8b34fbd..3f22b57 100644
--- a/sorbet/rbi/gems/yard@0.9.36.rbi
+++ b/sorbet/rbi/gems/yard@0.9.36.rbi
@@ -7637,7 +7637,7 @@ class YARD::Logger < ::Logger
# source://yard//lib/yard/logging.rb#201
def format_log(sev, _time, _prog, msg); end
- # source://logger/1.6.0/logger.rb#684
+ # source://logger/1.6.0/lib/logger.rb#684
def print_no_newline(msg); end
class << self