sorbet-schema 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +26 -0
- data/Gemfile.lock +27 -27
- data/lib/sorbet-schema/version.rb +1 -1
- data/lib/typed/coercion/coercer_registry.rb +3 -1
- data/lib/typed/coercion/struct_coercer.rb +9 -1
- data/lib/typed/coercion/symbol_coercer.rb +27 -0
- data/lib/typed/coercion/typed_hash_coercer.rb +50 -0
- data/lib/typed/field.rb +29 -4
- data/lib/typed/schema.rb +2 -2
- data/lib/typed/serializer.rb +26 -4
- data/lib/typed/validations/field_type_validator.rb +6 -2
- data/sorbet/rbi/gems/{builder@3.2.4.rbi → builder@3.3.0.rbi} +22 -25
- data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.0.rbi} +19 -15
- data/sorbet/rbi/gems/{minitest-reporters@1.6.1.rbi → minitest-reporters@1.7.1.rbi} +47 -40
- data/sorbet/rbi/gems/{minitest@5.23.1.rbi → minitest@5.24.0.rbi} +159 -151
- data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.25.1.rbi} +26 -20
- data/sorbet/rbi/gems/{prism@0.29.0.rbi → prism@0.30.0.rbi} +5670 -4445
- data/sorbet/rbi/gems/{rexml@3.2.8.rbi → rexml@3.3.0.rbi} +69 -62
- data/sorbet/rbi/gems/{rubocop@1.63.5.rbi → rubocop@1.64.1.rbi} +660 -344
- data/sorbet/rbi/gems/{standard@1.36.0.rbi → standard@1.39.0.rbi} +159 -90
- data/sorbet/rbi/gems/{tapioca@0.14.2.rbi → tapioca@0.14.4.rbi} +89 -76
- data/sorbet/rbi/gems/{zeitwerk@2.6.15.rbi → zeitwerk@2.6.16.rbi} +115 -78
- metadata +19 -17
- /data/sorbet/rbi/gems/{parser@3.3.1.0.rbi → parser@3.3.3.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{reline@0.5.7.rbi → reline@0.5.9.rbi} +0 -0
- /data/sorbet/rbi/gems/{rubocop-performance@1.21.0.rbi → rubocop-performance@1.21.1.rbi} +0 -0
- /data/sorbet/rbi/gems/{stringio@3.1.0.rbi → stringio@3.1.1.rbi} +0 -0
@@ -3454,47 +3454,47 @@ end
|
|
3454
3454
|
# A Source that wraps an IO. See the Source class for method
|
3455
3455
|
# documentation
|
3456
3456
|
#
|
3457
|
-
# source://rexml//lib/rexml/source.rb#
|
3457
|
+
# source://rexml//lib/rexml/source.rb#176
|
3458
3458
|
class REXML::IOSource < ::REXML::Source
|
3459
3459
|
# block_size has been deprecated
|
3460
3460
|
#
|
3461
3461
|
# @return [IOSource] a new instance of IOSource
|
3462
3462
|
#
|
3463
|
-
# source://rexml//lib/rexml/source.rb#
|
3463
|
+
# source://rexml//lib/rexml/source.rb#180
|
3464
3464
|
def initialize(arg, block_size = T.unsafe(nil), encoding = T.unsafe(nil)); end
|
3465
3465
|
|
3466
3466
|
# @return the current line in the source
|
3467
3467
|
#
|
3468
|
-
# source://rexml//lib/rexml/source.rb#
|
3468
|
+
# source://rexml//lib/rexml/source.rb#258
|
3469
3469
|
def current_line; end
|
3470
3470
|
|
3471
3471
|
# @return [Boolean]
|
3472
3472
|
#
|
3473
|
-
# source://rexml//lib/rexml/source.rb#
|
3473
|
+
# source://rexml//lib/rexml/source.rb#253
|
3474
3474
|
def empty?; end
|
3475
3475
|
|
3476
|
-
# source://rexml//lib/rexml/source.rb#
|
3476
|
+
# source://rexml//lib/rexml/source.rb#230
|
3477
3477
|
def ensure_buffer; end
|
3478
3478
|
|
3479
3479
|
# Note: When specifying a string for 'pattern', it must not include '>' except in the following formats:
|
3480
3480
|
# - ">"
|
3481
3481
|
# - "XXX>" (X is any string excluding '>')
|
3482
3482
|
#
|
3483
|
-
# source://rexml//lib/rexml/source.rb#
|
3483
|
+
# source://rexml//lib/rexml/source.rb#237
|
3484
3484
|
def match(pattern, cons = T.unsafe(nil)); end
|
3485
3485
|
|
3486
|
-
# source://rexml//lib/rexml/source.rb#
|
3486
|
+
# source://rexml//lib/rexml/source.rb#201
|
3487
3487
|
def read(term = T.unsafe(nil)); end
|
3488
3488
|
|
3489
|
-
# source://rexml//lib/rexml/source.rb#
|
3489
|
+
# source://rexml//lib/rexml/source.rb#212
|
3490
3490
|
def read_until(term); end
|
3491
3491
|
|
3492
3492
|
private
|
3493
3493
|
|
3494
|
-
# source://rexml//lib/rexml/source.rb#
|
3494
|
+
# source://rexml//lib/rexml/source.rb#300
|
3495
3495
|
def encoding_updated; end
|
3496
3496
|
|
3497
|
-
# source://rexml//lib/rexml/source.rb#
|
3497
|
+
# source://rexml//lib/rexml/source.rb#280
|
3498
3498
|
def readline(term = T.unsafe(nil)); end
|
3499
3499
|
end
|
3500
3500
|
|
@@ -3887,38 +3887,38 @@ end
|
|
3887
3887
|
#
|
3888
3888
|
# Nat Price gave me some good ideas for the API.
|
3889
3889
|
#
|
3890
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3890
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#40
|
3891
3891
|
class REXML::Parsers::BaseParser
|
3892
3892
|
include ::REXML::Parsers::BaseParser::Private
|
3893
3893
|
|
3894
3894
|
# @return [BaseParser] a new instance of BaseParser
|
3895
3895
|
#
|
3896
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3896
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#139
|
3897
3897
|
def initialize(source); end
|
3898
3898
|
|
3899
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3899
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#144
|
3900
3900
|
def add_listener(listener); end
|
3901
3901
|
|
3902
3902
|
# Returns true if there are no more events
|
3903
3903
|
#
|
3904
3904
|
# @return [Boolean]
|
3905
3905
|
#
|
3906
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3906
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#170
|
3907
3907
|
def empty?; end
|
3908
3908
|
|
3909
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3909
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#463
|
3910
3910
|
def entity(reference, entities); end
|
3911
3911
|
|
3912
3912
|
# Returns true if there are more events. Synonymous with !empty?
|
3913
3913
|
#
|
3914
3914
|
# @return [Boolean]
|
3915
3915
|
#
|
3916
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3916
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#175
|
3917
3917
|
def has_next?; end
|
3918
3918
|
|
3919
3919
|
# Escapes all possible entities
|
3920
3920
|
#
|
3921
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3921
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#474
|
3922
3922
|
def normalize(input, entities = T.unsafe(nil), entity_filter = T.unsafe(nil)); end
|
3923
3923
|
|
3924
3924
|
# Peek at the +depth+ event in the stack. The first element on the stack
|
@@ -3928,102 +3928,102 @@ class REXML::Parsers::BaseParser
|
|
3928
3928
|
# event, so you can effectively pre-parse the entire document (pull the
|
3929
3929
|
# entire thing into memory) using this method.
|
3930
3930
|
#
|
3931
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3931
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#191
|
3932
3932
|
def peek(depth = T.unsafe(nil)); end
|
3933
3933
|
|
3934
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3934
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#160
|
3935
3935
|
def position; end
|
3936
3936
|
|
3937
3937
|
# Returns the next event. This is a +PullEvent+ object.
|
3938
3938
|
#
|
3939
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3939
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#206
|
3940
3940
|
def pull; end
|
3941
3941
|
|
3942
3942
|
# Returns the value of attribute source.
|
3943
3943
|
#
|
3944
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3944
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#148
|
3945
3945
|
def source; end
|
3946
3946
|
|
3947
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3947
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#150
|
3948
3948
|
def stream=(source); end
|
3949
3949
|
|
3950
3950
|
# Unescapes all possible entities
|
3951
3951
|
#
|
3952
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3952
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#490
|
3953
3953
|
def unnormalize(string, entities = T.unsafe(nil), filter = T.unsafe(nil)); end
|
3954
3954
|
|
3955
3955
|
# Push an event back on the head of the stream. This method
|
3956
3956
|
# has (theoretically) infinite depth.
|
3957
3957
|
#
|
3958
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3958
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#181
|
3959
3959
|
def unshift(token); end
|
3960
3960
|
|
3961
3961
|
private
|
3962
3962
|
|
3963
3963
|
# @return [Boolean]
|
3964
3964
|
#
|
3965
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3965
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#519
|
3966
3966
|
def need_source_encoding_update?(xml_declaration_encoding); end
|
3967
3967
|
|
3968
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3968
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#630
|
3969
3969
|
def parse_attributes(prefixes, curr_ns); end
|
3970
3970
|
|
3971
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3971
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#538
|
3972
3972
|
def parse_id(base_error_message, accept_external_id:, accept_public_id:); end
|
3973
3973
|
|
3974
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3974
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#566
|
3975
3975
|
def parse_id_invalid_details(accept_external_id:, accept_public_id:); end
|
3976
3976
|
|
3977
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3977
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#525
|
3978
3978
|
def parse_name(base_error_message); end
|
3979
3979
|
|
3980
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3980
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#604
|
3981
3981
|
def process_instruction(start_position); end
|
3982
3982
|
|
3983
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3983
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#214
|
3984
3984
|
def pull_event; end
|
3985
3985
|
end
|
3986
3986
|
|
3987
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3987
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#113
|
3988
3988
|
REXML::Parsers::BaseParser::EXTERNAL_ID_PUBLIC = T.let(T.unsafe(nil), Regexp)
|
3989
3989
|
|
3990
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3990
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#114
|
3991
3991
|
REXML::Parsers::BaseParser::EXTERNAL_ID_SYSTEM = T.let(T.unsafe(nil), Regexp)
|
3992
3992
|
|
3993
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3993
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#115
|
3994
3994
|
REXML::Parsers::BaseParser::PUBLIC_ID = T.let(T.unsafe(nil), Regexp)
|
3995
3995
|
|
3996
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3996
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#126
|
3997
3997
|
module REXML::Parsers::BaseParser::Private; end
|
3998
3998
|
|
3999
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
3999
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#130
|
4000
4000
|
REXML::Parsers::BaseParser::Private::ATTLISTDECL_END = T.let(T.unsafe(nil), Regexp)
|
4001
4001
|
|
4002
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4002
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#129
|
4003
4003
|
REXML::Parsers::BaseParser::Private::CLOSE_PATTERN = T.let(T.unsafe(nil), Regexp)
|
4004
4004
|
|
4005
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4005
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#134
|
4006
4006
|
REXML::Parsers::BaseParser::Private::ENTITYDECL_PATTERN = T.let(T.unsafe(nil), Regexp)
|
4007
4007
|
|
4008
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4008
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#132
|
4009
4009
|
REXML::Parsers::BaseParser::Private::GEDECL_PATTERN = T.let(T.unsafe(nil), String)
|
4010
4010
|
|
4011
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4011
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#127
|
4012
4012
|
REXML::Parsers::BaseParser::Private::INSTRUCTION_END = T.let(T.unsafe(nil), Regexp)
|
4013
4013
|
|
4014
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4014
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#131
|
4015
4015
|
REXML::Parsers::BaseParser::Private::NAME_PATTERN = T.let(T.unsafe(nil), Regexp)
|
4016
4016
|
|
4017
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4017
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#133
|
4018
4018
|
REXML::Parsers::BaseParser::Private::PEDECL_PATTERN = T.let(T.unsafe(nil), String)
|
4019
4019
|
|
4020
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4020
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#128
|
4021
4021
|
REXML::Parsers::BaseParser::Private::TAG_PATTERN = T.let(T.unsafe(nil), Regexp)
|
4022
4022
|
|
4023
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4023
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#49
|
4024
4024
|
REXML::Parsers::BaseParser::QNAME = T.let(T.unsafe(nil), Regexp)
|
4025
4025
|
|
4026
|
-
# source://rexml//lib/rexml/parsers/baseparser.rb#
|
4026
|
+
# source://rexml//lib/rexml/parsers/baseparser.rb#48
|
4027
4027
|
REXML::Parsers::BaseParser::QNAME_STR = T.let(T.unsafe(nil), String)
|
4028
4028
|
|
4029
4029
|
# source://rexml//lib/rexml/parsers/streamparser.rb#6
|
@@ -4218,9 +4218,10 @@ end
|
|
4218
4218
|
# A Source can be searched for patterns, and wraps buffers and other
|
4219
4219
|
# objects and provides consumption of text
|
4220
4220
|
#
|
4221
|
-
# source://rexml//lib/rexml/source.rb#
|
4221
|
+
# source://rexml//lib/rexml/source.rb#51
|
4222
4222
|
class REXML::Source
|
4223
4223
|
include ::REXML::Encoding
|
4224
|
+
include ::REXML::Source::Private
|
4224
4225
|
|
4225
4226
|
# Constructor
|
4226
4227
|
# value, overriding all encoding detection
|
@@ -4229,70 +4230,76 @@ class REXML::Source
|
|
4229
4230
|
# @param encoding if non-null, sets the encoding of the source to this
|
4230
4231
|
# @return [Source] a new instance of Source
|
4231
4232
|
#
|
4232
|
-
# source://rexml//lib/rexml/source.rb#
|
4233
|
+
# source://rexml//lib/rexml/source.rb#71
|
4233
4234
|
def initialize(arg, encoding = T.unsafe(nil)); end
|
4234
4235
|
|
4235
4236
|
# The current buffer (what we're going to read next)
|
4236
4237
|
#
|
4237
|
-
# source://rexml//lib/rexml/source.rb#
|
4238
|
+
# source://rexml//lib/rexml/source.rb#83
|
4238
4239
|
def buffer; end
|
4239
4240
|
|
4240
|
-
# source://rexml//lib/rexml/source.rb#
|
4241
|
+
# source://rexml//lib/rexml/source.rb#87
|
4241
4242
|
def buffer_encoding=(encoding); end
|
4242
4243
|
|
4243
4244
|
# @return the current line in the source
|
4244
4245
|
#
|
4245
|
-
# source://rexml//lib/rexml/source.rb#
|
4246
|
+
# source://rexml//lib/rexml/source.rb#136
|
4246
4247
|
def current_line; end
|
4247
4248
|
|
4248
4249
|
# @return [Boolean] true if the Source is exhausted
|
4249
4250
|
#
|
4250
|
-
# source://rexml//lib/rexml/source.rb#
|
4251
|
+
# source://rexml//lib/rexml/source.rb#131
|
4251
4252
|
def empty?; end
|
4252
4253
|
|
4253
4254
|
# Returns the value of attribute encoding.
|
4254
4255
|
#
|
4255
|
-
# source://rexml//lib/rexml/source.rb#
|
4256
|
+
# source://rexml//lib/rexml/source.rb#55
|
4256
4257
|
def encoding; end
|
4257
4258
|
|
4258
4259
|
# Inherited from Encoding
|
4259
4260
|
# Overridden to support optimized en/decoding
|
4260
4261
|
#
|
4261
|
-
# source://rexml//lib/rexml/source.rb#
|
4262
|
+
# source://rexml//lib/rexml/source.rb#93
|
4262
4263
|
def encoding=(enc); end
|
4263
4264
|
|
4264
|
-
# source://rexml//lib/rexml/source.rb#
|
4265
|
+
# source://rexml//lib/rexml/source.rb#111
|
4265
4266
|
def ensure_buffer; end
|
4266
4267
|
|
4267
4268
|
# The line number of the last consumed text
|
4268
4269
|
#
|
4269
|
-
# source://rexml//lib/rexml/source.rb#
|
4270
|
+
# source://rexml//lib/rexml/source.rb#54
|
4270
4271
|
def line; end
|
4271
4272
|
|
4272
|
-
# source://rexml//lib/rexml/source.rb#
|
4273
|
+
# source://rexml//lib/rexml/source.rb#114
|
4273
4274
|
def match(pattern, cons = T.unsafe(nil)); end
|
4274
4275
|
|
4275
|
-
# source://rexml//lib/rexml/source.rb#
|
4276
|
+
# source://rexml//lib/rexml/source.rb#122
|
4276
4277
|
def position; end
|
4277
4278
|
|
4278
|
-
# source://rexml//lib/rexml/source.rb#
|
4279
|
+
# source://rexml//lib/rexml/source.rb#126
|
4279
4280
|
def position=(pos); end
|
4280
4281
|
|
4281
|
-
# source://rexml//lib/rexml/source.rb#
|
4282
|
+
# source://rexml//lib/rexml/source.rb#98
|
4282
4283
|
def read(term = T.unsafe(nil)); end
|
4283
4284
|
|
4284
|
-
# source://rexml//lib/rexml/source.rb#
|
4285
|
+
# source://rexml//lib/rexml/source.rb#101
|
4285
4286
|
def read_until(term); end
|
4286
4287
|
|
4287
4288
|
private
|
4288
4289
|
|
4289
|
-
# source://rexml//lib/rexml/source.rb#
|
4290
|
+
# source://rexml//lib/rexml/source.rb#145
|
4290
4291
|
def detect_encoding; end
|
4291
4292
|
|
4292
|
-
# source://rexml//lib/rexml/source.rb#
|
4293
|
+
# source://rexml//lib/rexml/source.rb#163
|
4293
4294
|
def encoding_updated; end
|
4294
4295
|
end
|
4295
4296
|
|
4297
|
+
# source://rexml//lib/rexml/source.rb#57
|
4298
|
+
module REXML::Source::Private; end
|
4299
|
+
|
4300
|
+
# source://rexml//lib/rexml/source.rb#58
|
4301
|
+
REXML::Source::Private::PRE_DEFINED_TERM_PATTERNS = T.let(T.unsafe(nil), Hash)
|
4302
|
+
|
4296
4303
|
# Represents text nodes in an XML document
|
4297
4304
|
#
|
4298
4305
|
# source://rexml//lib/rexml/text.rb#11
|