mangrove 0.24.0 → 0.30.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +32 -5
  3. data/lib/mangrove/result.rb +73 -64
  4. data/lib/mangrove/version.rb +1 -1
  5. data/rbi/mangrove.rbi +20 -0
  6. data/sorbet/rbi/annotations/rainbow.rbi +3 -3
  7. data/sorbet/rbi/gems/{diff-lcs@1.5.0.rbi → diff-lcs@1.5.1.rbi} +100 -48
  8. data/sorbet/rbi/gems/{io-console@0.6.0.rbi → io-console@0.7.2.rbi} +1 -0
  9. data/sorbet/rbi/gems/{json@2.6.3.rbi → json@2.7.2.rbi} +95 -74
  10. data/sorbet/rbi/gems/{parallel@1.23.0.rbi → parallel@1.24.0.rbi} +9 -1
  11. data/sorbet/rbi/gems/{parser@3.2.2.4.rbi → parser@3.3.2.0.rbi} +1267 -1282
  12. data/sorbet/rbi/gems/prism@0.29.0.rbi +37987 -0
  13. data/sorbet/rbi/gems/{psych@5.1.1.1.rbi → psych@5.1.2.rbi} +231 -267
  14. data/sorbet/rbi/gems/{racc@1.7.1.rbi → racc@1.8.0.rbi} +37 -36
  15. data/sorbet/rbi/gems/{rake@13.0.6.rbi → rake@13.2.1.rbi} +217 -73
  16. data/sorbet/rbi/gems/{rbi@0.1.3.rbi → rbi@0.1.13.rbi} +322 -166
  17. data/sorbet/rbi/gems/{rdoc@6.6.0.rbi → rdoc@6.7.0.rbi} +735 -685
  18. data/sorbet/rbi/gems/{regexp_parser@2.8.2.rbi → regexp_parser@2.9.2.rbi} +192 -169
  19. data/sorbet/rbi/gems/{reline@0.4.0.rbi → reline@0.5.8.rbi} +1 -0
  20. data/sorbet/rbi/gems/{rexml@3.2.6.rbi → rexml@3.2.8.rbi} +122 -109
  21. data/sorbet/rbi/gems/{rspec-core@3.12.2.rbi → rspec-core@3.13.0.rbi} +400 -300
  22. data/sorbet/rbi/gems/{rspec-expectations@3.12.3.rbi → rspec-expectations@3.13.0.rbi} +173 -119
  23. data/sorbet/rbi/gems/{rspec-mocks@3.12.6.rbi → rspec-mocks@3.13.1.rbi} +195 -160
  24. data/sorbet/rbi/gems/{rspec-support@3.12.1.rbi → rspec-support@3.13.1.rbi} +319 -298
  25. data/sorbet/rbi/gems/{rspec@3.12.0.rbi → rspec@3.13.0.rbi} +23 -22
  26. data/sorbet/rbi/gems/ruboclean@0.6.0.rbi +315 -0
  27. data/sorbet/rbi/gems/{rubocop-ast@1.29.0.rbi → rubocop-ast@1.31.3.rbi} +348 -285
  28. data/sorbet/rbi/gems/{rubocop-capybara@2.19.0.rbi → rubocop-capybara@2.20.0.rbi} +148 -65
  29. data/sorbet/rbi/gems/{rubocop-factory_bot@2.24.0.rbi → rubocop-factory_bot@2.25.1.rbi} +70 -20
  30. data/sorbet/rbi/gems/{rubocop-rspec@2.24.1.rbi → rubocop-rspec@2.30.0.rbi} +678 -389
  31. data/sorbet/rbi/gems/rubocop-rspec_rails@2.28.3.rbi +911 -0
  32. data/sorbet/rbi/gems/{rubocop@1.57.1.rbi → rubocop@1.64.1.rbi} +3225 -1915
  33. data/sorbet/rbi/gems/{ruby-lsp@0.12.0.rbi → ruby-lsp@0.17.2.rbi} +1 -0
  34. data/sorbet/rbi/gems/{spoom@1.2.4.rbi → spoom@1.3.2.rbi} +1057 -413
  35. data/sorbet/rbi/gems/strscan@3.1.0.rbi +9 -0
  36. data/sorbet/rbi/gems/{tapioca@0.11.10.rbi → tapioca@0.14.3.rbi} +268 -234
  37. data/sorbet/rbi/gems/{thor@1.3.0.rbi → thor@1.3.1.rbi} +57 -50
  38. data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.36.rbi} +154 -82
  39. metadata +38 -38
  40. data/sorbet/rbi/gems/base64@0.1.1.rbi +0 -172
  41. data/sorbet/rbi/gems/irb@1.9.0.rbi +0 -342
  42. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
  43. data/sorbet/rbi/gems/prism@0.15.1.rbi +0 -23922
  44. data/sorbet/rbi/gems/ruboclean@0.4.0.rbi +0 -189
  45. data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +0 -23136
  46. /data/sorbet/rbi/gems/{stringio@3.0.9.rbi → stringio@3.1.0.rbi} +0 -0
@@ -4,73 +4,74 @@
4
4
  # This is an autogenerated file for types exported from the `rspec` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem rspec`.
6
6
 
7
+
7
8
  # source://rspec//lib/rspec/version.rb#1
8
9
  module RSpec
9
10
  class << self
10
- # source://rspec-core/3.12.2/lib/rspec/core.rb#70
11
+ # source://rspec-core/3.13.0/lib/rspec/core.rb#70
11
12
  def clear_examples; end
12
13
 
13
- # source://rspec-core/3.12.2/lib/rspec/core.rb#85
14
+ # source://rspec-core/3.13.0/lib/rspec/core.rb#85
14
15
  def configuration; end
15
16
 
16
- # source://rspec-core/3.12.2/lib/rspec/core.rb#49
17
+ # source://rspec-core/3.13.0/lib/rspec/core.rb#49
17
18
  def configuration=(_arg0); end
18
19
 
19
- # source://rspec-core/3.12.2/lib/rspec/core.rb#97
20
+ # source://rspec-core/3.13.0/lib/rspec/core.rb#97
20
21
  def configure; end
21
22
 
22
- # source://rspec-core/3.12.2/lib/rspec/core.rb#194
23
+ # source://rspec-core/3.13.0/lib/rspec/core.rb#194
23
24
  def const_missing(name); end
24
25
 
25
- # source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
26
+ # source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
26
27
  def context(*args, &example_group_block); end
27
28
 
28
- # source://rspec-core/3.12.2/lib/rspec/core.rb#122
29
+ # source://rspec-core/3.13.0/lib/rspec/core.rb#122
29
30
  def current_example; end
30
31
 
31
- # source://rspec-core/3.12.2/lib/rspec/core.rb#128
32
+ # source://rspec-core/3.13.0/lib/rspec/core.rb#128
32
33
  def current_example=(example); end
33
34
 
34
- # source://rspec-core/3.12.2/lib/rspec/core.rb#154
35
+ # source://rspec-core/3.13.0/lib/rspec/core.rb#154
35
36
  def current_scope; end
36
37
 
37
- # source://rspec-core/3.12.2/lib/rspec/core.rb#134
38
+ # source://rspec-core/3.13.0/lib/rspec/core.rb#134
38
39
  def current_scope=(scope); end
39
40
 
40
- # source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
41
+ # source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
41
42
  def describe(*args, &example_group_block); end
42
43
 
43
- # source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
44
+ # source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
44
45
  def example_group(*args, &example_group_block); end
45
46
 
46
- # source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
47
+ # source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
47
48
  def fcontext(*args, &example_group_block); end
48
49
 
49
- # source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
50
+ # source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
50
51
  def fdescribe(*args, &example_group_block); end
51
52
 
52
- # source://rspec-core/3.12.2/lib/rspec/core.rb#58
53
+ # source://rspec-core/3.13.0/lib/rspec/core.rb#58
53
54
  def reset; end
54
55
 
55
- # source://rspec-core/3.12.2/lib/rspec/core/shared_example_group.rb#110
56
+ # source://rspec-core/3.13.0/lib/rspec/core/shared_example_group.rb#110
56
57
  def shared_context(name, *args, &block); end
57
58
 
58
- # source://rspec-core/3.12.2/lib/rspec/core/shared_example_group.rb#110
59
+ # source://rspec-core/3.13.0/lib/rspec/core/shared_example_group.rb#110
59
60
  def shared_examples(name, *args, &block); end
60
61
 
61
- # source://rspec-core/3.12.2/lib/rspec/core/shared_example_group.rb#110
62
+ # source://rspec-core/3.13.0/lib/rspec/core/shared_example_group.rb#110
62
63
  def shared_examples_for(name, *args, &block); end
63
64
 
64
- # source://rspec-core/3.12.2/lib/rspec/core.rb#160
65
+ # source://rspec-core/3.13.0/lib/rspec/core.rb#160
65
66
  def world; end
66
67
 
67
- # source://rspec-core/3.12.2/lib/rspec/core.rb#49
68
+ # source://rspec-core/3.13.0/lib/rspec/core.rb#49
68
69
  def world=(_arg0); end
69
70
 
70
- # source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
71
+ # source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
71
72
  def xcontext(*args, &example_group_block); end
72
73
 
73
- # source://rspec-core/3.12.2/lib/rspec/core/dsl.rb#42
74
+ # source://rspec-core/3.13.0/lib/rspec/core/dsl.rb#42
74
75
  def xdescribe(*args, &example_group_block); end
75
76
  end
76
77
  end
@@ -0,0 +1,315 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `ruboclean` gem.
5
+ # Please instead update this file by running `bin/tapioca gem ruboclean`.
6
+
7
+
8
+ # Ruboclean entry point
9
+ #
10
+ # source://ruboclean//lib/ruboclean/cli_arguments.rb#3
11
+ module Ruboclean
12
+ class << self
13
+ # source://ruboclean//lib/ruboclean.rb#26
14
+ def post_execution_message(changed, verify); end
15
+
16
+ # source://ruboclean//lib/ruboclean.rb#14
17
+ def run_from_cli!(args); end
18
+ end
19
+ end
20
+
21
+ # Reads command line arguments and exposes corresponding reader methods
22
+ #
23
+ # source://ruboclean//lib/ruboclean/cli_arguments.rb#5
24
+ class Ruboclean::CliArguments
25
+ # @return [CliArguments] a new instance of CliArguments
26
+ #
27
+ # source://ruboclean//lib/ruboclean/cli_arguments.rb#6
28
+ def initialize(command_line_arguments = T.unsafe(nil)); end
29
+
30
+ # source://ruboclean//lib/ruboclean/cli_arguments.rb#10
31
+ def path; end
32
+
33
+ # @return [Boolean]
34
+ #
35
+ # source://ruboclean//lib/ruboclean/cli_arguments.rb#22
36
+ def preserve_comments?; end
37
+
38
+ # @return [Boolean]
39
+ #
40
+ # source://ruboclean//lib/ruboclean/cli_arguments.rb#26
41
+ def preserve_paths?; end
42
+
43
+ # @return [Boolean]
44
+ #
45
+ # source://ruboclean//lib/ruboclean/cli_arguments.rb#18
46
+ def silent?; end
47
+
48
+ # @return [Boolean]
49
+ #
50
+ # source://ruboclean//lib/ruboclean/cli_arguments.rb#14
51
+ def verbose?; end
52
+
53
+ # @return [Boolean]
54
+ #
55
+ # source://ruboclean//lib/ruboclean/cli_arguments.rb#30
56
+ def verify?; end
57
+
58
+ private
59
+
60
+ # Returns the value of attribute command_line_arguments.
61
+ #
62
+ # source://ruboclean//lib/ruboclean/cli_arguments.rb#36
63
+ def command_line_arguments; end
64
+
65
+ # source://ruboclean//lib/ruboclean/cli_arguments.rb#46
66
+ def find_argument(name); end
67
+
68
+ # source://ruboclean//lib/ruboclean/cli_arguments.rb#38
69
+ def find_path; end
70
+ end
71
+
72
+ # Groups the rubocop configuration items into three categories:
73
+ # - base: base configuration like 'require', 'inherit_from', etc
74
+ # - namespaces: every item which does **not** include an "/"
75
+ # - cops: every item which **includes** an "/"
76
+ #
77
+ # source://ruboclean//lib/ruboclean/grouper.rb#8
78
+ class Ruboclean::Grouper
79
+ # @return [Grouper] a new instance of Grouper
80
+ #
81
+ # source://ruboclean//lib/ruboclean/grouper.rb#9
82
+ def initialize(configuration_hash); end
83
+
84
+ # source://ruboclean//lib/ruboclean/grouper.rb#13
85
+ def group_config; end
86
+
87
+ private
88
+
89
+ # Returns the value of attribute configuration_hash.
90
+ #
91
+ # source://ruboclean//lib/ruboclean/grouper.rb#23
92
+ def configuration_hash; end
93
+
94
+ # source://ruboclean//lib/ruboclean/grouper.rb#25
95
+ def empty_groups; end
96
+
97
+ # source://ruboclean//lib/ruboclean/grouper.rb#29
98
+ def find_target_group(key); end
99
+ end
100
+
101
+ # Logger for clean management of log levels
102
+ #
103
+ # source://ruboclean//lib/ruboclean/logger.rb#5
104
+ class Ruboclean::Logger
105
+ # @raise [ArgumentError]
106
+ # @return [Logger] a new instance of Logger
107
+ #
108
+ # source://ruboclean//lib/ruboclean/logger.rb#6
109
+ def initialize(log_level = T.unsafe(nil)); end
110
+
111
+ # source://ruboclean//lib/ruboclean/logger.rb#12
112
+ def verbose(message); end
113
+ end
114
+
115
+ # Orders the items within the groups alphabetically
116
+ #
117
+ # source://ruboclean//lib/ruboclean/orderer.rb#5
118
+ class Ruboclean::Orderer
119
+ # @return [Orderer] a new instance of Orderer
120
+ #
121
+ # source://ruboclean//lib/ruboclean/orderer.rb#6
122
+ def initialize(configuration_hash); end
123
+
124
+ # source://ruboclean//lib/ruboclean/orderer.rb#10
125
+ def order; end
126
+
127
+ private
128
+
129
+ # Returns the value of attribute configuration_hash.
130
+ #
131
+ # source://ruboclean//lib/ruboclean/orderer.rb#19
132
+ def configuration_hash; end
133
+
134
+ # source://ruboclean//lib/ruboclean/orderer.rb#25
135
+ def grouped_config; end
136
+
137
+ # source://ruboclean//lib/ruboclean/orderer.rb#21
138
+ def order_by_key(group_items); end
139
+ end
140
+
141
+ # Cleans up any `Include` or `Exclude` paths that don't exist.
142
+ # The `Include` and `Exclude` paths are relative to the directory
143
+ # where the `.rubocop.yml` file is located. If a path includes a
144
+ # regexp, it's assumed to be valid.
145
+ # If all entries in `Include` or `Exclude` are removed, the entire property is removed.
146
+ # If a Cop gets entirely truncated due to removing all `Includes` and/or `Exclude`, the Cop itself will be removed.
147
+ #
148
+ # source://ruboclean//lib/ruboclean/path_cleanup.rb#10
149
+ class Ruboclean::PathCleanup
150
+ # @return [PathCleanup] a new instance of PathCleanup
151
+ #
152
+ # source://ruboclean//lib/ruboclean/path_cleanup.rb#11
153
+ def initialize(configuration_hash, root_directory); end
154
+
155
+ # source://ruboclean//lib/ruboclean/path_cleanup.rb#16
156
+ def cleanup; end
157
+
158
+ private
159
+
160
+ # @return [Boolean]
161
+ #
162
+ # source://ruboclean//lib/ruboclean/path_cleanup.rb#70
163
+ def any_global_command_pattern?(item); end
164
+
165
+ # Returns the value of attribute configuration_hash.
166
+ #
167
+ # source://ruboclean//lib/ruboclean/path_cleanup.rb#28
168
+ def configuration_hash; end
169
+
170
+ # @return [Boolean]
171
+ #
172
+ # source://ruboclean//lib/ruboclean/path_cleanup.rb#60
173
+ def path_exists?(item); end
174
+
175
+ # source://ruboclean//lib/ruboclean/path_cleanup.rb#51
176
+ def process_cop_property(cop_property_key, cop_property_value); end
177
+
178
+ # top_level_value could be something like this:
179
+ #
180
+ # {
181
+ # Include: [...],
182
+ # Exclude: [...],
183
+ # EnforcedStyle: "..."
184
+ # }
185
+ #
186
+ # We process it further in case of a Hash.
187
+ #
188
+ # source://ruboclean//lib/ruboclean/path_cleanup.rb#39
189
+ def process_top_level_value(top_level_value); end
190
+
191
+ # We don't support Regexp, so we just say it exists.
192
+ #
193
+ # @return [Boolean]
194
+ #
195
+ # source://ruboclean//lib/ruboclean/path_cleanup.rb#75
196
+ def regexp_pattern?(item); end
197
+
198
+ # Returns the value of attribute root_directory.
199
+ #
200
+ # source://ruboclean//lib/ruboclean/path_cleanup.rb#28
201
+ def root_directory; end
202
+
203
+ # @return [Boolean]
204
+ #
205
+ # source://ruboclean//lib/ruboclean/path_cleanup.rb#66
206
+ def specific_path_exists?(item); end
207
+ end
208
+
209
+ # Entry point for processing
210
+ #
211
+ # source://ruboclean//lib/ruboclean/runner.rb#8
212
+ class Ruboclean::Runner
213
+ # @return [Runner] a new instance of Runner
214
+ #
215
+ # source://ruboclean//lib/ruboclean/runner.rb#9
216
+ def initialize(args = T.unsafe(nil)); end
217
+
218
+ # @return [Boolean]
219
+ #
220
+ # source://ruboclean//lib/ruboclean/runner.rb#23
221
+ def changed?(target_yaml); end
222
+
223
+ # source://ruboclean//lib/ruboclean/runner.rb#35
224
+ def path; end
225
+
226
+ # source://ruboclean//lib/ruboclean/runner.rb#13
227
+ def run!; end
228
+
229
+ # @return [Boolean]
230
+ #
231
+ # source://ruboclean//lib/ruboclean/runner.rb#27
232
+ def verbose?; end
233
+
234
+ # @return [Boolean]
235
+ #
236
+ # source://ruboclean//lib/ruboclean/runner.rb#31
237
+ def verify?; end
238
+
239
+ private
240
+
241
+ # source://ruboclean//lib/ruboclean/runner.rb#55
242
+ def cleanup_paths(configuration_hash); end
243
+
244
+ # Returns the value of attribute cli_arguments.
245
+ #
246
+ # source://ruboclean//lib/ruboclean/runner.rb#41
247
+ def cli_arguments; end
248
+
249
+ # source://ruboclean//lib/ruboclean/runner.rb#61
250
+ def convert_to_yaml(configuration_hash); end
251
+
252
+ # @raise [ArgumentError]
253
+ #
254
+ # source://ruboclean//lib/ruboclean/runner.rb#75
255
+ def find_source_file_pathname; end
256
+
257
+ # source://ruboclean//lib/ruboclean/runner.rb#47
258
+ def load_file; end
259
+
260
+ # source://ruboclean//lib/ruboclean/runner.rb#51
261
+ def order(configuration_hash); end
262
+
263
+ # source://ruboclean//lib/ruboclean/runner.rb#71
264
+ def source_file_pathname; end
265
+
266
+ # source://ruboclean//lib/ruboclean/runner.rb#43
267
+ def source_yaml; end
268
+
269
+ # source://ruboclean//lib/ruboclean/runner.rb#65
270
+ def write_file!(target_yaml); end
271
+ end
272
+
273
+ # Converts the configuration hash to YAML and applies modifications on it, if requested
274
+ #
275
+ # source://ruboclean//lib/ruboclean/to_yaml_converter.rb#5
276
+ class Ruboclean::ToYamlConverter
277
+ # @return [ToYamlConverter] a new instance of ToYamlConverter
278
+ #
279
+ # source://ruboclean//lib/ruboclean/to_yaml_converter.rb#6
280
+ def initialize(configuration_hash, preserve_comments, source_yaml); end
281
+
282
+ # source://ruboclean//lib/ruboclean/to_yaml_converter.rb#12
283
+ def to_yaml; end
284
+
285
+ private
286
+
287
+ # Returns the value of attribute configuration_hash.
288
+ #
289
+ # source://ruboclean//lib/ruboclean/to_yaml_converter.rb#22
290
+ def configuration_hash; end
291
+
292
+ # Returns the value of attribute preserve_comments.
293
+ #
294
+ # source://ruboclean//lib/ruboclean/to_yaml_converter.rb#22
295
+ def preserve_comments; end
296
+
297
+ # @return [Boolean]
298
+ #
299
+ # source://ruboclean//lib/ruboclean/to_yaml_converter.rb#24
300
+ def preserve_comments?; end
301
+
302
+ # source://ruboclean//lib/ruboclean/to_yaml_converter.rb#32
303
+ def preserve_preceding_comments(source, target); end
304
+
305
+ # source://ruboclean//lib/ruboclean/to_yaml_converter.rb#28
306
+ def sanitize_yaml(data); end
307
+
308
+ # Returns the value of attribute source_yaml.
309
+ #
310
+ # source://ruboclean//lib/ruboclean/to_yaml_converter.rb#22
311
+ def source_yaml; end
312
+ end
313
+
314
+ # source://ruboclean//lib/ruboclean/version.rb#4
315
+ Ruboclean::VERSION = T.let(T.unsafe(nil), String)