clean-architecture 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rspec.yml +21 -0
  3. data/.gitignore +1 -0
  4. data/.ruby-version +1 -1
  5. data/CHANGELOG.md +42 -0
  6. data/Gemfile +1 -0
  7. data/README.md +423 -4
  8. data/clean-architecture.gemspec +9 -5
  9. data/generate_require_files.rb +1 -0
  10. data/lib/clean-architecture.rb +1 -0
  11. data/lib/clean_architecture/adapters/all.rb +1 -0
  12. data/lib/clean_architecture/adapters/attribute_hash_base.rb +1 -0
  13. data/lib/clean_architecture/all.rb +3 -0
  14. data/lib/clean_architecture/builders/abstract_active_record_entity_builder.rb +124 -0
  15. data/lib/clean_architecture/builders/all.rb +6 -0
  16. data/lib/clean_architecture/checks/all.rb +1 -0
  17. data/lib/clean_architecture/checks/authorization.rb +1 -0
  18. data/lib/clean_architecture/entities/all.rb +1 -0
  19. data/lib/clean_architecture/entities/failure_details.rb +2 -1
  20. data/lib/clean_architecture/entities/targeted_parameters.rb +1 -0
  21. data/lib/clean_architecture/entities/untargeted_parameters.rb +1 -0
  22. data/lib/clean_architecture/interfaces/all.rb +1 -0
  23. data/lib/clean_architecture/interfaces/authorization_parameters.rb +1 -0
  24. data/lib/clean_architecture/interfaces/base_parameters.rb +1 -0
  25. data/lib/clean_architecture/interfaces/jsonable.rb +1 -0
  26. data/lib/clean_architecture/interfaces/success_payload.rb +1 -0
  27. data/lib/clean_architecture/interfaces/targeted_parameters.rb +1 -0
  28. data/lib/clean_architecture/interfaces/use_case.rb +1 -0
  29. data/lib/clean_architecture/interfaces/use_case_actor.rb +1 -0
  30. data/lib/clean_architecture/interfaces/use_case_target.rb +1 -0
  31. data/lib/clean_architecture/matchers/all.rb +1 -0
  32. data/lib/clean_architecture/matchers/use_case_result.rb +1 -0
  33. data/lib/clean_architecture/queries/all.rb +1 -0
  34. data/lib/clean_architecture/queries/http_failure_code.rb +1 -0
  35. data/lib/clean_architecture/queries/http_success_code.rb +1 -0
  36. data/lib/clean_architecture/serializers/all.rb +1 -0
  37. data/lib/clean_architecture/serializers/html_response_from_result.rb +1 -0
  38. data/lib/clean_architecture/serializers/json_response_from_result.rb +1 -0
  39. data/lib/clean_architecture/serializers/success_collection_payload.rb +1 -0
  40. data/lib/clean_architecture/serializers/success_payload.rb +1 -0
  41. data/lib/clean_architecture/types.rb +2 -1
  42. data/lib/clean_architecture/use_cases/abstract_use_case.rb +62 -0
  43. data/lib/clean_architecture/use_cases/all.rb +10 -0
  44. data/lib/clean_architecture/use_cases/contract.rb +9 -0
  45. data/lib/clean_architecture/use_cases/errors.rb +57 -0
  46. data/lib/clean_architecture/use_cases/form.rb +116 -0
  47. data/lib/clean_architecture/use_cases/parameters.rb +42 -0
  48. data/lib/clean_architecture/version.rb +2 -1
  49. data/sorbet/config +2 -0
  50. data/sorbet/rbi/gems/activemodel.rbi +74 -0
  51. data/sorbet/rbi/gems/activesupport.rbi +440 -0
  52. data/sorbet/rbi/gems/ast.rbi +47 -0
  53. data/sorbet/rbi/gems/axiom-types.rbi +159 -0
  54. data/sorbet/rbi/gems/byebug.rbi +1039 -0
  55. data/sorbet/rbi/gems/codeclimate-engine-rb.rbi +123 -0
  56. data/sorbet/rbi/gems/coderay.rbi +91 -0
  57. data/sorbet/rbi/gems/coercible.rbi +156 -0
  58. data/sorbet/rbi/gems/concurrent-ruby.rbi +1587 -0
  59. data/sorbet/rbi/gems/descendants_tracker.rbi +17 -0
  60. data/sorbet/rbi/gems/docile.rbi +31 -0
  61. data/sorbet/rbi/gems/dry-configurable.rbi +89 -0
  62. data/sorbet/rbi/gems/dry-container.rbi +88 -0
  63. data/sorbet/rbi/gems/dry-core.rbi +79 -0
  64. data/sorbet/rbi/gems/dry-equalizer.rbi +25 -0
  65. data/sorbet/rbi/gems/dry-inflector.rbi +72 -0
  66. data/sorbet/rbi/gems/dry-initializer.rbi +209 -0
  67. data/sorbet/rbi/gems/dry-logic.rbi +304 -0
  68. data/sorbet/rbi/gems/dry-matcher.rbi +33 -0
  69. data/sorbet/rbi/gems/dry-monads.rbi +508 -0
  70. data/sorbet/rbi/gems/dry-schema.rbi +790 -0
  71. data/sorbet/rbi/gems/dry-struct.rbi +165 -0
  72. data/sorbet/rbi/gems/dry-types.rbi +688 -0
  73. data/sorbet/rbi/gems/dry-validation.rbi +284 -0
  74. data/sorbet/rbi/gems/duckface-interfaces.rbi +93 -0
  75. data/sorbet/rbi/gems/equalizer.rbi +22 -0
  76. data/sorbet/rbi/gems/i18n.rbi +132 -0
  77. data/sorbet/rbi/gems/ice_nine.rbi +66 -0
  78. data/sorbet/rbi/gems/jaro_winkler.rbi +14 -0
  79. data/sorbet/rbi/gems/kwalify.rbi +339 -0
  80. data/sorbet/rbi/gems/method_source.rbi +63 -0
  81. data/sorbet/rbi/gems/parallel.rbi +81 -0
  82. data/sorbet/rbi/gems/parser.rbi +1293 -0
  83. data/sorbet/rbi/gems/pry-byebug.rbi +149 -0
  84. data/sorbet/rbi/gems/pry.rbi +1964 -0
  85. data/sorbet/rbi/gems/psych.rbi +462 -0
  86. data/sorbet/rbi/gems/rainbow.rbi +117 -0
  87. data/sorbet/rbi/gems/rake.rbi +634 -0
  88. data/sorbet/rbi/gems/rb-readline.rbi +766 -0
  89. data/sorbet/rbi/gems/reek.rbi +1066 -0
  90. data/sorbet/rbi/gems/rspec-core.rbi +1658 -0
  91. data/sorbet/rbi/gems/rspec-expectations.rbi +430 -0
  92. data/sorbet/rbi/gems/rspec-mocks.rbi +815 -0
  93. data/sorbet/rbi/gems/rspec-support.rbi +268 -0
  94. data/sorbet/rbi/gems/rspec.rbi +14 -0
  95. data/sorbet/rbi/gems/rubocop-rspec.rbi +875 -0
  96. data/sorbet/rbi/gems/rubocop.rbi +7014 -0
  97. data/sorbet/rbi/gems/ruby-progressbar.rbi +304 -0
  98. data/sorbet/rbi/gems/simplecov-html.rbi +30 -0
  99. data/sorbet/rbi/gems/simplecov.rbi +225 -0
  100. data/sorbet/rbi/gems/stackprof.rbi +51 -0
  101. data/sorbet/rbi/gems/thread_safe.rbi +81 -0
  102. data/sorbet/rbi/gems/timecop.rbi +97 -0
  103. data/sorbet/rbi/gems/unicode-display_width.rbi +16 -0
  104. data/sorbet/rbi/gems/virtus.rbi +421 -0
  105. data/sorbet/rbi/hidden-definitions/errors.txt +7332 -0
  106. data/sorbet/rbi/hidden-definitions/hidden.rbi +17521 -0
  107. data/sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi +422 -0
  108. data/sorbet/rbi/sorbet-typed/lib/activesupport/>=6.0.0.rc1/activesupport.rbi +23 -0
  109. data/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +625 -0
  110. data/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +8684 -0
  111. data/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +99 -0
  112. data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +254 -0
  113. data/sorbet/rbi/sorbet-typed/lib/ruby/all/gem.rbi +4222 -0
  114. data/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +111 -0
  115. data/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +543 -0
  116. data/sorbet/rbi/todo.rbi +12 -0
  117. metadata +156 -24
  118. data/Gemfile.lock +0 -187
@@ -0,0 +1,790 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: true
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/dry-schema/all/dry-schema.rbi
9
+ #
10
+ # dry-schema-1.4.1
11
+ module Dry
12
+ end
13
+ module Dry::Schema
14
+ def self.Form(**options, &block); end
15
+ def self.JSON(**options, &block); end
16
+ def self.Params(**options, &block); end
17
+ def self.define(**options, &block); end
18
+ extend Dry::Core::Extensions
19
+ include Dry::Core::Constants
20
+ end
21
+ class Dry::Schema::InvalidSchemaError < StandardError
22
+ end
23
+ class Dry::Schema::MissingMessageError < StandardError
24
+ def initialize(path, paths = nil); end
25
+ end
26
+ class Dry::Schema::Path
27
+ def <=>(other); end
28
+ def each(&block); end
29
+ def include?(other); end
30
+ def index(key); end
31
+ def index?; end
32
+ def initialize(keys); end
33
+ def key_matches(other); end
34
+ def keys; end
35
+ def last; end
36
+ def root(*arg0); end
37
+ def same_root?(other); end
38
+ def self.[](spec); end
39
+ def self.keys_from_hash(hash); end
40
+ include Comparable
41
+ include Enumerable
42
+ end
43
+ class Dry::Schema::PredicateRegistry < Dry::Types::PredicateRegistry
44
+ def arg_list(name, *values); end
45
+ end
46
+ class Dry::Schema::TypeContainer
47
+ def config; end
48
+ def initialize(*args, &block); end
49
+ def registered?(key); end
50
+ extend Dry::Configurable
51
+ extend Dry::Configurable::ClassMethods
52
+ include Dry::Container::Mixin
53
+ end
54
+ class Dry::Schema::Config
55
+ def inspect; end
56
+ def method_missing(meth, *args, &block); end
57
+ def respond_to_missing?(meth, include_private = nil); end
58
+ extend Dry::Configurable::ClassMethods
59
+ include Anonymous_Dry_Equalizer_65
60
+ include Dry::Configurable
61
+ include Dry::Equalizer::Methods
62
+ end
63
+ module Anonymous_Dry_Equalizer_65
64
+ def cmp?(comparator, other); end
65
+ def hash; end
66
+ end
67
+ class Dry::Schema::Message
68
+ def <=>(other); end
69
+ def dump; end
70
+ def eql?(other); end
71
+ def to_s; end
72
+ extend Dry::Initializer
73
+ include Anonymous_Dry_Equalizer_66
74
+ include Anonymous_Module_67
75
+ include Dry::Equalizer::Methods
76
+ include Dry::Initializer::Mixin::Root
77
+ end
78
+ class Dry::Schema::Message::Or
79
+ def dump; end
80
+ def initialize(left, right, messages); end
81
+ def left; end
82
+ def messages; end
83
+ def path; end
84
+ def right; end
85
+ def to_a; end
86
+ def to_s; end
87
+ end
88
+ module Anonymous_Dry_Equalizer_66
89
+ def cmp?(comparator, other); end
90
+ def hash; end
91
+ def inspect; end
92
+ end
93
+ module Anonymous_Module_67
94
+ def __dry_initializer_config__; end
95
+ def __dry_initializer_initialize__(*arg0, **__dry_initializer_options__); end
96
+ def args; end
97
+ def input; end
98
+ def meta; end
99
+ def path; end
100
+ def predicate; end
101
+ def text; end
102
+ extend Dry::Initializer::Mixin::Local
103
+ end
104
+ class Dry::Schema::MessageSet
105
+ def [](key); end
106
+ def each(&block); end
107
+ def empty?; end
108
+ def fetch(key); end
109
+ def freeze; end
110
+ def initialize(messages, options = nil); end
111
+ def initialize_placeholders!; end
112
+ def messages; end
113
+ def messages_map(messages = nil); end
114
+ def options; end
115
+ def paths; end
116
+ def placeholders; end
117
+ def self.[](messages, options = nil); end
118
+ def to_h; end
119
+ def to_hash; end
120
+ include Anonymous_Dry_Equalizer_68
121
+ include Dry::Equalizer::Methods
122
+ include Enumerable
123
+ end
124
+ module Anonymous_Dry_Equalizer_68
125
+ def cmp?(comparator, other); end
126
+ def hash; end
127
+ def inspect; end
128
+ end
129
+ class Dry::Schema::NamespacedRule
130
+ def ast(input = nil); end
131
+ def call(input); end
132
+ def initialize(namespace, rule); end
133
+ def namespace; end
134
+ def rule; end
135
+ def to_ast(input = nil); end
136
+ end
137
+ class Dry::Schema::Compiler < Dry::Logic::RuleCompiler
138
+ def self.new(predicates = nil); end
139
+ def supports?(predicate); end
140
+ def visit_and(node); end
141
+ def visit_namespace(node, opts = nil); end
142
+ end
143
+ module Dry::Schema::Types
144
+ extend Anonymous_Dry_Core_Deprecations_Tagged_69
145
+ extend Anonymous_Module_70
146
+ extend Dry::Core::Deprecations::Interface
147
+ extend Dry::Types::BuilderMethods
148
+ include Anonymous_Dry_Types_Module_71
149
+ end
150
+ module Dry::Schema::Types::Definition
151
+ end
152
+ module Anonymous_Dry_Types_Module_71
153
+ def self.included(base); end
154
+ extend Dry::Types::BuilderMethods
155
+ end
156
+ module Anonymous_Dry_Core_Deprecations_Tagged_69
157
+ end
158
+ module Anonymous_Module_70
159
+ def const_missing(missing); end
160
+ end
161
+ class Dry::Schema::Predicate
162
+ def !; end
163
+ def args; end
164
+ def ast(*arg0); end
165
+ def block; end
166
+ def compiler; end
167
+ def ensure_valid; end
168
+ def initialize(compiler, name, args, block); end
169
+ def name; end
170
+ def to_ast(*arg0); end
171
+ def to_rule; end
172
+ include Anonymous_Dry_Equalizer_72
173
+ include Dry::Equalizer::Methods
174
+ include Dry::Logic::Operators
175
+ end
176
+ class Dry::Schema::Predicate::Negation
177
+ def ast(*args); end
178
+ def initialize(predicate); end
179
+ def predicate; end
180
+ def to_ast(*args); end
181
+ end
182
+ module Anonymous_Dry_Equalizer_72
183
+ def cmp?(comparator, other); end
184
+ def hash; end
185
+ def inspect; end
186
+ end
187
+ class Dry::Schema::Trace < BasicObject
188
+ def <<(op); end
189
+ def append(op); end
190
+ def captures; end
191
+ def class; end
192
+ def compiler; end
193
+ def evaluate(*args, type_spec: nil, **opts); end
194
+ def evaluate_predicates(predicates); end
195
+ def initialize(compiler = nil); end
196
+ def method_missing(meth, *args, &block); end
197
+ def reduced_rule; end
198
+ def to_ast; end
199
+ def to_rule(name = nil); end
200
+ include Anonymous_Dry_Equalizer_73
201
+ include Dry::Equalizer::Methods
202
+ end
203
+ module Anonymous_Dry_Equalizer_73
204
+ def cmp?(comparator, other); end
205
+ def hash; end
206
+ def inspect; end
207
+ end
208
+ module Dry::Schema::Macros
209
+ end
210
+ class Dry::Schema::Macros::Core
211
+ def ast(*arg0); end
212
+ def new(options = nil); end
213
+ def operation; end
214
+ def to_ast(*arg0); end
215
+ def to_rule; end
216
+ extend Dry::Initializer
217
+ include Anonymous_Module_74
218
+ include Dry::Initializer::Mixin::Root
219
+ end
220
+ module Anonymous_Module_74
221
+ def __dry_initializer_config__; end
222
+ def __dry_initializer_initialize__(*arg0, **__dry_initializer_options__); end
223
+ def compiler; end
224
+ def name; end
225
+ def schema_dsl; end
226
+ def trace; end
227
+ extend Dry::Initializer::Mixin::Local
228
+ end
229
+ module Anonymous_Module_75
230
+ def __dry_initializer_config__; end
231
+ def __dry_initializer_initialize__(*arg0, **__dry_initializer_options__); end
232
+ def chain; end
233
+ def predicate_inferrer; end
234
+ def primitive_inferrer; end
235
+ extend Dry::Initializer::Mixin::Local
236
+ end
237
+ class Dry::Schema::Macros::DSL < Dry::Schema::Macros::Core
238
+ def append_macro(macro_type); end
239
+ def array(*args, &block); end
240
+ def each(*args, &block); end
241
+ def extract_type_spec(*args, nullable: nil, set_type: nil); end
242
+ def filled(*args, **opts, &block); end
243
+ def hash(*args, &block); end
244
+ def resolve_type(type_spec, nullable); end
245
+ def schema(*args, &block); end
246
+ def type(spec); end
247
+ def value(*predicates, **opts, &block); end
248
+ include Anonymous_Module_75
249
+ include Dry::Logic::Operators
250
+ end
251
+ module Anonymous_Module_76
252
+ def __dry_initializer_config__; end
253
+ def __dry_initializer_initialize__(*arg0, **__dry_initializer_options__); end
254
+ extend Dry::Initializer::Mixin::Local
255
+ end
256
+ class Dry::Schema::Macros::Array < Dry::Schema::Macros::DSL
257
+ def ast(*arg0); end
258
+ def to_ast(*arg0); end
259
+ def value(*args, **opts, &block); end
260
+ include Anonymous_Module_76
261
+ end
262
+ module Anonymous_Module_77
263
+ def __dry_initializer_config__; end
264
+ def __dry_initializer_initialize__(*arg0, **__dry_initializer_options__); end
265
+ extend Dry::Initializer::Mixin::Local
266
+ end
267
+ class Dry::Schema::Macros::Each < Dry::Schema::Macros::DSL
268
+ def ast(*arg0); end
269
+ def to_ast(*arg0); end
270
+ def value(*args, **opts); end
271
+ include Anonymous_Module_77
272
+ end
273
+ module Anonymous_Module_78
274
+ def __dry_initializer_config__; end
275
+ def __dry_initializer_initialize__(*arg0, **__dry_initializer_options__); end
276
+ extend Dry::Initializer::Mixin::Local
277
+ end
278
+ class Dry::Schema::Macros::Value < Dry::Schema::Macros::DSL
279
+ def array_type?(type); end
280
+ def build_array_type(array_type, member); end
281
+ def call(*predicates, **opts, &block); end
282
+ def method_missing(meth, *args, &block); end
283
+ def respond_to_missing?(meth, include_private = nil); end
284
+ include Anonymous_Module_78
285
+ end
286
+ module Anonymous_Module_79
287
+ def __dry_initializer_config__; end
288
+ def __dry_initializer_initialize__(*arg0, **__dry_initializer_options__); end
289
+ extend Dry::Initializer::Mixin::Local
290
+ end
291
+ class Dry::Schema::Macros::Filled < Dry::Schema::Macros::Value
292
+ def call(*predicates, **opts, &block); end
293
+ def ensure_valid_predicates(predicates); end
294
+ def expected_primitives; end
295
+ def filter_empty_string?; end
296
+ def processor_config; end
297
+ def schema_type; end
298
+ include Anonymous_Module_79
299
+ end
300
+ module Anonymous_Module_80
301
+ def __dry_initializer_config__; end
302
+ def __dry_initializer_initialize__(*arg0, **__dry_initializer_options__); end
303
+ extend Dry::Initializer::Mixin::Local
304
+ end
305
+ class Dry::Schema::Macros::Schema < Dry::Schema::Macros::Value
306
+ def call(*args, &block); end
307
+ def define(*args, &block); end
308
+ def optional?; end
309
+ def parent_type; end
310
+ def redefined_schema?(args); end
311
+ def schema?; end
312
+ include Anonymous_Module_80
313
+ end
314
+ module Anonymous_Module_81
315
+ def __dry_initializer_config__; end
316
+ def __dry_initializer_initialize__(*arg0, **__dry_initializer_options__); end
317
+ extend Dry::Initializer::Mixin::Local
318
+ end
319
+ class Dry::Schema::Macros::Hash < Dry::Schema::Macros::Schema
320
+ def call(*args, &block); end
321
+ include Anonymous_Module_81
322
+ end
323
+ module Anonymous_Module_82
324
+ def __dry_initializer_config__; end
325
+ def __dry_initializer_initialize__(*arg0, **__dry_initializer_options__); end
326
+ extend Dry::Initializer::Mixin::Local
327
+ end
328
+ class Dry::Schema::Macros::Maybe < Dry::Schema::Macros::DSL
329
+ def call(*args, **opts, &block); end
330
+ def to_ast; end
331
+ include Anonymous_Module_82
332
+ end
333
+ class Dry::Schema::TypeRegistry
334
+ def [](name); end
335
+ def initialize(types, namespace = nil); end
336
+ def namespace; end
337
+ def namespaced(ns); end
338
+ def self.new(types = nil, namespace = nil); end
339
+ def types; end
340
+ end
341
+ class Dry::Schema::ProcessorSteps
342
+ def [](name); end
343
+ def []=(name, value); end
344
+ def after(name, &block); end
345
+ def before(name, &block); end
346
+ def call(result); end
347
+ def initialize_copy(source); end
348
+ def process_step(step, result); end
349
+ def validate_step_name(name); end
350
+ extend Dry::Initializer
351
+ include Anonymous_Module_83
352
+ include Dry::Initializer::Mixin::Root
353
+ end
354
+ module Anonymous_Module_83
355
+ def __dry_initializer_config__; end
356
+ def __dry_initializer_initialize__(*arg0, **__dry_initializer_options__); end
357
+ def after_steps; end
358
+ def before_steps; end
359
+ def steps; end
360
+ extend Dry::Initializer::Mixin::Local
361
+ end
362
+ class Dry::Schema::Result
363
+ def [](name); end
364
+ def concat(other); end
365
+ def error?(spec); end
366
+ def errors(options = nil); end
367
+ def failure?; end
368
+ def inspect; end
369
+ def key?(name); end
370
+ def message_set(options = nil); end
371
+ def replace(hash); end
372
+ def result_ast; end
373
+ def self.new(*args); end
374
+ def success?; end
375
+ def to_h; end
376
+ extend Dry::Initializer
377
+ include Anonymous_Dry_Equalizer_84
378
+ include Anonymous_Module_85
379
+ include Dry::Equalizer::Methods
380
+ include Dry::Initializer::Mixin::Root
381
+ end
382
+ module Anonymous_Dry_Equalizer_84
383
+ def cmp?(comparator, other); end
384
+ def hash; end
385
+ def inspect; end
386
+ end
387
+ module Anonymous_Module_85
388
+ def __dry_initializer_config__; end
389
+ def __dry_initializer_initialize__(output, results = nil, *arg2, **__dry_initializer_options__); end
390
+ def message_compiler; end
391
+ def output; end
392
+ def results; end
393
+ extend Dry::Initializer::Mixin::Local
394
+ end
395
+ module Dry::Schema::Messages
396
+ def self.setup(config); end
397
+ def setup(config); end
398
+ end
399
+ class Dry::Schema::Messages::Template
400
+ def [](data = nil); end
401
+ def call(data = nil); end
402
+ def data(input); end
403
+ def evaluator; end
404
+ def initialize(text, tokens, evaluator); end
405
+ def self.[](input); end
406
+ def self.parse(input); end
407
+ def text; end
408
+ def tokens; end
409
+ include Anonymous_Dry_Equalizer_86
410
+ include Dry::Equalizer::Methods
411
+ end
412
+ module Anonymous_Dry_Equalizer_86
413
+ def cmp?(comparator, other); end
414
+ def hash; end
415
+ def inspect; end
416
+ end
417
+ class Dry::Schema::Messages::Abstract
418
+ def [](predicate, options); end
419
+ def cache; end
420
+ def cache_key(predicate, options); end
421
+ def call(predicate, options); end
422
+ def custom_top_namespace?(path); end
423
+ def default_locale; end
424
+ def filled_lookup_paths(tokens); end
425
+ def looked_up_paths(predicate, options); end
426
+ def lookup(predicate, options); end
427
+ def lookup_paths(predicate, options); end
428
+ def lookup_tokens(predicate, options); end
429
+ def namespaced(namespace); end
430
+ def root; end
431
+ def rule(name, options = nil); end
432
+ def rule_lookup_paths(tokens); end
433
+ def self.build(options = nil); end
434
+ def self.cache; end
435
+ def translate(key, locale: nil); end
436
+ extend Dry::Configurable::ClassMethods
437
+ include Anonymous_Dry_Equalizer_87
438
+ include Dry::Configurable
439
+ include Dry::Equalizer::Methods
440
+ end
441
+ module Anonymous_Dry_Equalizer_87
442
+ def cmp?(comparator, other); end
443
+ def hash; end
444
+ def inspect; end
445
+ end
446
+ class Dry::Schema::Messages::Namespaced < Dry::Schema::Messages::Abstract
447
+ def [](key, options = nil); end
448
+ def cache_key(predicate, options); end
449
+ def call(key, options = nil); end
450
+ def call_opts; end
451
+ def config; end
452
+ def filled_lookup_paths(tokens); end
453
+ def get(key, options = nil); end
454
+ def initialize(namespace, messages); end
455
+ def key?(key, *args); end
456
+ def messages; end
457
+ def namespace; end
458
+ def rule_lookup_paths(tokens); end
459
+ end
460
+ class Dry::Schema::Messages::YAML < Dry::Schema::Messages::Abstract
461
+ def data; end
462
+ def evaluated_key(key, options); end
463
+ def get(key, options = nil); end
464
+ def initialize(data: nil, config: nil); end
465
+ def key?(key, options = nil); end
466
+ def load_translations(path); end
467
+ def looked_up_paths(predicate, options); end
468
+ def merge(overrides); end
469
+ def prepare; end
470
+ def self.build(options = nil); end
471
+ def self.flat_hash(hash, path = nil, keys = nil); end
472
+ def t; end
473
+ include Anonymous_Dry_Equalizer_88
474
+ include Dry::Equalizer::Methods
475
+ end
476
+ module Anonymous_Dry_Equalizer_88
477
+ def cmp?(comparator, other); end
478
+ def hash; end
479
+ def inspect; end
480
+ end
481
+ class Dry::Schema::MessageCompiler
482
+ def call(ast); end
483
+ def default_lookup_options; end
484
+ def initialize(messages, options = nil); end
485
+ def lookup_options(arg_vals:, input:); end
486
+ def message_text(template, tokens, options); end
487
+ def message_tokens(args); end
488
+ def message_type(*arg0); end
489
+ def options; end
490
+ def visit(node, opts = nil); end
491
+ def visit_and(node, opts); end
492
+ def visit_failure(node, opts); end
493
+ def visit_hint(*arg0); end
494
+ def visit_implication(node, *args); end
495
+ def visit_key(node, opts); end
496
+ def visit_namespace(node, opts); end
497
+ def visit_not(node, opts); end
498
+ def visit_or(node, opts); end
499
+ def visit_predicate(node, opts); end
500
+ def visit_set(node, opts); end
501
+ def visit_xor(node, opts); end
502
+ def with(new_options); end
503
+ extend Dry::Initializer
504
+ include Anonymous_Module_89
505
+ include Dry::Initializer::Mixin::Root
506
+ end
507
+ class Dry::Schema::MessageCompiler::VisitorOpts < Hash
508
+ def call(other); end
509
+ def current_messages; end
510
+ def dup(current_messages = nil); end
511
+ def failures; end
512
+ def hints; end
513
+ def key_failure?(path); end
514
+ def path; end
515
+ def self.new; end
516
+ end
517
+ module Anonymous_Module_89
518
+ def __dry_initializer_config__; end
519
+ def __dry_initializer_initialize__(messages, *arg1, **__dry_initializer_options__); end
520
+ def full; end
521
+ def locale; end
522
+ def messages; end
523
+ def predicate_resolvers; end
524
+ extend Dry::Initializer::Mixin::Local
525
+ end
526
+ class Dry::Schema::RuleApplier
527
+ def call(input); end
528
+ def to_ast; end
529
+ extend Dry::Initializer
530
+ include Anonymous_Module_90
531
+ include Dry::Initializer::Mixin::Root
532
+ end
533
+ module Anonymous_Module_90
534
+ def __dry_initializer_config__; end
535
+ def __dry_initializer_initialize__(rules, *arg1, **__dry_initializer_options__); end
536
+ def config; end
537
+ def message_compiler; end
538
+ def rules; end
539
+ extend Dry::Initializer::Mixin::Local
540
+ end
541
+ class Dry::Schema::KeyCoercer
542
+ def [](source); end
543
+ def call(source); end
544
+ def coercer; end
545
+ def initialize(key_map, &coercer); end
546
+ def key_map; end
547
+ def self.new(*args, &coercer); end
548
+ def self.symbolized(*args); end
549
+ extend Dry::Core::Cache
550
+ include Anonymous_Dry_Equalizer_91
551
+ include Dry::Core::Cache::Methods
552
+ include Dry::Equalizer::Methods
553
+ end
554
+ module Anonymous_Dry_Equalizer_91
555
+ def cmp?(comparator, other); end
556
+ def hash; end
557
+ def inspect; end
558
+ end
559
+ class Dry::Schema::ValueCoercer
560
+ def call(input); end
561
+ extend Dry::Initializer
562
+ include Anonymous_Dry_Equalizer_93
563
+ include Anonymous_Module_92
564
+ include Dry::Equalizer::Methods
565
+ include Dry::Initializer::Mixin::Root
566
+ end
567
+ module Anonymous_Module_92
568
+ def __dry_initializer_config__; end
569
+ def __dry_initializer_initialize__(type_schema, *arg1); end
570
+ def type_schema; end
571
+ extend Dry::Initializer::Mixin::Local
572
+ end
573
+ module Anonymous_Dry_Equalizer_93
574
+ def cmp?(comparator, other); end
575
+ def hash; end
576
+ def inspect; end
577
+ end
578
+ class Dry::Schema::Processor
579
+ def [](input); end
580
+ def call(input); end
581
+ def config; end
582
+ def filter_rules?; end
583
+ def filter_schema; end
584
+ def inspect; end
585
+ def key_map; end
586
+ def message_compiler; end
587
+ def rule_applier; end
588
+ def rules; end
589
+ def self.define(&block); end
590
+ def self.definition; end
591
+ def self.new(options = nil, &block); end
592
+ def to_ast; end
593
+ def to_proc; end
594
+ def to_rule; end
595
+ def type_schema; end
596
+ extend Dry::Configurable
597
+ extend Dry::Configurable::ClassMethods
598
+ extend Dry::Initializer
599
+ include Anonymous_Module_94
600
+ include Dry::Initializer::Mixin::Root
601
+ end
602
+ module Anonymous_Module_94
603
+ def __dry_initializer_config__; end
604
+ def __dry_initializer_initialize__(*arg0, **__dry_initializer_options__); end
605
+ def schema_dsl; end
606
+ def steps; end
607
+ extend Dry::Initializer::Mixin::Local
608
+ end
609
+ module Anonymous_Module_95
610
+ def __dry_initializer_config__; end
611
+ def __dry_initializer_initialize__(*arg0, **__dry_initializer_options__); end
612
+ def filter_schema_dsl; end
613
+ extend Dry::Initializer::Mixin::Local
614
+ end
615
+ class Dry::Schema::Macros::Key < Dry::Schema::Macros::DSL
616
+ def filled(*args, **opts, &block); end
617
+ def filter(*args, &block); end
618
+ def maybe(*args, **opts, &block); end
619
+ def to_ast; end
620
+ def to_rule; end
621
+ def value(*args, **opts, &block); end
622
+ include Anonymous_Module_95
623
+ end
624
+ module Anonymous_Module_96
625
+ def __dry_initializer_config__; end
626
+ def __dry_initializer_initialize__(*arg0, **__dry_initializer_options__); end
627
+ extend Dry::Initializer::Mixin::Local
628
+ end
629
+ class Dry::Schema::Macros::Optional < Dry::Schema::Macros::Key
630
+ def operation; end
631
+ def to_rule; end
632
+ include Anonymous_Module_96
633
+ end
634
+ module Anonymous_Module_97
635
+ def __dry_initializer_config__; end
636
+ def __dry_initializer_initialize__(*arg0, **__dry_initializer_options__); end
637
+ extend Dry::Initializer::Mixin::Local
638
+ end
639
+ class Dry::Schema::Macros::Required < Dry::Schema::Macros::Key
640
+ def operation; end
641
+ include Anonymous_Module_97
642
+ end
643
+ class Dry::Schema::Key
644
+ def coerced_name; end
645
+ def coercer; end
646
+ def coercible(&coercer); end
647
+ def dump; end
648
+ def id; end
649
+ def initialize(id, name: nil, coercer: nil); end
650
+ def name; end
651
+ def new(new_opts = nil); end
652
+ def read(source); end
653
+ def self.[](name, **opts); end
654
+ def self.new(*args); end
655
+ def stringified; end
656
+ def write(source, target); end
657
+ extend Dry::Core::Cache
658
+ include Anonymous_Dry_Equalizer_98
659
+ include Dry::Core::Cache::Methods
660
+ include Dry::Equalizer::Methods
661
+ end
662
+ module Anonymous_Dry_Equalizer_98
663
+ def cmp?(comparator, other); end
664
+ def hash; end
665
+ def inspect; end
666
+ end
667
+ class Dry::Schema::Key::Hash < Dry::Schema::Key
668
+ def coercible(&coercer); end
669
+ def dump; end
670
+ def initialize(id, members:, **opts); end
671
+ def members; end
672
+ def read(source); end
673
+ def stringified; end
674
+ def write(source, target); end
675
+ include Anonymous_Dry_Equalizer_99
676
+ include Dry::Equalizer::Methods
677
+ end
678
+ module Anonymous_Dry_Equalizer_99
679
+ def cmp?(comparator, other); end
680
+ def hash; end
681
+ def inspect; end
682
+ end
683
+ class Dry::Schema::Key::Array < Dry::Schema::Key
684
+ def coercible(&coercer); end
685
+ def dump; end
686
+ def initialize(id, member:, **opts); end
687
+ def member; end
688
+ def stringified; end
689
+ def write(source, target); end
690
+ include Anonymous_Dry_Equalizer_100
691
+ include Dry::Equalizer::Methods
692
+ end
693
+ module Anonymous_Dry_Equalizer_100
694
+ def cmp?(comparator, other); end
695
+ def hash; end
696
+ def inspect; end
697
+ end
698
+ class Dry::Schema::KeyMap
699
+ def +(other); end
700
+ def coercible(&coercer); end
701
+ def dump; end
702
+ def each(&block); end
703
+ def initialize(keys); end
704
+ def inspect; end
705
+ def keys; end
706
+ def self.[](*keys); end
707
+ def self.new(*args); end
708
+ def stringified; end
709
+ def write(source, target = nil); end
710
+ extend Dry::Core::Cache
711
+ include Anonymous_Dry_Equalizer_101
712
+ include Dry::Core::Cache::Methods
713
+ include Dry::Equalizer::Methods
714
+ include Enumerable
715
+ end
716
+ module Anonymous_Dry_Equalizer_101
717
+ def cmp?(comparator, other); end
718
+ def hash; end
719
+ def inspect; end
720
+ end
721
+ class Dry::Schema::DSL
722
+ def [](name); end
723
+ def after(key, &block); end
724
+ def array; end
725
+ def before(key, &block); end
726
+ def call; end
727
+ def configure(&block); end
728
+ def filter_rules?; end
729
+ def filter_schema; end
730
+ def filter_schema_dsl; end
731
+ def key(name, macro:, &block); end
732
+ def key_coercer; end
733
+ def key_map(types = nil); end
734
+ def key_map_type; end
735
+ def key_spec(name, type); end
736
+ def new(options = nil, &block); end
737
+ def optional(name, &block); end
738
+ def parent; end
739
+ def parent_filter_schemas; end
740
+ def parent_key_map; end
741
+ def parent_rules; end
742
+ def required(name, &block); end
743
+ def resolve_type(spec); end
744
+ def rule_applier; end
745
+ def rules; end
746
+ def self.new(**options, &block); end
747
+ def set_type(name, spec); end
748
+ def to_rule; end
749
+ def type_registry; end
750
+ def type_schema; end
751
+ def value_coercer; end
752
+ extend Dry::Initializer
753
+ include Anonymous_Dry_Equalizer_103
754
+ include Anonymous_Module_102
755
+ include Dry::Equalizer::Methods
756
+ include Dry::Initializer::Mixin::Root
757
+ end
758
+ module Anonymous_Module_102
759
+ def __dry_initializer_config__; end
760
+ def __dry_initializer_initialize__(*arg0, **__dry_initializer_options__); end
761
+ def compiler; end
762
+ def config; end
763
+ def macros; end
764
+ def parents; end
765
+ def processor_type; end
766
+ def steps; end
767
+ def types; end
768
+ extend Dry::Initializer::Mixin::Local
769
+ end
770
+ module Anonymous_Dry_Equalizer_103
771
+ def cmp?(comparator, other); end
772
+ def hash; end
773
+ def inspect; end
774
+ end
775
+ module Anonymous_Module_104
776
+ def __dry_initializer_config__; end
777
+ def __dry_initializer_initialize__(*arg0, **__dry_initializer_options__); end
778
+ extend Dry::Initializer::Mixin::Local
779
+ end
780
+ class Dry::Schema::Params < Dry::Schema::Processor
781
+ include Anonymous_Module_104
782
+ end
783
+ module Anonymous_Module_105
784
+ def __dry_initializer_config__; end
785
+ def __dry_initializer_initialize__(*arg0, **__dry_initializer_options__); end
786
+ extend Dry::Initializer::Mixin::Local
787
+ end
788
+ class Dry::Schema::JSON < Dry::Schema::Processor
789
+ include Anonymous_Module_105
790
+ end