From 41193ac8c84e8e6c48ca1bb68a7a9f9c4ffa6c9d Mon Sep 17 00:00:00 2001 From: Connor Shea Date: Fri, 19 Jul 2019 17:53:33 -0600 Subject: [PATCH] Update sorbet and typings. --- lib/sord/logging.rb | 1 + lib/sord/parlour_plugin.rb | 1 + lib/sord/resolver.rb | 1 + lib/sord/type_converter.rb | 1 + rbi/sord.rbi | 2 +- sorbet/rbi/gems/docile.rbi | 2 +- sorbet/rbi/gems/parlour.rbi | 4 +- sorbet/rbi/gems/rainbow.rbi | 2 +- sorbet/rbi/gems/rspec.rbi | 2 +- sorbet/rbi/gems/simplecov-html.rbi | 2 +- sorbet/rbi/gems/sorbet-runtime.rbi | 4 +- sorbet/rbi/hidden-definitions/errors.txt | 120 ++------- sorbet/rbi/hidden-definitions/hidden.rbi | 227 ++++++------------ .../sorbet-typed/lib/bundler/all/bundler.rbi | 38 ++- .../rbi/sorbet-typed/lib/ruby/all/open3.rbi | 2 +- .../rbi/sorbet-typed/lib/ruby/all/resolv.rbi | 2 +- spec/spec_helper.rb | 1 + 17 files changed, 146 insertions(+), 266 deletions(-) diff --git a/lib/sord/logging.rb b/lib/sord/logging.rb index fcef397..3537d56 100644 --- a/lib/sord/logging.rb +++ b/lib/sord/logging.rb @@ -1,3 +1,4 @@ +# typed: true require 'rainbow' module Sord diff --git a/lib/sord/parlour_plugin.rb b/lib/sord/parlour_plugin.rb index b68c167..f5de991 100644 --- a/lib/sord/parlour_plugin.rb +++ b/lib/sord/parlour_plugin.rb @@ -1,3 +1,4 @@ +# typed: true require 'parlour' module Sord diff --git a/lib/sord/resolver.rb b/lib/sord/resolver.rb index 3fd16b4..141b1c6 100644 --- a/lib/sord/resolver.rb +++ b/lib/sord/resolver.rb @@ -1,3 +1,4 @@ +# typed: false require 'stringio' module Sord diff --git a/lib/sord/type_converter.rb b/lib/sord/type_converter.rb index 573d1da..0e974e7 100644 --- a/lib/sord/type_converter.rb +++ b/lib/sord/type_converter.rb @@ -1,3 +1,4 @@ +# typed: true require 'yaml' require 'sord/logging' require 'sord/resolver' diff --git a/rbi/sord.rbi b/rbi/sord.rbi index 3691643..6790464 100644 --- a/rbi/sord.rbi +++ b/rbi/sord.rbi @@ -1,4 +1,4 @@ -# typed: strong +# typed: ignore module Sord module Logging sig { returns(T::Array[Proc]) } diff --git a/sorbet/rbi/gems/docile.rbi b/sorbet/rbi/gems/docile.rbi index 4141402..0e1f888 100644 --- a/sorbet/rbi/gems/docile.rbi +++ b/sorbet/rbi/gems/docile.rbi @@ -1,7 +1,7 @@ # This file is autogenerated. Do not edit it by hand. Regenerate it with: # srb rbi gems -# typed: true +# typed: strong # # If you would like to make changes to this file, great! Please create the gem's shim here: # diff --git a/sorbet/rbi/gems/parlour.rbi b/sorbet/rbi/gems/parlour.rbi index f3f16b2..8316e59 100644 --- a/sorbet/rbi/gems/parlour.rbi +++ b/sorbet/rbi/gems/parlour.rbi @@ -1,13 +1,13 @@ # This file is autogenerated. Do not edit it by hand. Regenerate it with: # srb rbi gems -# typed: true +# typed: strong # # If you would like to make changes to this file, great! Please create the gem's shim here: # # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/parlour/all/parlour.rbi # -# parlour-0.3.1 +# parlour-0.4.0 module Parlour end class Parlour::Plugin diff --git a/sorbet/rbi/gems/rainbow.rbi b/sorbet/rbi/gems/rainbow.rbi index 711a5b8..d6ad9ac 100644 --- a/sorbet/rbi/gems/rainbow.rbi +++ b/sorbet/rbi/gems/rainbow.rbi @@ -1,7 +1,7 @@ # This file is autogenerated. Do not edit it by hand. Regenerate it with: # srb rbi gems -# typed: true +# typed: strong # # If you would like to make changes to this file, great! Please create the gem's shim here: # diff --git a/sorbet/rbi/gems/rspec.rbi b/sorbet/rbi/gems/rspec.rbi index 6a4a953..89f474c 100644 --- a/sorbet/rbi/gems/rspec.rbi +++ b/sorbet/rbi/gems/rspec.rbi @@ -1,7 +1,7 @@ # This file is autogenerated. Do not edit it by hand. Regenerate it with: # srb rbi gems -# typed: true +# typed: strong # # If you would like to make changes to this file, great! Please create the gem's shim here: # diff --git a/sorbet/rbi/gems/simplecov-html.rbi b/sorbet/rbi/gems/simplecov-html.rbi index 5277844..75e60a9 100644 --- a/sorbet/rbi/gems/simplecov-html.rbi +++ b/sorbet/rbi/gems/simplecov-html.rbi @@ -1,7 +1,7 @@ # This file is autogenerated. Do not edit it by hand. Regenerate it with: # srb rbi gems -# typed: true +# typed: strong # # If you would like to make changes to this file, great! Please create the gem's shim here: # diff --git a/sorbet/rbi/gems/sorbet-runtime.rbi b/sorbet/rbi/gems/sorbet-runtime.rbi index 60e6c8d..eb7d401 100644 --- a/sorbet/rbi/gems/sorbet-runtime.rbi +++ b/sorbet/rbi/gems/sorbet-runtime.rbi @@ -1,13 +1,13 @@ # This file is autogenerated. Do not edit it by hand. Regenerate it with: # srb rbi gems -# typed: true +# typed: false # # If you would like to make changes to this file, great! Please create the gem's shim here: # # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/sorbet-runtime/all/sorbet-runtime.rbi # -# sorbet-runtime-0.4.4410 +# sorbet-runtime-0.4.4429 module T::Configuration def self.call_validation_error_handler(signature, opts); end def self.call_validation_error_handler=(value); end diff --git a/sorbet/rbi/hidden-definitions/errors.txt b/sorbet/rbi/hidden-definitions/errors.txt index bbff1ef..4eb2997 100644 --- a/sorbet/rbi/hidden-definitions/errors.txt +++ b/sorbet/rbi/hidden-definitions/errors.txt @@ -212,14 +212,11 @@ # wrong constant name div$2 # wrong constant name power$2 # wrong constant name to_s$1 -# wrong constant name _load -# wrong constant name double_fig -# wrong constant name limit -# wrong constant name mode +# undefined singleton method `limit$1' for `BigDecimal' +# undefined singleton method `mode$1' for `BigDecimal' +# wrong constant name limit$1 +# wrong constant name mode$1 # wrong constant name new -# wrong constant name save_exception_mode -# wrong constant name save_limit -# wrong constant name save_rounding_mode # wrong constant name clone # wrong constant name irb # wrong constant name local_variable_defined? @@ -323,6 +320,9 @@ # wrong constant name max_retries= # wrong constant name redirect_limit # wrong constant name redirect_limit= +# wrong constant name link +# wrong constant name cp_lr +# wrong constant name link_entry # uninitialized constant Bundler::GemHelper::DEFAULT # uninitialized constant Bundler::GemHelper::LN_SUPPORTED # uninitialized constant Bundler::GemHelper::LOW_METHODS @@ -353,7 +353,8 @@ # wrong constant name perform_git_push # wrong constant name rubygem_push # wrong constant name sh -# wrong constant name sh_with_code +# wrong constant name sh_with_input +# wrong constant name sh_with_status # wrong constant name spec_path # wrong constant name tag_version # wrong constant name version @@ -392,6 +393,7 @@ # wrong constant name run # wrong constant name # wrong constant name +# uninitialized constant Bundler::Index::Elem # wrong constant name initialize # wrong constant name inject # wrong constant name remove @@ -407,6 +409,8 @@ # wrong constant name ambiguous_gems # wrong constant name ambiguous_gems= # wrong constant name install +# uninitialized constant Bundler::Molinillo::DependencyGraph::Elem +# uninitialized constant Bundler::Molinillo::DependencyGraph::Log::Elem # wrong constant name == # wrong constant name app_cache_dirname # wrong constant name app_cache_path @@ -500,6 +504,9 @@ # wrong constant name default_retries # uninitialized constant Bundler::RubyGemsGemInstaller::ENV_PATHS # wrong constant name +# uninitialized constant Bundler::RubygemsIntegration::MoreFuture::EXT_LOCK +# Did you mean? Bundler::RubygemsIntegration::EXT_LOCK +# wrong constant name default_stubs # wrong constant name == # wrong constant name fallback_timeout # wrong constant name fallback_timeout= @@ -524,6 +531,7 @@ # wrong constant name # wrong constant name # wrong constant name validate! +# uninitialized constant Bundler::SpecSet::Elem # wrong constant name add_color # wrong constant name ask # wrong constant name confirm @@ -778,7 +786,6 @@ # wrong constant name first$2 # wrong constant name grep_v # wrong constant name inject$2 -# wrong constant name lazy # wrong constant name max$2 # wrong constant name max_by$2 # wrong constant name min$2 @@ -1025,11 +1032,9 @@ # wrong constant name lchown$1 # wrong constant name lutime # wrong constant name mkfifo -# wrong constant name open! # wrong constant name read_binary # wrong constant name realdirpath$1 # wrong constant name realpath$1 -# wrong constant name relative_path # wrong constant name umask$1 # wrong constant name utime$1 # wrong constant name blockdev? @@ -3062,7 +3067,6 @@ # undefined method `fetch$2' for class `Hash' # undefined method `initialize$2' for class `Hash' # Did you mean? initialize -# undefined method `merge$2' for class `Hash' # wrong constant name < # wrong constant name <= # wrong constant name > @@ -3079,7 +3083,6 @@ # wrong constant name flatten # wrong constant name index # wrong constant name initialize$2 -# wrong constant name merge$2 # wrong constant name merge! # wrong constant name replace # wrong constant name slice @@ -3220,78 +3223,8 @@ # wrong constant name to_bn # wrong constant name to_s$1 # wrong constant name sqrt -# wrong constant name -# wrong constant name -# wrong constant name -# wrong constant name -# wrong constant name -# wrong constant name -# wrong constant name -# wrong constant name -# wrong constant name -# wrong constant name -# wrong constant name -# wrong constant name -# wrong constant name -# wrong constant name to_json -# wrong constant name -# wrong constant name to_json -# wrong constant name -# wrong constant name to_json -# wrong constant name -# wrong constant name to_json -# wrong constant name -# wrong constant name to_json -# wrong constant name -# wrong constant name to_json -# wrong constant name -# wrong constant name to_json -# wrong constant name -# wrong constant name -# wrong constant name to_json -# wrong constant name to_json_raw -# wrong constant name to_json_raw_object -# wrong constant name json_create -# wrong constant name -# wrong constant name -# wrong constant name to_json -# wrong constant name -# wrong constant name -# wrong constant name [] -# wrong constant name []= -# wrong constant name allow_nan? -# wrong constant name array_nl -# wrong constant name array_nl= -# wrong constant name ascii_only? -# wrong constant name buffer_initial_length -# wrong constant name buffer_initial_length= -# wrong constant name check_circular? -# wrong constant name configure -# wrong constant name depth -# wrong constant name depth= -# wrong constant name generate -# wrong constant name indent -# wrong constant name indent= -# wrong constant name initialize -# wrong constant name max_nesting -# wrong constant name max_nesting= -# wrong constant name merge -# wrong constant name object_nl -# wrong constant name object_nl= -# wrong constant name space -# wrong constant name space= -# wrong constant name space_before -# wrong constant name space_before= -# wrong constant name to_h -# wrong constant name to_hash -# wrong constant name # wrong constant name from_state -# wrong constant name # wrong constant name initialize -# wrong constant name parse -# wrong constant name source -# wrong constant name -# wrong constant name # undefined singleton method `dump$1' for `JSON' # undefined singleton method `generate$1' for `JSON' # undefined singleton method `pretty_generate$1' for `JSON' @@ -3384,7 +3317,7 @@ # wrong constant name source_location # wrong constant name super_method # wrong constant name unbind -# undefined method `class_eval$1' for class `Module' +# undefined method `class_eval$2' for class `Module' # Did you mean? class_eval # undefined method `class_variables$1' for class `Module' # Did you mean? class_variables @@ -3405,7 +3338,7 @@ # undefined method `method_defined?$1' for class `Module' # Did you mean? method_defined? # method_undefined -# undefined method `module_eval$1' for class `Module' +# undefined method `module_eval$2' for class `Module' # Did you mean? module_eval # undefined method `private_instance_methods$1' for class `Module' # Did you mean? private_instance_methods @@ -3422,7 +3355,7 @@ # Did you mean? public_method_defined? # undefined method `remove_method$1' for class `Module' # Did you mean? remove_method -# wrong constant name class_eval$1 +# wrong constant name class_eval$2 # wrong constant name class_variables$1 # wrong constant name const_defined?$1 # wrong constant name const_get$1 @@ -3431,7 +3364,7 @@ # wrong constant name deprecate_constant # wrong constant name instance_methods$1 # wrong constant name method_defined?$1 -# wrong constant name module_eval$1 +# wrong constant name module_eval$2 # wrong constant name private_instance_methods$1 # wrong constant name private_method_defined?$1 # wrong constant name protected_instance_methods$1 @@ -3766,7 +3699,6 @@ # wrong constant name << # wrong constant name === # wrong constant name >> -# wrong constant name [] # wrong constant name clone # wrong constant name curry$1 # wrong constant name lambda? @@ -4259,9 +4191,6 @@ # wrong constant name wrap # wrong constant name # wrong constant name encode_fallback -# uninitialized constant RSpec::Core::ExampleGroup::BE_PREDICATE_REGEX -# uninitialized constant RSpec::Core::ExampleGroup::DYNAMIC_MATCHER_REGEX -# uninitialized constant RSpec::Core::ExampleGroup::HAS_REGEX # uninitialized constant RSpec::Core::ExampleGroup::NOT_YET_IMPLEMENTED # uninitialized constant RSpec::Core::ExampleGroup::NO_REASON_GIVEN # wrong constant name initialize @@ -4508,7 +4437,7 @@ # wrong constant name # wrong constant name worse_than? # wrong constant name + -# uninitialized constant #::Elem +# uninitialized constant #::Elem # wrong constant name candidate? # wrong constant name ideal? # wrong constant name indeterminate_actual_indexes @@ -5114,9 +5043,10 @@ # wrong constant name # wrong constant name cyan # wrong constant name emojify +# wrong constant name init # wrong constant name main # wrong constant name make_step -# wrong constant name parse_command +# wrong constant name usage # wrong constant name yellow # wrong constant name # wrong constant name real_ancestors @@ -5176,6 +5106,7 @@ # wrong constant name main # wrong constant name output_file # wrong constant name +# wrong constant name # uninitialized constant SortedSet::InspectKey # wrong constant name initialize # wrong constant name setup @@ -5203,6 +5134,7 @@ # undefined method `lines$1' for class `String' # undefined method `ljust$1' for class `String' # undefined method `match$2' for class `String' +# undefined method `match?$2' for class `String' # undefined method `prepend$1' for class `String' # Did you mean? prepend # prepended @@ -5257,7 +5189,7 @@ # wrong constant name lines$1 # wrong constant name ljust$1 # wrong constant name match$2 -# wrong constant name match? +# wrong constant name match?$2 # wrong constant name prepend$1 # wrong constant name reverse! # wrong constant name rindex$1 diff --git a/sorbet/rbi/hidden-definitions/hidden.rbi b/sorbet/rbi/hidden-definitions/hidden.rbi index 4f6fda5..6ef265f 100644 --- a/sorbet/rbi/hidden-definitions/hidden.rbi +++ b/sorbet/rbi/hidden-definitions/hidden.rbi @@ -63,21 +63,7 @@ end class BigDecimal extend ::T::Sig - def self._load(_); end - - def self.double_fig(); end - - def self.limit(*_); end - - def self.mode(*_); end - def self.new(*args, **kwargs); end - - def self.save_exception_mode(); end - - def self.save_limit(); end - - def self.save_rounding_mode(); end end module BigMath @@ -325,10 +311,18 @@ class Bundler::Fetcher def self.redirect_limit=(redirect_limit); end end +module Bundler::FileUtils + VERSION = ::T.let(nil, ::T.untyped) +end + module Bundler::FileUtils::DryRun extend ::T::Sig end +class Bundler::FileUtils::Entry_ + def link(dest); end +end + module Bundler::FileUtils::LowMethods extend ::T::Sig end @@ -347,6 +341,9 @@ end module Bundler::FileUtils extend ::T::Sig + def self.cp_lr(src, dest, noop: T.unsafe(nil), verbose: T.unsafe(nil), dereference_root: T.unsafe(nil), remove_destination: T.unsafe(nil)); end + + def self.link_entry(src, dest, dereference_root=T.unsafe(nil), remove_destination=T.unsafe(nil)); end end class Bundler::GemHelper @@ -394,7 +391,9 @@ class Bundler::GemHelper def sh(cmd, &block); end - def sh_with_code(cmd, &block); end + def sh_with_input(cmd); end + + def sh_with_status(cmd, &block); end def spec_path(); end @@ -488,6 +487,10 @@ end class Bundler::Graph end +class Bundler::Index + include ::Enumerable +end + class Bundler::Injector def initialize(deps, options=T.unsafe(nil)); end @@ -543,6 +546,14 @@ module Bundler::Molinillo::Delegates extend ::T::Sig end +class Bundler::Molinillo::DependencyGraph + include ::Enumerable +end + +class Bundler::Molinillo::DependencyGraph::Log + extend ::Enumerable +end + module Bundler::Molinillo::SpecificationProvider extend ::T::Sig end @@ -774,6 +785,10 @@ end class Bundler::RubyGemsGemInstaller end +class Bundler::RubygemsIntegration::MoreFuture + def default_stubs(); end +end + class Bundler::Settings::Mirror def ==(other); end @@ -837,6 +852,10 @@ module Bundler::SharedHelpers extend ::T::Sig end +class Bundler::SpecSet + include ::Enumerable +end + class Bundler::UI::RGProxy end @@ -1049,18 +1068,6 @@ class ClosedQueueError extend ::T::Sig end -module Colorize::ClassMethods - extend ::T::Sig -end - -module Colorize::InstanceMethods - extend ::T::Sig -end - -module Colorize - extend ::T::Sig -end - module Comparable extend ::T::Sig end @@ -1495,8 +1502,6 @@ module Enumerable def grep_v(_); end - def lazy(); end - def slice_after(*_); end def slice_before(*_); end @@ -2265,12 +2270,8 @@ class File def self.mkfifo(*_); end - def self.open!(file, *args, &block); end - def self.read_binary(file); end - def self.relative_path(from, to); end - end FileList = Rake::FileList @@ -7035,83 +7036,34 @@ class JSON::CircularDatastructure extend ::T::Sig end -module JSON::Ext -end - -module JSON::Ext::Generator -end - -module JSON::Ext::Generator::GeneratorMethods -end - -module JSON::Ext::Generator::GeneratorMethods::Array - def to_json(*_); end -end - module JSON::Ext::Generator::GeneratorMethods::Array extend ::T::Sig end -module JSON::Ext::Generator::GeneratorMethods::FalseClass - def to_json(*_); end -end - module JSON::Ext::Generator::GeneratorMethods::FalseClass extend ::T::Sig end -module JSON::Ext::Generator::GeneratorMethods::Float - def to_json(*_); end -end - module JSON::Ext::Generator::GeneratorMethods::Float extend ::T::Sig end -module JSON::Ext::Generator::GeneratorMethods::Hash - def to_json(*_); end -end - module JSON::Ext::Generator::GeneratorMethods::Hash extend ::T::Sig end -module JSON::Ext::Generator::GeneratorMethods::Integer - def to_json(*_); end -end - module JSON::Ext::Generator::GeneratorMethods::Integer extend ::T::Sig end -module JSON::Ext::Generator::GeneratorMethods::NilClass - def to_json(*_); end -end - module JSON::Ext::Generator::GeneratorMethods::NilClass extend ::T::Sig end -module JSON::Ext::Generator::GeneratorMethods::Object - def to_json(*_); end -end - module JSON::Ext::Generator::GeneratorMethods::Object extend ::T::Sig end -module JSON::Ext::Generator::GeneratorMethods::String - def to_json(*_); end - - def to_json_raw(*_); end - - def to_json_raw_object(); end -end - -module JSON::Ext::Generator::GeneratorMethods::String::Extend - def json_create(_); end -end - module JSON::Ext::Generator::GeneratorMethods::String::Extend extend ::T::Sig end @@ -7120,10 +7072,6 @@ module JSON::Ext::Generator::GeneratorMethods::String extend ::T::Sig end -module JSON::Ext::Generator::GeneratorMethods::TrueClass - def to_json(*_); end -end - module JSON::Ext::Generator::GeneratorMethods::TrueClass extend ::T::Sig end @@ -7133,62 +7081,7 @@ module JSON::Ext::Generator::GeneratorMethods end class JSON::Ext::Generator::State - def [](_); end - - def []=(_, _1); end - - def allow_nan?(); end - - def array_nl(); end - - def array_nl=(array_nl); end - - def ascii_only?(); end - - def buffer_initial_length(); end - - def buffer_initial_length=(buffer_initial_length); end - - def check_circular?(); end - - def configure(_); end - - def depth(); end - - def depth=(depth); end - - def generate(_); end - - def indent(); end - - def indent=(indent); end - - def initialize(*_); end - - def max_nesting(); end - - def max_nesting=(max_nesting); end - - def merge(_); end - - def object_nl(); end - - def object_nl=(object_nl); end - - def space(); end - - def space=(space); end - - def space_before(); end - - def space_before=(space_before); end - - def to_h(); end - - def to_hash(); end -end - -class JSON::Ext::Generator::State + extend ::T::Sig def self.from_state(_); end end @@ -7198,13 +7091,10 @@ end class JSON::Ext::Parser def initialize(*_); end - - def parse(); end - - def source(); end end class JSON::Ext::Parser + extend ::T::Sig end module JSON::Ext @@ -7948,6 +7838,18 @@ module PP::ObjectMixin extend ::T::Sig end +module Parlour + VERSION = ::T.let(nil, ::T.untyped) +end + +class Parlour::RbiGenerator::Parameter + PREFIXES = ::T.let(nil, ::T.untyped) +end + +module Parlour + extend ::T::Sig +end + class Pathname def empty?(); end @@ -7970,8 +7872,6 @@ class Proc def >>(_); end - def [](*_); end - def clone(); end def lambda?(); end @@ -8921,11 +8821,6 @@ end RSpec::Core::Example::AllExceptionsExcludingDangerousOnesOnRubiesThatAllowIt = RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue class RSpec::Core::ExampleGroup - include ::RSpec::Core::MockingAdapters::RSpec - include ::RSpec::Mocks::ExampleMethods - include ::RSpec::Mocks::ArgumentMatchers - include ::RSpec::Mocks::ExampleMethods::ExpectHost - include ::RSpec::Matchers INSTANCE_VARIABLE_TO_IGNORE = ::T.let(nil, ::T.untyped) end @@ -10783,6 +10678,26 @@ module RSpec extend ::T::Sig end +class Rainbow::Color::Named + NAMES = ::T.let(nil, ::T.untyped) +end + +class Rainbow::Presenter + TERM_EFFECTS = ::T.let(nil, ::T.untyped) +end + +module Rainbow::X11ColorNames + NAMES = ::T.let(nil, ::T.untyped) +end + +module Rainbow::X11ColorNames + extend ::T::Sig +end + +module Rainbow + extend ::T::Sig +end + module Rake EARLY = ::T.let(nil, ::T.untyped) EMPTY_TASK_ARGS = ::T.let(nil, ::T.untyped) @@ -11515,11 +11430,13 @@ module Sorbet::Private::Main 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 @@ -11731,8 +11648,6 @@ class String def grapheme_clusters(); end - def match?(*_); end - def reverse!(); end def shellescape(); end diff --git a/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi b/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi index 3263382..d3eee48 100644 --- a/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +++ b/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi @@ -5,7 +5,7 @@ # # https://github.com/sorbet/sorbet-typed/edit/master/lib/bundler/all/bundler.rbi # -# typed: strict +# typed: true module Bundler FREEBSD = ::T.let(nil, ::T.untyped) @@ -3518,7 +3518,7 @@ class Bundler::HTTPError < Bundler::BundlerError end class Bundler::Index - include ::Enumerable + include T::Enumerable EMPTY_SEARCH = ::T.let(nil, ::T.untyped) NULL = ::T.let(nil, ::T.untyped) RUBY = ::T.let(nil, ::T.untyped) @@ -3775,6 +3775,10 @@ end class Bundler::LazySpecification::Identifier < Struct include ::Comparable + extend ::T::Generic + + Elem = type_member(fixed: T.untyped) + sig do params( other: ::T.untyped, @@ -4081,7 +4085,7 @@ end class Bundler::Molinillo::DependencyGraph include ::TSort - include ::Enumerable + include T::Enumerable sig do params( other: ::T.untyped, @@ -4439,6 +4443,9 @@ class Bundler::Molinillo::DependencyGraph::DetachVertexNamed < Bundler::Molinill end class Bundler::Molinillo::DependencyGraph::Edge < Struct + extend T::Generic + Elem = type_member(fixed: T.untyped) + sig {returns(::T.untyped)} def destination(); end @@ -4493,7 +4500,7 @@ class Bundler::Molinillo::DependencyGraph::Edge < Struct end class Bundler::Molinillo::DependencyGraph::Log - extend ::Enumerable + extend T::Enumerable sig do params( graph: ::T.untyped, @@ -4814,6 +4821,9 @@ class Bundler::Molinillo::DependencyGraph::Vertex end class Bundler::Molinillo::DependencyState < Bundler::Molinillo::ResolutionState + extend T::Generic + Elem = type_member(fixed: T.untyped) + sig {returns(::T.untyped)} def pop_possibility_state(); end end @@ -4855,9 +4865,14 @@ class Bundler::Molinillo::NoSuchDependencyError < Bundler::Molinillo::ResolverEr end class Bundler::Molinillo::PossibilityState < Bundler::Molinillo::ResolutionState + extend T::Generic + Elem = type_member(fixed: T.untyped) end class Bundler::Molinillo::ResolutionState < Struct + extend T::Generic + Elem = type_member(fixed: T.untyped) + sig {returns(::T.untyped)} def activated(); end @@ -5050,6 +5065,9 @@ class Bundler::Molinillo::Resolver::Resolution end class Bundler::Molinillo::Resolver::Resolution::Conflict < Struct + extend T::Generic + Elem = type_member(fixed: T.untyped) + sig {returns(::T.untyped)} def activated_by_name(); end @@ -5162,6 +5180,9 @@ class Bundler::Molinillo::Resolver::Resolution::Conflict < Struct end class Bundler::Molinillo::Resolver::Resolution::PossibilitySet < Struct + extend T::Generic + Elem = type_member(fixed: T.untyped) + sig {returns(::T.untyped)} def dependencies(); end @@ -5212,6 +5233,9 @@ end class Bundler::Molinillo::Resolver::Resolution::UnwindDetails < Struct include ::Comparable + extend T::Generic + Elem = type_member(fixed: T.untyped) + sig do params( other: ::T.untyped, @@ -6971,6 +6995,9 @@ class Bundler::Settings end class Bundler::Settings::Path < Struct + extend T::Generic + Elem = type_member(fixed: T.untyped) + sig {returns(::T.untyped)} def append_ruby_scope(); end @@ -8061,8 +8088,9 @@ end class Bundler::SpecSet include ::TSort - include ::Enumerable + include T::Enumerable extend ::Forwardable + sig do params( args: ::T.untyped, diff --git a/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi b/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi index 0948980..b0fd5c3 100644 --- a/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +++ b/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi @@ -5,7 +5,7 @@ # # https://github.com/sorbet/sorbet-typed/edit/master/lib/ruby/all/open3.rbi # -# typed: strict +# typed: strong module Open3 sig do diff --git a/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi b/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi index 9c1b057..c43618c 100644 --- a/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +++ b/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi @@ -5,7 +5,7 @@ # # https://github.com/sorbet/sorbet-typed/edit/master/lib/ruby/all/resolv.rbi # -# typed: strict +# typed: strong class Resolv sig { params(name: String).returns(String) } diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 8c6a832..1691020 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,4 @@ +# typed: false require 'simplecov' SimpleCov.start