ech_config 0.0.1
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.
- checksums.yaml +7 -0
- data/.github/workflows/ci.yml +34 -0
- data/.gitignore +16 -0
- data/.rubocop.yml +34 -0
- data/.ruby-version +1 -0
- data/Gemfile +17 -0
- data/Gemfile.lock +73 -0
- data/LICENSE.txt +21 -0
- data/README.md +22 -0
- data/Rakefile +16 -0
- data/ech_config.gemspec +24 -0
- data/example/README.md +9 -0
- data/example/well_known_url_client.rb +29 -0
- data/lib/ech_config/ech_config_contents/extensions.rb +24 -0
- data/lib/ech_config/ech_config_contents/hpke_key_config/hpke_kem_id.rb +24 -0
- data/lib/ech_config/ech_config_contents/hpke_key_config/hpke_public_key.rb +22 -0
- data/lib/ech_config/ech_config_contents/hpke_key_config/hpke_symmetric_cipher_suite/hpke_aead_id.rb +24 -0
- data/lib/ech_config/ech_config_contents/hpke_key_config/hpke_symmetric_cipher_suite/hpke_kdf_id.rb +24 -0
- data/lib/ech_config/ech_config_contents/hpke_key_config/hpke_symmetric_cipher_suite.rb +41 -0
- data/lib/ech_config/ech_config_contents/hpke_key_config.rb +82 -0
- data/lib/ech_config/ech_config_contents.rb +78 -0
- data/lib/ech_config/error.rb +11 -0
- data/lib/ech_config/version.rb +6 -0
- data/lib/ech_config.rb +62 -0
- data/sorbet/config +3 -0
- data/sorbet/rbi/gems/ast.rbi +49 -0
- data/sorbet/rbi/gems/byebug.rbi +1041 -0
- data/sorbet/rbi/gems/ech_config.rbi +22 -0
- data/sorbet/rbi/gems/parallel.rbi +86 -0
- data/sorbet/rbi/gems/parser.rbi +1477 -0
- data/sorbet/rbi/gems/rainbow.rbi +122 -0
- data/sorbet/rbi/gems/rake.rbi +646 -0
- data/sorbet/rbi/gems/regexp_parser.rbi +984 -0
- data/sorbet/rbi/gems/rexml.rbi +599 -0
- data/sorbet/rbi/gems/rspec-core.rbi +1947 -0
- data/sorbet/rbi/gems/rspec-expectations.rbi +1178 -0
- data/sorbet/rbi/gems/rspec-mocks.rbi +1096 -0
- data/sorbet/rbi/gems/rspec-support.rbi +282 -0
- data/sorbet/rbi/gems/rspec.rbi +15 -0
- data/sorbet/rbi/gems/rubocop-ast.rbi +1399 -0
- data/sorbet/rbi/gems/rubocop-sorbet.rbi +218 -0
- data/sorbet/rbi/gems/rubocop.rbi +9351 -0
- data/sorbet/rbi/gems/ruby-progressbar.rbi +304 -0
- data/sorbet/rbi/gems/unicode-display_width.rbi +23 -0
- data/sorbet/rbi/gems/webrick.rbi +662 -0
- data/sorbet/rbi/hidden-definitions/errors.txt +22890 -0
- data/sorbet/rbi/hidden-definitions/hidden.rbi +12118 -0
- data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +276 -0
- data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +645 -0
- data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +24 -0
- data/sorbet/rbi/sorbet-typed/lib/rubocop/>=1.8/rubocop.rbi +12 -0
- data/sorbet/rbi/todo.rbi +6 -0
- data/spec/hpke_key_config_spec.rb +32 -0
- data/spec/spec_helper.rb +6 -0
- metadata +126 -0
@@ -0,0 +1,218 @@
|
|
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.6.11
|
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
|
+
class RuboCop::Cop::Sorbet::BindingConstantWithoutTypeAlias < RuboCop::Cop::Cop
|
26
|
+
def autocorrect(node); end
|
27
|
+
def binding_unaliased_type?(param0 = nil); end
|
28
|
+
def dynamic_type_creation_with_block?(param0 = nil); end
|
29
|
+
def generic_parameter_decl_block_call?(param0 = nil); end
|
30
|
+
def generic_parameter_decl_call?(param0 = nil); end
|
31
|
+
def method_needing_aliasing_on_t?(param0); end
|
32
|
+
def not_dynamic_type_creation_with_block?(node); end
|
33
|
+
def not_generic_parameter_decl?(node); end
|
34
|
+
def not_nil?(node); end
|
35
|
+
def not_t_let?(node); end
|
36
|
+
def on_casgn(node); end
|
37
|
+
def t_let?(param0 = nil); end
|
38
|
+
def using_deprecated_type_alias_syntax?(param0 = nil); end
|
39
|
+
def using_type_alias?(param0 = nil); end
|
40
|
+
end
|
41
|
+
class RuboCop::Cop::Sorbet::ConstantsFromStrings < RuboCop::Cop::Cop
|
42
|
+
def constant_from_string?(param0 = nil); end
|
43
|
+
def on_send(node); end
|
44
|
+
end
|
45
|
+
class RuboCop::Cop::Sorbet::ForbidSuperclassConstLiteral < RuboCop::Cop::Cop
|
46
|
+
def not_lit_const_superclass?(param0 = nil); end
|
47
|
+
def on_class(node); end
|
48
|
+
end
|
49
|
+
class RuboCop::Cop::Sorbet::ForbidIncludeConstLiteral < RuboCop::Cop::Cop
|
50
|
+
def autocorrect(node); end
|
51
|
+
def initialize(*arg0); end
|
52
|
+
def not_lit_const_include?(param0 = nil); end
|
53
|
+
def on_send(node); end
|
54
|
+
def used_names; end
|
55
|
+
def used_names=(arg0); end
|
56
|
+
end
|
57
|
+
class RuboCop::Cop::Sorbet::ForbidUntypedStructProps < RuboCop::Cop::Cop
|
58
|
+
def on_class(node); end
|
59
|
+
def subclass_of_t_struct?(param0 = nil); end
|
60
|
+
def t_nilable_untyped(param0 = nil); end
|
61
|
+
def t_struct(param0 = nil); end
|
62
|
+
def t_untyped(param0 = nil); end
|
63
|
+
def untyped_props(param0); end
|
64
|
+
end
|
65
|
+
class RuboCop::Cop::Sorbet::OneAncestorPerLine < RuboCop::Cop::Cop
|
66
|
+
def abstract?(param0); end
|
67
|
+
def autocorrect(node); end
|
68
|
+
def more_than_one_ancestor(param0 = nil); end
|
69
|
+
def new_ra_line(indent_count); end
|
70
|
+
def on_class(node); end
|
71
|
+
def on_module(node); end
|
72
|
+
def process_node(node); end
|
73
|
+
def requires_ancestors(param0); end
|
74
|
+
end
|
75
|
+
class RuboCop::Cop::Sorbet::CallbackConditionalsBinding < RuboCop::Cop::Cop
|
76
|
+
def autocorrect(node); end
|
77
|
+
def on_send(node); end
|
78
|
+
end
|
79
|
+
class RuboCop::Cop::Sorbet::ForbidTUnsafe < RuboCop::Cop::Cop
|
80
|
+
def on_send(node); end
|
81
|
+
def t_unsafe?(param0 = nil); end
|
82
|
+
end
|
83
|
+
class RuboCop::Cop::Sorbet::ForbidTUntyped < RuboCop::Cop::Cop
|
84
|
+
def on_send(node); end
|
85
|
+
def t_untyped?(param0 = nil); end
|
86
|
+
end
|
87
|
+
class RuboCop::Cop::Sorbet::TypeAliasName < RuboCop::Cop::Cop
|
88
|
+
def casgn_type_alias?(param0 = nil); end
|
89
|
+
def on_casgn(node); end
|
90
|
+
end
|
91
|
+
class RuboCop::Cop::Sorbet::ForbidExtendTSigHelpersInShims < RuboCop::Cop::Cop
|
92
|
+
def autocorrect(node); end
|
93
|
+
def extend_t_helpers?(param0 = nil); end
|
94
|
+
def extend_t_sig?(param0 = nil); end
|
95
|
+
def on_send(node); end
|
96
|
+
include RuboCop::Cop::RangeHelp
|
97
|
+
end
|
98
|
+
class RuboCop::Cop::Sorbet::ForbidRBIOutsideOfAllowedPaths < RuboCop::Cop::Cop
|
99
|
+
def allowed_paths; end
|
100
|
+
def investigate(processed_source); end
|
101
|
+
include RuboCop::Cop::RangeHelp
|
102
|
+
end
|
103
|
+
class RuboCop::Cop::Sorbet::SingleLineRbiClassModuleDefinitions < RuboCop::Cop::Cop
|
104
|
+
def autocorrect(node); end
|
105
|
+
def convert_newlines(source); end
|
106
|
+
def on_class(node); end
|
107
|
+
def on_module(node); end
|
108
|
+
def process_node(node); end
|
109
|
+
end
|
110
|
+
class RuboCop::Cop::Sorbet::AllowIncompatibleOverride < RuboCop::Cop::Cop
|
111
|
+
def allow_incompatible?(param0); end
|
112
|
+
def allow_incompatible_override?(param0 = nil); end
|
113
|
+
def not_nil?(node); end
|
114
|
+
def on_send(node); end
|
115
|
+
def sig?(param0); end
|
116
|
+
end
|
117
|
+
class RuboCop::Cop::Sorbet::SignatureCop < RuboCop::Cop::Cop
|
118
|
+
def allowed_recv(recv); end
|
119
|
+
def on_block(node); end
|
120
|
+
def on_signature(_); end
|
121
|
+
def signature?(param0 = nil); end
|
122
|
+
def with_runtime?(param0 = nil); end
|
123
|
+
def without_runtime?(param0 = nil); end
|
124
|
+
end
|
125
|
+
class RuboCop::Cop::Sorbet::CheckedTrueInSignature < RuboCop::Cop::Sorbet::SignatureCop
|
126
|
+
def offending_node(param0); end
|
127
|
+
def on_signature(node); end
|
128
|
+
include RuboCop::Cop::RangeHelp
|
129
|
+
end
|
130
|
+
class RuboCop::Cop::Sorbet::KeywordArgumentOrdering < RuboCop::Cop::Sorbet::SignatureCop
|
131
|
+
def check_order_for_kwoptargs(parameters); end
|
132
|
+
def on_signature(node); end
|
133
|
+
end
|
134
|
+
class RuboCop::Cop::Sorbet::SignatureBuildOrder < RuboCop::Cop::Sorbet::SignatureCop
|
135
|
+
def autocorrect(node); end
|
136
|
+
def call_chain(sig_child_node); end
|
137
|
+
def can_autocorrect?; end
|
138
|
+
def node_reparsed_with_modern_features(node); end
|
139
|
+
def on_signature(node); end
|
140
|
+
def root_call(param0); end
|
141
|
+
end
|
142
|
+
class RuboCop::Cop::Sorbet::SignatureBuildOrder::ModernBuilder < RuboCop::AST::Builder
|
143
|
+
end
|
144
|
+
class RuboCop::Cop::Sorbet::EnforceSignatures < RuboCop::Cop::Sorbet::SignatureCop
|
145
|
+
def accessor?(param0 = nil); end
|
146
|
+
def autocorrect(node); end
|
147
|
+
def check_node(node); end
|
148
|
+
def initialize(config = nil, options = nil); end
|
149
|
+
def on_def(node); end
|
150
|
+
def on_defs(node); end
|
151
|
+
def on_send(node); end
|
152
|
+
def on_signature(node); end
|
153
|
+
def param_type_placeholder; end
|
154
|
+
def return_type_placeholder; end
|
155
|
+
def scope(node); end
|
156
|
+
end
|
157
|
+
class RuboCop::Cop::Sorbet::EnforceSignatures::SigSuggestion
|
158
|
+
def generate_params; end
|
159
|
+
def generate_return; end
|
160
|
+
def initialize(indent, param_placeholder, return_placeholder); end
|
161
|
+
def params; end
|
162
|
+
def params=(arg0); end
|
163
|
+
def returns; end
|
164
|
+
def returns=(arg0); end
|
165
|
+
def to_autocorrect; end
|
166
|
+
end
|
167
|
+
class RuboCop::Cop::Sorbet::ValidSigil < RuboCop::Cop::Cop
|
168
|
+
def autocorrect(_node); end
|
169
|
+
def check_sigil_present(sigil); end
|
170
|
+
def check_strictness_level(sigil, strictness); end
|
171
|
+
def check_strictness_not_empty(sigil, strictness); end
|
172
|
+
def check_strictness_valid(sigil, strictness); end
|
173
|
+
def extract_sigil(processed_source); end
|
174
|
+
def extract_strictness(sigil); end
|
175
|
+
def investigate(processed_source); end
|
176
|
+
def minimum_strictness; end
|
177
|
+
def require_sigil_on_all_files?; end
|
178
|
+
def suggested_strictness; end
|
179
|
+
def suggested_strictness_level(minimum_strictness, suggested_strictness); end
|
180
|
+
end
|
181
|
+
class RuboCop::Cop::Sorbet::HasSigil < RuboCop::Cop::Sorbet::ValidSigil
|
182
|
+
def require_sigil_on_all_files?; end
|
183
|
+
end
|
184
|
+
class RuboCop::Cop::Sorbet::IgnoreSigil < RuboCop::Cop::Sorbet::HasSigil
|
185
|
+
def minimum_strictness; end
|
186
|
+
end
|
187
|
+
class RuboCop::Cop::Sorbet::FalseSigil < RuboCop::Cop::Sorbet::HasSigil
|
188
|
+
def minimum_strictness; end
|
189
|
+
end
|
190
|
+
class RuboCop::Cop::Sorbet::TrueSigil < RuboCop::Cop::Sorbet::HasSigil
|
191
|
+
def minimum_strictness; end
|
192
|
+
end
|
193
|
+
class RuboCop::Cop::Sorbet::StrictSigil < RuboCop::Cop::Sorbet::HasSigil
|
194
|
+
def minimum_strictness; end
|
195
|
+
end
|
196
|
+
class RuboCop::Cop::Sorbet::StrongSigil < RuboCop::Cop::Sorbet::HasSigil
|
197
|
+
def minimum_strictness; end
|
198
|
+
end
|
199
|
+
class RuboCop::Cop::Sorbet::EnforceSigilOrder < RuboCop::Cop::Sorbet::ValidSigil
|
200
|
+
def autocorrect(_node); end
|
201
|
+
def check_magic_comments_order(tokens); end
|
202
|
+
def extract_magic_comments(processed_source); end
|
203
|
+
def investigate(processed_source); end
|
204
|
+
include RuboCop::Cop::RangeHelp
|
205
|
+
end
|
206
|
+
class RuboCop::Cop::Sorbet::EnforceSingleSigil < RuboCop::Cop::Sorbet::ValidSigil
|
207
|
+
def autocorrect(_node); end
|
208
|
+
def extract_all_sigils(processed_source); end
|
209
|
+
def investigate(processed_source); end
|
210
|
+
include RuboCop::Cop::RangeHelp
|
211
|
+
end
|
212
|
+
module RuboCop::Cop::Sorbet::MutableConstantSorbetAwareBehaviour
|
213
|
+
def on_assignment(value); end
|
214
|
+
def self.prepended(base); end
|
215
|
+
end
|
216
|
+
class RuboCop::Cop::Style::MutableConstant < RuboCop::Cop::Base
|
217
|
+
def t_let(param0 = nil); end
|
218
|
+
end
|