ech_config 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +9 -11
  3. data/.ruby-version +1 -1
  4. data/Gemfile +4 -6
  5. data/Gemfile.lock +201 -48
  6. data/README.md +1 -1
  7. data/Rakefile +11 -5
  8. data/Steepfile +8 -0
  9. data/ech_config.gemspec +7 -4
  10. data/example/README.md +1 -1
  11. data/lib/ech_config/ech_config_contents/extensions.rb +7 -5
  12. data/lib/ech_config/ech_config_contents/hpke_key_config/hpke_kem_id.rb +11 -6
  13. data/lib/ech_config/ech_config_contents/hpke_key_config/hpke_public_key.rb +7 -4
  14. data/lib/ech_config/ech_config_contents/hpke_key_config/hpke_symmetric_cipher_suite/hpke_aead_id.rb +11 -6
  15. data/lib/ech_config/ech_config_contents/hpke_key_config/hpke_symmetric_cipher_suite/hpke_kdf_id.rb +11 -6
  16. data/lib/ech_config/ech_config_contents/hpke_key_config/hpke_symmetric_cipher_suite.rb +11 -6
  17. data/lib/ech_config/ech_config_contents/hpke_key_config.rb +16 -18
  18. data/lib/ech_config/ech_config_contents.rb +15 -17
  19. data/lib/ech_config/error.rb +2 -1
  20. data/lib/ech_config/version.rb +3 -2
  21. data/lib/ech_config.rb +39 -14
  22. data/sig/generated/ech_config/ech_config_contents/extensions.rbs +16 -0
  23. data/sig/generated/ech_config/ech_config_contents/hpke_key_config/hpke_kem_id.rbs +20 -0
  24. data/sig/generated/ech_config/ech_config_contents/hpke_key_config/hpke_public_key.rbs +16 -0
  25. data/sig/generated/ech_config/ech_config_contents/hpke_key_config/hpke_symmetric_cipher_suite/hpke_aead_id.rbs +20 -0
  26. data/sig/generated/ech_config/ech_config_contents/hpke_key_config/hpke_symmetric_cipher_suite/hpke_kdf_id.rbs +20 -0
  27. data/sig/generated/ech_config/ech_config_contents/hpke_key_config/hpke_symmetric_cipher_suite.rbs +26 -0
  28. data/sig/generated/ech_config/ech_config_contents/hpke_key_config.rbs +31 -0
  29. data/sig/generated/ech_config/ech_config_contents.rbs +31 -0
  30. data/sig/generated/ech_config/error.rbs +13 -0
  31. data/sig/generated/ech_config/version.rbs +5 -0
  32. data/sig/generated/ech_config.rbs +35 -0
  33. metadata +18 -46
  34. data/.github/workflows/ci.yml +0 -34
  35. data/.gitignore +0 -16
  36. data/sorbet/config +0 -3
  37. data/sorbet/rbi/gems/ast.rbi +0 -49
  38. data/sorbet/rbi/gems/byebug.rbi +0 -1041
  39. data/sorbet/rbi/gems/ech_config.rbi +0 -22
  40. data/sorbet/rbi/gems/parallel.rbi +0 -84
  41. data/sorbet/rbi/gems/parser.rbi +0 -1533
  42. data/sorbet/rbi/gems/racc.rbi +0 -43
  43. data/sorbet/rbi/gems/rainbow.rbi +0 -122
  44. data/sorbet/rbi/gems/rake.rbi +0 -647
  45. data/sorbet/rbi/gems/regexp_parser.rbi +0 -1026
  46. data/sorbet/rbi/gems/rexml.rbi +0 -603
  47. data/sorbet/rbi/gems/rspec-core.rbi +0 -1947
  48. data/sorbet/rbi/gems/rspec-expectations.rbi +0 -1178
  49. data/sorbet/rbi/gems/rspec-mocks.rbi +0 -1096
  50. data/sorbet/rbi/gems/rspec-support.rbi +0 -282
  51. data/sorbet/rbi/gems/rspec.rbi +0 -15
  52. data/sorbet/rbi/gems/rubocop-ast.rbi +0 -1404
  53. data/sorbet/rbi/gems/rubocop-sorbet.rbi +0 -312
  54. data/sorbet/rbi/gems/rubocop.rbi +0 -9351
  55. data/sorbet/rbi/gems/ruby-progressbar.rbi +0 -321
  56. data/sorbet/rbi/gems/unicode-display_width.rbi +0 -23
  57. data/sorbet/rbi/gems/webrick.rbi +0 -667
  58. data/sorbet/rbi/hidden-definitions/errors.txt +0 -23073
  59. data/sorbet/rbi/hidden-definitions/hidden.rbi +0 -12232
  60. data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +0 -276
  61. data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +0 -645
  62. data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +0 -24
  63. data/sorbet/rbi/sorbet-typed/lib/rubocop/>=1.8/rubocop.rbi +0 -12
  64. data/sorbet/rbi/todo.rbi +0 -6
  65. data/spec/ech_config_spec.rb +0 -35
  66. data/spec/hpke_key_config_spec.rb +0 -31
  67. data/spec/spec_helper.rb +0 -6
@@ -1,312 +0,0 @@
1
- # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
- # srb rbi gems
3
-
4
- # typed: strict
5
- #
6
- # If you would like to make changes to this file, great! Please create the gem's shim here:
7
- #
8
- # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rubocop-sorbet/all/rubocop-sorbet.rbi
9
- #
10
- # rubocop-sorbet-0.7.6
11
-
12
- module RuboCop
13
- end
14
- module RuboCop::Sorbet
15
- end
16
- class RuboCop::Sorbet::Error < StandardError
17
- end
18
- module RuboCop::Sorbet::Inject
19
- def self.defaults!; end
20
- end
21
- module RuboCop::Cop
22
- end
23
- module RuboCop::Cop::Sorbet
24
- end
25
- module RuboCop::Cop::Sorbet::TargetSorbetVersion
26
- def enabled_for_sorbet_static_version?; end
27
- def read_sorbet_static_version_from_bundler_lock_file; end
28
- def self.included(target); end
29
- def sorbet_enabled?; end
30
- def target_sorbet_static_version_from_bundler_lock_file; end
31
- end
32
- module RuboCop::Cop::Sorbet::TargetSorbetVersion::ClassMethods
33
- def minimum_target_sorbet_static_version(version); end
34
- def supports_target_sorbet_static_version?(version); end
35
- end
36
- module RuboCop::Cop::Sorbet::SignatureHelp
37
- def on_block(node); end
38
- def on_numblock(node); end
39
- def on_signature(_node); end
40
- def signature?(param0 = nil); end
41
- def with_runtime?(param0 = nil); end
42
- def without_runtime?(param0 = nil); end
43
- extend RuboCop::AST::NodePattern::Macros
44
- end
45
- class RuboCop::Cop::Sorbet::BindingConstantWithoutTypeAlias < RuboCop::Cop::Base
46
- def on_casgn(node); end
47
- def requires_type_alias?(param0 = nil); end
48
- def send_leaf(node); end
49
- def type_alias_with_block?(param0 = nil); end
50
- def type_alias_without_block(param0 = nil); end
51
- extend RuboCop::Cop::AutoCorrector
52
- end
53
- class RuboCop::Cop::Sorbet::ConstantsFromStrings < RuboCop::Cop::Cop
54
- def constant_from_string?(param0 = nil); end
55
- def on_send(node); end
56
- end
57
- class RuboCop::Cop::Sorbet::ForbidSuperclassConstLiteral < RuboCop::Cop::Base
58
- def dynamic_superclass?(param0 = nil); end
59
- def on_class(node); end
60
- end
61
- class RuboCop::Cop::Sorbet::ForbidIncludeConstLiteral < RuboCop::Cop::Base
62
- def dynamic_inclusion?(param0 = nil); end
63
- def neither_const_nor_self?(node); end
64
- def on_send(node); end
65
- def within_onymous_module?(node); end
66
- extend RuboCop::Cop::AutoCorrector
67
- end
68
- class RuboCop::Cop::Sorbet::ForbidTypeAliasedShapes < RuboCop::Cop::Base
69
- def on_block(node); end
70
- def on_numblock(node); end
71
- def shape_type_alias?(param0 = nil); end
72
- end
73
- class RuboCop::Cop::Sorbet::ForbidUntypedStructProps < RuboCop::Cop::Base
74
- def on_class(node); end
75
- def subclass_of_t_struct?(param0 = nil); end
76
- def t_nilable_untyped(param0 = nil); end
77
- def t_struct(param0 = nil); end
78
- def t_untyped(param0 = nil); end
79
- def untyped_props(param0); end
80
- end
81
- class RuboCop::Cop::Sorbet::ImplicitConversionMethod < RuboCop::Cop::Base
82
- def on_alias(node); end
83
- def on_def(node); end
84
- def on_defs(node); end
85
- def on_send(node); end
86
- end
87
- class RuboCop::Cop::Sorbet::OneAncestorPerLine < RuboCop::Cop::Cop
88
- def abstract?(param0); end
89
- def autocorrect(node); end
90
- def more_than_one_ancestor(param0 = nil); end
91
- def new_ra_line(indent_count); end
92
- def on_class(node); end
93
- def on_module(node); end
94
- def process_node(node); end
95
- def requires_ancestors(param0); end
96
- end
97
- class RuboCop::Cop::Sorbet::CallbackConditionalsBinding < RuboCop::Cop::Cop
98
- def autocorrect(node); end
99
- def on_send(node); end
100
- end
101
- class RuboCop::Cop::Sorbet::ForbidTStruct < RuboCop::Cop::Base
102
- def initialize_method(indent, props); end
103
- def on_class(node); end
104
- def on_send(node); end
105
- def previous_line_blank?(node); end
106
- def t_props?(param0 = nil); end
107
- def t_struct?(param0 = nil); end
108
- extend RuboCop::Cop::AutoCorrector
109
- include RuboCop::Cop::Alignment
110
- include RuboCop::Cop::CommentsHelp
111
- include RuboCop::Cop::RangeHelp
112
- end
113
- class RuboCop::Cop::Sorbet::ForbidTStruct::TStructWalker
114
- def extend_t_sig?(param0 = nil); end
115
- def has_extend_t_sig; end
116
- def initialize; end
117
- def on_send(node); end
118
- def props; end
119
- def t_struct_prop?(param0 = nil); end
120
- extend RuboCop::AST::NodePattern::Macros
121
- include RuboCop::AST::Traversal
122
- end
123
- class RuboCop::Cop::Sorbet::ForbidTStruct::Property
124
- def attr_accessor; end
125
- def attr_sig; end
126
- def default; end
127
- def factory; end
128
- def initialize(node, kind, name, type, default:, factory:); end
129
- def initialize_assign; end
130
- def initialize_param; end
131
- def initialize_sig_param; end
132
- def kind; end
133
- def name; end
134
- def nilable?; end
135
- def node; end
136
- def type; end
137
- end
138
- class RuboCop::Cop::Sorbet::ForbidTUnsafe < RuboCop::Cop::Base
139
- def on_send(node); end
140
- def t_unsafe?(param0 = nil); end
141
- end
142
- class RuboCop::Cop::Sorbet::ForbidTUntyped < RuboCop::Cop::Base
143
- def on_send(node); end
144
- def t_untyped?(param0 = nil); end
145
- end
146
- class RuboCop::Cop::Sorbet::RedundantExtendTSig < RuboCop::Cop::Base
147
- def extend_t_sig?(param0 = nil); end
148
- def on_send(node); end
149
- extend RuboCop::Cop::AutoCorrector
150
- include RuboCop::Cop::RangeHelp
151
- end
152
- class RuboCop::Cop::Sorbet::TypeAliasName < RuboCop::Cop::Base
153
- def on_casgn(node); end
154
- def underscored_type_alias?(param0 = nil); end
155
- end
156
- class RuboCop::Cop::Sorbet::ObsoleteStrictMemoization < RuboCop::Cop::Base
157
- def legacy_memoization_pattern?(param0 = nil); end
158
- def on_begin(node); end
159
- def relevant_file?(file); end
160
- extend RuboCop::Cop::AutoCorrector
161
- extend RuboCop::Cop::Sorbet::TargetSorbetVersion::ClassMethods
162
- include RuboCop::Cop::Alignment
163
- include RuboCop::Cop::LineLengthHelp
164
- include RuboCop::Cop::MatchRange
165
- include RuboCop::Cop::RangeHelp
166
- include RuboCop::Cop::Sorbet::TargetSorbetVersion
167
- end
168
- class RuboCop::Cop::Sorbet::BuggyObsoleteStrictMemoization < RuboCop::Cop::Base
169
- def buggy_legacy_memoization_pattern?(param0 = nil); end
170
- def on_begin(node); end
171
- def relevant_file?(file); end
172
- extend RuboCop::Cop::AutoCorrector
173
- extend RuboCop::Cop::Sorbet::TargetSorbetVersion::ClassMethods
174
- include RuboCop::Cop::Alignment
175
- include RuboCop::Cop::LineLengthHelp
176
- include RuboCop::Cop::MatchRange
177
- include RuboCop::Cop::RangeHelp
178
- include RuboCop::Cop::Sorbet::TargetSorbetVersion
179
- end
180
- class RuboCop::Cop::Sorbet::ForbidExtendTSigHelpersInShims < RuboCop::Cop::Base
181
- def extend_t_sig_or_helpers?(param0 = nil); end
182
- def on_send(node); end
183
- extend RuboCop::Cop::AutoCorrector
184
- include RuboCop::Cop::RangeHelp
185
- end
186
- class RuboCop::Cop::Sorbet::ForbidRBIOutsideOfAllowedPaths < RuboCop::Cop::Cop
187
- def allowed_paths; end
188
- def investigate(processed_source); end
189
- include RuboCop::Cop::RangeHelp
190
- end
191
- class RuboCop::Cop::Sorbet::SingleLineRbiClassModuleDefinitions < RuboCop::Cop::Base
192
- def convert_newlines_to_semicolons(source); end
193
- def on_class(node); end
194
- def on_module(node); end
195
- extend RuboCop::Cop::AutoCorrector
196
- end
197
- class RuboCop::Cop::Sorbet::AllowIncompatibleOverride < RuboCop::Cop::Base
198
- def on_block(node); end
199
- def on_numblock(node); end
200
- def on_send(node); end
201
- def override?(param0 = nil); end
202
- def sig?(param0); end
203
- def sig_dot_override?(param0 = nil); end
204
- end
205
- class RuboCop::Cop::Sorbet::CheckedTrueInSignature < RuboCop::Cop::Cop
206
- def offending_node(param0); end
207
- def on_signature(node); end
208
- include RuboCop::Cop::RangeHelp
209
- include RuboCop::Cop::Sorbet::SignatureHelp
210
- end
211
- class RuboCop::Cop::Sorbet::KeywordArgumentOrdering < RuboCop::Cop::Cop
212
- def check_order_for_kwoptargs(parameters); end
213
- def on_signature(node); end
214
- include RuboCop::Cop::Sorbet::SignatureHelp
215
- end
216
- class RuboCop::Cop::Sorbet::SignatureBuildOrder < RuboCop::Cop::Cop
217
- def autocorrect(node); end
218
- def call_chain(sig_child_node); end
219
- def can_autocorrect?; end
220
- def node_reparsed_with_modern_features(node); end
221
- def on_signature(node); end
222
- def root_call(param0); end
223
- include RuboCop::Cop::Sorbet::SignatureHelp
224
- end
225
- class RuboCop::Cop::Sorbet::SignatureBuildOrder::ModernBuilder < RuboCop::AST::Builder
226
- end
227
- class RuboCop::Cop::Sorbet::EnforceSignatures < RuboCop::Cop::Cop
228
- def accessor?(param0 = nil); end
229
- def autocorrect(node); end
230
- def check_node(node); end
231
- def initialize(config = nil, options = nil); end
232
- def on_def(node); end
233
- def on_defs(node); end
234
- def on_send(node); end
235
- def on_signature(node); end
236
- def param_type_placeholder; end
237
- def return_type_placeholder; end
238
- def scope(node); end
239
- include RuboCop::Cop::Sorbet::SignatureHelp
240
- end
241
- class RuboCop::Cop::Sorbet::EnforceSignatures::SigSuggestion
242
- def generate_params; end
243
- def generate_return; end
244
- def initialize(indent, param_placeholder, return_placeholder); end
245
- def params; end
246
- def params=(arg0); end
247
- def returns; end
248
- def returns=(arg0); end
249
- def to_autocorrect; end
250
- end
251
- class RuboCop::Cop::Sorbet::EmptyLineAfterSig < RuboCop::Cop::Base
252
- def lines_between(node1, node2, buffer: nil); end
253
- def next_sibling(node); end
254
- def on_signature(sig); end
255
- def sig_or_signable_method_definition?(param0 = nil); end
256
- extend RuboCop::Cop::AutoCorrector
257
- include RuboCop::Cop::RangeHelp
258
- include RuboCop::Cop::Sorbet::SignatureHelp
259
- end
260
- class RuboCop::Cop::Sorbet::ValidSigil < RuboCop::Cop::Cop
261
- def autocorrect(_node); end
262
- def check_sigil_present(sigil); end
263
- def check_strictness_level(sigil, strictness); end
264
- def check_strictness_not_empty(sigil, strictness); end
265
- def check_strictness_valid(sigil, strictness); end
266
- def exact_strictness; end
267
- def extract_sigil(processed_source); end
268
- def extract_strictness(sigil); end
269
- def investigate(processed_source); end
270
- def minimum_strictness; end
271
- def require_sigil_on_all_files?; end
272
- def suggested_strictness; end
273
- def suggested_strictness_level; end
274
- end
275
- class RuboCop::Cop::Sorbet::HasSigil < RuboCop::Cop::Sorbet::ValidSigil
276
- def require_sigil_on_all_files?; end
277
- end
278
- class RuboCop::Cop::Sorbet::IgnoreSigil < RuboCop::Cop::Sorbet::HasSigil
279
- def minimum_strictness; end
280
- end
281
- class RuboCop::Cop::Sorbet::FalseSigil < RuboCop::Cop::Sorbet::HasSigil
282
- def minimum_strictness; end
283
- end
284
- class RuboCop::Cop::Sorbet::TrueSigil < RuboCop::Cop::Sorbet::HasSigil
285
- def minimum_strictness; end
286
- end
287
- class RuboCop::Cop::Sorbet::StrictSigil < RuboCop::Cop::Sorbet::HasSigil
288
- def minimum_strictness; end
289
- end
290
- class RuboCop::Cop::Sorbet::StrongSigil < RuboCop::Cop::Sorbet::HasSigil
291
- def minimum_strictness; end
292
- end
293
- class RuboCop::Cop::Sorbet::EnforceSigilOrder < RuboCop::Cop::Sorbet::ValidSigil
294
- def autocorrect(_node); end
295
- def check_magic_comments_order(tokens); end
296
- def extract_magic_comments(processed_source); end
297
- def investigate(processed_source); end
298
- include RuboCop::Cop::RangeHelp
299
- end
300
- class RuboCop::Cop::Sorbet::EnforceSingleSigil < RuboCop::Cop::Sorbet::ValidSigil
301
- def autocorrect(_node); end
302
- def extract_all_sigils(processed_source); end
303
- def investigate(processed_source); end
304
- include RuboCop::Cop::RangeHelp
305
- end
306
- module RuboCop::Cop::Sorbet::MutableConstantSorbetAwareBehaviour
307
- def on_assignment(value); end
308
- def self.prepended(base); end
309
- end
310
- class RuboCop::Cop::Style::MutableConstant < RuboCop::Cop::Base
311
- def t_let(param0 = nil); end
312
- end