spec/support/v5.2/sorbet/rbi/hidden-definitions/hidden.rbi in sorbet-rails-0.3.0 vs spec/support/v5.2/sorbet/rbi/hidden-definitions/hidden.rbi in sorbet-rails-0.4.0
- old
+ new
@@ -3166,10 +3166,14 @@
module ActiveRecord::Base::GeneratedAssociationMethods
extend ::T::Sig
end
+class ActiveRecord::Base
+ extend ::SorbetRails::CustomFinderMethods
+end
+
module ActiveRecord::Batches
ORDER_IGNORE_MESSAGE = ::T.let(nil, ::T.untyped)
end
module ActiveRecord::Batches
@@ -3783,10 +3787,11 @@
include ::ActiveRecord::Batches
include ::ActiveRecord::QueryMethods
include ::ActiveModel::ForbiddenAttributesProtection
include ::ActiveRecord::SpawnMethods
include ::ActiveRecord::Calculations
+ include ::SorbetRails::CustomFinderMethods
CLAUSE_METHODS = ::T.let(nil, ::T.untyped)
INVALID_METHODS_FOR_DELETE_ALL = ::T.let(nil, ::T.untyped)
MULTI_VALUE_METHODS = ::T.let(nil, ::T.untyped)
SINGLE_VALUE_METHODS = ::T.let(nil, ::T.untyped)
VALUE_METHODS = ::T.let(nil, ::T.untyped)
@@ -5976,11 +5981,11 @@
class Bundler::Settings::Mirror
end
class Bundler::Settings::Mirrors
- def each(); end
+ def each(&blk); end
def for(uri); end
def initialize(prober=T.unsafe(nil)); end
@@ -6993,12 +6998,10 @@
def chunk_while(); end
def each_entry(*_); end
- def each_with_object(_); end
-
def grep_v(_); end
def lazy(); end
def slice_after(*_); end
@@ -7020,15 +7023,17 @@
extend ::T::Sig
end
class Enumerator
include ::ActiveSupport::ToJsonWithActiveSupportEncoder
+ def each_with_index(); end
+
end
class Enumerator::Generator
include ::ActiveSupport::ToJsonWithActiveSupportEncoder
- def each(*_); end
+ def each(*_, &blk); end
def initialize(*_); end
end
class Enumerator::Generator
@@ -7658,11 +7663,11 @@
class Etc::Group
extend ::T::Sig
extend ::Enumerable
def self.[](*_); end
- def self.each(); end
+ def self.each(&blk); end
def self.members(); end
end
class Etc::Passwd
@@ -7698,11 +7703,11 @@
class Etc::Passwd
extend ::T::Sig
extend ::Enumerable
def self.[](*_); end
- def self.each(); end
+ def self.each(&blk); end
def self.members(); end
end
module Etc
@@ -8197,11 +8202,11 @@
def add(spec, source); end
def all_specs(); end
- def each(); end
+ def each(&blk); end
def each_spec(); end
def empty?(); end
@@ -9029,11 +9034,11 @@
def self.suggestions(license); end
end
class Gem::List
include ::ActiveSupport::ToJsonWithActiveSupportEncoder
- def each(); end
+ def each(&blk); end
def initialize(value=T.unsafe(nil), tail=T.unsafe(nil)); end
def prepend(value); end
@@ -9334,11 +9339,11 @@
class Gem::Package::TarReader
include ::Enumerable
def close(); end
- def each(); end
+ def each(&blk); end
def each_entry(); end
def initialize(io); end
@@ -10356,11 +10361,11 @@
def delete_edge(edge); end
def detach_vertex_named(name); end
- def each(); end
+ def each(&blk); end
def log(); end
def rewind_to(tag); end
@@ -10476,11 +10481,11 @@
def delete_edge(graph, origin_name, destination_name, requirement); end
def detach_vertex_named(graph, name); end
- def each(); end
+ def each(&blk); end
def pop!(graph); end
def reverse_each(); end
@@ -10781,11 +10786,11 @@
class Gem::Resolver::RequirementList
include ::Enumerable
def add(req); end
- def each(); end
+ def each(&blk); end
def empty?(); end
def next5(); end
@@ -11229,11 +11234,11 @@
def clear(); end
def delete(source); end
- def each(); end
+ def each(&blk); end
def each_source(&b); end
def empty?(); end
@@ -11646,11 +11651,11 @@
def self.dirs(); end
def self.dirs=(dirs); end
- def self.each(); end
+ def self.each(&blk); end
def self.each_gemspec(dirs); end
def self.each_spec(dirs); end
@@ -15299,10 +15304,12 @@
module MethodSource
extend ::T::Sig
end
+Methods = T::Private::Methods
+
module Mime
ALL = ::T.let(nil, ::T.untyped)
EXTENSION_LOOKUP = ::T.let(nil, ::T.untyped)
LOOKUP = ::T.let(nil, ::T.untyped)
SET = ::T.let(nil, ::T.untyped)
@@ -15689,10 +15696,12 @@
class Net::HTTPIMUsed
extend ::T::Sig
end
+Net::HTTPInformation::EXCEPTION_TYPE = Net::HTTPError
+
class Net::HTTPInformation
extend ::T::Sig
end
Net::HTTPInformationCode = Net::HTTPInformation
@@ -15871,10 +15880,12 @@
extend ::T::Sig
end
Net::HTTPSession = Net::HTTP
+Net::HTTPSuccess::EXCEPTION_TYPE = Net::HTTPError
+
class Net::HTTPSuccess
extend ::T::Sig
end
Net::HTTPSuccessCode = Net::HTTPSuccess
@@ -16845,11 +16856,11 @@
include ::ActiveSupport::ToJsonWithActiveSupportEncoder
def [](_); end
def []=(_, _1); end
- def each(); end
+ def each(&blk); end
def each_key(); end
def each_pair(); end
@@ -19562,11 +19573,11 @@
class Rack::Multipart::Parser::BoundedIO
end
class Rack::Multipart::Parser::Collector
include ::Enumerable
- def each(); end
+ def each(&blk); end
def initialize(tempfile); end
def on_mime_body(mime_index, content); end
@@ -22264,15 +22275,17 @@
extend ::T::Sig
def self.cyan(msg); end
def self.emojify(emoji, msg); end
+ def self.init(); end
+
def self.main(argv); end
def self.make_step(step); end
- def self.parse_command(argv); end
+ def self.usage(); end
def self.yellow(msg); end
end
module Sorbet::Private::RealStdlib
@@ -22417,10 +22430,35 @@
class Sorbet
extend ::T::Sig
end
+module SorbetRails
+end
+
+module SorbetRails::CustomFinderMethods
+ def find_n(*ids); end
+
+ def first_n(n); end
+
+ def last_n(n); end
+end
+
+module SorbetRails::CustomFinderMethods
+ extend ::T::Sig
+end
+
+class SorbetRails::Railtie
+end
+
+class SorbetRails::Railtie
+end
+
+module SorbetRails
+ extend ::T::Sig
+end
+
class SortedSet
def initialize(*args, &block); end
end
class SortedSet
@@ -23465,11 +23503,11 @@
include ::Enumerable
def cas(i, old_value, new_value); end
def compare_and_set(i, old_value, new_value); end
- def each(); end
+ def each(&blk); end
def initialize(size); end
def size(); end
@@ -24198,10 +24236,10 @@
class Zlib::GzipReader
include ::Enumerable
def bytes(); end
- def each(*_); end
+ def each(*_, &blk); end
def each_byte(); end
def each_char(); end