sorbet/rbi/gems/dry-validation.rbi in clean-architecture-3.0.0 vs sorbet/rbi/gems/dry-validation.rbi in clean-architecture-3.0.1

- old
+ new

@@ -5,11 +5,12 @@ # # 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/dry-validation/all/dry-validation.rbi # -# dry-validation-1.3.1 +# dry-validation-1.4.2 + module Dry end module Dry::Validation def self.Contract(options = nil, &block); end def self.macros; end @@ -27,32 +28,32 @@ def initialize(klass); end end class Dry::Validation::Function def map_keywords(block); end extend Dry::Initializer - include Anonymous_Module_52 + include Anonymous_Module_48 include Dry::Initializer::Mixin::Root end -module Anonymous_Module_52 +module Anonymous_Module_48 def __dry_initializer_config__; end def __dry_initializer_initialize__(*arg0, **__dry_initializer_options__); end def block; end def block_options; end extend Dry::Initializer::Mixin::Local end -module Anonymous_Module_53 +module Anonymous_Module_49 def __dry_initializer_config__; end def __dry_initializer_initialize__(name, *arg1, **__dry_initializer_options__); end def args; end def block; end def name; end extend Dry::Initializer::Mixin::Local end class Dry::Validation::Macro < Dry::Validation::Function def extract_block_options(options); end def with(args); end - include Anonymous_Module_53 + include Anonymous_Module_49 end module Dry::Validation::Macros def self.[](name); end def self.container; end def self.register(name, *args, &block); end @@ -68,28 +69,29 @@ include Dry::Container::Mixin end class Dry::Validation::Config < Dry::Schema::Config def dup; end end -module Anonymous_Module_54 +module Anonymous_Module_50 def __dry_initializer_config__; end def __dry_initializer_initialize__(*arg0, **__dry_initializer_options__); end def keys; end def macros; end extend Dry::Initializer::Mixin::Local end class Dry::Validation::Rule < Dry::Validation::Function + def add_macro_from_hash(macros, spec); end def call(contract, result); end def each(*macros, &block); end def inspect; end def parse_macros(*args); end def validate(*macros, &block); end - include Anonymous_Dry_Equalizer_55 - include Anonymous_Module_54 + include Anonymous_Dry_Equalizer_51 + include Anonymous_Module_50 include Dry::Equalizer::Methods end -module Anonymous_Dry_Equalizer_55 +module Anonymous_Dry_Equalizer_51 def cmp?(comparator, other); end def hash; end end class Dry::Validation::Failures def failure(message, tokens = nil); end @@ -100,23 +102,23 @@ class Dry::Validation::Evaluator def _options; end def base; end def error?(path); end def failures; end - def initialize(contract, options, &block); end + def initialize(contract, **options, &block); end def key(path = nil); end def key?; end def key_name; end def method_missing(meth, *args, &block); end def respond_to_missing?(meth, include_private = nil); end def value; end def with(new_opts, &block); end extend Dry::Initializer - include Anonymous_Module_56 + include Anonymous_Module_52 include Dry::Initializer::Mixin::Root end -module Anonymous_Module_56 +module Anonymous_Module_52 def __dry_initializer_config__; end def __dry_initializer_initialize__(_contract, *arg1, **__dry_initializer_options__); end def _context; end def _contract; end def block_options; end @@ -125,11 +127,11 @@ def path; end def result; end def values; end extend Dry::Initializer::Mixin::Local end -module Anonymous_Module_57 +module Anonymous_Module_53 def __dry_initializer_config__; end def __dry_initializer_initialize__(*arg0, **__dry_initializer_options__); end extend Dry::Initializer::Mixin::Local end class Dry::Validation::Message < Dry::Schema::Message @@ -138,36 +140,38 @@ def meta; end def path; end def self.[](text, path, meta); end def text; end def to_s; end - include Anonymous_Dry_Equalizer_58 - include Anonymous_Module_57 + include Anonymous_Dry_Equalizer_54 + include Anonymous_Module_53 include Dry::Equalizer::Methods end -module Anonymous_Dry_Equalizer_58 +module Anonymous_Dry_Equalizer_54 def cmp?(comparator, other); end def hash; end def inspect; end end -module Anonymous_Module_59 +module Anonymous_Module_55 def __dry_initializer_config__; end def __dry_initializer_initialize__(*arg0, **__dry_initializer_options__); end extend Dry::Initializer::Mixin::Local end class Dry::Validation::Message::Localized < Dry::Validation::Message def evaluate(**opts); end - include Anonymous_Module_59 + include Anonymous_Module_55 end module Dry::Validation::Messages end class Dry::Validation::Messages::Resolver def [](message:, tokens:, path:, meta: nil); end def call(message:, tokens:, path:, meta: nil); end def initialize(messages); end def message(rule, path:, tokens: nil, locale: nil, full: nil); end def messages; end + def parse_token(token); end + def parse_tokens(tokens); end end class Dry::Validation::MessageSet < Dry::Schema::MessageSet def add(message); end def filter(*predicates); end def freeze; end @@ -184,15 +188,15 @@ def data; end def initialize(data); end def key?(key, hash = nil); end def method_missing(meth, *args, &block); end def respond_to_missing?(meth, include_private = nil); end - include Anonymous_Dry_Equalizer_60 + include Anonymous_Dry_Equalizer_56 include Dry::Equalizer::Methods include Enumerable end -module Anonymous_Dry_Equalizer_60 +module Anonymous_Dry_Equalizer_56 def cmp?(comparator, other); end def hash; end def inspect; end end class Dry::Validation::Result @@ -213,14 +217,14 @@ def schema_result; end def self.new(schema_result, context = nil, options = nil); end def success?; end def to_h; end def values; end - include Anonymous_Dry_Equalizer_61 + include Anonymous_Dry_Equalizer_57 include Dry::Equalizer::Methods end -module Anonymous_Dry_Equalizer_61 +module Anonymous_Dry_Equalizer_57 def cmp?(comparator, other); end def hash; end end module Dry::Schema end @@ -243,37 +247,37 @@ def inspect; end def macro(name, *args); end def messages; end extend Dry::Initializer extend Dry::Validation::Contract::ClassInterface - include Anonymous_Dry_Equalizer_62 - include Anonymous_Module_63 + include Anonymous_Dry_Equalizer_58 + include Anonymous_Module_59 include Dry::Equalizer::Methods include Dry::Initializer::Mixin::Root end module Dry::Validation::Contract::ClassInterface def __schema__; end def build(options = nil, &block); end def config; end def core_schema_opts; end - def define(method_name, external_schema, &block); end + def define(method_name, external_schemas, &block); end def ensure_valid_keys(*keys); end def inherited(klass); end - def json(external_schema = nil, &block); end + def json(*external_schemas, &block); end def key_map; end def macros; end def messages; end - def params(external_schema = nil, &block); end + def params(*external_schemas, &block); end def rule(*keys, &block); end def rules; end - def schema(external_schema = nil, &block); end + def schema(*external_schemas, &block); end include Dry::Validation::Macros::Registrar end -module Anonymous_Dry_Equalizer_62 +module Anonymous_Dry_Equalizer_58 def cmp?(comparator, other); end def hash; end end -module Anonymous_Module_63 +module Anonymous_Module_59 def __dry_initializer_config__; end def __dry_initializer_initialize__(*arg0, **__dry_initializer_options__); end def config; end def macros; end def message_resolver; end