"a"*1_000_000_000:
+#
+# require 'benchmark'
+#
+# puts Benchmark.measure { "a"*1_000_000_000 }
+#
+# On my machine (OSX 10.8.3 on i5 1.7 GHz) this generates:
+#
+# 0.350000 0.400000 0.750000 ( 0.835234)
+#
+# This report shows the user CPU time, system CPU time, the total time
+# (sum of user CPU time, system CPU time, children's user CPU time,
+# and children's system CPU time), and the elapsed real time. The unit
+# of time is seconds.
+#
+# * Do some experiments sequentially using the #bm method:
+#
+# require 'benchmark'
+#
+# n = 5000000
+# Benchmark.bm do |x|
+# x.report { for i in 1..n; a = "1"; end }
+# x.report { n.times do ; a = "1"; end }
+# x.report { 1.upto(n) do ; a = "1"; end }
+# end
+#
+# The result:
+#
+# user system total real
+# 1.010000 0.000000 1.010000 ( 1.014479)
+# 1.000000 0.000000 1.000000 ( 0.998261)
+# 0.980000 0.000000 0.980000 ( 0.981335)
+#
+# * Continuing the previous example, put a label in each report:
+#
+# require 'benchmark'
+#
+# n = 5000000
+# Benchmark.bm(7) do |x|
+# x.report("for:") { for i in 1..n; a = "1"; end }
+# x.report("times:") { n.times do ; a = "1"; end }
+# x.report("upto:") { 1.upto(n) do ; a = "1"; end }
+# end
+#
+# The result:
+#
+# user system total real
+# for: 1.010000 0.000000 1.010000 ( 1.015688)
+# times: 1.000000 0.000000 1.000000 ( 1.003611)
+# upto: 1.030000 0.000000 1.030000 ( 1.028098)
+#
+# * The times for some benchmarks depend on the order in which items
+# are run. These differences are due to the cost of memory
+# allocation and garbage collection. To avoid these discrepancies,
+# the #bmbm method is provided. For example, to compare ways to
+# sort an array of floats:
+#
+# require 'benchmark'
+#
+# array = (1..1000000).map { rand }
+#
+# Benchmark.bmbm do |x|
+# x.report("sort!") { array.dup.sort! }
+# x.report("sort") { array.dup.sort }
+# end
+#
+# The result:
+#
+# Rehearsal -----------------------------------------
+# sort! 1.490000 0.010000 1.500000 ( 1.490520)
+# sort 1.460000 0.000000 1.460000 ( 1.463025)
+# -------------------------------- total: 2.960000sec
+#
+# user system total real
+# sort! 1.460000 0.000000 1.460000 ( 1.460465)
+# sort 1.450000 0.010000 1.460000 ( 1.448327)
+#
+# * Report statistics of sequential experiments with unique labels,
+# using the #benchmark method:
+#
+# require 'benchmark'
+# include Benchmark # we need the CAPTION and FORMAT constants
+#
+# n = 5000000
+# Benchmark.benchmark(CAPTION, 7, FORMAT, ">total:", ">avg:") do |x|
+# tf = x.report("for:") { for i in 1..n; a = "1"; end }
+# tt = x.report("times:") { n.times do ; a = "1"; end }
+# tu = x.report("upto:") { 1.upto(n) do ; a = "1"; end }
+# [tf+tt+tu, (tf+tt+tu)/3]
+# end
+#
+# The result:
+#
+# user system total real
+# for: 0.950000 0.000000 0.950000 ( 0.952039)
+# times: 0.980000 0.000000 0.980000 ( 0.984938)
+# upto: 0.950000 0.000000 0.950000 ( 0.946787)
+# >total: 2.880000 0.000000 2.880000 ( 2.883764)
+# >avg: 0.960000 0.000000 0.960000 ( 0.961255)
+#
+# source://benchmark//lib/benchmark.rb#123
+module Benchmark
+ private
+
+ # Invokes the block with a Benchmark::Report object, which
+ # may be used to collect and report on the results of individual
+ # benchmark tests. Reserves +label_width+ leading spaces for
+ # labels on each line. Prints +caption+ at the top of the
+ # report, and uses +format+ to format each line.
+ # (Note: +caption+ must contain a terminating newline character,
+ # see the default Benchmark::Tms::CAPTION for an example.)
+ #
+ # Returns an array of Benchmark::Tms objects.
+ #
+ # If the block returns an array of
+ # Benchmark::Tms objects, these will be used to format
+ # additional lines of output. If +labels+ parameter are
+ # given, these are used to label these extra lines.
+ #
+ # _Note_: Other methods provide a simpler interface to this one, and are
+ # suitable for nearly all benchmarking requirements. See the examples in
+ # Benchmark, and the #bm and #bmbm methods.
+ #
+ # Example:
+ #
+ # require 'benchmark'
+ # include Benchmark # we need the CAPTION and FORMAT constants
+ #
+ # n = 5000000
+ # Benchmark.benchmark(CAPTION, 7, FORMAT, ">total:", ">avg:") do |x|
+ # tf = x.report("for:") { for i in 1..n; a = "1"; end }
+ # tt = x.report("times:") { n.times do ; a = "1"; end }
+ # tu = x.report("upto:") { 1.upto(n) do ; a = "1"; end }
+ # [tf+tt+tu, (tf+tt+tu)/3]
+ # end
+ #
+ # Generates:
+ #
+ # user system total real
+ # for: 0.970000 0.000000 0.970000 ( 0.970493)
+ # times: 0.990000 0.000000 0.990000 ( 0.989542)
+ # upto: 0.970000 0.000000 0.970000 ( 0.972854)
+ # >total: 2.930000 0.000000 2.930000 ( 2.932889)
+ # >avg: 0.976667 0.000000 0.976667 ( 0.977630)
+ #
+ # source://benchmark//lib/benchmark.rb#171
+ def benchmark(caption = T.unsafe(nil), label_width = T.unsafe(nil), format = T.unsafe(nil), *labels); end
+
+ # A simple interface to the #benchmark method, #bm generates sequential
+ # reports with labels. +label_width+ and +labels+ parameters have the same
+ # meaning as for #benchmark.
+ #
+ # require 'benchmark'
+ #
+ # n = 5000000
+ # Benchmark.bm(7) do |x|
+ # x.report("for:") { for i in 1..n; a = "1"; end }
+ # x.report("times:") { n.times do ; a = "1"; end }
+ # x.report("upto:") { 1.upto(n) do ; a = "1"; end }
+ # end
+ #
+ # Generates:
+ #
+ # user system total real
+ # for: 0.960000 0.000000 0.960000 ( 0.957966)
+ # times: 0.960000 0.000000 0.960000 ( 0.960423)
+ # upto: 0.950000 0.000000 0.950000 ( 0.954864)
+ #
+ # source://benchmark//lib/benchmark.rb#216
+ def bm(label_width = T.unsafe(nil), *labels, &blk); end
+
+ # Sometimes benchmark results are skewed because code executed
+ # earlier encounters different garbage collection overheads than
+ # that run later. #bmbm attempts to minimize this effect by running
+ # the tests twice, the first time as a rehearsal in order to get the
+ # runtime environment stable, the second time for
+ # real. GC.start is executed before the start of each of
+ # the real timings; the cost of this is not included in the
+ # timings. In reality, though, there's only so much that #bmbm can
+ # do, and the results are not guaranteed to be isolated from garbage
+ # collection and other effects.
+ #
+ # Because #bmbm takes two passes through the tests, it can
+ # calculate the required label width.
+ #
+ # require 'benchmark'
+ #
+ # array = (1..1000000).map { rand }
+ #
+ # Benchmark.bmbm do |x|
+ # x.report("sort!") { array.dup.sort! }
+ # x.report("sort") { array.dup.sort }
+ # end
+ #
+ # Generates:
+ #
+ # Rehearsal -----------------------------------------
+ # sort! 1.440000 0.010000 1.450000 ( 1.446833)
+ # sort 1.440000 0.000000 1.440000 ( 1.448257)
+ # -------------------------------- total: 2.890000sec
+ #
+ # user system total real
+ # sort! 1.460000 0.000000 1.460000 ( 1.458065)
+ # sort 1.450000 0.000000 1.450000 ( 1.455963)
+ #
+ # #bmbm yields a Benchmark::Job object and returns an array of
+ # Benchmark::Tms objects.
+ #
+ # source://benchmark//lib/benchmark.rb#258
+ def bmbm(width = T.unsafe(nil)); end
+
+ # Returns the time used to execute the given block as a
+ # Benchmark::Tms object. Takes +label+ option.
+ #
+ # require 'benchmark'
+ #
+ # n = 1000000
+ #
+ # time = Benchmark.measure do
+ # n.times { a = "1" }
+ # end
+ # puts time
+ #
+ # Generates:
+ #
+ # 0.220000 0.000000 0.220000 ( 0.227313)
+ #
+ # source://benchmark//lib/benchmark.rb#303
+ def measure(label = T.unsafe(nil)); end
+
+ # Returns the elapsed real time used to execute the given block.
+ # The unit of time is milliseconds.
+ #
+ # Benchmark.ms { "a" * 1_000_000_000 }
+ # #=> 509.8029999935534
+ #
+ # source://benchmark//lib/benchmark.rb#335
+ def ms; end
+
+ # Returns the elapsed real time used to execute the given block.
+ # The unit of time is seconds.
+ #
+ # Benchmark.realtime { "a" * 1_000_000_000 }
+ # #=> 0.5098029999935534
+ #
+ # source://benchmark//lib/benchmark.rb#322
+ def realtime; end
+
+ class << self
+ # Invokes the block with a Benchmark::Report object, which
+ # may be used to collect and report on the results of individual
+ # benchmark tests. Reserves +label_width+ leading spaces for
+ # labels on each line. Prints +caption+ at the top of the
+ # report, and uses +format+ to format each line.
+ # (Note: +caption+ must contain a terminating newline character,
+ # see the default Benchmark::Tms::CAPTION for an example.)
+ #
+ # Returns an array of Benchmark::Tms objects.
+ #
+ # If the block returns an array of
+ # Benchmark::Tms objects, these will be used to format
+ # additional lines of output. If +labels+ parameter are
+ # given, these are used to label these extra lines.
+ #
+ # _Note_: Other methods provide a simpler interface to this one, and are
+ # suitable for nearly all benchmarking requirements. See the examples in
+ # Benchmark, and the #bm and #bmbm methods.
+ #
+ # Example:
+ #
+ # require 'benchmark'
+ # include Benchmark # we need the CAPTION and FORMAT constants
+ #
+ # n = 5000000
+ # Benchmark.benchmark(CAPTION, 7, FORMAT, ">total:", ">avg:") do |x|
+ # tf = x.report("for:") { for i in 1..n; a = "1"; end }
+ # tt = x.report("times:") { n.times do ; a = "1"; end }
+ # tu = x.report("upto:") { 1.upto(n) do ; a = "1"; end }
+ # [tf+tt+tu, (tf+tt+tu)/3]
+ # end
+ #
+ # Generates:
+ #
+ # user system total real
+ # for: 0.970000 0.000000 0.970000 ( 0.970493)
+ # times: 0.990000 0.000000 0.990000 ( 0.989542)
+ # upto: 0.970000 0.000000 0.970000 ( 0.972854)
+ # >total: 2.930000 0.000000 2.930000 ( 2.932889)
+ # >avg: 0.976667 0.000000 0.976667 ( 0.977630)
+ #
+ # source://benchmark//lib/benchmark.rb#171
+ def benchmark(caption = T.unsafe(nil), label_width = T.unsafe(nil), format = T.unsafe(nil), *labels); end
+
+ # A simple interface to the #benchmark method, #bm generates sequential
+ # reports with labels. +label_width+ and +labels+ parameters have the same
+ # meaning as for #benchmark.
+ #
+ # require 'benchmark'
+ #
+ # n = 5000000
+ # Benchmark.bm(7) do |x|
+ # x.report("for:") { for i in 1..n; a = "1"; end }
+ # x.report("times:") { n.times do ; a = "1"; end }
+ # x.report("upto:") { 1.upto(n) do ; a = "1"; end }
+ # end
+ #
+ # Generates:
+ #
+ # user system total real
+ # for: 0.960000 0.000000 0.960000 ( 0.957966)
+ # times: 0.960000 0.000000 0.960000 ( 0.960423)
+ # upto: 0.950000 0.000000 0.950000 ( 0.954864)
+ #
+ # source://benchmark//lib/benchmark.rb#216
+ def bm(label_width = T.unsafe(nil), *labels, &blk); end
+
+ # Sometimes benchmark results are skewed because code executed
+ # earlier encounters different garbage collection overheads than
+ # that run later. #bmbm attempts to minimize this effect by running
+ # the tests twice, the first time as a rehearsal in order to get the
+ # runtime environment stable, the second time for
+ # real. GC.start is executed before the start of each of
+ # the real timings; the cost of this is not included in the
+ # timings. In reality, though, there's only so much that #bmbm can
+ # do, and the results are not guaranteed to be isolated from garbage
+ # collection and other effects.
+ #
+ # Because #bmbm takes two passes through the tests, it can
+ # calculate the required label width.
+ #
+ # require 'benchmark'
+ #
+ # array = (1..1000000).map { rand }
+ #
+ # Benchmark.bmbm do |x|
+ # x.report("sort!") { array.dup.sort! }
+ # x.report("sort") { array.dup.sort }
+ # end
+ #
+ # Generates:
+ #
+ # Rehearsal -----------------------------------------
+ # sort! 1.440000 0.010000 1.450000 ( 1.446833)
+ # sort 1.440000 0.000000 1.440000 ( 1.448257)
+ # -------------------------------- total: 2.890000sec
+ #
+ # user system total real
+ # sort! 1.460000 0.000000 1.460000 ( 1.458065)
+ # sort 1.450000 0.000000 1.450000 ( 1.455963)
+ #
+ # #bmbm yields a Benchmark::Job object and returns an array of
+ # Benchmark::Tms objects.
+ #
+ # source://benchmark//lib/benchmark.rb#258
+ def bmbm(width = T.unsafe(nil)); end
+
+ # Returns the time used to execute the given block as a
+ # Benchmark::Tms object. Takes +label+ option.
+ #
+ # require 'benchmark'
+ #
+ # n = 1000000
+ #
+ # time = Benchmark.measure do
+ # n.times { a = "1" }
+ # end
+ # puts time
+ #
+ # Generates:
+ #
+ # 0.220000 0.000000 0.220000 ( 0.227313)
+ #
+ # source://benchmark//lib/benchmark.rb#303
+ def measure(label = T.unsafe(nil)); end
+
+ # Returns the elapsed real time used to execute the given block.
+ # The unit of time is seconds.
+ #
+ # Benchmark.realtime { "a" * 1_000_000_000 }
+ # #=> 0.5098029999935534
+ #
+ # source://benchmark//lib/benchmark.rb#322
+ def realtime; end
+ end
+end
+
+# A Job is a sequence of labelled blocks to be processed by the
+# Benchmark.bmbm method. It is of little direct interest to the user.
+#
+# source://benchmark//lib/benchmark.rb#347
+class Benchmark::Job
+ # Returns an initialized Job instance.
+ # Usually, one doesn't call this method directly, as new
+ # Job objects are created by the #bmbm method.
+ # +width+ is a initial value for the label offset used in formatting;
+ # the #bmbm method passes its +width+ argument to this constructor.
+ #
+ # @return [Job] a new instance of Job
+ #
+ # source://benchmark//lib/benchmark.rb#355
+ def initialize(width); end
+
+ # Registers the given label and block pair in the job list.
+ #
+ # @raise [ArgumentError]
+ #
+ # source://benchmark//lib/benchmark.rb#363
+ def item(label = T.unsafe(nil), &blk); end
+
+ # An array of 2-element arrays, consisting of label and block pairs.
+ #
+ # source://benchmark//lib/benchmark.rb#375
+ def list; end
+
+ # Registers the given label and block pair in the job list.
+ #
+ # @raise [ArgumentError]
+ #
+ # source://benchmark//lib/benchmark.rb#363
+ def report(label = T.unsafe(nil), &blk); end
+
+ # Length of the widest label in the #list.
+ #
+ # source://benchmark//lib/benchmark.rb#378
+ def width; end
+end
+
+# This class is used by the Benchmark.benchmark and Benchmark.bm methods.
+# It is of little direct interest to the user.
+#
+# source://benchmark//lib/benchmark.rb#385
+class Benchmark::Report
+ # Returns an initialized Report instance.
+ # Usually, one doesn't call this method directly, as new
+ # Report objects are created by the #benchmark and #bm methods.
+ # +width+ and +format+ are the label offset and
+ # format string used by Tms#format.
+ #
+ # @return [Report] a new instance of Report
+ #
+ # source://benchmark//lib/benchmark.rb#393
+ def initialize(width = T.unsafe(nil), format = T.unsafe(nil)); end
+
+ # An array of Benchmark::Tms objects representing each item.
+ #
+ # source://benchmark//lib/benchmark.rb#412
+ def format; end
+
+ # Prints the +label+ and measured time for the block,
+ # formatted by +format+. See Tms#format for the
+ # formatting rules.
+ #
+ # source://benchmark//lib/benchmark.rb#402
+ def item(label = T.unsafe(nil), *format, &blk); end
+
+ # An array of Benchmark::Tms objects representing each item.
+ #
+ # source://benchmark//lib/benchmark.rb#412
+ def list; end
+
+ # Prints the +label+ and measured time for the block,
+ # formatted by +format+. See Tms#format for the
+ # formatting rules.
+ #
+ # source://benchmark//lib/benchmark.rb#402
+ def report(label = T.unsafe(nil), *format, &blk); end
+
+ # An array of Benchmark::Tms objects representing each item.
+ #
+ # source://benchmark//lib/benchmark.rb#412
+ def width; end
+end
+
+# A data object, representing the times associated with a benchmark
+# measurement.
+#
+# source://benchmark//lib/benchmark.rb#421
+class Benchmark::Tms
+ # Returns an initialized Tms object which has
+ # +utime+ as the user CPU time, +stime+ as the system CPU time,
+ # +cutime+ as the children's user CPU time, +cstime+ as the children's
+ # system CPU time, +real+ as the elapsed real time and +label+ as the label.
+ #
+ # @return [Tms] a new instance of Tms
+ #
+ # source://benchmark//lib/benchmark.rb#456
+ def initialize(utime = T.unsafe(nil), stime = T.unsafe(nil), cutime = T.unsafe(nil), cstime = T.unsafe(nil), real = T.unsafe(nil), label = T.unsafe(nil)); end
+
+ # Returns a new Tms object obtained by memberwise multiplication
+ # of the individual times for this Tms object by +x+.
+ #
+ # source://benchmark//lib/benchmark.rb#504
+ def *(x); end
+
+ # Returns a new Tms object obtained by memberwise summation
+ # of the individual times for this Tms object with those of the +other+
+ # Tms object.
+ # This method and #/() are useful for taking statistics.
+ #
+ # source://benchmark//lib/benchmark.rb#491
+ def +(other); end
+
+ # Returns a new Tms object obtained by memberwise subtraction
+ # of the individual times for the +other+ Tms object from those of this
+ # Tms object.
+ #
+ # source://benchmark//lib/benchmark.rb#498
+ def -(other); end
+
+ # Returns a new Tms object obtained by memberwise division
+ # of the individual times for this Tms object by +x+.
+ # This method and #+() are useful for taking statistics.
+ #
+ # source://benchmark//lib/benchmark.rb#511
+ def /(x); end
+
+ # Returns a new Tms object whose times are the sum of the times for this
+ # Tms object, plus the time required to execute the code block (+blk+).
+ #
+ # source://benchmark//lib/benchmark.rb#465
+ def add(&blk); end
+
+ # An in-place version of #add.
+ # Changes the times of this Tms object by making it the sum of the times
+ # for this Tms object, plus the time required to execute
+ # the code block (+blk+).
+ #
+ # source://benchmark//lib/benchmark.rb#475
+ def add!(&blk); end
+
+ # System CPU time of children
+ #
+ # source://benchmark//lib/benchmark.rb#439
+ def cstime; end
+
+ # User CPU time of children
+ #
+ # source://benchmark//lib/benchmark.rb#436
+ def cutime; end
+
+ # Returns the contents of this Tms object as
+ # a formatted string, according to a +format+ string
+ # like that passed to Kernel.format. In addition, #format
+ # accepts the following extensions:
+ #
+ # %u:: Replaced by the user CPU time, as reported by Tms#utime.
+ # %y:: Replaced by the system CPU time, as reported by Tms#stime (Mnemonic: y of "s*y*stem")
+ # %U:: Replaced by the children's user CPU time, as reported by Tms#cutime
+ # %Y:: Replaced by the children's system CPU time, as reported by Tms#cstime
+ # %t:: Replaced by the total CPU time, as reported by Tms#total
+ # %r:: Replaced by the elapsed real time, as reported by Tms#real
+ # %n:: Replaced by the label string, as reported by Tms#label (Mnemonic: n of "*n*ame")
+ #
+ # If +format+ is not given, FORMAT is used as default value, detailing the
+ # user, system, total and real elapsed time.
+ #
+ # source://benchmark//lib/benchmark.rb#530
+ def format(format = T.unsafe(nil), *args); end
+
+ # Label
+ #
+ # source://benchmark//lib/benchmark.rb#448
+ def label; end
+
+ # Elapsed real time
+ #
+ # source://benchmark//lib/benchmark.rb#442
+ def real; end
+
+ # System CPU time
+ #
+ # source://benchmark//lib/benchmark.rb#433
+ def stime; end
+
+ # Returns a new 6-element array, consisting of the
+ # label, user CPU time, system CPU time, children's
+ # user CPU time, children's system CPU time and elapsed
+ # real time.
+ #
+ # source://benchmark//lib/benchmark.rb#555
+ def to_a; end
+
+ # Returns a hash containing the same data as `to_a`.
+ #
+ # source://benchmark//lib/benchmark.rb#562
+ def to_h; end
+
+ # Same as #format.
+ #
+ # source://benchmark//lib/benchmark.rb#545
+ def to_s; end
+
+ # Total time, that is +utime+ + +stime+ + +cutime+ + +cstime+
+ #
+ # source://benchmark//lib/benchmark.rb#445
+ def total; end
+
+ # User CPU time
+ #
+ # source://benchmark//lib/benchmark.rb#430
+ def utime; end
+
+ protected
+
+ # Returns a new Tms object obtained by memberwise operation +op+
+ # of the individual times for this Tms object with those of the other
+ # Tms object (+x+).
+ #
+ # +op+ can be a mathematical operation such as +, -,
+ # *, /
+ #
+ # source://benchmark//lib/benchmark.rb#583
+ def memberwise(op, x); end
+end
+
+# source://benchmark//lib/benchmark.rb#125
+Benchmark::VERSION = T.let(T.unsafe(nil), String)
diff --git a/sorbet/rbi/gems/bigdecimal@3.1.8.rbi b/sorbet/rbi/gems/bigdecimal@3.1.8.rbi
deleted file mode 100644
index c275b2f77..000000000
--- a/sorbet/rbi/gems/bigdecimal@3.1.8.rbi
+++ /dev/null
@@ -1,78 +0,0 @@
-# typed: true
-
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `bigdecimal` gem.
-# Please instead update this file by running `bin/tapioca gem bigdecimal`.
-
-
-# source://bigdecimal//lib/bigdecimal/util.rb#78
-class BigDecimal < ::Numeric
- # call-seq:
- # a.to_d -> bigdecimal
- #
- # Returns self.
- #
- # require 'bigdecimal/util'
- #
- # d = BigDecimal("3.14")
- # d.to_d # => 0.314e1
- #
- # source://bigdecimal//lib/bigdecimal/util.rb#110
- def to_d; end
-
- # call-seq:
- # a.to_digits -> string
- #
- # Converts a BigDecimal to a String of the form "nnnnnn.mmm".
- # This method is deprecated; use BigDecimal#to_s("F") instead.
- #
- # require 'bigdecimal/util'
- #
- # d = BigDecimal("3.14")
- # d.to_digits # => "3.14"
- #
- # source://bigdecimal//lib/bigdecimal/util.rb#90
- def to_digits; end
-end
-
-BigDecimal::VERSION = T.let(T.unsafe(nil), String)
-
-# source://bigdecimal//lib/bigdecimal/util.rb#138
-class Complex < ::Numeric
- # call-seq:
- # cmp.to_d -> bigdecimal
- # cmp.to_d(precision) -> bigdecimal
- #
- # Returns the value as a BigDecimal.
- #
- # The +precision+ parameter is required for a rational complex number.
- # This parameter is used to determine the number of significant digits
- # for the result.
- #
- # require 'bigdecimal'
- # require 'bigdecimal/util'
- #
- # Complex(0.1234567, 0).to_d(4) # => 0.1235e0
- # Complex(Rational(22, 7), 0).to_d(3) # => 0.314e1
- #
- # See also Kernel.BigDecimal.
- #
- # source://bigdecimal//lib/bigdecimal/util.rb#157
- def to_d(*args); end
-end
-
-# source://bigdecimal//lib/bigdecimal/util.rb#171
-class NilClass
- # call-seq:
- # nil.to_d -> bigdecimal
- #
- # Returns nil represented as a BigDecimal.
- #
- # require 'bigdecimal'
- # require 'bigdecimal/util'
- #
- # nil.to_d # => 0.0
- #
- # source://bigdecimal//lib/bigdecimal/util.rb#182
- def to_d; end
-end
diff --git a/sorbet/rbi/gems/bigdecimal@3.3.1.rbi b/sorbet/rbi/gems/bigdecimal@3.3.1.rbi
new file mode 100644
index 000000000..9631ae3e2
--- /dev/null
+++ b/sorbet/rbi/gems/bigdecimal@3.3.1.rbi
@@ -0,0 +1,206 @@
+# typed: false
+
+# DO NOT EDIT MANUALLY
+# This is an autogenerated file for types exported from the `bigdecimal` gem.
+# Please instead update this file by running `bin/tapioca gem bigdecimal`.
+
+
+# source://bigdecimal//lib/bigdecimal.rb#13
+class BigDecimal < ::Numeric
+ # call-seq:
+ # self ** other -> bigdecimal
+ #
+ # Returns the \BigDecimal value of +self+ raised to power +other+:
+ #
+ # b = BigDecimal('3.14')
+ # b ** 2 # => 0.98596e1
+ # b ** 2.0 # => 0.98596e1
+ # b ** Rational(2, 1) # => 0.98596e1
+ #
+ # Related: BigDecimal#power.
+ #
+ # source://bigdecimal//lib/bigdecimal.rb#77
+ def **(y); end
+
+ # call-seq:
+ # power(n)
+ # power(n, prec)
+ #
+ # Returns the value raised to the power of n.
+ #
+ # Also available as the operator **.
+ #
+ # source://bigdecimal//lib/bigdecimal.rb#97
+ def power(y, prec = T.unsafe(nil)); end
+
+ # Returns the square root of the value.
+ #
+ # Result has at least prec significant digits.
+ #
+ # @raise [FloatDomainError]
+ #
+ # source://bigdecimal//lib/bigdecimal.rb#211
+ def sqrt(prec); end
+
+ # call-seq:
+ # a.to_d -> bigdecimal
+ #
+ # Returns self.
+ #
+ # require 'bigdecimal/util'
+ #
+ # d = BigDecimal("3.14")
+ # d.to_d # => 0.314e1
+ #
+ # source://bigdecimal//lib/bigdecimal/util.rb#110
+ def to_d; end
+
+ # call-seq:
+ # a.to_digits -> string
+ #
+ # Converts a BigDecimal to a String of the form "nnnnnn.mmm".
+ # This method is deprecated; use BigDecimal#to_s("F") instead.
+ #
+ # require 'bigdecimal/util'
+ #
+ # d = BigDecimal("3.14")
+ # d.to_digits # => "3.14"
+ #
+ # source://bigdecimal//lib/bigdecimal/util.rb#90
+ def to_digits; end
+end
+
+# source://bigdecimal//lib/bigdecimal.rb#14
+module BigDecimal::Internal
+ class << self
+ # Coerce x to BigDecimal with the specified precision.
+ # TODO: some methods (example: BigMath.exp) require more precision than specified to coerce.
+ #
+ # @raise [ArgumentError]
+ #
+ # source://bigdecimal//lib/bigdecimal.rb#18
+ def coerce_to_bigdecimal(x, prec, method_name); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#30
+ def coerce_validate_prec(prec, method_name, accept_zero: T.unsafe(nil)); end
+
+ # source://bigdecimal//lib/bigdecimal.rb#50
+ def infinity_computation_result; end
+
+ # source://bigdecimal//lib/bigdecimal.rb#57
+ def nan_computation_result; end
+ end
+end
+
+BigDecimal::VERSION = T.let(T.unsafe(nil), String)
+
+# Core BigMath methods for BigDecimal (log, exp) are defined here.
+# Other methods (sin, cos, atan) are defined in 'bigdecimal/math.rb'.
+#
+# source://bigdecimal//lib/bigdecimal.rb#237
+module BigMath
+ class << self
+ # call-seq:
+ # BigMath.exp(decimal, numeric) -> BigDecimal
+ #
+ # Computes the value of e (the base of natural logarithms) raised to the
+ # power of +decimal+, to the specified number of digits of precision.
+ #
+ # If +decimal+ is infinity, returns Infinity.
+ #
+ # If +decimal+ is NaN, returns NaN.
+ #
+ # source://bigdecimal//lib/bigdecimal.rb#328
+ def exp(x, prec); end
+
+ # call-seq:
+ # BigMath.log(decimal, numeric) -> BigDecimal
+ #
+ # Computes the natural logarithm of +decimal+ to the specified number of
+ # digits of precision, +numeric+.
+ #
+ # If +decimal+ is zero or negative, raises Math::DomainError.
+ #
+ # If +decimal+ is positive infinity, returns Infinity.
+ #
+ # If +decimal+ is NaN, returns NaN.
+ #
+ # @raise [Math::DomainError]
+ #
+ # source://bigdecimal//lib/bigdecimal.rb#251
+ def log(x, prec); end
+
+ private
+
+ # source://bigdecimal//lib/bigdecimal.rb#306
+ def _exp_taylor(x, prec); end
+ end
+end
+
+# source://bigdecimal//lib/bigdecimal/util.rb#141
+class Complex < ::Numeric
+ # call-seq:
+ # cmp.to_d -> bigdecimal
+ # cmp.to_d(precision) -> bigdecimal
+ #
+ # Returns the value as a BigDecimal.
+ # If the imaginary part is not +0+, an error is raised
+ #
+ # The +precision+ parameter is used to determine the number of
+ # significant digits for the result. When +precision+ is set to +0+,
+ # the number of digits to represent the float being converted is determined
+ # automatically.
+ # The default +precision+ is +0+.
+ #
+ # require 'bigdecimal'
+ # require 'bigdecimal/util'
+ #
+ # Complex(0.1234567, 0).to_d(4) # => 0.1235e0
+ # Complex(Rational(22, 7), 0).to_d(3) # => 0.314e1
+ # Complex(1, 1).to_d # raises ArgumentError
+ #
+ # See also Kernel.BigDecimal.
+ #
+ # source://bigdecimal//lib/bigdecimal/util.rb#164
+ def to_d(precision = T.unsafe(nil)); end
+end
+
+# source://bigdecimal//lib/bigdecimal/util.rb#172
+class NilClass
+ # call-seq:
+ # nil.to_d -> bigdecimal
+ #
+ # Returns nil represented as a BigDecimal.
+ #
+ # require 'bigdecimal'
+ # require 'bigdecimal/util'
+ #
+ # nil.to_d # => 0.0
+ #
+ # source://bigdecimal//lib/bigdecimal/util.rb#183
+ def to_d; end
+end
+
+# source://bigdecimal//lib/bigdecimal/util.rb#116
+class Rational < ::Numeric
+ # call-seq:
+ # rat.to_d(precision) -> bigdecimal
+ #
+ # Returns the value as a BigDecimal.
+ #
+ # The +precision+ parameter is used to determine the number of
+ # significant digits for the result. When +precision+ is set to +0+,
+ # the number of digits to represent the float being converted is determined
+ # automatically.
+ # The default +precision+ is +0+.
+ #
+ # require 'bigdecimal'
+ # require 'bigdecimal/util'
+ #
+ # Rational(22, 7).to_d(3) # => 0.314e1
+ #
+ # See also Kernel.BigDecimal.
+ #
+ # source://bigdecimal//lib/bigdecimal/util.rb#135
+ def to_d(precision = T.unsafe(nil)); end
+end
diff --git a/sorbet/rbi/gems/concurrent-ruby@1.3.4.rbi b/sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi
similarity index 99%
rename from sorbet/rbi/gems/concurrent-ruby@1.3.4.rbi
rename to sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi
index e6a82d005..1f32266f7 100644
--- a/sorbet/rbi/gems/concurrent-ruby@1.3.4.rbi
+++ b/sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi
@@ -11,7 +11,6 @@
module Concurrent
extend ::Concurrent::Utility::EngineDetector
extend ::Concurrent::Utility::NativeExtensionLoader
- extend ::Logger::Severity
extend ::Concurrent::Concern::Logging
extend ::Concurrent::Concern::Deprecation
@@ -189,15 +188,17 @@ module Concurrent
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/utility/processor_counter.rb#217
def cpu_shares; end
- # @return [Logger] Logger with provided level and output.
+ # Create a simple logger with provided level and output.
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#37
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#38
def create_simple_logger(level = T.unsafe(nil), output = T.unsafe(nil)); end
+ # Create a stdlib logger with provided level and output.
+ # If you use this deprecated method you might need to add logger to your Gemfile to avoid warnings from Ruby 3.3.5+.
+ #
# @deprecated
- # @return [Logger] Logger with provided level and output.
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#69
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#73
def create_stdlib_logger(level = T.unsafe(nil), output = T.unsafe(nil)); end
# Dataflow allows you to create a task that will be scheduled when all of its data dependencies are available.
@@ -269,10 +270,10 @@ module Concurrent
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/configuration.rb#62
def global_io_executor; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#109
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#114
def global_logger; end
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#113
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#118
def global_logger=(value); end
# Global thread pool user for global *timers*.
@@ -354,14 +355,14 @@ module Concurrent
# Use logger created by #create_simple_logger to log concurrent-ruby messages.
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#63
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#66
def use_simple_logger(level = T.unsafe(nil), output = T.unsafe(nil)); end
# Use logger created by #create_stdlib_logger to log concurrent-ruby messages.
#
# @deprecated
#
- # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#96
+ # source://concurrent-ruby//lib/concurrent-ruby/concurrent/concern/logging.rb#101
def use_stdlib_logger(level = T.unsafe(nil), output = T.unsafe(nil)); end
end
end
@@ -466,7 +467,6 @@ Concurrent::AbstractExchanger::CANCEL = T.let(T.unsafe(nil), Object)
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb#10
class Concurrent::AbstractExecutorService < ::Concurrent::Synchronization::LockableObject
- include ::Logger::Severity
include ::Concurrent::Concern::Logging
include ::Concurrent::ExecutorService
include ::Concurrent::Concern::Deprecation
@@ -884,7 +884,7 @@ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject
# hopelessly deadlock the Agent with no possibility of recovery.
#
# @param timeout [Float] the maximum number of seconds to wait
- # @raise [Concurrent::TimeoutError] when timout is reached
+ # @raise [Concurrent::TimeoutError] when timeout is reached
# @return [Boolean] true if all actions complete before timeout
#
# source://concurrent-ruby//lib/concurrent-ruby/concurrent/agent.rb#377
@@ -1286,7 +1286,7 @@ class Concurrent::Agent < ::Concurrent::Synchronization::LockableObject
#
# @param timeout [Float] the maximum number of seconds to wait
# @param agents [Arraydruby://:? . The option is optional.
#
-# source://drb//lib/drb/drb.rb#815
+# source://drb//lib/drb/drb.rb#843
class DRb::DRbTCPSocket
# Create a new DRbTCPSocket instance.
#
@@ -1015,21 +1329,21 @@ class DRb::DRbTCPSocket
#
# @return [DRbTCPSocket] a new instance of DRbTCPSocket
#
- # source://drb//lib/drb/drb.rb#903
+ # source://drb//lib/drb/drb.rb#931
def initialize(uri, soc, config = T.unsafe(nil)); end
# On the server side, for an instance returned by #open_server,
# accept a client connection and return a new instance to handle
# the server's side of this client-server session.
#
- # source://drb//lib/drb/drb.rb#971
+ # source://drb//lib/drb/drb.rb#999
def accept; end
# Check to see if this connection is alive.
#
# @return [Boolean]
#
- # source://drb//lib/drb/drb.rb#1001
+ # source://drb//lib/drb/drb.rb#1029
def alive?; end
# Close the connection.
@@ -1039,65 +1353,65 @@ class DRb::DRbTCPSocket
# returned by #open or by #accept, then it closes this particular
# client-server session.
#
- # source://drb//lib/drb/drb.rb#953
+ # source://drb//lib/drb/drb.rb#981
def close; end
# Get the address of our TCP peer (the other end of the socket
# we are bound to.
#
- # source://drb//lib/drb/drb.rb#918
+ # source://drb//lib/drb/drb.rb#946
def peeraddr; end
# On the client side, receive a reply from the server.
#
- # source://drb//lib/drb/drb.rb#941
+ # source://drb//lib/drb/drb.rb#969
def recv_reply; end
# On the server side, receive a request from the client.
#
- # source://drb//lib/drb/drb.rb#931
+ # source://drb//lib/drb/drb.rb#959
def recv_request; end
# On the server side, send a reply to the client.
#
- # source://drb//lib/drb/drb.rb#936
+ # source://drb//lib/drb/drb.rb#964
def send_reply(succ, result); end
# On the client side, send a request to the server.
#
- # source://drb//lib/drb/drb.rb#926
+ # source://drb//lib/drb/drb.rb#954
def send_request(ref, msg_id, arg, b); end
- # source://drb//lib/drb/drb.rb#1010
+ # source://drb//lib/drb/drb.rb#1038
def set_sockopt(soc); end
# Graceful shutdown
#
- # source://drb//lib/drb/drb.rb#996
+ # source://drb//lib/drb/drb.rb#1024
def shutdown; end
# Get the socket.
#
- # source://drb//lib/drb/drb.rb#923
+ # source://drb//lib/drb/drb.rb#951
def stream; end
# Get the URI that we are connected to.
#
- # source://drb//lib/drb/drb.rb#914
+ # source://drb//lib/drb/drb.rb#942
def uri; end
private
- # source://drb//lib/drb/drb.rb#986
+ # source://drb//lib/drb/drb.rb#1014
def accept_or_shutdown; end
- # source://drb//lib/drb/drb.rb#962
+ # source://drb//lib/drb/drb.rb#990
def close_shutdown_pipe; end
class << self
# Returns the hostname of this server
#
- # source://drb//lib/drb/drb.rb#845
+ # source://drb//lib/drb/drb.rb#873
def getservername; end
# Open a client connection to +uri+ (DRb URI string) using configuration
@@ -1107,28 +1421,28 @@ class DRb::DRbTCPSocket
# recognized protocol. See DRb::DRbServer.new for information on built-in
# URI protocols.
#
- # source://drb//lib/drb/drb.rb#838
+ # source://drb//lib/drb/drb.rb#866
def open(uri, config); end
# Open a server listening for connections at +uri+ using
# configuration +config+.
#
- # source://drb//lib/drb/drb.rb#876
+ # source://drb//lib/drb/drb.rb#904
def open_server(uri, config); end
# For the families available for +host+, returns a TCPServer on +port+.
# If +port+ is 0 the first available port is used. IPv4 servers are
# preferred over IPv6 servers.
#
- # source://drb//lib/drb/drb.rb#861
+ # source://drb//lib/drb/drb.rb#889
def open_server_inaddr_any(host, port); end
- # source://drb//lib/drb/drb.rb#818
+ # source://drb//lib/drb/drb.rb#846
def parse_uri(uri); end
# Parse +uri+ into a [uri, option] pair.
#
- # source://drb//lib/drb/drb.rb#893
+ # source://drb//lib/drb/drb.rb#921
def uri_option(uri, config); end
end
end
@@ -1179,28 +1493,28 @@ end
# source://drb//lib/drb/unix.rb#70
DRb::DRbUNIXSocket::Max_try = T.let(T.unsafe(nil), Integer)
-# source://drb//lib/drb/drb.rb#1021
+# source://drb//lib/drb/drb.rb#1049
class DRb::DRbURIOption
# @return [DRbURIOption] a new instance of DRbURIOption
#
- # source://drb//lib/drb/drb.rb#1022
+ # source://drb//lib/drb/drb.rb#1050
def initialize(option); end
- # source://drb//lib/drb/drb.rb#1028
+ # source://drb//lib/drb/drb.rb#1056
def ==(other); end
- # source://drb//lib/drb/drb.rb#1028
+ # source://drb//lib/drb/drb.rb#1056
def eql?(other); end
- # source://drb//lib/drb/drb.rb#1033
+ # source://drb//lib/drb/drb.rb#1061
def hash; end
# Returns the value of attribute option.
#
- # source://drb//lib/drb/drb.rb#1025
+ # source://drb//lib/drb/drb.rb#1053
def option; end
- # source://drb//lib/drb/drb.rb#1026
+ # source://drb//lib/drb/drb.rb#1054
def to_s; end
end
@@ -1211,11 +1525,11 @@ end
# and a reference to the object is returned, rather than the
# object being marshalled and moved into the client space.
#
-# source://drb//lib/drb/drb.rb#390
+# source://drb//lib/drb/drb.rb#418
module DRb::DRbUndumped
# @raise [TypeError]
#
- # source://drb//lib/drb/drb.rb#391
+ # source://drb//lib/drb/drb.rb#419
def _dump(dummy); end
end
@@ -1233,7 +1547,7 @@ end
# +name+ attribute. The marshalled object is held in the +buf+
# attribute.
#
-# source://drb//lib/drb/drb.rb#457
+# source://drb//lib/drb/drb.rb#485
class DRb::DRbUnknown
# Create a new DRbUnknown object.
#
@@ -1244,20 +1558,20 @@ class DRb::DRbUnknown
#
# @return [DRbUnknown] a new instance of DRbUnknown
#
- # source://drb//lib/drb/drb.rb#465
+ # source://drb//lib/drb/drb.rb#493
def initialize(err, buf); end
- # source://drb//lib/drb/drb.rb#494
+ # source://drb//lib/drb/drb.rb#522
def _dump(lv); end
# Buffer contained the marshalled, unknown object.
#
- # source://drb//lib/drb/drb.rb#484
+ # source://drb//lib/drb/drb.rb#512
def buf; end
# Create a DRbUnknownError exception containing this object.
#
- # source://drb//lib/drb/drb.rb#508
+ # source://drb//lib/drb/drb.rb#536
def exception; end
# The name of the unknown thing.
@@ -1265,7 +1579,7 @@ class DRb::DRbUnknown
# Class name for unknown objects; variable name for unknown
# constants.
#
- # source://drb//lib/drb/drb.rb#481
+ # source://drb//lib/drb/drb.rb#509
def name; end
# Attempt to load the wrapped marshalled object again.
@@ -1274,74 +1588,74 @@ class DRb::DRbUnknown
# will be unmarshalled and returned. Otherwise, a new
# but identical DRbUnknown object will be returned.
#
- # source://drb//lib/drb/drb.rb#503
+ # source://drb//lib/drb/drb.rb#531
def reload; end
class << self
- # source://drb//lib/drb/drb.rb#486
+ # source://drb//lib/drb/drb.rb#514
def _load(s); end
end
end
# An exception wrapping a DRb::DRbUnknown object
#
-# source://drb//lib/drb/drb.rb#410
+# source://drb//lib/drb/drb.rb#438
class DRb::DRbUnknownError < ::DRb::DRbError
# Create a new DRbUnknownError for the DRb::DRbUnknown object +unknown+
#
# @return [DRbUnknownError] a new instance of DRbUnknownError
#
- # source://drb//lib/drb/drb.rb#413
+ # source://drb//lib/drb/drb.rb#441
def initialize(unknown); end
- # source://drb//lib/drb/drb.rb#425
+ # source://drb//lib/drb/drb.rb#453
def _dump(lv); end
# Get the wrapped DRb::DRbUnknown object.
#
- # source://drb//lib/drb/drb.rb#419
+ # source://drb//lib/drb/drb.rb#447
def unknown; end
class << self
- # source://drb//lib/drb/drb.rb#421
+ # source://drb//lib/drb/drb.rb#449
def _load(s); end
end
end
-# source://drb//lib/drb/drb.rb#1199
+# source://drb//lib/drb/drb.rb#1227
class DRb::ThreadObject
include ::MonitorMixin
# @return [ThreadObject] a new instance of ThreadObject
#
- # source://drb//lib/drb/drb.rb#1202
+ # source://drb//lib/drb/drb.rb#1230
def initialize(&blk); end
- # source://drb//lib/drb/drb.rb#1237
+ # source://drb//lib/drb/drb.rb#1265
def _execute; end
# @return [Boolean]
#
- # source://drb//lib/drb/drb.rb#1213
+ # source://drb//lib/drb/drb.rb#1241
def alive?; end
- # source://drb//lib/drb/drb.rb#1217
+ # source://drb//lib/drb/drb.rb#1245
def kill; end
- # source://drb//lib/drb/drb.rb#1222
+ # source://drb//lib/drb/drb.rb#1250
def method_missing(msg, *arg, &blk); end
end
# source://drb//lib/drb/version.rb#2
DRb::VERSION = T.let(T.unsafe(nil), String)
-# source://drb//lib/drb/drb.rb#1943
+# source://drb//lib/drb/drb.rb#1993
DRbIdConv = DRb::DRbIdConv
# :stopdoc:
#
-# source://drb//lib/drb/drb.rb#1941
+# source://drb//lib/drb/drb.rb#1991
DRbObject = DRb::DRbObject
-# source://drb//lib/drb/drb.rb#1942
+# source://drb//lib/drb/drb.rb#1992
DRbUndumped = DRb::DRbUndumped
diff --git a/sorbet/rbi/gems/erubi@1.13.0.rbi b/sorbet/rbi/gems/erubi@1.13.1.rbi
similarity index 94%
rename from sorbet/rbi/gems/erubi@1.13.0.rbi
rename to sorbet/rbi/gems/erubi@1.13.1.rbi
index 16d45faf0..a291c13da 100644
--- a/sorbet/rbi/gems/erubi@1.13.0.rbi
+++ b/sorbet/rbi/gems/erubi@1.13.1.rbi
@@ -67,44 +67,49 @@ class Erubi::Engine
private
+ # :nocov:
+ #
+ # source://erubi//lib/erubi.rb#209
+ def _dup_string_if_frozen(string); end
+
# Add ruby code to the template
#
- # source://erubi//lib/erubi.rb#223
+ # source://erubi//lib/erubi.rb#232
def add_code(code); end
# Add the given ruby expression result to the template,
# escaping it based on the indicator given and escape flag.
#
- # source://erubi//lib/erubi.rb#232
+ # source://erubi//lib/erubi.rb#241
def add_expression(indicator, code); end
# Add the result of Ruby expression to the template
#
- # source://erubi//lib/erubi.rb#241
+ # source://erubi//lib/erubi.rb#250
def add_expression_result(code); end
# Add the escaped result of Ruby expression to the template
#
- # source://erubi//lib/erubi.rb#246
+ # source://erubi//lib/erubi.rb#255
def add_expression_result_escaped(code); end
# Add the given postamble to the src. Can be overridden in subclasses
# to make additional changes to src that depend on the current state.
#
- # source://erubi//lib/erubi.rb#252
+ # source://erubi//lib/erubi.rb#261
def add_postamble(postamble); end
# Add raw text to the template. Modifies argument if argument is mutable as a memory optimization.
# Must be called with a string, cannot be called with nil (Rails's subclass depends on it).
#
- # source://erubi//lib/erubi.rb#210
+ # source://erubi//lib/erubi.rb#222
def add_text(text); end
# Raise an exception, as the base engine class does not support handling other indicators.
#
# @raise [ArgumentError]
#
- # source://erubi//lib/erubi.rb#258
+ # source://erubi//lib/erubi.rb#267
def handle(indicator, code, tailch, rspace, lspace); end
# Make sure that any current expression has been terminated.
@@ -112,7 +117,7 @@ class Erubi::Engine
# the chain_appends option is used, expressions may not be
# terminated.
#
- # source://erubi//lib/erubi.rb#286
+ # source://erubi//lib/erubi.rb#295
def terminate_expression; end
# Make sure the buffer variable is the target of the next append
@@ -122,7 +127,7 @@ class Erubi::Engine
# This method should only be called if the block will result in
# code where << will append to the bufvar.
#
- # source://erubi//lib/erubi.rb#268
+ # source://erubi//lib/erubi.rb#277
def with_buffer; end
end
diff --git a/sorbet/rbi/gems/globalid@1.2.1.rbi b/sorbet/rbi/gems/globalid@1.3.0.rbi
similarity index 86%
rename from sorbet/rbi/gems/globalid@1.2.1.rbi
rename to sorbet/rbi/gems/globalid@1.3.0.rbi
index 5b22464c7..a9a91f114 100644
--- a/sorbet/rbi/gems/globalid@1.2.1.rbi
+++ b/sorbet/rbi/gems/globalid@1.3.0.rbi
@@ -11,51 +11,51 @@ class GlobalID
# @return [GlobalID] a new instance of GlobalID
#
- # source://globalid//lib/global_id/global_id.rb#44
+ # source://globalid//lib/global_id/global_id.rb#48
def initialize(gid, options = T.unsafe(nil)); end
- # source://globalid//lib/global_id/global_id.rb#63
+ # source://globalid//lib/global_id/global_id.rb#67
def ==(other); end
- # source://globalid//lib/global_id/global_id.rb#42
+ # source://globalid//lib/global_id/global_id.rb#46
def app(*_arg0, **_arg1, &_arg2); end
- # source://globalid//lib/global_id/global_id.rb#76
+ # source://globalid//lib/global_id/global_id.rb#80
def as_json(*_arg0); end
- # source://globalid//lib/global_id/global_id.rb#42
+ # source://globalid//lib/global_id/global_id.rb#46
def deconstruct_keys(*_arg0, **_arg1, &_arg2); end
- # source://globalid//lib/global_id/global_id.rb#63
+ # source://globalid//lib/global_id/global_id.rb#67
def eql?(other); end
- # source://globalid//lib/global_id/global_id.rb#48
+ # source://globalid//lib/global_id/global_id.rb#52
def find(options = T.unsafe(nil)); end
- # source://globalid//lib/global_id/global_id.rb#68
+ # source://globalid//lib/global_id/global_id.rb#72
def hash; end
- # source://globalid//lib/global_id/global_id.rb#52
+ # source://globalid//lib/global_id/global_id.rb#56
def model_class; end
- # source://globalid//lib/global_id/global_id.rb#42
+ # source://globalid//lib/global_id/global_id.rb#46
def model_id(*_arg0, **_arg1, &_arg2); end
- # source://globalid//lib/global_id/global_id.rb#42
+ # source://globalid//lib/global_id/global_id.rb#46
def model_name(*_arg0, **_arg1, &_arg2); end
- # source://globalid//lib/global_id/global_id.rb#42
+ # source://globalid//lib/global_id/global_id.rb#46
def params(*_arg0, **_arg1, &_arg2); end
- # source://globalid//lib/global_id/global_id.rb#72
+ # source://globalid//lib/global_id/global_id.rb#76
def to_param; end
- # source://globalid//lib/global_id/global_id.rb#42
+ # source://globalid//lib/global_id/global_id.rb#46
def to_s(*_arg0, **_arg1, &_arg2); end
# Returns the value of attribute uri.
#
- # source://globalid//lib/global_id/global_id.rb#41
+ # source://globalid//lib/global_id/global_id.rb#45
def uri; end
class << self
@@ -70,6 +70,9 @@ class GlobalID
# source://globalid//lib/global_id/global_id.rb#11
def create(model, options = T.unsafe(nil)); end
+ # source://globalid//lib/global_id/global_id.rb#35
+ def default_locator(default_locator); end
+
# source://globalid//lib/global_id.rb#20
def deprecator; end
@@ -84,7 +87,7 @@ class GlobalID
private
- # source://globalid//lib/global_id/global_id.rb#36
+ # source://globalid//lib/global_id/global_id.rb#40
def parse_encoded_gid(gid, options); end
end
end
@@ -122,8 +125,8 @@ module GlobalID::Identification
#
# model = Person.new id: 1
# global_id = model.to_global_id
- # global_id.modal_class # => Person
- # global_id.modal_id # => "1"
+ # global_id.model_class # => Person
+ # global_id.model_id # => "1"
# global_id.to_param # => "Z2lkOi8vYm9yZGZvbGlvL1BlcnNvbi8x"
#
# source://globalid//lib/global_id/identification.rb#37
@@ -141,8 +144,8 @@ module GlobalID::Identification
#
# model = Person.new id: 1
# global_id = model.to_global_id
- # global_id.modal_class # => Person
- # global_id.modal_id # => "1"
+ # global_id.model_class # => Person
+ # global_id.model_id # => "1"
# global_id.to_param # => "Z2lkOi8vYm9yZGZvbGlvL1BlcnNvbi8x"
#
# source://globalid//lib/global_id/identification.rb#37
@@ -153,8 +156,8 @@ module GlobalID::Identification
#
# model = Person.new id: 1
# signed_global_id = model.to_signed_global_id
- # signed_global_id.modal_class # => Person
- # signed_global_id.modal_id # => "1"
+ # signed_global_id.model_class # => Person
+ # signed_global_id.model_id # => "1"
# signed_global_id.to_param # => "BAh7CEkiCGdpZAY6BkVUSSIiZ2..."
#
# ==== Expiration
@@ -222,8 +225,8 @@ module GlobalID::Identification
#
# model = Person.new id: 1
# signed_global_id = model.to_signed_global_id
- # signed_global_id.modal_class # => Person
- # signed_global_id.modal_id # => "1"
+ # signed_global_id.model_class # => Person
+ # signed_global_id.model_id # => "1"
# signed_global_id.to_param # => "BAh7CEkiCGdpZAY6BkVUSSIiZ2..."
#
# ==== Expiration
@@ -282,6 +285,16 @@ end
# source://globalid//lib/global_id/locator.rb#4
module GlobalID::Locator
class << self
+ # The default locator used when no app-specific locator is found.
+ #
+ # source://globalid//lib/global_id/locator.rb#9
+ def default_locator; end
+
+ # The default locator used when no app-specific locator is found.
+ #
+ # source://globalid//lib/global_id/locator.rb#9
+ def default_locator=(_arg0); end
+
# Takes either a GlobalID or a string that can be turned into a GlobalID
#
# Options:
@@ -295,7 +308,7 @@ module GlobalID::Locator
# instances of returned classes to those including that module. If no classes or
# modules match, +nil+ is returned.
#
- # source://globalid//lib/global_id/locator.rb#20
+ # source://globalid//lib/global_id/locator.rb#23
def locate(gid, options = T.unsafe(nil)); end
# Takes an array of GlobalIDs or strings that can be turned into a GlobalIDs.
@@ -324,7 +337,7 @@ module GlobalID::Locator
# #find will raise an exception if a named ID can't be found. When you set this option to true,
# we will use #where(id: ids) instead, which does not raise on missing records.
#
- # source://globalid//lib/global_id/locator.rb#60
+ # source://globalid//lib/global_id/locator.rb#63
def locate_many(gids, options = T.unsafe(nil)); end
# Takes an array of SignedGlobalIDs or strings that can be turned into a SignedGlobalIDs.
@@ -346,7 +359,7 @@ module GlobalID::Locator
# instances of returned classes to those including that module. If no classes or
# modules match, +nil+ is returned.
#
- # source://globalid//lib/global_id/locator.rb#103
+ # source://globalid//lib/global_id/locator.rb#106
def locate_many_signed(sgids, options = T.unsafe(nil)); end
# Takes either a SignedGlobalID or a string that can be turned into a SignedGlobalID
@@ -362,7 +375,7 @@ module GlobalID::Locator
# instances of returned classes to those including that module. If no classes or
# modules match, +nil+ is returned.
#
- # source://globalid//lib/global_id/locator.rb#81
+ # source://globalid//lib/global_id/locator.rb#84
def locate_signed(sgid, options = T.unsafe(nil)); end
# Tie a locator to an app.
@@ -388,80 +401,77 @@ module GlobalID::Locator
#
# @raise [ArgumentError]
#
- # source://globalid//lib/global_id/locator.rb#127
+ # source://globalid//lib/global_id/locator.rb#130
def use(app, locator = T.unsafe(nil), &locator_block); end
private
# @return [Boolean]
#
- # source://globalid//lib/global_id/locator.rb#140
+ # source://globalid//lib/global_id/locator.rb#143
def find_allowed?(model_class, only = T.unsafe(nil)); end
- # source://globalid//lib/global_id/locator.rb#136
+ # source://globalid//lib/global_id/locator.rb#139
def locator_for(gid); end
- # source://globalid//lib/global_id/locator.rb#148
+ # source://globalid//lib/global_id/locator.rb#151
def normalize_app(app); end
- # source://globalid//lib/global_id/locator.rb#144
+ # source://globalid//lib/global_id/locator.rb#147
def parse_allowed(gids, only = T.unsafe(nil)); end
end
end
-# source://globalid//lib/global_id/locator.rb#156
+# source://globalid//lib/global_id/locator.rb#159
class GlobalID::Locator::BaseLocator
- # source://globalid//lib/global_id/locator.rb#157
+ # source://globalid//lib/global_id/locator.rb#160
def locate(gid, options = T.unsafe(nil)); end
- # source://globalid//lib/global_id/locator.rb#165
+ # source://globalid//lib/global_id/locator.rb#168
def locate_many(gids, options = T.unsafe(nil)); end
private
- # source://globalid//lib/global_id/locator.rb#189
+ # source://globalid//lib/global_id/locator.rb#192
def find_records(model_class, ids, options); end
# @return [Boolean]
#
- # source://globalid//lib/global_id/locator.rb#199
+ # source://globalid//lib/global_id/locator.rb#202
def model_id_is_valid?(gid); end
- # source://globalid//lib/global_id/locator.rb#203
+ # source://globalid//lib/global_id/locator.rb#206
def primary_key(model_class); end
end
-# source://globalid//lib/global_id/locator.rb#228
+# source://globalid//lib/global_id/locator.rb#232
class GlobalID::Locator::BlockLocator
# @return [BlockLocator] a new instance of BlockLocator
#
- # source://globalid//lib/global_id/locator.rb#229
+ # source://globalid//lib/global_id/locator.rb#233
def initialize(block); end
- # source://globalid//lib/global_id/locator.rb#233
+ # source://globalid//lib/global_id/locator.rb#237
def locate(gid, options = T.unsafe(nil)); end
- # source://globalid//lib/global_id/locator.rb#237
+ # source://globalid//lib/global_id/locator.rb#241
def locate_many(gids, options = T.unsafe(nil)); end
end
-# source://globalid//lib/global_id/locator.rb#226
-GlobalID::Locator::DEFAULT_LOCATOR = T.let(T.unsafe(nil), GlobalID::Locator::UnscopedLocator)
-
# source://globalid//lib/global_id/locator.rb#5
class GlobalID::Locator::InvalidModelIdError < ::StandardError; end
-# source://globalid//lib/global_id/locator.rb#208
+# source://globalid//lib/global_id/locator.rb#211
class GlobalID::Locator::UnscopedLocator < ::GlobalID::Locator::BaseLocator
- # source://globalid//lib/global_id/locator.rb#209
+ # source://globalid//lib/global_id/locator.rb#212
def locate(gid, options = T.unsafe(nil)); end
private
- # source://globalid//lib/global_id/locator.rb#214
+ # source://globalid//lib/global_id/locator.rb#217
def find_records(model_class, ids, options); end
- # source://globalid//lib/global_id/locator.rb#218
+ # source://globalid//lib/global_id/locator.rb#221
def unscoped(model_class); end
end
@@ -600,7 +610,7 @@ class URI::GID < ::URI::Generic
# source://uri/0.13.0/uri/generic.rb#243
def app; end
- # source://globalid//lib/global_id/uri/gid.rb#107
+ # source://globalid//lib/global_id/uri/gid.rb#109
def deconstruct_keys(_keys); end
# Returns the value of attribute model_id.
@@ -618,57 +628,57 @@ class URI::GID < ::URI::Generic
# source://globalid//lib/global_id/uri/gid.rb#29
def params; end
- # source://globalid//lib/global_id/uri/gid.rb#102
+ # source://globalid//lib/global_id/uri/gid.rb#104
def to_s; end
protected
# Ruby 2.2 uses #query= instead of #set_query
#
- # source://globalid//lib/global_id/uri/gid.rb#118
+ # source://globalid//lib/global_id/uri/gid.rb#120
def query=(query); end
- # source://globalid//lib/global_id/uri/gid.rb#129
+ # source://globalid//lib/global_id/uri/gid.rb#131
def set_params(params); end
- # source://globalid//lib/global_id/uri/gid.rb#112
+ # source://globalid//lib/global_id/uri/gid.rb#114
def set_path(path); end
# Ruby 2.1 or less uses #set_query to assign the query
#
- # source://globalid//lib/global_id/uri/gid.rb#124
+ # source://globalid//lib/global_id/uri/gid.rb#126
def set_query(query); end
private
- # source://globalid//lib/global_id/uri/gid.rb#136
+ # source://globalid//lib/global_id/uri/gid.rb#138
def check_host(host); end
- # source://globalid//lib/global_id/uri/gid.rb#141
+ # source://globalid//lib/global_id/uri/gid.rb#143
def check_path(path); end
- # source://globalid//lib/global_id/uri/gid.rb#146
+ # source://globalid//lib/global_id/uri/gid.rb#148
def check_scheme(scheme); end
- # source://globalid//lib/global_id/uri/gid.rb#195
+ # source://globalid//lib/global_id/uri/gid.rb#197
def parse_query_params(query); end
- # source://globalid//lib/global_id/uri/gid.rb#154
+ # source://globalid//lib/global_id/uri/gid.rb#156
def set_model_components(path, validate = T.unsafe(nil)); end
# @raise [URI::InvalidComponentError]
#
- # source://globalid//lib/global_id/uri/gid.rb#174
+ # source://globalid//lib/global_id/uri/gid.rb#176
def validate_component(component); end
# @raise [InvalidModelIdError]
#
- # source://globalid//lib/global_id/uri/gid.rb#188
+ # source://globalid//lib/global_id/uri/gid.rb#190
def validate_model_id(model_id_part); end
# @raise [MissingModelIdError]
#
- # source://globalid//lib/global_id/uri/gid.rb#181
+ # source://globalid//lib/global_id/uri/gid.rb#183
def validate_model_id_section(model_id, model_name); end
class << self
@@ -685,14 +695,14 @@ class URI::GID < ::URI::Generic
#
# URI::GID.build(['bcx', 'Person', '1', key: 'value'])
#
- # source://globalid//lib/global_id/uri/gid.rb#88
+ # source://globalid//lib/global_id/uri/gid.rb#90
def build(args); end
# Shorthand to build a URI::GID from an app, a model and optional params.
#
# URI::GID.create('bcx', Person.find(5), database: 'superhumans')
#
- # source://globalid//lib/global_id/uri/gid.rb#72
+ # source://globalid//lib/global_id/uri/gid.rb#74
def create(app, model, params = T.unsafe(nil)); end
# Create a new URI::GID by parsing a gid string with argument check.
@@ -705,7 +715,7 @@ class URI::GID < ::URI::Generic
# URI.parse('gid://bcx') # => URI::GID instance
# URI::GID.parse('gid://bcx/') # => raises URI::InvalidComponentError
#
- # source://globalid//lib/global_id/uri/gid.rb#64
+ # source://globalid//lib/global_id/uri/gid.rb#66
def parse(uri); end
# Validates +app+'s as URI hostnames containing only alphanumeric characters
@@ -717,12 +727,12 @@ class URI::GID < ::URI::Generic
# URI::GID.validate_app(nil) # => ArgumentError
# URI::GID.validate_app('foo/bar') # => ArgumentError
#
- # source://globalid//lib/global_id/uri/gid.rb#48
+ # source://globalid//lib/global_id/uri/gid.rb#50
def validate_app(app); end
end
end
-# source://globalid//lib/global_id/uri/gid.rb#134
+# source://globalid//lib/global_id/uri/gid.rb#136
URI::GID::COMPONENT = T.let(T.unsafe(nil), Array)
# source://globalid//lib/global_id/uri/gid.rb#37
@@ -740,3 +750,6 @@ class URI::GID::InvalidModelIdError < ::URI::InvalidComponentError; end
#
# source://globalid//lib/global_id/uri/gid.rb#32
class URI::GID::MissingModelIdError < ::URI::InvalidComponentError; end
+
+# source://globalid//lib/global_id/uri/gid.rb#39
+URI::GID::URI_PARSER = T.let(T.unsafe(nil), URI::RFC2396_Parser)
diff --git a/sorbet/rbi/gems/i18n@1.14.5.rbi b/sorbet/rbi/gems/i18n@1.14.7.rbi
similarity index 96%
rename from sorbet/rbi/gems/i18n@1.14.5.rbi
rename to sorbet/rbi/gems/i18n@1.14.7.rbi
index e28614aef..bd5c9e5d2 100644
--- a/sorbet/rbi/gems/i18n@1.14.5.rbi
+++ b/sorbet/rbi/gems/i18n@1.14.7.rbi
@@ -88,7 +88,7 @@ module I18n
# source://i18n//lib/i18n/interpolate/ruby.rb#29
def interpolate_hash(string, values); end
- # source://i18n//lib/i18n.rb#37
+ # source://i18n//lib/i18n.rb#38
def new_double_nested_cache; end
# @return [Boolean]
@@ -101,10 +101,10 @@ module I18n
# extra keys as I18n options, you should call I18n.reserve_key
# before any I18n.translate (etc) calls are made.
#
- # source://i18n//lib/i18n.rb#45
+ # source://i18n//lib/i18n.rb#46
def reserve_key(key); end
- # source://i18n//lib/i18n.rb#50
+ # source://i18n//lib/i18n.rb#51
def reserved_keys_pattern; end
end
end
@@ -124,15 +124,15 @@ module I18n::Backend::Base
#
# @raise [NotImplementedError]
#
- # source://i18n//lib/i18n/backend/base.rb#96
+ # source://i18n//lib/i18n/backend/base.rb#97
def available_locales; end
- # source://i18n//lib/i18n/backend/base.rb#104
+ # source://i18n//lib/i18n/backend/base.rb#105
def eager_load!; end
# @return [Boolean]
#
- # source://i18n//lib/i18n/backend/base.rb#70
+ # source://i18n//lib/i18n/backend/base.rb#71
def exists?(locale, key, options = T.unsafe(nil)); end
# Accepts a list of paths to translation files. Loads translations from
@@ -148,10 +148,10 @@ module I18n::Backend::Base
#
# @raise [ArgumentError]
#
- # source://i18n//lib/i18n/backend/base.rb#77
+ # source://i18n//lib/i18n/backend/base.rb#78
def localize(locale, object, format = T.unsafe(nil), options = T.unsafe(nil)); end
- # source://i18n//lib/i18n/backend/base.rb#100
+ # source://i18n//lib/i18n/backend/base.rb#101
def reload!; end
# This method receives a locale, a data hash and options for storing translations.
@@ -175,7 +175,7 @@ module I18n::Backend::Base
# ann: 'good', john: 'big'
# #=> { people: { ann: "Ann is good", john: "John is big" } }
#
- # source://i18n//lib/i18n/backend/base.rb#209
+ # source://i18n//lib/i18n/backend/base.rb#217
def deep_interpolate(locale, data, values = T.unsafe(nil)); end
# Evaluates defaults.
@@ -183,12 +183,12 @@ module I18n::Backend::Base
# first translation that can be resolved. Otherwise it tries to resolve
# the translation directly.
#
- # source://i18n//lib/i18n/backend/base.rb#127
+ # source://i18n//lib/i18n/backend/base.rb#128
def default(locale, object, subject, options = T.unsafe(nil)); end
# @return [Boolean]
#
- # source://i18n//lib/i18n/backend/base.rb#110
+ # source://i18n//lib/i18n/backend/base.rb#111
def eager_loaded?; end
# Interpolates values into a given subject.
@@ -202,7 +202,7 @@ module I18n::Backend::Base
# method interpolates ["yes, %{user}", ["maybe no, %{user}", "no, %{user}"]], :user => "bartuz"
# # => ["yes, bartuz", ["maybe no, bartuz", "no, bartuz"]]
#
- # source://i18n//lib/i18n/backend/base.rb#193
+ # source://i18n//lib/i18n/backend/base.rb#201
def interpolate(locale, subject, values = T.unsafe(nil)); end
# Loads a single translations file by delegating to #load_rb or
@@ -212,41 +212,41 @@ module I18n::Backend::Base
#
# @raise [UnknownFileType]
#
- # source://i18n//lib/i18n/backend/base.rb#232
+ # source://i18n//lib/i18n/backend/base.rb#240
def load_file(filename); end
# Loads a JSON translations file. The data must have locales as
# toplevel keys.
#
- # source://i18n//lib/i18n/backend/base.rb#268
+ # source://i18n//lib/i18n/backend/base.rb#276
def load_json(filename); end
# Loads a plain Ruby translations file. eval'ing the file must yield
# a Hash containing translation data with locales as toplevel keys.
#
- # source://i18n//lib/i18n/backend/base.rb#246
+ # source://i18n//lib/i18n/backend/base.rb#254
def load_rb(filename); end
# Loads a YAML translations file. The data must have locales as
# toplevel keys.
#
- # source://i18n//lib/i18n/backend/base.rb#253
+ # source://i18n//lib/i18n/backend/base.rb#261
def load_yaml(filename); end
# Loads a YAML translations file. The data must have locales as
# toplevel keys.
#
- # source://i18n//lib/i18n/backend/base.rb#253
+ # source://i18n//lib/i18n/backend/base.rb#261
def load_yml(filename); end
# The method which actually looks up for the translation in the store.
#
# @raise [NotImplementedError]
#
- # source://i18n//lib/i18n/backend/base.rb#115
+ # source://i18n//lib/i18n/backend/base.rb#116
def lookup(locale, key, scope = T.unsafe(nil), options = T.unsafe(nil)); end
- # source://i18n//lib/i18n/backend/base.rb#300
+ # source://i18n//lib/i18n/backend/base.rb#308
def pluralization_key(entry, count); end
# Picks a translation from a pluralized mnemonic subkey according to English
@@ -260,7 +260,7 @@ module I18n::Backend::Base
#
# @raise [InvalidPluralizationData]
#
- # source://i18n//lib/i18n/backend/base.rb#174
+ # source://i18n//lib/i18n/backend/base.rb#182
def pluralize(locale, entry, count); end
# Resolves a translation.
@@ -268,7 +268,7 @@ module I18n::Backend::Base
# given options. If it is a Proc then it will be evaluated. All other
# subjects will be returned directly.
#
- # source://i18n//lib/i18n/backend/base.rb#149
+ # source://i18n//lib/i18n/backend/base.rb#150
def resolve(locale, object, subject, options = T.unsafe(nil)); end
# Resolves a translation.
@@ -276,15 +276,15 @@ module I18n::Backend::Base
# given options. If it is a Proc then it will be evaluated. All other
# subjects will be returned directly.
#
- # source://i18n//lib/i18n/backend/base.rb#149
+ # source://i18n//lib/i18n/backend/base.rb#150
def resolve_entry(locale, object, subject, options = T.unsafe(nil)); end
# @return [Boolean]
#
- # source://i18n//lib/i18n/backend/base.rb#119
+ # source://i18n//lib/i18n/backend/base.rb#120
def subtrees?; end
- # source://i18n//lib/i18n/backend/base.rb#281
+ # source://i18n//lib/i18n/backend/base.rb#289
def translate_localization_format(locale, object, format, options); end
end
@@ -448,10 +448,10 @@ end
module I18n::Backend::Fallbacks
# @return [Boolean]
#
- # source://i18n//lib/i18n/backend/fallbacks.rb#94
+ # source://i18n//lib/i18n/backend/fallbacks.rb#98
def exists?(locale, key, options = T.unsafe(nil)); end
- # source://i18n//lib/i18n/backend/fallbacks.rb#85
+ # source://i18n//lib/i18n/backend/fallbacks.rb#89
def extract_non_symbol_default!(options); end
# source://i18n//lib/i18n/backend/fallbacks.rb#67
@@ -475,7 +475,7 @@ module I18n::Backend::Fallbacks
# Overwrite on_fallback to add specified logic when the fallback succeeds.
#
- # source://i18n//lib/i18n/backend/fallbacks.rb#110
+ # source://i18n//lib/i18n/backend/fallbacks.rb#114
def on_fallback(_original_locale, _fallback_locale, _key, _options); end
end
@@ -1061,14 +1061,14 @@ end
# The implementation is provided by a Implementation module allowing to easily
# extend Simple backend's behavior by including modules. E.g.:
#
-# module I18n::Backend::Pluralization
-# def pluralize(*args)
-# # extended pluralization logic
-# super
-# end
-# end
+# module I18n::Backend::Pluralization
+# def pluralize(*args)
+# # extended pluralization logic
+# super
+# end
+# end
#
-# I18n::Backend::Simple.include(I18n::Backend::Pluralization)
+# I18n::Backend::Simple.include(I18n::Backend::Pluralization)
#
# source://i18n//lib/i18n/backend/simple.rb#21
class I18n::Backend::Simple
@@ -1193,69 +1193,69 @@ class I18n::Backend::Transliterator::ProcTransliterator
def transliterate(string, replacement = T.unsafe(nil)); end
end
-# source://i18n//lib/i18n.rb#54
+# source://i18n//lib/i18n.rb#55
module I18n::Base
- # source://i18n//lib/i18n.rb#69
+ # source://i18n//lib/i18n.rb#70
def available_locales; end
- # source://i18n//lib/i18n.rb#73
+ # source://i18n//lib/i18n.rb#74
def available_locales=(value); end
# @return [Boolean]
#
- # source://i18n//lib/i18n.rb#384
+ # source://i18n//lib/i18n.rb#386
def available_locales_initialized?; end
- # source://i18n//lib/i18n.rb#69
+ # source://i18n//lib/i18n.rb#70
def backend; end
- # source://i18n//lib/i18n.rb#73
+ # source://i18n//lib/i18n.rb#74
def backend=(value); end
# Gets I18n configuration object.
#
- # source://i18n//lib/i18n.rb#56
+ # source://i18n//lib/i18n.rb#57
def config; end
# Sets I18n configuration object.
#
- # source://i18n//lib/i18n.rb#61
+ # source://i18n//lib/i18n.rb#62
def config=(value); end
- # source://i18n//lib/i18n.rb#69
+ # source://i18n//lib/i18n.rb#70
def default_locale; end
- # source://i18n//lib/i18n.rb#73
+ # source://i18n//lib/i18n.rb#74
def default_locale=(value); end
- # source://i18n//lib/i18n.rb#69
+ # source://i18n//lib/i18n.rb#70
def default_separator; end
- # source://i18n//lib/i18n.rb#73
+ # source://i18n//lib/i18n.rb#74
def default_separator=(value); end
# Tells the backend to load translations now. Used in situations like the
# Rails production environment. Backends can implement whatever strategy
# is useful.
#
- # source://i18n//lib/i18n.rb#90
+ # source://i18n//lib/i18n.rb#91
def eager_load!; end
- # source://i18n//lib/i18n.rb#69
+ # source://i18n//lib/i18n.rb#70
def enforce_available_locales; end
# Raises an InvalidLocale exception when the passed locale is not available.
#
- # source://i18n//lib/i18n.rb#378
+ # source://i18n//lib/i18n.rb#380
def enforce_available_locales!(locale); end
- # source://i18n//lib/i18n.rb#73
+ # source://i18n//lib/i18n.rb#74
def enforce_available_locales=(value); end
- # source://i18n//lib/i18n.rb#69
+ # source://i18n//lib/i18n.rb#70
def exception_handler; end
- # source://i18n//lib/i18n.rb#73
+ # source://i18n//lib/i18n.rb#74
def exception_handler=(value); end
# Returns true if a translation exists for a given key, otherwise returns false.
@@ -1263,7 +1263,7 @@ module I18n::Base
# @raise [Disabled]
# @return [Boolean]
#
- # source://i18n//lib/i18n.rb#264
+ # source://i18n//lib/i18n.rb#265
def exists?(key, _locale = T.unsafe(nil), locale: T.unsafe(nil), **options); end
# Returns an array of interpolation keys for the given translation key
@@ -1288,26 +1288,26 @@ module I18n::Base
#
# @raise [I18n::ArgumentError]
#
- # source://i18n//lib/i18n.rb#253
+ # source://i18n//lib/i18n.rb#254
def interpolation_keys(key, **options); end
# Localizes certain objects, such as dates and numbers to local formatting.
#
# @raise [Disabled]
#
- # source://i18n//lib/i18n.rb#333
+ # source://i18n//lib/i18n.rb#335
def l(object, locale: T.unsafe(nil), format: T.unsafe(nil), **options); end
- # source://i18n//lib/i18n.rb#69
+ # source://i18n//lib/i18n.rb#70
def load_path; end
- # source://i18n//lib/i18n.rb#73
+ # source://i18n//lib/i18n.rb#74
def load_path=(value); end
- # source://i18n//lib/i18n.rb#69
+ # source://i18n//lib/i18n.rb#70
def locale; end
- # source://i18n//lib/i18n.rb#73
+ # source://i18n//lib/i18n.rb#74
def locale=(value); end
# Returns true when the passed locale, which can be either a String or a
@@ -1315,28 +1315,28 @@ module I18n::Base
#
# @return [Boolean]
#
- # source://i18n//lib/i18n.rb#373
+ # source://i18n//lib/i18n.rb#375
def locale_available?(locale); end
# Localizes certain objects, such as dates and numbers to local formatting.
#
# @raise [Disabled]
#
- # source://i18n//lib/i18n.rb#333
+ # source://i18n//lib/i18n.rb#335
def localize(object, locale: T.unsafe(nil), format: T.unsafe(nil), **options); end
# Merges the given locale, key and scope into a single array of keys.
# Splits keys that contain dots into multiple keys. Makes sure all
# keys are Symbols.
#
- # source://i18n//lib/i18n.rb#361
+ # source://i18n//lib/i18n.rb#363
def normalize_keys(locale, key, scope, separator = T.unsafe(nil)); end
# Tells the backend to reload translations. Used in situations like the
# Rails development environment. Backends can implement whatever strategy
# is useful.
#
- # source://i18n//lib/i18n.rb#82
+ # source://i18n//lib/i18n.rb#83
def reload!; end
# Translates, pluralizes and interpolates a given key using a given locale,
@@ -1409,7 +1409,7 @@ module I18n::Base
# or default if no translations for :foo and :bar were found.
# I18n.t :foo, :default => [:bar, 'default']
#
- # *BULK LOOKUP*
+ # BULK LOOKUP
#
# This returns an array with the translations for :foo and :bar.
# I18n.t [:foo, :bar]
@@ -1428,7 +1428,7 @@ module I18n::Base
# E.g. assuming the key :salutation resolves to:
# lambda { |key, options| options[:gender] == 'm' ? "Mr. #{options[:name]}" : "Mrs. #{options[:name]}" }
#
- # Then I18n.t(:salutation, :gender => 'w', :name => 'Smith') will result in "Mrs. Smith".
+ # Then I18n.t(:salutation, :gender => 'w', :name => 'Smith') will result in "Mrs. Smith".
#
# Note that the string returned by lambda will go through string interpolation too,
# so the following lambda would give the same result:
@@ -1440,7 +1440,7 @@ module I18n::Base
# always return the same translations/values per unique combination of argument
# values.
#
- # *Ruby 2.7+ keyword arguments warning*
+ # Ruby 2.7+ keyword arguments warning
#
# This method uses keyword arguments.
# There is a breaking change in ruby that produces warning with ruby 2.7 and won't work as expected with ruby 3.0
@@ -1457,13 +1457,13 @@ module I18n::Base
#
# @raise [Disabled]
#
- # source://i18n//lib/i18n.rb#210
+ # source://i18n//lib/i18n.rb#211
def t(key = T.unsafe(nil), throw: T.unsafe(nil), raise: T.unsafe(nil), locale: T.unsafe(nil), **options); end
# Wrapper for translate that adds :raise => true. With
# this option, if no translation is found, it will raise I18n::MissingTranslationData
#
- # source://i18n//lib/i18n.rb#229
+ # source://i18n//lib/i18n.rb#230
def t!(key, **options); end
# Translates, pluralizes and interpolates a given key using a given locale,
@@ -1536,7 +1536,7 @@ module I18n::Base
# or default if no translations for :foo and :bar were found.
# I18n.t :foo, :default => [:bar, 'default']
#
- # *BULK LOOKUP*
+ # BULK LOOKUP
#
# This returns an array with the translations for :foo and :bar.
# I18n.t [:foo, :bar]
@@ -1555,7 +1555,7 @@ module I18n::Base
# E.g. assuming the key :salutation resolves to:
# lambda { |key, options| options[:gender] == 'm' ? "Mr. #{options[:name]}" : "Mrs. #{options[:name]}" }
#
- # Then I18n.t(:salutation, :gender => 'w', :name => 'Smith') will result in "Mrs. Smith".
+ # Then I18n.t(:salutation, :gender => 'w', :name => 'Smith') will result in "Mrs. Smith".
#
# Note that the string returned by lambda will go through string interpolation too,
# so the following lambda would give the same result:
@@ -1567,7 +1567,7 @@ module I18n::Base
# always return the same translations/values per unique combination of argument
# values.
#
- # *Ruby 2.7+ keyword arguments warning*
+ # Ruby 2.7+ keyword arguments warning
#
# This method uses keyword arguments.
# There is a breaking change in ruby that produces warning with ruby 2.7 and won't work as expected with ruby 3.0
@@ -1584,13 +1584,13 @@ module I18n::Base
#
# @raise [Disabled]
#
- # source://i18n//lib/i18n.rb#210
+ # source://i18n//lib/i18n.rb#211
def translate(key = T.unsafe(nil), throw: T.unsafe(nil), raise: T.unsafe(nil), locale: T.unsafe(nil), **options); end
# Wrapper for translate that adds :raise => true. With
# this option, if no translation is found, it will raise I18n::MissingTranslationData
#
- # source://i18n//lib/i18n.rb#229
+ # source://i18n//lib/i18n.rb#230
def translate!(key, **options); end
# Transliterates UTF-8 characters to ASCII. By default this method will
@@ -1645,12 +1645,12 @@ module I18n::Base
# I18n.transliterate("Jürgen", :locale => :en) # => "Jurgen"
# I18n.transliterate("Jürgen", :locale => :de) # => "Juergen"
#
- # source://i18n//lib/i18n.rb#322
+ # source://i18n//lib/i18n.rb#324
def transliterate(key, throw: T.unsafe(nil), raise: T.unsafe(nil), locale: T.unsafe(nil), replacement: T.unsafe(nil), **options); end
# Executes block with given I18n.locale set.
#
- # source://i18n//lib/i18n.rb#344
+ # source://i18n//lib/i18n.rb#346
def with_locale(tmp_locale = T.unsafe(nil)); end
private
@@ -1674,16 +1674,16 @@ module I18n::Base
# I18n.exception_handler = I18nExceptionHandler.new # an object
# I18n.exception_handler.call(exception, locale, key, options) # will be called like this
#
- # source://i18n//lib/i18n.rb#420
+ # source://i18n//lib/i18n.rb#422
def handle_exception(handling, exception, locale, key, options); end
- # source://i18n//lib/i18n.rb#462
+ # source://i18n//lib/i18n.rb#464
def interpolation_keys_from_translation(translation); end
- # source://i18n//lib/i18n.rb#438
+ # source://i18n//lib/i18n.rb#440
def normalize_key(key, separator); end
- # source://i18n//lib/i18n.rb#390
+ # source://i18n//lib/i18n.rb#392
def translate_key(key, throw, raise, locale, backend, options); end
end
@@ -1845,7 +1845,7 @@ class I18n::Disabled < ::I18n::ArgumentError
def initialize(method); end
end
-# source://i18n//lib/i18n.rb#35
+# source://i18n//lib/i18n.rb#36
I18n::EMPTY_HASH = T.let(T.unsafe(nil), Hash)
# source://i18n//lib/i18n/exceptions.rb#6
diff --git a/sorbet/rbi/gems/loofah@2.22.0.rbi b/sorbet/rbi/gems/loofah@2.24.1.rbi
similarity index 92%
rename from sorbet/rbi/gems/loofah@2.22.0.rbi
rename to sorbet/rbi/gems/loofah@2.24.1.rbi
index 58c1bb312..652e0b1ef 100644
--- a/sorbet/rbi/gems/loofah@2.22.0.rbi
+++ b/sorbet/rbi/gems/loofah@2.24.1.rbi
@@ -235,21 +235,21 @@ Loofah::HTML5::SafeList::ACCEPTABLE_ATTRIBUTES = T.let(T.unsafe(nil), Set)
# https://www.w3.org/TR/css-color-3/#html4
#
-# source://loofah//lib/loofah/html5/safelist.rb#735
+# source://loofah//lib/loofah/html5/safelist.rb#738
Loofah::HTML5::SafeList::ACCEPTABLE_CSS_COLORS = T.let(T.unsafe(nil), Set)
# https://www.w3.org/TR/css-color-3/#svg-color
#
-# source://loofah//lib/loofah/html5/safelist.rb#755
+# source://loofah//lib/loofah/html5/safelist.rb#758
Loofah::HTML5::SafeList::ACCEPTABLE_CSS_EXTENDED_COLORS = T.let(T.unsafe(nil), Set)
# see https://www.quackit.com/css/functions/
# omit `url` and `image` from that list
#
-# source://loofah//lib/loofah/html5/safelist.rb#907
+# source://loofah//lib/loofah/html5/safelist.rb#910
Loofah::HTML5::SafeList::ACCEPTABLE_CSS_FUNCTIONS = T.let(T.unsafe(nil), Set)
-# source://loofah//lib/loofah/html5/safelist.rb#696
+# source://loofah//lib/loofah/html5/safelist.rb#699
Loofah::HTML5::SafeList::ACCEPTABLE_CSS_KEYWORDS = T.let(T.unsafe(nil), Set)
# source://loofah//lib/loofah/html5/safelist.rb#626
@@ -258,42 +258,42 @@ Loofah::HTML5::SafeList::ACCEPTABLE_CSS_PROPERTIES = T.let(T.unsafe(nil), Set)
# source://loofah//lib/loofah/html5/safelist.rb#50
Loofah::HTML5::SafeList::ACCEPTABLE_ELEMENTS = T.let(T.unsafe(nil), Set)
-# source://loofah//lib/loofah/html5/safelist.rb#980
+# source://loofah//lib/loofah/html5/safelist.rb#983
Loofah::HTML5::SafeList::ACCEPTABLE_PROTOCOLS = T.let(T.unsafe(nil), Set)
-# source://loofah//lib/loofah/html5/safelist.rb#967
+# source://loofah//lib/loofah/html5/safelist.rb#970
Loofah::HTML5::SafeList::ACCEPTABLE_SVG_PROPERTIES = T.let(T.unsafe(nil), Set)
-# source://loofah//lib/loofah/html5/safelist.rb#1011
+# source://loofah//lib/loofah/html5/safelist.rb#1014
Loofah::HTML5::SafeList::ACCEPTABLE_URI_DATA_MEDIATYPES = T.let(T.unsafe(nil), Set)
-# source://loofah//lib/loofah/html5/safelist.rb#1021
+# source://loofah//lib/loofah/html5/safelist.rb#1024
Loofah::HTML5::SafeList::ALLOWED_ATTRIBUTES = T.let(T.unsafe(nil), Set)
-# source://loofah//lib/loofah/html5/safelist.rb#1024
+# source://loofah//lib/loofah/html5/safelist.rb#1027
Loofah::HTML5::SafeList::ALLOWED_CSS_FUNCTIONS = T.let(T.unsafe(nil), Set)
-# source://loofah//lib/loofah/html5/safelist.rb#1023
+# source://loofah//lib/loofah/html5/safelist.rb#1026
Loofah::HTML5::SafeList::ALLOWED_CSS_KEYWORDS = T.let(T.unsafe(nil), Set)
-# source://loofah//lib/loofah/html5/safelist.rb#1022
+# source://loofah//lib/loofah/html5/safelist.rb#1025
Loofah::HTML5::SafeList::ALLOWED_CSS_PROPERTIES = T.let(T.unsafe(nil), Set)
# subclasses may define their own versions of these constants
#
-# source://loofah//lib/loofah/html5/safelist.rb#1020
+# source://loofah//lib/loofah/html5/safelist.rb#1023
Loofah::HTML5::SafeList::ALLOWED_ELEMENTS = T.let(T.unsafe(nil), Set)
-# source://loofah//lib/loofah/html5/safelist.rb#1045
+# source://loofah//lib/loofah/html5/safelist.rb#1048
Loofah::HTML5::SafeList::ALLOWED_ELEMENTS_WITH_LIBXML2 = T.let(T.unsafe(nil), Set)
-# source://loofah//lib/loofah/html5/safelist.rb#1026
+# source://loofah//lib/loofah/html5/safelist.rb#1029
Loofah::HTML5::SafeList::ALLOWED_PROTOCOLS = T.let(T.unsafe(nil), Set)
-# source://loofah//lib/loofah/html5/safelist.rb#1025
+# source://loofah//lib/loofah/html5/safelist.rb#1028
Loofah::HTML5::SafeList::ALLOWED_SVG_PROPERTIES = T.let(T.unsafe(nil), Set)
-# source://loofah//lib/loofah/html5/safelist.rb#1027
+# source://loofah//lib/loofah/html5/safelist.rb#1030
Loofah::HTML5::SafeList::ALLOWED_URI_DATA_MEDIATYPES = T.let(T.unsafe(nil), Set)
# source://loofah//lib/loofah/html5/safelist.rb#526
@@ -308,10 +308,10 @@ Loofah::HTML5::SafeList::MATHML_ATTRIBUTES = T.let(T.unsafe(nil), Set)
# source://loofah//lib/loofah/html5/safelist.rb#147
Loofah::HTML5::SafeList::MATHML_ELEMENTS = T.let(T.unsafe(nil), Set)
-# source://loofah//lib/loofah/html5/safelist.rb#978
+# source://loofah//lib/loofah/html5/safelist.rb#981
Loofah::HTML5::SafeList::PROTOCOL_SEPARATOR = T.let(T.unsafe(nil), Regexp)
-# source://loofah//lib/loofah/html5/safelist.rb#960
+# source://loofah//lib/loofah/html5/safelist.rb#963
Loofah::HTML5::SafeList::SHORTHAND_CSS_PROPERTIES = T.let(T.unsafe(nil), Set)
# source://loofah//lib/loofah/html5/safelist.rb#608
@@ -328,82 +328,82 @@ Loofah::HTML5::SafeList::SVG_ELEMENTS = T.let(T.unsafe(nil), Set)
# additional tags we should consider safe since we have libxml2 fixing up our documents.
#
-# source://loofah//lib/loofah/html5/safelist.rb#1040
+# source://loofah//lib/loofah/html5/safelist.rb#1043
Loofah::HTML5::SafeList::TAGS_SAFE_WITH_LIBXML2 = T.let(T.unsafe(nil), Set)
# TODO: remove VOID_ELEMENTS in a future major release
# and put it in the tests (it is used only for testing, not for functional behavior)
#
-# source://loofah//lib/loofah/html5/safelist.rb#1031
+# source://loofah//lib/loofah/html5/safelist.rb#1034
Loofah::HTML5::SafeList::VOID_ELEMENTS = T.let(T.unsafe(nil), Set)
-# source://loofah//lib/loofah/html5/scrub.rb#8
+# source://loofah//lib/loofah/html5/scrub.rb#9
module Loofah::HTML5::Scrub
class << self
# @return [Boolean]
#
- # source://loofah//lib/loofah/html5/scrub.rb#18
+ # source://loofah//lib/loofah/html5/scrub.rb#19
def allowed_element?(element_name); end
- # source://loofah//lib/loofah/html5/scrub.rb#192
+ # source://loofah//lib/loofah/html5/scrub.rb#193
def cdata_escape(node); end
# @return [Boolean]
#
- # source://loofah//lib/loofah/html5/scrub.rb#187
+ # source://loofah//lib/loofah/html5/scrub.rb#188
def cdata_needs_escaping?(node); end
- # source://loofah//lib/loofah/html5/scrub.rb#207
+ # source://loofah//lib/loofah/html5/scrub.rb#208
def escape_tags(string); end
# libxml2 >= 2.9.2 fails to escape comments within some attributes.
#
# see comments about CVE-2018-8048 within the tests for more information
#
- # source://loofah//lib/loofah/html5/scrub.rb#166
+ # source://loofah//lib/loofah/html5/scrub.rb#167
def force_correct_attribute_escaping!(node); end
- # source://loofah//lib/loofah/html5/scrub.rb#123
+ # source://loofah//lib/loofah/html5/scrub.rb#124
def scrub_attribute_that_allows_local_ref(attr_node); end
# alternative implementation of the html5lib attribute scrubbing algorithm
#
- # source://loofah//lib/loofah/html5/scrub.rb#23
+ # source://loofah//lib/loofah/html5/scrub.rb#24
def scrub_attributes(node); end
- # source://loofah//lib/loofah/html5/scrub.rb#72
+ # source://loofah//lib/loofah/html5/scrub.rb#73
def scrub_css(style); end
- # source://loofah//lib/loofah/html5/scrub.rb#67
+ # source://loofah//lib/loofah/html5/scrub.rb#68
def scrub_css_attribute(node); end
- # source://loofah//lib/loofah/html5/scrub.rb#142
+ # source://loofah//lib/loofah/html5/scrub.rb#143
def scrub_uri_attribute(attr_node); end
end
end
-# source://loofah//lib/loofah/html5/scrub.rb#9
+# source://loofah//lib/loofah/html5/scrub.rb#10
Loofah::HTML5::Scrub::CONTROL_CHARACTERS = T.let(T.unsafe(nil), Regexp)
-# source://loofah//lib/loofah/html5/scrub.rb#11
+# source://loofah//lib/loofah/html5/scrub.rb#12
Loofah::HTML5::Scrub::CRASS_SEMICOLON = T.let(T.unsafe(nil), Hash)
-# source://loofah//lib/loofah/html5/scrub.rb#12
+# source://loofah//lib/loofah/html5/scrub.rb#13
Loofah::HTML5::Scrub::CSS_IMPORTANT = T.let(T.unsafe(nil), String)
-# source://loofah//lib/loofah/html5/scrub.rb#10
+# source://loofah//lib/loofah/html5/scrub.rb#11
Loofah::HTML5::Scrub::CSS_KEYWORDISH = T.let(T.unsafe(nil), Regexp)
-# source://loofah//lib/loofah/html5/scrub.rb#14
+# source://loofah//lib/loofah/html5/scrub.rb#15
Loofah::HTML5::Scrub::CSS_PROPERTY_STRING_WITHOUT_EMBEDDED_QUOTES = T.let(T.unsafe(nil), Regexp)
-# source://loofah//lib/loofah/html5/scrub.rb#13
+# source://loofah//lib/loofah/html5/scrub.rb#14
Loofah::HTML5::Scrub::CSS_WHITESPACE = T.let(T.unsafe(nil), String)
-# source://loofah//lib/loofah/html5/scrub.rb#15
+# source://loofah//lib/loofah/html5/scrub.rb#16
Loofah::HTML5::Scrub::DATA_ATTRIBUTE_NAME = T.let(T.unsafe(nil), Regexp)
-# source://loofah//lib/loofah/html5/safelist.rb#1048
+# source://loofah//lib/loofah/html5/safelist.rb#1051
Loofah::HTML5::WhiteList = Loofah::HTML5::SafeList
# source://loofah//lib/loofah/concerns.rb#133
@@ -754,11 +754,35 @@ module Loofah::Scrubbers
class << self
# Returns an array of symbols representing the built-in scrubbers
#
- # source://loofah//lib/loofah/scrubbers.rb#371
+ # source://loofah//lib/loofah/scrubbers.rb#425
def scrubber_symbols; end
end
end
+# === scrub!(:double_breakpoint)
+#
+# +:double_breakpoint+ replaces double-break tags with closing/opening paragraph tags.
+#
+# markup = "Some text here in a logical paragraph.
Some more text, apparently a second paragraph.
Some text here in a logical paragraph.
Some more text, apparently a second paragraph.
" +# +# source://loofah//lib/loofah/scrubbers.rb#362 +class Loofah::Scrubbers::DoubleBreakpoint < ::Loofah::Scrubber + # @return [DoubleBreakpoint] a new instance of DoubleBreakpoint + # + # source://loofah//lib/loofah/scrubbers.rb#363 + def initialize; end + + # source://loofah//lib/loofah/scrubbers.rb#367 + def scrub(node); end + + private + + # source://loofah//lib/loofah/scrubbers.rb#400 + def remove_blank_text_nodes(node); end +end + # === scrub!(:escape) # # +:escape+ performs HTML entity escaping on the unknown/unsafe tags: @@ -780,19 +804,19 @@ end # A hash that maps a symbol (like +:prune+) to the appropriate Scrubber (Loofah::Scrubbers::Prune). # -# source://loofah//lib/loofah/scrubbers.rb#354 +# source://loofah//lib/loofah/scrubbers.rb#407 Loofah::Scrubbers::MAP = T.let(T.unsafe(nil), Hash) # This class probably isn't useful publicly, but is used for #to_text's current implemention # -# source://loofah//lib/loofah/scrubbers.rb#305 +# source://loofah//lib/loofah/scrubbers.rb#307 class Loofah::Scrubbers::NewlineBlockElements < ::Loofah::Scrubber # @return [NewlineBlockElements] a new instance of NewlineBlockElements # - # source://loofah//lib/loofah/scrubbers.rb#306 + # source://loofah//lib/loofah/scrubbers.rb#308 def initialize; end - # source://loofah//lib/loofah/scrubbers.rb#310 + # source://loofah//lib/loofah/scrubbers.rb#312 def scrub(node); end end @@ -823,14 +847,14 @@ end # Loofah.html5_fragment(link_farmers_markup).scrub!(:noopener) # => "ohai! I like your blog post" # -# source://loofah//lib/loofah/scrubbers.rb#269 +# source://loofah//lib/loofah/scrubbers.rb#271 class Loofah::Scrubbers::NoOpener < ::Loofah::Scrubber # @return [NoOpener] a new instance of NoOpener # - # source://loofah//lib/loofah/scrubbers.rb#270 + # source://loofah//lib/loofah/scrubbers.rb#272 def initialize; end - # source://loofah//lib/loofah/scrubbers.rb#274 + # source://loofah//lib/loofah/scrubbers.rb#276 def scrub(node); end end @@ -842,14 +866,14 @@ end # Loofah.html5_fragment(link_farmers_markup).scrub!(:noreferrer) # => "ohai! I like your blog post" # -# source://loofah//lib/loofah/scrubbers.rb#291 +# source://loofah//lib/loofah/scrubbers.rb#293 class Loofah::Scrubbers::NoReferrer < ::Loofah::Scrubber # @return [NoReferrer] a new instance of NoReferrer # - # source://loofah//lib/loofah/scrubbers.rb#292 + # source://loofah//lib/loofah/scrubbers.rb#294 def initialize; end - # source://loofah//lib/loofah/scrubbers.rb#296 + # source://loofah//lib/loofah/scrubbers.rb#298 def scrub(node); end end @@ -928,14 +952,14 @@ end # # http://timelessrepo.com/json-isnt-a-javascript-subset # -# source://loofah//lib/loofah/scrubbers.rb#338 +# source://loofah//lib/loofah/scrubbers.rb#340 class Loofah::Scrubbers::Unprintable < ::Loofah::Scrubber # @return [Unprintable] a new instance of Unprintable # - # source://loofah//lib/loofah/scrubbers.rb#339 + # source://loofah//lib/loofah/scrubbers.rb#341 def initialize; end - # source://loofah//lib/loofah/scrubbers.rb#343 + # source://loofah//lib/loofah/scrubbers.rb#345 def scrub(node); end end diff --git a/sorbet/rbi/gems/marcel@1.0.4.rbi b/sorbet/rbi/gems/marcel@1.1.0.rbi similarity index 97% rename from sorbet/rbi/gems/marcel@1.0.4.rbi rename to sorbet/rbi/gems/marcel@1.1.0.rbi index 861f2c1c8..2970bf08e 100644 --- a/sorbet/rbi/gems/marcel@1.0.4.rbi +++ b/sorbet/rbi/gems/marcel@1.1.0.rbi @@ -18,7 +18,7 @@ Marcel::EXTENSIONS = T.let(T.unsafe(nil), Hash) # @private # -# source://marcel//lib/marcel/tables.rb#2394 +# source://marcel//lib/marcel/tables.rb#2513 Marcel::MAGIC = T.let(T.unsafe(nil), Array) # Mime type detection @@ -227,12 +227,12 @@ Marcel::MimeType::BINARY = T.let(T.unsafe(nil), String) # @private # -# source://marcel//lib/marcel/tables.rb#1260 +# source://marcel//lib/marcel/tables.rb#1310 Marcel::TYPE_EXTS = T.let(T.unsafe(nil), Hash) # Cooltalk Audio # -# source://marcel//lib/marcel/tables.rb#2151 +# source://marcel//lib/marcel/tables.rb#2239 Marcel::TYPE_PARENTS = T.let(T.unsafe(nil), Hash) # source://marcel//lib/marcel/version.rb#4 diff --git a/sorbet/rbi/gems/minitest@5.24.1.rbi b/sorbet/rbi/gems/minitest@5.26.2.rbi similarity index 73% rename from sorbet/rbi/gems/minitest@5.24.1.rbi rename to sorbet/rbi/gems/minitest@5.26.2.rbi index eca0b9510..65823a6c3 100644 --- a/sorbet/rbi/gems/minitest@5.24.1.rbi +++ b/sorbet/rbi/gems/minitest@5.26.2.rbi @@ -5,15 +5,16 @@ # Please instead update this file by running `bin/tapioca gem minitest`. -# :include: README.rdoc +# The top-level namespace for Minitest. Also the location of the main +# runtime. See +Minitest.run+ for more information. # -# source://minitest//lib/minitest/parallel.rb#1 +# source://minitest//lib/minitest/parallel.rb#3 module Minitest class << self # Internal run method. Responsible for telling all Runnable # sub-classes to run. # - # source://minitest//lib/minitest.rb#323 + # source://minitest//lib/minitest.rb#338 def __run(reporter, options); end # A simple hook allowing you to run a block of code after everything @@ -24,45 +25,45 @@ module Minitest # source://minitest//lib/minitest.rb#97 def after_run(&block); end - # source://minitest//lib/minitest.rb#19 + # source://minitest//lib/minitest.rb#20 def allow_fork; end - # source://minitest//lib/minitest.rb#19 + # source://minitest//lib/minitest.rb#20 def allow_fork=(_arg0); end # Registers Minitest to run at process exit # - # source://minitest//lib/minitest.rb#69 + # source://minitest//lib/minitest.rb#70 def autorun; end - # source://minitest//lib/minitest.rb#19 + # source://minitest//lib/minitest.rb#20 def backtrace_filter; end - # source://minitest//lib/minitest.rb#19 + # source://minitest//lib/minitest.rb#20 def backtrace_filter=(_arg0); end - # source://minitest//lib/minitest.rb#18 + # source://minitest//lib/minitest.rb#19 def cattr_accessor(name); end - # source://minitest//lib/minitest.rb#1208 + # source://minitest//lib/minitest.rb#1232 def clock_time; end - # source://minitest//lib/minitest.rb#303 + # source://minitest//lib/minitest.rb#318 def empty_run!(options); end - # source://minitest//lib/minitest.rb#19 + # source://minitest//lib/minitest.rb#20 def extensions; end - # source://minitest//lib/minitest.rb#19 + # source://minitest//lib/minitest.rb#20 def extensions=(_arg0); end - # source://minitest//lib/minitest.rb#336 + # source://minitest//lib/minitest.rb#351 def filter_backtrace(bt); end - # source://minitest//lib/minitest.rb#19 + # source://minitest//lib/minitest.rb#20 def info_signal; end - # source://minitest//lib/minitest.rb#19 + # source://minitest//lib/minitest.rb#20 def info_signal=(_arg0); end # source://minitest//lib/minitest.rb#125 @@ -71,10 +72,10 @@ module Minitest # source://minitest//lib/minitest.rb#109 def load_plugins; end - # source://minitest//lib/minitest.rb#19 + # source://minitest//lib/minitest.rb#20 def parallel_executor; end - # source://minitest//lib/minitest.rb#19 + # source://minitest//lib/minitest.rb#20 def parallel_executor=(_arg0); end # source://minitest//lib/minitest.rb#143 @@ -85,10 +86,10 @@ module Minitest # source://minitest//lib/minitest.rb#104 def register_plugin(name_or_mod); end - # source://minitest//lib/minitest.rb#19 + # source://minitest//lib/minitest.rb#20 def reporter; end - # source://minitest//lib/minitest.rb#19 + # source://minitest//lib/minitest.rb#20 def reporter=(_arg0); end # This is the top-level run method. Everything starts from here. It @@ -103,23 +104,24 @@ module Minitest # Minitest.process_args # Minitest.init_plugins # Minitest.__run(reporter, options) - # Runnable.runnables.each + # Runnable.runnables.each |runnable_klass| # runnable_klass.run(reporter, options) - # self.runnable_methods.each - # self.run_one_method(self, runnable_method, reporter) - # Minitest.run_one_method(klass, runnable_method) - # klass.new(runnable_method).run + # filtered_methods = runnable_methods.select {...}.reject {...} + # filtered_methods.each |runnable_method| + # runnable_klass.run_one_method(self, runnable_method, reporter) + # Minitest.run_one_method(runnable_klass, runnable_method) + # runnable_klass.new(runnable_method).run # - # source://minitest//lib/minitest.rb#269 + # source://minitest//lib/minitest.rb#283 def run(args = T.unsafe(nil)); end - # source://minitest//lib/minitest.rb#1199 + # source://minitest//lib/minitest.rb#1223 def run_one_method(klass, method_name); end - # source://minitest//lib/minitest.rb#19 + # source://minitest//lib/minitest.rb#20 def seed; end - # source://minitest//lib/minitest.rb#19 + # source://minitest//lib/minitest.rb#20 def seed=(_arg0); end end end @@ -127,24 +129,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#703 class Minitest::AbstractReporter # @return [AbstractReporter] a new instance of AbstractReporter # - # source://minitest//lib/minitest.rb#684 + # source://minitest//lib/minitest.rb#705 def initialize; end # Did this run pass? # # @return [Boolean] # - # source://minitest//lib/minitest.rb#719 + # source://minitest//lib/minitest.rb#740 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#719 def prerecord(klass, name); end # Output and record the result of the test. Call @@ -152,43 +154,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#728 def record(result); end # Outputs the summary of the run. # - # source://minitest//lib/minitest.rb#713 + # source://minitest//lib/minitest.rb#734 def report; end # Starts reporting on the run. # - # source://minitest//lib/minitest.rb#691 + # source://minitest//lib/minitest.rb#712 def start; end - # source://minitest//lib/minitest.rb#723 + # source://minitest//lib/minitest.rb#744 def synchronize(&block); end end # Represents run failures. # -# source://minitest//lib/minitest.rb#1015 +# source://minitest//lib/minitest.rb#1036 class Minitest::Assertion < ::Exception - # source://minitest//lib/minitest.rb#1018 + # source://minitest//lib/minitest.rb#1039 def error; end # Where was this run before an assertion was raised? # - # source://minitest//lib/minitest.rb#1025 + # source://minitest//lib/minitest.rb#1046 def location; end - # source://minitest//lib/minitest.rb#1033 + # source://minitest//lib/minitest.rb#1054 def result_code; end - # source://minitest//lib/minitest.rb#1037 + # source://minitest//lib/minitest.rb#1058 def result_label; end end -# source://minitest//lib/minitest.rb#1016 +# source://minitest//lib/minitest.rb#1037 Minitest::Assertion::RE = T.let(T.unsafe(nil), Regexp) # Minitest Assertions. All assertion methods accept a +msg+ which is @@ -200,22 +202,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 @@ -230,7 +232,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+ @@ -238,45 +240,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. @@ -290,12 +292,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) @@ -313,7 +315,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: @@ -324,7 +326,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 @@ -348,37 +350,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: @@ -395,7 +397,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#533 def capture_io; end # Captures $stdout and $stderr into strings, using Tempfile to @@ -412,7 +414,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#566 def capture_subprocess_io; end # Returns a diff between +exp+ and +act+. If there is no known @@ -422,29 +424,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#598 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#614 def fail_after(y, m, d, msg); end # Fails with +msg+. # - # source://minitest//lib/minitest/assertions.rb#631 + # source://minitest//lib/minitest/assertions.rb#621 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#629 def message(msg = T.unsafe(nil), ending = T.unsafe(nil), &default); end # This returns a human-readable version of +obj+. By default @@ -453,7 +455,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+. @@ -461,67 +463,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#640 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#647 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#655 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#666 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#678 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 - def refute_in_epsilon(a, b, epsilon = T.unsafe(nil), msg = T.unsafe(nil)); end + # source://minitest//lib/minitest/assertions.rb#690 + def refute_in_epsilon(exp, act, 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#697 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#708 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#718 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#726 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#736 def refute_nil(obj, msg = T.unsafe(nil)); end # Fails if +o1+ is not +op+ +o2+. Eg: @@ -529,12 +531,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#771 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#780 def refute_path_exists(path, msg = T.unsafe(nil)); end # For testing with pattern matching (only supported with Ruby 3.0 and later) @@ -550,7 +552,7 @@ module Minitest::Assertions # # @raise [NotImplementedError] # - # source://minitest//lib/minitest/assertions.rb#763 + # source://minitest//lib/minitest/assertions.rb#753 def refute_pattern; end # For testing with predicates. @@ -561,18 +563,18 @@ module Minitest::Assertions # # str.wont_be :empty? # - # source://minitest//lib/minitest/assertions.rb#804 + # source://minitest//lib/minitest/assertions.rb#794 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#803 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#812 def refute_same(exp, act, msg = T.unsafe(nil)); end # Skips the current run. If run in verbose-mode, the skipped run @@ -581,7 +583,7 @@ module Minitest::Assertions # # @raise [Minitest::Skip] # - # source://minitest//lib/minitest/assertions.rb#835 + # source://minitest//lib/minitest/assertions.rb#825 def skip(msg = T.unsafe(nil), _ignored = T.unsafe(nil)); end # Skips the current run until a given date (in the local time @@ -589,14 +591,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#837 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#846 def skipped?; end # Returns things to diff [expect, butwas], or [nil, nil] if nothing to diff. @@ -608,104 +610,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#1191 class Minitest::BacktraceFilter # @return [BacktraceFilter] a new instance of BacktraceFilter # - # source://minitest//lib/minitest.rb#1176 + # source://minitest//lib/minitest.rb#1200 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#1208 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#1198 def regexp; end - # Sets the attribute regexp - # - # @param value the value to set the attribute regexp to. + # The regular expression to use to filter backtraces. Defaults to +MT_RE+. # - # source://minitest//lib/minitest.rb#1174 + # source://minitest//lib/minitest.rb#1198 def regexp=(_arg0); end end -# source://minitest//lib/minitest.rb#1172 +# source://minitest//lib/minitest.rb#1193 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#985 class Minitest::CompositeReporter < ::Minitest::AbstractReporter # @return [CompositeReporter] a new instance of CompositeReporter # - # source://minitest//lib/minitest.rb#970 + # source://minitest//lib/minitest.rb#991 def initialize(*reporters); end # Add another reporter to the mix. # - # source://minitest//lib/minitest.rb#982 + # source://minitest//lib/minitest.rb#1003 def <<(reporter); end - # source://minitest//lib/minitest.rb#975 + # source://minitest//lib/minitest.rb#996 def io; end # @return [Boolean] # - # source://minitest//lib/minitest.rb#986 + # source://minitest//lib/minitest.rb#1007 def passed?; end - # source://minitest//lib/minitest.rb#994 + # source://minitest//lib/minitest.rb#1015 def prerecord(klass, name); end - # source://minitest//lib/minitest.rb#1001 + # source://minitest//lib/minitest.rb#1022 def record(result); end - # source://minitest//lib/minitest.rb#1007 + # source://minitest//lib/minitest.rb#1028 def report; end # The list of reporters to dispatch to. # - # source://minitest//lib/minitest.rb#968 + # source://minitest//lib/minitest.rb#989 def reporters; end # The list of reporters to dispatch to. # - # source://minitest//lib/minitest.rb#968 + # source://minitest//lib/minitest.rb#989 def reporters=(_arg0); end - # source://minitest//lib/minitest.rb#990 + # source://minitest//lib/minitest.rb#1011 def start; end end @@ -734,100 +734,100 @@ end # # ... lots of test methods ... # end # -# source://minitest//lib/minitest.rb#1114 +# source://minitest//lib/minitest.rb#1135 module Minitest::Guard # Is this running on jruby? # # @return [Boolean] # - # source://minitest//lib/minitest.rb#1119 + # source://minitest//lib/minitest.rb#1140 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#1147 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#1157 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#1164 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#1171 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#1181 def windows?(platform = T.unsafe(nil)); end end -# source://minitest//lib/minitest/parallel.rb#2 +# source://minitest//lib/minitest/parallel.rb#4 module Minitest::Parallel; end # The engine used to run multiple tests in parallel. # -# source://minitest//lib/minitest/parallel.rb#7 +# source://minitest//lib/minitest/parallel.rb#9 class Minitest::Parallel::Executor # Create a parallel test executor of with +size+ workers. # # @return [Executor] a new instance of Executor # - # source://minitest//lib/minitest/parallel.rb#17 + # source://minitest//lib/minitest/parallel.rb#19 def initialize(size); end # Add a job to the queue # - # source://minitest//lib/minitest/parallel.rb#43 + # source://minitest//lib/minitest/parallel.rb#45 def <<(work); end # Shuts down the pool of workers by signalling them to quit and # waiting for them all to finish what they're currently working # on. # - # source://minitest//lib/minitest/parallel.rb#50 + # source://minitest//lib/minitest/parallel.rb#52 def shutdown; end # The size of the pool of workers. # - # source://minitest//lib/minitest/parallel.rb#12 + # source://minitest//lib/minitest/parallel.rb#14 def size; end # Start the executor # - # source://minitest//lib/minitest/parallel.rb#26 + # source://minitest//lib/minitest/parallel.rb#28 def start; end end -# source://minitest//lib/minitest/parallel.rb#56 +# source://minitest//lib/minitest/parallel.rb#58 module Minitest::Parallel::Test - # source://minitest//lib/minitest/parallel.rb#57 + # source://minitest//lib/minitest/parallel.rb#59 def _synchronize; end end -# source://minitest//lib/minitest/parallel.rb#59 +# source://minitest//lib/minitest/parallel.rb#61 module Minitest::Parallel::Test::ClassMethods - # source://minitest//lib/minitest/parallel.rb#60 + # source://minitest//lib/minitest/parallel.rb#62 def run_one_method(klass, method_name, reporter); end - # source://minitest//lib/minitest/parallel.rb#64 + # source://minitest//lib/minitest/parallel.rb#66 def test_order; end end @@ -838,36 +838,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#775 class Minitest::ProgressReporter < ::Minitest::Reporter - # source://minitest//lib/minitest.rb#755 + # source://minitest//lib/minitest.rb#776 def prerecord(klass, name); end - # source://minitest//lib/minitest.rb#762 + # source://minitest//lib/minitest.rb#783 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#597 module Minitest::Reportable # @raise [NotImplementedError] # - # source://minitest//lib/minitest.rb#598 + # source://minitest//lib/minitest.rb#619 def class_name; end # Did this run error? # # @return [Boolean] # - # source://minitest//lib/minitest.rb#619 + # source://minitest//lib/minitest.rb#640 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#614 def location; end # Did this run pass? @@ -877,50 +877,52 @@ module Minitest::Reportable # # @return [Boolean] # - # source://minitest//lib/minitest.rb#583 + # source://minitest//lib/minitest.rb#604 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#626 def result_code; end # Was this run skipped? # # @return [Boolean] # - # source://minitest//lib/minitest.rb#612 + # source://minitest//lib/minitest.rb#633 def skipped?; end end -# source://minitest//lib/minitest.rb#587 +# source://minitest//lib/minitest.rb#608 Minitest::Reportable::BASE_DIR = T.let(T.unsafe(nil), String) -# source://minitest//lib/minitest.rb#730 +# AbstractReportera +# +# source://minitest//lib/minitest.rb#751 class Minitest::Reporter < ::Minitest::AbstractReporter # @return [Reporter] a new instance of Reporter # - # source://minitest//lib/minitest.rb#739 + # source://minitest//lib/minitest.rb#760 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#753 def io; end # The IO used to report. # - # source://minitest//lib/minitest.rb#732 + # source://minitest//lib/minitest.rb#753 def io=(_arg0); end # Command-line options for this run. # - # source://minitest//lib/minitest.rb#737 + # source://minitest//lib/minitest.rb#758 def options; end # Command-line options for this run. # - # source://minitest//lib/minitest.rb#737 + # source://minitest//lib/minitest.rb#758 def options=(_arg0); end end @@ -930,80 +932,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#652 class Minitest::Result < ::Minitest::Runnable include ::Minitest::Reportable - # source://minitest//lib/minitest.rb#665 + # source://minitest//lib/minitest.rb#686 def class_name; end # The class name of the test result. # - # source://minitest//lib/minitest.rb#640 + # source://minitest//lib/minitest.rb#661 def klass; end # The class name of the test result. # - # source://minitest//lib/minitest.rb#640 + # source://minitest//lib/minitest.rb#661 def klass=(_arg0); end # The location of the test method. # - # source://minitest//lib/minitest.rb#645 + # source://minitest//lib/minitest.rb#666 def source_location; end # The location of the test method. # - # source://minitest//lib/minitest.rb#645 + # source://minitest//lib/minitest.rb#666 def source_location=(_arg0); end - # source://minitest//lib/minitest.rb#669 + # source://minitest//lib/minitest.rb#690 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#671 def from(runnable); end end end # re-open # -# source://minitest//lib/minitest.rb#349 +# source://minitest//lib/minitest.rb#364 class Minitest::Runnable # @return [Runnable] a new instance of Runnable # - # source://minitest//lib/minitest.rb#507 + # source://minitest//lib/minitest.rb#528 def initialize(name); end # Number of assertions executed in this run. # - # source://minitest//lib/minitest.rb#353 + # source://minitest//lib/minitest.rb#368 def assertions; end # Number of assertions executed in this run. # - # source://minitest//lib/minitest.rb#353 + # source://minitest//lib/minitest.rb#368 def assertions=(_arg0); end - # source://minitest//lib/minitest.rb#503 + # source://minitest//lib/minitest.rb#524 def failure; end # An assertion raised during the run, if any. # - # source://minitest//lib/minitest.rb#358 + # source://minitest//lib/minitest.rb#373 def failures; end # An assertion raised during the run, if any. # - # source://minitest//lib/minitest.rb#358 + # source://minitest//lib/minitest.rb#373 def failures=(_arg0); end - # source://minitest//lib/minitest.rb#489 + # source://minitest//lib/minitest.rb#510 def marshal_dump; end - # source://minitest//lib/minitest.rb#499 + # source://minitest//lib/minitest.rb#520 def marshal_load(ary); end # Metadata you attach to the test results that get sent to the reporter. @@ -1013,29 +1015,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#543 def metadata; end # Sets metadata, mainly used for +Result.from+. # - # source://minitest//lib/minitest.rb#529 + # source://minitest//lib/minitest.rb#550 def metadata=(_arg0); end # Returns true if metadata exists. # # @return [Boolean] # - # source://minitest//lib/minitest.rb#534 + # source://minitest//lib/minitest.rb#555 def metadata?; end # Name of the run. # - # source://minitest//lib/minitest.rb#376 + # source://minitest//lib/minitest.rb#391 def name; end # Set the name of the run. # - # source://minitest//lib/minitest.rb#383 + # source://minitest//lib/minitest.rb#398 def name=(o); end # Did this run pass? @@ -1046,7 +1048,7 @@ class Minitest::Runnable # @raise [NotImplementedError] # @return [Boolean] # - # source://minitest//lib/minitest.rb#551 + # source://minitest//lib/minitest.rb#572 def passed?; end # Returns a single character string to print based on the result @@ -1055,14 +1057,14 @@ class Minitest::Runnable # # @raise [NotImplementedError] # - # source://minitest//lib/minitest.rb#560 + # source://minitest//lib/minitest.rb#581 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#562 def run; end # Was this run skipped? See #passed? for more information. @@ -1070,42 +1072,42 @@ class Minitest::Runnable # @raise [NotImplementedError] # @return [Boolean] # - # source://minitest//lib/minitest.rb#567 + # source://minitest//lib/minitest.rb#588 def skipped?; end # The time it took to run. # - # source://minitest//lib/minitest.rb#363 + # source://minitest//lib/minitest.rb#378 def time; end # The time it took to run. # - # source://minitest//lib/minitest.rb#363 + # source://minitest//lib/minitest.rb#378 def time=(_arg0); end - # source://minitest//lib/minitest.rb#365 + # source://minitest//lib/minitest.rb#380 def time_it; end class << self - # source://minitest//lib/minitest.rb#1218 + # source://minitest//lib/minitest.rb#1242 def inherited(klass); end # Returns all instance methods matching the pattern +re+. # - # source://minitest//lib/minitest.rb#390 + # source://minitest//lib/minitest.rb#405 def methods_matching(re); end - # source://minitest//lib/minitest.rb#459 + # source://minitest//lib/minitest.rb#480 def on_signal(name, action); end - # source://minitest//lib/minitest.rb#394 + # source://minitest//lib/minitest.rb#409 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#420 def run(reporter, options = T.unsafe(nil)); end # Runs a single method and has the reporter record the result. @@ -1113,7 +1115,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#461 def run_one_method(klass, method_name, reporter); end # Each subclass of Runnable is responsible for overriding this @@ -1121,33 +1123,33 @@ class Minitest::Runnable # # @raise [NotImplementedError] # - # source://minitest//lib/minitest.rb#476 + # source://minitest//lib/minitest.rb#497 def runnable_methods; end # Returns all subclasses of Runnable. # - # source://minitest//lib/minitest.rb#483 + # source://minitest//lib/minitest.rb#504 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#470 def test_order; end - # source://minitest//lib/minitest.rb#444 + # source://minitest//lib/minitest.rb#474 def with_info_handler(reporter, &block); end end end -# source://minitest//lib/minitest.rb#457 +# source://minitest//lib/minitest.rb#478 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#1066 class Minitest::Skip < ::Minitest::Assertion - # source://minitest//lib/minitest.rb#1046 + # source://minitest//lib/minitest.rb#1067 def result_label; end end @@ -1171,123 +1173,123 @@ end # end # end # -# source://minitest//lib/minitest.rb#790 +# source://minitest//lib/minitest.rb#811 class Minitest::StatisticsReporter < ::Minitest::Reporter # @return [StatisticsReporter] a new instance of StatisticsReporter # - # source://minitest//lib/minitest.rb#839 + # source://minitest//lib/minitest.rb#860 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#815 def assertions; end # Total number of assertions. # - # source://minitest//lib/minitest.rb#794 + # source://minitest//lib/minitest.rb#815 def assertions=(_arg0); end # Total number of test cases. # - # source://minitest//lib/minitest.rb#799 + # source://minitest//lib/minitest.rb#820 def count; end # Total number of test cases. # - # source://minitest//lib/minitest.rb#799 + # source://minitest//lib/minitest.rb#820 def count=(_arg0); end # Total number of tests that erred. # - # source://minitest//lib/minitest.rb#827 + # source://minitest//lib/minitest.rb#848 def errors; end # Total number of tests that erred. # - # source://minitest//lib/minitest.rb#827 + # source://minitest//lib/minitest.rb#848 def errors=(_arg0); end # Total number of tests that failed. # - # source://minitest//lib/minitest.rb#822 + # source://minitest//lib/minitest.rb#843 def failures; end # Total number of tests that failed. # - # source://minitest//lib/minitest.rb#822 + # source://minitest//lib/minitest.rb#843 def failures=(_arg0); end # @return [Boolean] # - # source://minitest//lib/minitest.rb#853 + # source://minitest//lib/minitest.rb#874 def passed?; end - # source://minitest//lib/minitest.rb#861 + # source://minitest//lib/minitest.rb#882 def record(result); end # Report on the tracked statistics. # - # source://minitest//lib/minitest.rb#871 + # source://minitest//lib/minitest.rb#892 def report; end # An +Array+ of test cases that failed or were skipped. # - # source://minitest//lib/minitest.rb#804 + # source://minitest//lib/minitest.rb#825 def results; end # An +Array+ of test cases that failed or were skipped. # - # source://minitest//lib/minitest.rb#804 + # source://minitest//lib/minitest.rb#825 def results=(_arg0); end # Total number of tests that where skipped. # - # source://minitest//lib/minitest.rb#837 + # source://minitest//lib/minitest.rb#858 def skips; end # Total number of tests that where skipped. # - # source://minitest//lib/minitest.rb#837 + # source://minitest//lib/minitest.rb#858 def skips=(_arg0); end - # source://minitest//lib/minitest.rb#857 + # source://minitest//lib/minitest.rb#878 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#832 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#832 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#838 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#838 def total_time=(_arg0); end # Total number of tests that warned. # - # source://minitest//lib/minitest.rb#832 + # source://minitest//lib/minitest.rb#853 def warnings; end # Total number of tests that warned. # - # source://minitest//lib/minitest.rb#832 + # source://minitest//lib/minitest.rb#853 def warnings=(_arg0); end end @@ -1299,48 +1301,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#913 class Minitest::SummaryReporter < ::Minitest::StatisticsReporter - # source://minitest//lib/minitest.rb#927 + # source://minitest//lib/minitest.rb#946 def aggregated_results(io); end - # Returns the value of attribute old_sync. - # - # source://minitest//lib/minitest.rb#895 + # source://minitest//lib/minitest.rb#915 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#915 def old_sync=(_arg0); end - # source://minitest//lib/minitest.rb#910 + # source://minitest//lib/minitest.rb#929 def report; end - # :startdoc: - # - # source://minitest//lib/minitest.rb#898 + # source://minitest//lib/minitest.rb#917 def start; end - # source://minitest//lib/minitest.rb#922 + # source://minitest//lib/minitest.rb#941 def statistics; end - # source://minitest//lib/minitest.rb#947 + # source://minitest//lib/minitest.rb#966 def summary; end - # :stopdoc: - # - # source://minitest//lib/minitest.rb#894 + # source://minitest//lib/minitest.rb#914 def sync; end - # :stopdoc: - # - # source://minitest//lib/minitest.rb#894 + # source://minitest//lib/minitest.rb#914 def sync=(_arg0); end - # source://minitest//lib/minitest.rb#943 + # source://minitest//lib/minitest.rb#962 def to_s; end end @@ -1351,37 +1341,34 @@ end # # source://minitest//lib/minitest/test.rb#10 class Minitest::Test < ::Minitest::Runnable - include ::Minitest::Assertions include ::Minitest::Reportable + include ::Minitest::Assertions include ::Minitest::Test::LifecycleHooks include ::Minitest::Guard extend ::Minitest::Guard # LifecycleHooks # - # source://minitest//lib/minitest/test.rb#191 + # source://minitest//lib/minitest/test.rb#190 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#207 def neuter_exception(e); end - # source://minitest//lib/minitest/test.rb#219 + # source://minitest//lib/minitest/test.rb#218 def new_exception(klass, msg, bt, kill = T.unsafe(nil)); end # Runs a single test with setup/teardown hooks. # - # source://minitest//lib/minitest/test.rb#87 + # source://minitest//lib/minitest/test.rb#88 def run; end - # source://minitest//lib/minitest/test.rb#201 + # source://minitest//lib/minitest/test.rb#200 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 @@ -1422,7 +1409,7 @@ class Minitest::Test < ::Minitest::Runnable # #test_order, the methods are either sorted, randomized # (default), or run in parallel. # - # source://minitest//lib/minitest/test.rb#70 + # source://minitest//lib/minitest/test.rb#71 def runnable_methods; end end end @@ -1431,7 +1418,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#113 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 @@ -1439,7 +1426,7 @@ module Minitest::Test::LifecycleHooks # # See #before_setup for an example. # - # source://minitest//lib/minitest/test.rb#164 + # source://minitest//lib/minitest/test.rb#163 def after_setup; end # Runs after every test, after teardown. This hook is meant for @@ -1448,7 +1435,7 @@ module Minitest::Test::LifecycleHooks # # See #before_setup for an example. # - # source://minitest//lib/minitest/test.rb#188 + # source://minitest//lib/minitest/test.rb#187 def after_teardown; end # Runs before every test, before setup. This hook is meant for @@ -1483,7 +1470,7 @@ module Minitest::Test::LifecycleHooks # include MyMinitestPlugin # end # - # source://minitest//lib/minitest/test.rb#149 + # source://minitest//lib/minitest/test.rb#148 def before_setup; end # Runs after every test, before teardown. This hook is meant for @@ -1492,19 +1479,19 @@ module Minitest::Test::LifecycleHooks # # See #before_setup for an example. # - # source://minitest//lib/minitest/test.rb#173 + # source://minitest//lib/minitest/test.rb#172 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#154 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#178 def teardown; end end @@ -1519,45 +1506,45 @@ 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#1075 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#1081 def initialize(error); end - # source://minitest//lib/minitest.rb#1073 + # source://minitest//lib/minitest.rb#1094 def backtrace; end # TODO: figure out how to use `cause` instead # - # source://minitest//lib/minitest.rb#1058 + # source://minitest//lib/minitest.rb#1079 def error; end # TODO: figure out how to use `cause` instead # - # source://minitest//lib/minitest.rb#1058 + # source://minitest//lib/minitest.rb#1079 def error=(_arg0); end - # source://minitest//lib/minitest.rb#1079 + # source://minitest//lib/minitest.rb#1100 def message; end - # source://minitest//lib/minitest.rb#1085 + # source://minitest//lib/minitest.rb#1106 def result_label; end end -# source://minitest//lib/minitest.rb#1077 +# source://minitest//lib/minitest.rb#1098 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#1114 class Minitest::UnexpectedWarning < ::Minitest::Assertion - # source://minitest//lib/minitest.rb#1094 + # source://minitest//lib/minitest.rb#1115 def result_label; end end -# source://minitest//lib/minitest.rb#12 +# source://minitest//lib/minitest.rb#13 Minitest::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/mutex_m@0.2.0.rbi b/sorbet/rbi/gems/mutex_m@0.3.0.rbi similarity index 69% rename from sorbet/rbi/gems/mutex_m@0.2.0.rbi rename to sorbet/rbi/gems/mutex_m@0.3.0.rbi index 50aa69893..1fde43f7a 100644 --- a/sorbet/rbi/gems/mutex_m@0.2.0.rbi +++ b/sorbet/rbi/gems/mutex_m@0.3.0.rbi @@ -12,7 +12,7 @@ # # Start by requiring the standard library Mutex_m: # -# require "mutex_m.rb" +# require "mutex_m" # # From here you can extend an object with Mutex instance methods: # @@ -32,61 +32,66 @@ # 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//mutex_m.rb#111 + # source://mutex_m//lib/mutex_m.rb#116 def initialize(*args, **_arg1); end - # source://mutex_m//mutex_m.rb#64 + # source://mutex_m//lib/mutex_m.rb#69 def mu_extended; end # See Thread::Mutex#lock # - # source://mutex_m//mutex_m.rb#91 + # source://mutex_m//lib/mutex_m.rb#96 def mu_lock; end # See Thread::Mutex#locked? # # @return [Boolean] # - # source://mutex_m//mutex_m.rb#81 + # source://mutex_m//lib/mutex_m.rb#86 def mu_locked?; end # See Thread::Mutex#synchronize # - # source://mutex_m//mutex_m.rb#76 + # source://mutex_m//lib/mutex_m.rb#81 def mu_synchronize(&block); end # See Thread::Mutex#try_lock # - # source://mutex_m//mutex_m.rb#86 + # source://mutex_m//lib/mutex_m.rb#91 def mu_try_lock; end # See Thread::Mutex#unlock # - # source://mutex_m//mutex_m.rb#96 + # source://mutex_m//lib/mutex_m.rb#101 def mu_unlock; end # See Thread::Mutex#sleep # - # source://mutex_m//mutex_m.rb#101 + # source://mutex_m//lib/mutex_m.rb#106 def sleep(timeout = T.unsafe(nil)); end private - # source://mutex_m//mutex_m.rb#107 + # source://mutex_m//lib/mutex_m.rb#112 def mu_initialize; end class << self - # source://mutex_m//mutex_m.rb#54 + # source://mutex_m//lib/mutex_m.rb#59 def append_features(cl); end - # source://mutex_m//mutex_m.rb#46 + # source://mutex_m//lib/mutex_m.rb#46 def define_aliases(cl); end - # source://mutex_m//mutex_m.rb#59 + # source://mutex_m//lib/mutex_m.rb#64 def extend_object(obj); end + + # source://mutex_m//lib/mutex_m.rb#54 + def prepend_features(cl); end end end -# source://mutex_m//mutex_m.rb#43 +# source://mutex_m//lib/mutex_m.rb#43 Mutex_m::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/rack-test@2.1.0.rbi b/sorbet/rbi/gems/rack-test@2.2.0.rbi similarity index 93% rename from sorbet/rbi/gems/rack-test@2.1.0.rbi rename to sorbet/rbi/gems/rack-test@2.2.0.rbi index 426807abb..0bef60f5e 100644 --- a/sorbet/rbi/gems/rack-test@2.1.0.rbi +++ b/sorbet/rbi/gems/rack-test@2.2.0.rbi @@ -8,7 +8,7 @@ # source://rack-test//lib/rack/test/cookie_jar.rb#6 module Rack class << self - # source://rack/3.1.7/lib/rack/version.rb#18 + # source://rack/3.2.4/lib/rack/version.rb#14 def release; end end end @@ -44,7 +44,7 @@ class Rack::Test::Cookie # Order cookies by name, path, and domain. # - # source://rack-test//lib/rack/test/cookie_jar.rb#107 + # source://rack-test//lib/rack/test/cookie_jar.rb#106 def <=>(other); end # The explicit or implicit domain for the cookie. @@ -83,7 +83,7 @@ class Rack::Test::Cookie # # @return [Boolean] # - # source://rack-test//lib/rack/test/cookie_jar.rb#102 + # source://rack-test//lib/rack/test/cookie_jar.rb#101 def matches?(uri); end # The name of the cookie, will be a string @@ -119,12 +119,12 @@ class Rack::Test::Cookie # A hash of cookie options, including the cookie value, but excluding the cookie name. # - # source://rack-test//lib/rack/test/cookie_jar.rb#112 + # source://rack-test//lib/rack/test/cookie_jar.rb#111 def to_h; end # A hash of cookie options, including the cookie value, but excluding the cookie name. # - # source://rack-test//lib/rack/test/cookie_jar.rb#112 + # source://rack-test//lib/rack/test/cookie_jar.rb#111 def to_hash; end # Whether the cookie is valid for the given URI. @@ -143,7 +143,7 @@ class Rack::Test::Cookie # The default URI to use for the cookie, including just the host. # - # source://rack-test//lib/rack/test/cookie_jar.rb#124 + # source://rack-test//lib/rack/test/cookie_jar.rb#125 def default_uri; end end @@ -152,57 +152,57 @@ end # request. This is considered private API and behavior of this # class can change at any time. # -# source://rack-test//lib/rack/test/cookie_jar.rb#133 +# source://rack-test//lib/rack/test/cookie_jar.rb#134 class Rack::Test::CookieJar # @return [CookieJar] a new instance of CookieJar # - # source://rack-test//lib/rack/test/cookie_jar.rb#136 + # source://rack-test//lib/rack/test/cookie_jar.rb#137 def initialize(cookies = T.unsafe(nil), default_host = T.unsafe(nil)); end # Add a Cookie to the cookie jar. # - # source://rack-test//lib/rack/test/cookie_jar.rb#198 + # source://rack-test//lib/rack/test/cookie_jar.rb#197 def <<(new_cookie); end # Return the value for first cookie with the given name, or nil # if no such cookie exists. # - # source://rack-test//lib/rack/test/cookie_jar.rb#149 + # source://rack-test//lib/rack/test/cookie_jar.rb#150 def [](name); end # Set a cookie with the given name and value in the # cookie jar. # - # source://rack-test//lib/rack/test/cookie_jar.rb#159 + # source://rack-test//lib/rack/test/cookie_jar.rb#160 def []=(name, value); end # Delete all cookies with the given name from the cookie jar. # - # source://rack-test//lib/rack/test/cookie_jar.rb#173 + # source://rack-test//lib/rack/test/cookie_jar.rb#174 def delete(name); end # Return a raw cookie string for the cookie header to # use for the given URI. # - # source://rack-test//lib/rack/test/cookie_jar.rb#209 + # source://rack-test//lib/rack/test/cookie_jar.rb#208 def for(uri); end # Return the first cookie with the given name, or nil if # no such cookie exists. # - # source://rack-test//lib/rack/test/cookie_jar.rb#165 + # source://rack-test//lib/rack/test/cookie_jar.rb#166 def get_cookie(name); end # Add a string of raw cookie information to the cookie jar, # if the cookie is valid for the given URI. # Cookies should be separated with a newline. # - # source://rack-test//lib/rack/test/cookie_jar.rb#183 + # source://rack-test//lib/rack/test/cookie_jar.rb#184 def merge(raw_cookies, uri = T.unsafe(nil)); end # Return a hash cookie names and cookie values for cookies in the jar. # - # source://rack-test//lib/rack/test/cookie_jar.rb#226 + # source://rack-test//lib/rack/test/cookie_jar.rb#225 def to_hash; end private @@ -215,16 +215,16 @@ class Rack::Test::CookieJar # so that when we are done, the cookies will be unique by name and # we'll have grabbed the most specific to the URI. # - # source://rack-test//lib/rack/test/cookie_jar.rb#245 + # source://rack-test//lib/rack/test/cookie_jar.rb#244 def each_cookie_for(uri); end # Ensure the copy uses a distinct cookies array. # - # source://rack-test//lib/rack/test/cookie_jar.rb#142 + # source://rack-test//lib/rack/test/cookie_jar.rb#143 def initialize_copy(other); end end -# source://rack-test//lib/rack/test/cookie_jar.rb#134 +# source://rack-test//lib/rack/test/cookie_jar.rb#135 Rack::Test::CookieJar::DELIMITER = T.let(T.unsafe(nil), String) # The default host to use for requests, when a full URI is not @@ -667,33 +667,20 @@ class Rack::Test::UploadedFile # Create a tempfile and copy the content from the given path into the tempfile, optionally renaming if # original_filename has been set. # - # source://rack-test//lib/rack/test/uploaded_file.rb#98 + # source://rack-test//lib/rack/test/uploaded_file.rb#86 def initialize_from_file_path(path); end # Use the StringIO as the tempfile. # # @raise [ArgumentError] # - # source://rack-test//lib/rack/test/uploaded_file.rb#90 + # source://rack-test//lib/rack/test/uploaded_file.rb#78 def initialize_from_stringio(stringio); end # @return [Boolean] # # source://rack-test//lib/rack/test/uploaded_file.rb#71 def respond_to_missing?(method_name, include_private = T.unsafe(nil)); end - - class << self - # Close and unlink the given file, used as a finalizer for the tempfile, - # if the tempfile is backed by a file in the filesystem. - # - # source://rack-test//lib/rack/test/uploaded_file.rb#82 - def actually_finalize(file); end - - # A proc that can be used as a finalizer to close and unlink the tempfile. - # - # source://rack-test//lib/rack/test/uploaded_file.rb#76 - def finalize(file); end - end end # source://rack-test//lib/rack/test/utils.rb#5 diff --git a/sorbet/rbi/gems/rack@3.2.3.rbi b/sorbet/rbi/gems/rack@3.2.4.rbi similarity index 100% rename from sorbet/rbi/gems/rack@3.2.3.rbi rename to sorbet/rbi/gems/rack@3.2.4.rbi diff --git a/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi b/sorbet/rbi/gems/rails-dom-testing@2.3.0.rbi similarity index 84% rename from sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi rename to sorbet/rbi/gems/rails-dom-testing@2.3.0.rbi index bfacc4869..d24b62cae 100644 --- a/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi +++ b/sorbet/rbi/gems/rails-dom-testing@2.3.0.rbi @@ -8,70 +8,70 @@ # source://rails-dom-testing//lib/rails/dom/testing/assertions/dom_assertions.rb#3 module Rails class << self - # source://railties/7.1.3.4/lib/rails.rb#42 + # source://railties/7.1.5.2/lib/rails.rb#42 def app_class; end - # source://railties/7.1.3.4/lib/rails.rb#42 + # source://railties/7.1.5.2/lib/rails.rb#42 def app_class=(_arg0); end - # source://railties/7.1.3.4/lib/rails.rb#43 + # source://railties/7.1.5.2/lib/rails.rb#43 def application; end - # source://railties/7.1.3.4/lib/rails.rb#41 + # source://railties/7.1.5.2/lib/rails.rb#41 def application=(_arg0); end - # source://railties/7.1.3.4/lib/rails.rb#123 + # source://railties/7.1.5.2/lib/rails.rb#123 def autoloaders; end - # source://railties/7.1.3.4/lib/rails.rb#54 + # source://railties/7.1.5.2/lib/rails.rb#54 def backtrace_cleaner; end - # source://railties/7.1.3.4/lib/rails.rb#42 + # source://railties/7.1.5.2/lib/rails.rb#42 def cache; end - # source://railties/7.1.3.4/lib/rails.rb#42 + # source://railties/7.1.5.2/lib/rails.rb#42 def cache=(_arg0); end - # source://railties/7.1.3.4/lib/rails.rb#50 + # source://railties/7.1.5.2/lib/rails.rb#50 def configuration; end - # source://railties/7.1.3.4/lib/rails/deprecator.rb#4 + # source://railties/7.1.5.2/lib/rails/deprecator.rb#4 def deprecator; end - # source://railties/7.1.3.4/lib/rails.rb#72 + # source://railties/7.1.5.2/lib/rails.rb#72 def env; end - # source://railties/7.1.3.4/lib/rails.rb#79 + # source://railties/7.1.5.2/lib/rails.rb#79 def env=(environment); end - # source://railties/7.1.3.4/lib/rails.rb#90 + # source://railties/7.1.5.2/lib/rails.rb#90 def error; end - # source://railties/7.1.3.4/lib/rails/gem_version.rb#5 + # source://railties/7.1.5.2/lib/rails/gem_version.rb#5 def gem_version; end - # source://railties/7.1.3.4/lib/rails.rb#103 + # source://railties/7.1.5.2/lib/rails.rb#103 def groups(*groups); end - # source://railties/7.1.3.4/lib/rails.rb#47 + # source://railties/7.1.5.2/lib/rails.rb#47 def initialize!(*_arg0, **_arg1, &_arg2); end - # source://railties/7.1.3.4/lib/rails.rb#47 + # source://railties/7.1.5.2/lib/rails.rb#47 def initialized?(*_arg0, **_arg1, &_arg2); end - # source://railties/7.1.3.4/lib/rails.rb#42 + # source://railties/7.1.5.2/lib/rails.rb#42 def logger; end - # source://railties/7.1.3.4/lib/rails.rb#42 + # source://railties/7.1.5.2/lib/rails.rb#42 def logger=(_arg0); end - # source://railties/7.1.3.4/lib/rails.rb#119 + # source://railties/7.1.5.2/lib/rails.rb#119 def public_path; end - # source://railties/7.1.3.4/lib/rails.rb#63 + # source://railties/7.1.5.2/lib/rails.rb#63 def root; end - # source://railties/7.1.3.4/lib/rails/version.rb#7 + # source://railties/7.1.5.2/lib/rails/version.rb#7 def version; end end end @@ -180,37 +180,67 @@ module Rails::Dom::Testing::Assertions::DomAssertions # source://rails-dom-testing//lib/rails/dom/testing/assertions/dom_assertions.rb#68 def assert_dom_not_equal(expected, actual, message = T.unsafe(nil), strict: T.unsafe(nil), html_version: T.unsafe(nil)); end + # The negated form of +assert_dom_equal+. + # + # # assert that the referenced method does not generate the specified HTML string + # assert_dom_not_equal( + # 'Apples', + # link_to("Oranges", "http://www.example.com"), + # ) + # + # By default, the matcher will not pay attention to whitespace in text nodes (e.g., spaces + # and newlines). If you want stricter matching with exact matching for whitespace, pass + # strict: true: + # + # # these assertions will both pass + # assert_dom_equal "