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,66 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strong
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/ice_nine/all/ice_nine.rbi
9
+ #
10
+ # ice_nine-0.11.2
11
+ module IceNine
12
+ def self.deep_freeze!(object); end
13
+ def self.deep_freeze(object); end
14
+ end
15
+ class IceNine::RecursionGuard
16
+ end
17
+ class IceNine::RecursionGuard::ObjectSet < IceNine::RecursionGuard
18
+ def guard(object); end
19
+ def initialize; end
20
+ end
21
+ class IceNine::RecursionGuard::Frozen < IceNine::RecursionGuard
22
+ def guard(object); end
23
+ end
24
+ class IceNine::Freezer
25
+ def self.[](mod); end
26
+ def self.const_lookup(namespace); end
27
+ def self.deep_freeze!(object); end
28
+ def self.deep_freeze(object); end
29
+ def self.find(name); end
30
+ def self.guarded_deep_freeze(object, recursion_guard); end
31
+ end
32
+ class IceNine::Freezer::Object < IceNine::Freezer
33
+ def self.freeze_instance_variables(object, recursion_guard); end
34
+ def self.guarded_deep_freeze(object, recursion_guard); end
35
+ end
36
+ class IceNine::Freezer::NoFreeze < IceNine::Freezer
37
+ def self.guarded_deep_freeze(object, _recursion_guard); end
38
+ end
39
+ class IceNine::Freezer::Array < IceNine::Freezer::Object
40
+ def self.guarded_deep_freeze(array, recursion_guard); end
41
+ end
42
+ class IceNine::Freezer::FalseClass < IceNine::Freezer::NoFreeze
43
+ end
44
+ class IceNine::Freezer::Hash < IceNine::Freezer::Object
45
+ def self.freeze_key_value_pairs(hash, recursion_guard); end
46
+ def self.guarded_deep_freeze(hash, recursion_guard); end
47
+ end
48
+ class IceNine::Freezer::Hash::State < IceNine::Freezer::NoFreeze
49
+ end
50
+ class IceNine::Freezer::NilClass < IceNine::Freezer::NoFreeze
51
+ end
52
+ class IceNine::Freezer::Module < IceNine::Freezer::NoFreeze
53
+ end
54
+ class IceNine::Freezer::Numeric < IceNine::Freezer::NoFreeze
55
+ end
56
+ class IceNine::Freezer::Range < IceNine::Freezer::Object
57
+ def self.guarded_deep_freeze(range, recursion_guard); end
58
+ end
59
+ class IceNine::Freezer::Rubinius < IceNine::Freezer::NoFreeze
60
+ end
61
+ class IceNine::Freezer::Struct < IceNine::Freezer::Array
62
+ end
63
+ class IceNine::Freezer::Symbol < IceNine::Freezer::NoFreeze
64
+ end
65
+ class IceNine::Freezer::TrueClass < IceNine::Freezer::NoFreeze
66
+ end
@@ -0,0 +1,14 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strong
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/jaro_winkler/all/jaro_winkler.rbi
9
+ #
10
+ # jaro_winkler-1.5.3
11
+ module JaroWinkler
12
+ def self.distance(*arg0); end
13
+ def self.jaro_distance(*arg0); end
14
+ end
@@ -0,0 +1,339 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strong
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/kwalify/all/kwalify.rbi
9
+ #
10
+ # kwalify-0.7.2
11
+ module Kwalify
12
+ def self.meta_validator; end
13
+ def self.msg(key); end
14
+ def self.word(key); end
15
+ extend Kwalify::ErrorHelper
16
+ extend Kwalify::Types
17
+ end
18
+ module Kwalify::Boolean
19
+ end
20
+ class TrueClass
21
+ include Kwalify::Boolean
22
+ include Kwalify::Scalar
23
+ end
24
+ class FalseClass
25
+ include Kwalify::Boolean
26
+ include Kwalify::Scalar
27
+ end
28
+ module Kwalify::Text
29
+ include Kwalify::Scalar
30
+ end
31
+ class String
32
+ include Kwalify::Scalar
33
+ include Kwalify::Text
34
+ end
35
+ class Numeric
36
+ include Kwalify::Scalar
37
+ include Kwalify::Text
38
+ end
39
+ module Kwalify::Scalar
40
+ end
41
+ class Date
42
+ include Kwalify::Scalar
43
+ end
44
+ class Time
45
+ include Kwalify::Scalar
46
+ end
47
+ class NilClass
48
+ include Kwalify::Scalar
49
+ end
50
+ module Kwalify::Types
51
+ def collection?(val); end
52
+ def collection_type?(type); end
53
+ def scalar?(val); end
54
+ def scalar_type?(type); end
55
+ def self.collection?(val); end
56
+ def self.collection_type?(type); end
57
+ def self.get_type_class(type); end
58
+ def self.scalar?(val); end
59
+ def self.scalar_type?(type); end
60
+ def self.type_class(type); end
61
+ def self.type_table; end
62
+ end
63
+ class Kwalify::KwalifyError < StandardError
64
+ end
65
+ class Kwalify::AssertionError < Kwalify::KwalifyError
66
+ def initialize(msg); end
67
+ end
68
+ class Kwalify::BaseError < Kwalify::KwalifyError
69
+ def <=>(ex); end
70
+ def _to_s; end
71
+ def column; end
72
+ def column=(arg0); end
73
+ def error_symbol; end
74
+ def error_symbol=(arg0); end
75
+ def filename; end
76
+ def filename=(arg0); end
77
+ def initialize(message = nil, path = nil, value = nil, rule = nil, error_symbol = nil); end
78
+ def linenum; end
79
+ def linenum=(arg0); end
80
+ def message; end
81
+ def path; end
82
+ def path=(arg0); end
83
+ def rule; end
84
+ def rule=(arg0); end
85
+ def to_s; end
86
+ def value; end
87
+ def value=(arg0); end
88
+ end
89
+ class Kwalify::SchemaError < Kwalify::BaseError
90
+ def initialize(message = nil, path = nil, rule = nil, value = nil, error_symbol = nil); end
91
+ end
92
+ class Kwalify::ValidationError < Kwalify::BaseError
93
+ def initialize(message = nil, path = nil, rule = nil, value = nil, error_symbol = nil); end
94
+ end
95
+ class Kwalify::SyntaxError < Kwalify::BaseError
96
+ def initialize(msg, linenum = nil, error_symbol = nil); end
97
+ def message; end
98
+ end
99
+ class Kwalify::YamlSyntaxError < Kwalify::SyntaxError
100
+ end
101
+ module Kwalify::ErrorHelper
102
+ def _build_message(message_key, val, args); end
103
+ def assert_error(message = nil); end
104
+ def schema_error(error_symbol, rule, path, val, args = nil); end
105
+ def self._build_message(message_key, val, args); end
106
+ def self.validate_error(error_symbol, rule, path, val, args = nil); end
107
+ def validate_error(error_symbol, rule, path, val, args = nil); end
108
+ end
109
+ class Kwalify::Rule
110
+ def _check_confliction(hash, rule, path); end
111
+ def _init(hash, path = nil, rule_table = nil); end
112
+ def _init_assert_value(val, rule, path); end
113
+ def _init_class_value(val, rule, path); end
114
+ def _init_default_value(val, rule, path); end
115
+ def _init_desc_value(val, rule, path); end
116
+ def _init_enum_value(val, rule, path); end
117
+ def _init_ident_value(val, rule, path); end
118
+ def _init_length_value(val, rule, path); end
119
+ def _init_mapping_value(val, rule, path, rule_table); end
120
+ def _init_name_value(val, rule, path); end
121
+ def _init_pattern_value(val, rule, path); end
122
+ def _init_range_value(val, rule, path); end
123
+ def _init_required_value(val, rule, path); end
124
+ def _init_sequence_value(val, rule, path, rule_table); end
125
+ def _init_type_value(val, rule, path); end
126
+ def _init_unique_value(val, rule, path); end
127
+ def _inspect(str = nil, level = nil, done = nil); end
128
+ def _uniqueness_check_table; end
129
+ def assert; end
130
+ def assert_proc; end
131
+ def classname; end
132
+ def classobj; end
133
+ def default; end
134
+ def desc; end
135
+ def enum; end
136
+ def get_init_method(sym); end
137
+ def ident; end
138
+ def initialize(hash = nil, parent = nil); end
139
+ def length; end
140
+ def mapping; end
141
+ def name; end
142
+ def parent; end
143
+ def parent=(arg0); end
144
+ def pattern; end
145
+ def range; end
146
+ def regexp; end
147
+ def required; end
148
+ def sequence; end
149
+ def type; end
150
+ def type_class; end
151
+ def unique; end
152
+ include Kwalify::ErrorHelper
153
+ end
154
+ class Kwalify::Validator
155
+ def _inspect; end
156
+ def _validate(value, rule, path, errors, done, uniq_table, recursive = nil); end
157
+ def _validate_assert(value, rule, path, errors); end
158
+ def _validate_enum(value, rule, path, errors); end
159
+ def _validate_length(value, rule, path, errors); end
160
+ def _validate_mapping(hash, map_rule, path, errors, done, uniq_table, recursive = nil); end
161
+ def _validate_mapping_required_keys(hash, map_rule, path, errors); end
162
+ def _validate_pattern(value, rule, path, errors); end
163
+ def _validate_range(value, rule, path, errors); end
164
+ def _validate_scalar(value, rule, path, errors, done, uniq_table); end
165
+ def _validate_sequence(list, seq_rule, path, errors, done, uniq_table, recursive = nil); end
166
+ def _validate_unique(value, rule, path, errors, uniq_table); end
167
+ def initialize(hash_or_rule, &block); end
168
+ def rule; end
169
+ def validate(value); end
170
+ def validate_hook(value, rule, path, errors); end
171
+ include Kwalify::ErrorHelper
172
+ end
173
+ module Kwalify::Util
174
+ def _traverse_rule(rule, _done = nil, &block); end
175
+ def _traverse_schema(hash, _done = nil, &block); end
176
+ def create_hashtable(hashlist, primarykey, flag_duplicate_check = nil); end
177
+ def get_class(classname); end
178
+ def get_value(obj, path); end
179
+ def self._traverse_rule(rule, _done = nil, &block); end
180
+ def self._traverse_schema(hash, _done = nil, &block); end
181
+ def self.create_hashtable(hashlist, primarykey, flag_duplicate_check = nil); end
182
+ def self.get_class(classname); end
183
+ def self.get_value(obj, path); end
184
+ def self.traverse_rule(validator, &block); end
185
+ def self.traverse_schema(schema, &block); end
186
+ def self.untabify(str, width = nil); end
187
+ def traverse_rule(validator, &block); end
188
+ def traverse_schema(schema, &block); end
189
+ def untabify(str, width = nil); end
190
+ end
191
+ class Kwalify::BaseParser
192
+ def _getch; end
193
+ def _set_column_and_linenum(s); end
194
+ def _syntax_error(message, path = nil, linenum = nil, column = nil); end
195
+ def column; end
196
+ def eos?; end
197
+ def filename; end
198
+ def group(n); end
199
+ def linenum; end
200
+ def match?(regexp); end
201
+ def peep(n = nil); end
202
+ def reset(input, filename = nil, untabify = nil); end
203
+ def scan(regexp); end
204
+ def scan_string; end
205
+ end
206
+ module Kwalify::Yaml
207
+ def self.load(yaml_str, opts = nil); end
208
+ def self.load_file(filename, opts = nil); end
209
+ end
210
+ class Kwalify::Yaml::Parser < Kwalify::BaseParser
211
+ def _error(klass, message, path, linenum, column); end
212
+ def _getclass(classname); end
213
+ def _parse_map_value(map, map_rule, path, level, key, is_merged, uniq_table, _linenum, _column, _linenum2, _column2); end
214
+ def _set_error_info(linenum = nil, column = nil, &block); end
215
+ def _validate_map_value(map, map_rule, rule, path, uniq_table, key, val, _linenum, _column); end
216
+ def add_to_seq(rule, seq, val, linenum, column); end
217
+ def create_mapping(rule, linenum, column); end
218
+ def create_scalar(rule, value, linenum, column); end
219
+ def create_sequence(rule, linenum, column); end
220
+ def data_binding; end
221
+ def data_binding=(arg0); end
222
+ def document_start?; end
223
+ def errors; end
224
+ def has_next?; end
225
+ def initialize(validator = nil, properties = nil); end
226
+ def location(path); end
227
+ def mapping_class; end
228
+ def mapping_class=(arg0); end
229
+ def parse(input = nil, opts = nil); end
230
+ def parse_alias(rule, path, uniq_table, container); end
231
+ def parse_anchor(rule, path, uniq_table, container); end
232
+ def parse_block_map(map, map_rule, path, uniq_table); end
233
+ def parse_block_scalar(rule, path, uniq_table); end
234
+ def parse_block_seq(seq, seq_rule, path, uniq_table); end
235
+ def parse_block_text(column, rule, path, uniq_table); end
236
+ def parse_block_value(level, rule, path, uniq_table, container); end
237
+ def parse_documents(input, opts = nil, &block); end
238
+ def parse_file(filename, opts = nil); end
239
+ def parse_flow_map(map, map_rule, path, uniq_table); end
240
+ def parse_flow_scalar(rule, path, uniq_table); end
241
+ def parse_flow_seq(seq, seq_rule, path, uniq_table); end
242
+ def parse_flow_value(rule, path, uniq_table, container); end
243
+ def parse_next; end
244
+ def parse_stream(input, opts = nil, &block); end
245
+ def preceding_alias; end
246
+ def preceding_alias=(arg0); end
247
+ def put_to_map(rule, map, key, val, linenum, column); end
248
+ def reset_parser; end
249
+ def reset_scanner(input, filename = nil, untabify = nil); end
250
+ def resolve_preceding_aliases(val); end
251
+ def sequence_class; end
252
+ def sequence_class=(arg0); end
253
+ def set_errors_linenum(errors); end
254
+ def skip_spaces_and_comments; end
255
+ def stream_end?; end
256
+ def to_mapkey(str); end
257
+ def to_scalar(str); end
258
+ def validator; end
259
+ def validator=(arg0); end
260
+ end
261
+ class Kwalify::MetaValidator < Kwalify::Validator
262
+ def initialize(schema, &block); end
263
+ def self.instance; end
264
+ def validate_hook(value, rule, path, errors); end
265
+ end
266
+ class Kwalify::PlainYamlParser
267
+ def _getchar; end
268
+ def _getline; end
269
+ def add_to_map(map, key, value, linenum); end
270
+ def add_to_seq(seq, value, linenum); end
271
+ def assert(bool_expr); end
272
+ def create_mapping(linenum = nil); end
273
+ def create_scalar(value, linenum = nil); end
274
+ def create_sequence(linenum = nil); end
275
+ def current_char; end
276
+ def current_line; end
277
+ def current_linenum; end
278
+ def getchar; end
279
+ def getchar_or_nl; end
280
+ def getlabel; end
281
+ def getline; end
282
+ def has_next?; end
283
+ def initialize(yaml_str); end
284
+ def merge_map(map, map2, linenum); end
285
+ def parse; end
286
+ def parse_alias(column, value); end
287
+ def parse_all; end
288
+ def parse_anchor(column, value); end
289
+ def parse_block_text(column, value); end
290
+ def parse_child(column); end
291
+ def parse_flow(depth); end
292
+ def parse_flow_map(depth); end
293
+ def parse_flow_map_item(depth); end
294
+ def parse_flow_scalar(depth); end
295
+ def parse_flow_seq(depth); end
296
+ def parse_flow_seq_item(depth); end
297
+ def parse_flowstyle(column, value); end
298
+ def parse_mapping(column, value); end
299
+ def parse_scalar(indent, value); end
300
+ def parse_sequence(column, value); end
301
+ def parse_tag(column, value); end
302
+ def parse_value(column, value, value_start_column); end
303
+ def register_alias(label); end
304
+ def register_anchor(label, data); end
305
+ def reset_sbuf(str); end
306
+ def resolve_aliases(data); end
307
+ def set_default(map, value, linenum); end
308
+ def set_map_with(map, key, value, linenum); end
309
+ def set_seq_at(seq, i, value, linenum); end
310
+ def syntax_error(error_symbol, arg = nil, linenum = nil); end
311
+ def to_scalar(str); end
312
+ def white?(ch); end
313
+ end
314
+ class Kwalify::PlainYamlParser::Alias
315
+ def initialize(label, linenum); end
316
+ def label; end
317
+ def linenum; end
318
+ end
319
+ class Kwalify::YamlParser < Kwalify::PlainYamlParser
320
+ def add_to_map(map, key, value, linenum); end
321
+ def add_to_seq(seq, value, linenum); end
322
+ def create_mapping(linenum = nil); end
323
+ def create_scalar(value, linenum = nil); end
324
+ def create_sequence(linenum = nil); end
325
+ def initialize(*args); end
326
+ def merge_map(map, collection, linenum); end
327
+ def parse; end
328
+ def path_linenum(path); end
329
+ def set_default(map, value, linenum); end
330
+ def set_error_linenums(errors); end
331
+ def set_errors_linenum(errors); end
332
+ def set_map_with(map, key, value, linenum); end
333
+ def set_seq_at(seq, i, value, linenum); end
334
+ end
335
+ class Kwalify::Parser < Kwalify::YamlParser
336
+ def initialize(yaml_str); end
337
+ end
338
+ module Kwalify::Json
339
+ end
@@ -0,0 +1,63 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strong
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/method_source/all/method_source.rbi
9
+ #
10
+ # method_source-0.9.2
11
+ module MethodSource
12
+ def self.comment_helper(source_location, name = nil); end
13
+ def self.extract_code(source_location); end
14
+ def self.lines_for(file_name, name = nil); end
15
+ def self.source_helper(source_location, name = nil); end
16
+ def self.valid_expression?(str); end
17
+ extend MethodSource::CodeHelpers
18
+ end
19
+ module MethodSource::ReeSourceLocation
20
+ def source_location; end
21
+ end
22
+ module MethodSource::SourceLocation
23
+ end
24
+ module MethodSource::SourceLocation::MethodExtensions
25
+ def source_location; end
26
+ def trace_func(event, file, line, id, binding, classname); end
27
+ end
28
+ module MethodSource::SourceLocation::ProcExtensions
29
+ def source_location; end
30
+ end
31
+ module MethodSource::SourceLocation::UnboundMethodExtensions
32
+ def source_location; end
33
+ end
34
+ module MethodSource::CodeHelpers
35
+ def comment_describing(file, line_number); end
36
+ def complete_expression?(str); end
37
+ def expression_at(file, line_number, options = nil); end
38
+ def extract_first_expression(lines, consume = nil, &block); end
39
+ def extract_last_comment(lines); end
40
+ end
41
+ module MethodSource::CodeHelpers::IncompleteExpression
42
+ def self.===(ex); end
43
+ def self.rbx?; end
44
+ end
45
+ class MethodSource::SourceNotFoundError < StandardError
46
+ end
47
+ module MethodSource::MethodExtensions
48
+ def comment; end
49
+ def self.included(klass); end
50
+ def source; end
51
+ end
52
+ class Method
53
+ include MethodSource::MethodExtensions
54
+ include MethodSource::SourceLocation::MethodExtensions
55
+ end
56
+ class UnboundMethod
57
+ include MethodSource::MethodExtensions
58
+ include MethodSource::SourceLocation::UnboundMethodExtensions
59
+ end
60
+ class Proc
61
+ include MethodSource::MethodExtensions
62
+ include MethodSource::SourceLocation::ProcExtensions
63
+ end