ech_config 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,8 +13,6 @@ class Array
13
13
 
14
14
  def deconstruct(); end
15
15
 
16
- def intersect?(arg); end
17
-
18
16
  def shelljoin(); end
19
17
 
20
18
  def to_h(); end
@@ -36,7 +34,6 @@ class BigDecimal
36
34
  def precision_scale(); end
37
35
 
38
36
  def scale(); end
39
- EXCEPTION_NaN = ::T.let(nil, ::T.untyped)
40
37
  VERSION = ::T.let(nil, ::T.untyped)
41
38
  end
42
39
 
@@ -3875,12 +3872,6 @@ end
3875
3872
  module GC
3876
3873
  def self.latest_compact_info(); end
3877
3874
 
3878
- def self.measure_total_time(); end
3879
-
3880
- def self.measure_total_time=(flag); end
3881
-
3882
- def self.total_time(); end
3883
-
3884
3875
  def self.using_rvargc?(); end
3885
3876
 
3886
3877
  def self.verify_transient_heap_internal_consistency(); end
@@ -5025,6 +5016,18 @@ class JSON::Ext::Generator::State
5025
5016
  def escape_slash=(escape_slash); end
5026
5017
 
5027
5018
  def escape_slash?(); end
5019
+
5020
+ def script_safe(); end
5021
+
5022
+ def script_safe=(script_safe); end
5023
+
5024
+ def script_safe?(); end
5025
+
5026
+ def strict(); end
5027
+
5028
+ def strict=(strict); end
5029
+
5030
+ def strict?(); end
5028
5031
  end
5029
5032
 
5030
5033
  class JSON::Ext::Generator::State
@@ -5045,10 +5048,6 @@ module JSON
5045
5048
  def self.create_fast_state(); end
5046
5049
 
5047
5050
  def self.create_pretty_state(); end
5048
-
5049
- def self.load_file(filespec, opts=T.unsafe(nil)); end
5050
-
5051
- def self.load_file!(filespec, opts=T.unsafe(nil)); end
5052
5051
  end
5053
5052
 
5054
5053
  module Kernel
@@ -5139,10 +5138,6 @@ class Net::HTTP
5139
5138
 
5140
5139
  def ipaddr=(addr); end
5141
5140
 
5142
- def max_retries(); end
5143
-
5144
- def max_retries=(retries); end
5145
-
5146
5141
  def max_version(); end
5147
5142
 
5148
5143
  def max_version=(max_version); end
@@ -5162,6 +5157,8 @@ class Net::HTTP
5162
5157
  VERSION = ::T.let(nil, ::T.untyped)
5163
5158
  end
5164
5159
 
5160
+ Net::HTTP::ProxyMod = Net::HTTP::ProxyDelta
5161
+
5165
5162
  class Net::HTTPAlreadyReported
5166
5163
  HAS_BODY = ::T.let(nil, ::T.untyped)
5167
5164
  end
@@ -5169,6 +5166,8 @@ end
5169
5166
  class Net::HTTPAlreadyReported
5170
5167
  end
5171
5168
 
5169
+ Net::HTTPClientError::EXCEPTION_TYPE = Net::HTTPServerException
5170
+
5172
5171
  Net::HTTPClientErrorCode = Net::HTTPClientError
5173
5172
 
5174
5173
  class Net::HTTPEarlyHints
@@ -5240,6 +5239,8 @@ Net::HTTPResponseReceiver = Net::HTTPResponse
5240
5239
 
5241
5240
  Net::HTTPRetriableCode = Net::HTTPRedirection
5242
5241
 
5242
+ Net::HTTPServerError::EXCEPTION_TYPE = Net::HTTPFatalError
5243
+
5243
5244
  Net::HTTPServerErrorCode = Net::HTTPServerError
5244
5245
 
5245
5246
  Net::HTTPSession = Net::HTTP
@@ -5837,10 +5838,6 @@ end
5837
5838
 
5838
5839
  module OpenSSL
5839
5840
  def self.fips_mode(); end
5840
-
5841
- def self.fixed_length_secure_compare(arg, arg1); end
5842
-
5843
- def self.secure_compare(a, b); end
5844
5841
  end
5845
5842
 
5846
5843
  class OpenStruct
@@ -5995,14 +5992,12 @@ class Parser::Diagnostic
5995
5992
  end
5996
5993
 
5997
5994
  class Parser::Lexer
5998
- ESCAPES = ::T.let(nil, ::T.untyped)
5999
5995
  ESCAPE_WHITESPACE = ::T.let(nil, ::T.untyped)
6000
5996
  KEYWORDS = ::T.let(nil, ::T.untyped)
6001
5997
  KEYWORDS_BEGIN = ::T.let(nil, ::T.untyped)
6002
5998
  LEX_STATES = ::T.let(nil, ::T.untyped)
6003
5999
  PUNCTUATION = ::T.let(nil, ::T.untyped)
6004
6000
  PUNCTUATION_BEGIN = ::T.let(nil, ::T.untyped)
6005
- REGEXP_META_CHARACTERS = ::T.let(nil, ::T.untyped)
6006
6001
  end
6007
6002
 
6008
6003
  class Parser::Lexer::Dedenter
@@ -6014,6 +6009,13 @@ class Parser::Lexer::Literal
6014
6009
  TYPES = ::T.let(nil, ::T.untyped)
6015
6010
  end
6016
6011
 
6012
+ class Parser::LexerStrings
6013
+ ESCAPES = ::T.let(nil, ::T.untyped)
6014
+ ESCAPE_WHITESPACE = ::T.let(nil, ::T.untyped)
6015
+ LEX_STATES = ::T.let(nil, ::T.untyped)
6016
+ REGEXP_META_CHARACTERS = ::T.let(nil, ::T.untyped)
6017
+ end
6018
+
6017
6019
  class Parser::MaxNumparamStack
6018
6020
  ORDINARY_PARAMS = ::T.let(nil, ::T.untyped)
6019
6021
  end
@@ -6058,6 +6060,10 @@ class Parser::StaticEnvironment
6058
6060
  FORWARD_ARGS = ::T.let(nil, ::T.untyped)
6059
6061
  end
6060
6062
 
6063
+ class Pathname
6064
+ def lutime(arg, arg1); end
6065
+ end
6066
+
6061
6067
  class Proc
6062
6068
  def <<(arg); end
6063
6069
 
@@ -6078,6 +6084,11 @@ module Process
6078
6084
  def self._fork(); end
6079
6085
  end
6080
6086
 
6087
+ class ProgressBar::Base
6088
+ RUNNING_AVERAGE_RATE_DEPRECATION_WARNING = ::T.let(nil, ::T.untyped)
6089
+ SMOOTHING_DEPRECATION_WARNING = ::T.let(nil, ::T.untyped)
6090
+ end
6091
+
6081
6092
  class ProgressBar::Components::Bar
6082
6093
  DEFAULT_PROGRESS_MARK = ::T.let(nil, ::T.untyped)
6083
6094
  DEFAULT_REMAINDER_MARK = ::T.let(nil, ::T.untyped)
@@ -6094,6 +6105,7 @@ class ProgressBar::Components::Time
6094
6105
  OOB_TIME_FORMATS = ::T.let(nil, ::T.untyped)
6095
6106
  OOB_UNKNOWN_TIME_TEXT = ::T.let(nil, ::T.untyped)
6096
6107
  TIME_FORMAT = ::T.let(nil, ::T.untyped)
6108
+ WALL_CLOCK_FORMAT = ::T.let(nil, ::T.untyped)
6097
6109
  end
6098
6110
 
6099
6111
  class ProgressBar::Components::Title
@@ -6124,10 +6136,24 @@ end
6124
6136
 
6125
6137
  class ProgressBar::Progress
6126
6138
  DEFAULT_BEGINNING_POSITION = ::T.let(nil, ::T.untyped)
6127
- DEFAULT_SMOOTHING = ::T.let(nil, ::T.untyped)
6128
6139
  DEFAULT_TOTAL = ::T.let(nil, ::T.untyped)
6129
6140
  end
6130
6141
 
6142
+ class ProgressBar::Projector
6143
+ NAME_TO_PROJECTOR_MAP = ::T.let(nil, ::T.untyped)
6144
+ end
6145
+
6146
+ ProgressBar::Projector::DEFAULT_PROJECTOR = ProgressBar::Projectors::SmoothedAverage
6147
+
6148
+ class ProgressBar::Projectors::SmoothedAverage
6149
+ DEFAULT_BEGINNING_POSITION = ::T.let(nil, ::T.untyped)
6150
+ DEFAULT_STRENGTH = ::T.let(nil, ::T.untyped)
6151
+ end
6152
+
6153
+ module ProgressBar::Refinements::Enumerator
6154
+ ARITY_ERROR_MESSAGE = ::T.let(nil, ::T.untyped)
6155
+ end
6156
+
6131
6157
  class ProgressBar::Time
6132
6158
  TIME_MOCKING_LIBRARY_METHODS = ::T.let(nil, ::T.untyped)
6133
6159
  end
@@ -6175,8 +6201,6 @@ module Psych
6175
6201
 
6176
6202
  def self.safe_dump(o, io=T.unsafe(nil), options=T.unsafe(nil)); end
6177
6203
 
6178
- def self.safe_load_file(filename, **kwargs); end
6179
-
6180
6204
  def self.unsafe_load(yaml, filename: T.unsafe(nil), fallback: T.unsafe(nil), symbolize_names: T.unsafe(nil), freeze: T.unsafe(nil)); end
6181
6205
 
6182
6206
  def self.unsafe_load_file(filename, **kwargs); end
@@ -6768,6 +6792,10 @@ module RDoc
6768
6792
  def self.home(); end
6769
6793
  end
6770
6794
 
6795
+ module REXML::Namespace
6796
+ NAME_WITHOUT_NAMESPACE = ::T.let(nil, ::T.untyped)
6797
+ end
6798
+
6771
6799
  class REXML::Parsers::BaseParser
6772
6800
  EXTERNAL_ID_PUBLIC = ::T.let(nil, ::T.untyped)
6773
6801
  EXTERNAL_ID_SYSTEM = ::T.let(nil, ::T.untyped)
@@ -7261,20 +7289,12 @@ module RbConfig
7261
7289
  def self.expand(val, config=T.unsafe(nil)); end
7262
7290
 
7263
7291
  def self.fire_update!(key, val, mkconf=T.unsafe(nil), conf=T.unsafe(nil)); end
7264
-
7265
- def self.ruby(); end
7266
7292
  end
7267
7293
 
7268
7294
  module Readline
7269
7295
  def self.completion_quote_character(); end
7270
7296
  end
7271
7297
 
7272
- class Refinement
7273
- end
7274
-
7275
- class Refinement
7276
- end
7277
-
7278
7298
  class Regexp
7279
7299
  TOKEN_KEYS = ::T.let(nil, ::T.untyped)
7280
7300
  end
@@ -7291,14 +7311,32 @@ Regexp::Expression::Anchor::EOS = Regexp::Expression::Anchor::EndOfString
7291
7311
 
7292
7312
  Regexp::Expression::Anchor::EOSobEOL = Regexp::Expression::Anchor::EndOfStringOrBeforeEndOfLine
7293
7313
 
7294
- Regexp::Expression::CharacterSet::Intersection::OPERAND = Regexp::Expression::CharacterSet::IntersectedSequence
7314
+ Regexp::Expression::Backref = Regexp::Expression::Backreference
7315
+
7316
+ Regexp::Expression::Escape = Regexp::Expression::EscapeSequence
7295
7317
 
7296
7318
  Regexp::Expression::MatchLength = Regexp::MatchLength
7297
7319
 
7320
+ Regexp::Expression::Nonposixclass = Regexp::Expression::PosixClass
7321
+
7322
+ Regexp::Expression::Nonproperty = Regexp::Expression::UnicodeProperty
7323
+
7324
+ Regexp::Expression::Posixclass = Regexp::Expression::PosixClass
7325
+
7326
+ Regexp::Expression::Property = Regexp::Expression::UnicodeProperty
7327
+
7298
7328
  class Regexp::Expression::Quantifier
7299
7329
  MODES = ::T.let(nil, ::T.untyped)
7300
7330
  end
7301
7331
 
7332
+ class Regexp::Expression::CharacterSet
7333
+ end
7334
+
7335
+ Regexp::Expression::Set::IntersectedSequence = Regexp::Expression::CharacterSet::IntersectedSequence
7336
+
7337
+ class Regexp::Expression::CharacterSet
7338
+ end
7339
+
7302
7340
  class Regexp::Lexer
7303
7341
  CLOSING_TOKENS = ::T.let(nil, ::T.untyped)
7304
7342
  CONDITION_TOKENS = ::T.let(nil, ::T.untyped)
@@ -7311,6 +7349,8 @@ class Regexp::Parser
7311
7349
  VERSION = ::T.let(nil, ::T.untyped)
7312
7350
  end
7313
7351
 
7352
+ Regexp::Parser::UP = Regexp::Expression::UnicodeProperty
7353
+
7314
7354
  Regexp::Parser::UPTokens = Regexp::Syntax::Token::UnicodeProperty
7315
7355
 
7316
7356
  module Regexp::Syntax
@@ -7319,12 +7359,19 @@ module Regexp::Syntax
7319
7359
  VERSION_REGEXP = ::T.let(nil, ::T.untyped)
7320
7360
  end
7321
7361
 
7362
+ Regexp::Syntax::CURRENT = Regexp::Syntax::V3_1_0
7363
+
7322
7364
  module Regexp::Syntax::Token
7323
7365
  All = ::T.let(nil, ::T.untyped)
7324
7366
  Map = ::T.let(nil, ::T.untyped)
7325
7367
  Types = ::T.let(nil, ::T.untyped)
7326
7368
  end
7327
7369
 
7370
+ module Regexp::Syntax::Token::Alternation
7371
+ All = ::T.let(nil, ::T.untyped)
7372
+ Type = ::T.let(nil, ::T.untyped)
7373
+ end
7374
+
7328
7375
  module Regexp::Syntax::Token::Anchor
7329
7376
  All = ::T.let(nil, ::T.untyped)
7330
7377
  Basic = ::T.let(nil, ::T.untyped)
@@ -7341,6 +7388,8 @@ module Regexp::Syntax::Token::Assertion
7341
7388
  Type = ::T.let(nil, ::T.untyped)
7342
7389
  end
7343
7390
 
7391
+ Regexp::Syntax::Token::Backref = Regexp::Syntax::Token::Backreference
7392
+
7344
7393
  module Regexp::Syntax::Token::Backreference
7345
7394
  All = ::T.let(nil, ::T.untyped)
7346
7395
  Name = ::T.let(nil, ::T.untyped)
@@ -7389,6 +7438,8 @@ module Regexp::Syntax::Token::Escape
7389
7438
  Unicode = ::T.let(nil, ::T.untyped)
7390
7439
  end
7391
7440
 
7441
+ Regexp::Syntax::Token::EscapeSequence = Regexp::Syntax::Token::Escape
7442
+
7392
7443
  module Regexp::Syntax::Token::FreeSpace
7393
7444
  All = ::T.let(nil, ::T.untyped)
7394
7445
  Type = ::T.let(nil, ::T.untyped)
@@ -7420,6 +7471,7 @@ end
7420
7471
 
7421
7472
  module Regexp::Syntax::Token::Meta
7422
7473
  All = ::T.let(nil, ::T.untyped)
7474
+ Alternation = ::T.let(nil, ::T.untyped)
7423
7475
  Basic = ::T.let(nil, ::T.untyped)
7424
7476
  Extended = ::T.let(nil, ::T.untyped)
7425
7477
  Type = ::T.let(nil, ::T.untyped)
@@ -7433,6 +7485,8 @@ module Regexp::Syntax::Token::PosixClass
7433
7485
  Type = ::T.let(nil, ::T.untyped)
7434
7486
  end
7435
7487
 
7488
+ Regexp::Syntax::Token::Property = Regexp::Syntax::Token::UnicodeProperty
7489
+
7436
7490
  module Regexp::Syntax::Token::Quantifier
7437
7491
  All = ::T.let(nil, ::T.untyped)
7438
7492
  Greedy = ::T.let(nil, ::T.untyped)
@@ -7446,6 +7500,8 @@ module Regexp::Syntax::Token::Quantifier
7446
7500
  V1_8_6 = ::T.let(nil, ::T.untyped)
7447
7501
  end
7448
7502
 
7503
+ Regexp::Syntax::Token::Set = Regexp::Syntax::Token::CharacterSet
7504
+
7449
7505
  module Regexp::Syntax::Token::SubexpressionCall
7450
7506
  All = ::T.let(nil, ::T.untyped)
7451
7507
  Name = ::T.let(nil, ::T.untyped)
@@ -7475,6 +7531,7 @@ module Regexp::Syntax::Token::UnicodeProperty
7475
7531
  Derived_V2_5_0 = ::T.let(nil, ::T.untyped)
7476
7532
  Emoji = ::T.let(nil, ::T.untyped)
7477
7533
  Emoji_V2_5_0 = ::T.let(nil, ::T.untyped)
7534
+ Emoji_V2_6_0 = ::T.let(nil, ::T.untyped)
7478
7535
  NonType = ::T.let(nil, ::T.untyped)
7479
7536
  POSIX = ::T.let(nil, ::T.untyped)
7480
7537
  Script = ::T.let(nil, ::T.untyped)
@@ -7743,8 +7800,6 @@ class Ripper
7743
7800
  EXPR_MID = ::T.let(nil, ::T.untyped)
7744
7801
  EXPR_NONE = ::T.let(nil, ::T.untyped)
7745
7802
  EXPR_VALUE = ::T.let(nil, ::T.untyped)
7746
- PARSER_EVENT_TABLE = ::T.let(nil, ::T.untyped)
7747
- SCANNER_EVENT_TABLE = ::T.let(nil, ::T.untyped)
7748
7803
  Version = ::T.let(nil, ::T.untyped)
7749
7804
  end
7750
7805
 
@@ -8441,7 +8496,7 @@ module RuboCop::AST::NodePattern::Sets
8441
8496
  SET_1_1 = ::T.let(nil, ::T.untyped)
8442
8497
  SET_ABSTRACT_OVERRIDE_OVERRIDABLE_ETC = ::T.let(nil, ::T.untyped)
8443
8498
  SET_ADD_DEPENDENCY_ADD_RUNTIME_DEPENDENCY_ADD_DEVELOPMENT_DEPENDENCY = ::T.let(nil, ::T.untyped)
8444
- SET_ANY_ALL_NORETURN_ETC = ::T.let(nil, ::T.untyped)
8499
+ SET_ALL_ANY_CLASS_OF_ETC = ::T.let(nil, ::T.untyped)
8445
8500
  SET_ANY_EMPTY = ::T.let(nil, ::T.untyped)
8446
8501
  SET_ATTR_READER_ATTR_WRITER_ATTR_ACCESSOR = ::T.let(nil, ::T.untyped)
8447
8502
  SET_ATTR_READER_ATTR_WRITER_ATTR_ACCESSOR_ATTR = ::T.let(nil, ::T.untyped)
@@ -8491,17 +8546,19 @@ module RuboCop::AST::NodePattern::Sets
8491
8546
  SET_REQUIRE_REQUIRE_RELATIVE = ::T.let(nil, ::T.untyped)
8492
8547
  SET_SELECT_SELECT = ::T.let(nil, ::T.untyped)
8493
8548
  SET_SEND_PUBLIC_SEND___SEND__ = ::T.let(nil, ::T.untyped)
8549
+ SET_SIG_HELPERS = ::T.let(nil, ::T.untyped)
8494
8550
  SET_SORT_BY_SORT = ::T.let(nil, ::T.untyped)
8495
8551
  SET_SPAWN_SYSTEM = ::T.let(nil, ::T.untyped)
8496
8552
  SET_SPRINTF_FORMAT = ::T.let(nil, ::T.untyped)
8497
8553
  SET_STRUCT_CLASS = ::T.let(nil, ::T.untyped)
8554
+ SET_STRUCT_IMMUTABLESTRUCT = ::T.let(nil, ::T.untyped)
8555
+ SET_STRUCT_IMMUTABLESTRUCT_INEXACTSTRUCT = ::T.let(nil, ::T.untyped)
8498
8556
  SET_SUCC_PRED_NEXT = ::T.let(nil, ::T.untyped)
8499
8557
  SET_TEMPFILE_STRINGIO = ::T.let(nil, ::T.untyped)
8500
8558
  SET_TO_ENUM_ENUM_FOR = ::T.let(nil, ::T.untyped)
8501
8559
  SET_TO_H_TO_HASH = ::T.let(nil, ::T.untyped)
8502
8560
  SET_TO_I_TO_F_TO_C_TO_R = ::T.let(nil, ::T.untyped)
8503
8561
  SET_TRUE_FALSE = ::T.let(nil, ::T.untyped)
8504
- SET_TYPE_TEMPLATE_TYPE_MEMBER = ::T.let(nil, ::T.untyped)
8505
8562
  SET_ZERO_POSITIVE_NEGATIVE = ::T.let(nil, ::T.untyped)
8506
8563
  SET__ = ::T.let(nil, ::T.untyped)
8507
8564
  SET__AT_SLICE = ::T.let(nil, ::T.untyped)
@@ -10041,10 +10098,28 @@ class RuboCop::Cop::Severity
10041
10098
  NAMES = ::T.let(nil, ::T.untyped)
10042
10099
  end
10043
10100
 
10101
+ class RuboCop::Cop::Sorbet::AllowIncompatibleOverride
10102
+ MSG = ::T.let(nil, ::T.untyped)
10103
+ RESTRICT_ON_SEND = ::T.let(nil, ::T.untyped)
10104
+ end
10105
+
10106
+ class RuboCop::Cop::Sorbet::BindingConstantWithoutTypeAlias
10107
+ MSG = ::T.let(nil, ::T.untyped)
10108
+ WITHOUT_BLOCK_MSG = ::T.let(nil, ::T.untyped)
10109
+ end
10110
+
10111
+ class RuboCop::Cop::Sorbet::BuggyObsoleteStrictMemoization
10112
+ MSG = ::T.let(nil, ::T.untyped)
10113
+ end
10114
+
10044
10115
  class RuboCop::Cop::Sorbet::CallbackConditionalsBinding
10045
10116
  CALLBACKS = ::T.let(nil, ::T.untyped)
10046
10117
  end
10047
10118
 
10119
+ class RuboCop::Cop::Sorbet::EmptyLineAfterSig
10120
+ MSG = ::T.let(nil, ::T.untyped)
10121
+ end
10122
+
10048
10123
  class RuboCop::Cop::Sorbet::EnforceSigilOrder
10049
10124
  CODING_REGEX = ::T.let(nil, ::T.untyped)
10050
10125
  FROZEN_REGEX = ::T.let(nil, ::T.untyped)
@@ -10060,20 +10135,56 @@ end
10060
10135
 
10061
10136
  class RuboCop::Cop::Sorbet::ForbidIncludeConstLiteral
10062
10137
  MSG = ::T.let(nil, ::T.untyped)
10138
+ RESTRICT_ON_SEND = ::T.let(nil, ::T.untyped)
10063
10139
  end
10064
10140
 
10065
10141
  class RuboCop::Cop::Sorbet::ForbidSuperclassConstLiteral
10066
10142
  MSG = ::T.let(nil, ::T.untyped)
10067
10143
  end
10068
10144
 
10145
+ class RuboCop::Cop::Sorbet::ForbidTStruct
10146
+ MSG_PROPS = ::T.let(nil, ::T.untyped)
10147
+ MSG_STRUCT = ::T.let(nil, ::T.untyped)
10148
+ RESTRICT_ON_SEND = ::T.let(nil, ::T.untyped)
10149
+ end
10150
+
10151
+ class RuboCop::Cop::Sorbet::ForbidTUnsafe
10152
+ MSG = ::T.let(nil, ::T.untyped)
10153
+ RESTRICT_ON_SEND = ::T.let(nil, ::T.untyped)
10154
+ end
10155
+
10156
+ class RuboCop::Cop::Sorbet::ForbidTUntyped
10157
+ MSG = ::T.let(nil, ::T.untyped)
10158
+ RESTRICT_ON_SEND = ::T.let(nil, ::T.untyped)
10159
+ end
10160
+
10161
+ class RuboCop::Cop::Sorbet::ForbidTypeAliasedShapes
10162
+ MSG = ::T.let(nil, ::T.untyped)
10163
+ end
10164
+
10069
10165
  class RuboCop::Cop::Sorbet::ForbidUntypedStructProps
10070
10166
  MSG = ::T.let(nil, ::T.untyped)
10071
10167
  end
10072
10168
 
10169
+ class RuboCop::Cop::Sorbet::ImplicitConversionMethod
10170
+ IMPLICIT_CONVERSION_METHODS = ::T.let(nil, ::T.untyped)
10171
+ MSG = ::T.let(nil, ::T.untyped)
10172
+ RESTRICT_ON_SEND = ::T.let(nil, ::T.untyped)
10173
+ end
10174
+
10175
+ class RuboCop::Cop::Sorbet::ObsoleteStrictMemoization
10176
+ MSG = ::T.let(nil, ::T.untyped)
10177
+ end
10178
+
10073
10179
  class RuboCop::Cop::Sorbet::OneAncestorPerLine
10074
10180
  MSG = ::T.let(nil, ::T.untyped)
10075
10181
  end
10076
10182
 
10183
+ class RuboCop::Cop::Sorbet::RedundantExtendTSig
10184
+ MSG = ::T.let(nil, ::T.untyped)
10185
+ RESTRICT_ON_SEND = ::T.let(nil, ::T.untyped)
10186
+ end
10187
+
10077
10188
  class RuboCop::Cop::Sorbet::SignatureBuildOrder
10078
10189
  ORDER = ::T.let(nil, ::T.untyped)
10079
10190
  end
@@ -11894,10 +12005,6 @@ class Struct
11894
12005
  def self.new(*arg); end
11895
12006
  end
11896
12007
 
11897
- class Symbol
11898
- def name(); end
11899
- end
11900
-
11901
12008
  class Tempfile
11902
12009
  def _close(); end
11903
12010
  RUBYGEMS_ACTIVATION_MONITOR = ::T.let(nil, ::T.untyped)
@@ -11952,6 +12059,7 @@ end
11952
12059
 
11953
12060
  module URI
11954
12061
  include ::URI::RFC2396_REGEXP
12062
+ TBLENCURICOMP_ = ::T.let(nil, ::T.untyped)
11955
12063
  end
11956
12064
 
11957
12065
  class URI::FTP
@@ -11970,6 +12078,12 @@ class URI::File
11970
12078
  DEFAULT_PORT = ::T.let(nil, ::T.untyped)
11971
12079
  end
11972
12080
 
12081
+ class URI::Generic
12082
+ def decoded_password(); end
12083
+
12084
+ def decoded_user(); end
12085
+ end
12086
+
11973
12087
  class URI::HTTP
11974
12088
  def authority(); end
11975
12089
 
@@ -12033,16 +12147,16 @@ module URI::Util
12033
12147
  def self.make_components_hash(klass, array_hash); end
12034
12148
  end
12035
12149
 
12036
- class URI::WS
12037
- def request_uri(); end
12038
- COMPONENT = ::T.let(nil, ::T.untyped)
12150
+ class URI::WSS
12039
12151
  DEFAULT_PORT = ::T.let(nil, ::T.untyped)
12040
12152
  end
12041
12153
 
12042
- class URI::WS
12154
+ class URI::WSS
12043
12155
  end
12044
12156
 
12045
12157
  module URI
12158
+ def self.decode_uri_component(str, enc=T.unsafe(nil)); end
12159
+
12046
12160
  def self.for(scheme, *arguments, default: T.unsafe(nil)); end
12047
12161
 
12048
12162
  def self.get_encoding(label); end
@@ -0,0 +1,35 @@
1
+ # encoding: ascii-8bit
2
+ # typed: false
3
+ # frozen_string_literal: true
4
+
5
+ require_relative 'spec_helper'
6
+
7
+ RSpec.describe ECHConfig do
8
+ context 'valid echconfig octet' do
9
+ let(:octet) do
10
+ <<-BIN.split.map(&:hex).map(&:chr).join
11
+ fe 0d 00 36 00 00 20 00 1e 00 00 00 00 00 00 00
12
+ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
13
+ 00 00 00 00 00 00 00 00 04 00 01 00 01 00 09 6c
14
+ 6f 63 61 6c 68 6f 73 74 00 00
15
+ BIN
16
+ end
17
+
18
+ let(:ech_configs) do
19
+ ECHConfig.decode_vectors(octet)
20
+ end
21
+
22
+ it 'should decode' do
23
+ expect(ech_configs.length).to eq 1
24
+ expect(ech_configs.first.version).to eq "\xfe\x0d"
25
+
26
+ key_config = ech_configs.first.echconfig_contents.key_config
27
+ expect(key_config.config_id).to eq 0
28
+ expect(key_config.kem_id.uint16).to eq 0x0020
29
+ expect(key_config.public_key.opaque).to eq "\x00" * 30
30
+ expect(key_config.cipher_suites.length).to eq 1
31
+ expect(key_config.cipher_suites.first.kdf_id.uint16).to eq 0x0001
32
+ expect(key_config.cipher_suites.first.aead_id.uint16).to eq 0x0001
33
+ end
34
+ end
35
+ end
@@ -7,12 +7,11 @@ require_relative 'spec_helper'
7
7
  RSpec.describe ECHConfig::ECHConfigContents::HpkeKeyConfig do
8
8
  context 'valid hpke_key_config octet' do
9
9
  let(:octet) do
10
- "\xFF\x00\x20\x00\x20\x00\x00\x00" \
11
- "\x00\x00\x00\x00\x00\x00\x00\x00" \
12
- "\x00\x00\x00\x00\x00\x00\x00\x00" \
13
- "\x00\x00\x00\x00\x00\x00\x00\x00" \
14
- "\x00\x00\x00\x00\x00\x00\x08\x00" \
15
- "\x01\00\x01\x00\x01\x00\x03"
10
+ <<-BIN.split.map(&:hex).map(&:chr).join
11
+ ff 00 20 00 1e 00 00 00 00 00 00 00 00 00 00 00
12
+ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
13
+ 00 00 00 00 08 00 01 00 01 00 01 00 03
14
+ BIN
16
15
  end
17
16
 
18
17
  let(:hpke_key_config) do
@@ -22,7 +21,7 @@ RSpec.describe ECHConfig::ECHConfigContents::HpkeKeyConfig do
22
21
  it 'should decode' do
23
22
  expect(hpke_key_config.config_id).to eq 255
24
23
  expect(hpke_key_config.kem_id.uint16).to eq 32
25
- expect(hpke_key_config.public_key.opaque).to eq "\x00" * 32
24
+ expect(hpke_key_config.public_key.opaque).to eq "\x00" * 30
26
25
  expect(hpke_key_config.cipher_suites[0].kdf_id.uint16).to eq 1
27
26
  expect(hpke_key_config.cipher_suites[0].aead_id.uint16).to eq 1
28
27
  expect(hpke_key_config.cipher_suites[1].kdf_id.uint16).to eq 1
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ech_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - thekuwayama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-18 00:00:00.000000000 Z
11
+ date: 2023-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -74,6 +74,7 @@ files:
74
74
  - sorbet/rbi/gems/ech_config.rbi
75
75
  - sorbet/rbi/gems/parallel.rbi
76
76
  - sorbet/rbi/gems/parser.rbi
77
+ - sorbet/rbi/gems/racc.rbi
77
78
  - sorbet/rbi/gems/rainbow.rbi
78
79
  - sorbet/rbi/gems/rake.rbi
79
80
  - sorbet/rbi/gems/regexp_parser.rbi
@@ -96,6 +97,7 @@ files:
96
97
  - sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi
97
98
  - sorbet/rbi/sorbet-typed/lib/rubocop/>=1.8/rubocop.rbi
98
99
  - sorbet/rbi/todo.rbi
100
+ - spec/ech_config_spec.rb
99
101
  - spec/hpke_key_config_spec.rb
100
102
  - spec/spec_helper.rb
101
103
  homepage: https://github.com/thekuwayama/ech_config
@@ -122,5 +124,6 @@ signing_key:
122
124
  specification_version: 4
123
125
  summary: ECHConfig
124
126
  test_files:
127
+ - spec/ech_config_spec.rb
125
128
  - spec/hpke_key_config_spec.rb
126
129
  - spec/spec_helper.rb