mangrove 0.31.0 → 0.35.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -0
  3. data/README.md +131 -41
  4. data/lib/mangrove/result/ext.rb +18 -0
  5. data/lib/mangrove/result.rb +51 -0
  6. data/lib/mangrove/version.rb +1 -1
  7. data/lib/tapioca/dsl/compilers/mangrove_result_ext.rb +40 -0
  8. data/sorbet/config +1 -0
  9. data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
  10. data/sorbet/rbi/gems/date@3.4.1.rbi +75 -0
  11. data/sorbet/rbi/gems/{docile@1.4.0.rbi → docile@1.4.1.rbi} +2 -1
  12. data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.1.rbi} +26 -17
  13. data/sorbet/rbi/gems/{json@2.7.2.rbi → json@2.9.1.rbi} +516 -134
  14. data/sorbet/rbi/gems/logger@1.6.5.rbi +940 -0
  15. data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.26.3.rbi} +31 -21
  16. data/sorbet/rbi/gems/{parser@3.3.2.0.rbi → parser@3.3.7.0.rbi} +23 -1736
  17. data/sorbet/rbi/gems/{prism@0.29.0.rbi → prism@1.3.0.rbi} +13817 -10401
  18. data/sorbet/rbi/gems/{psych@5.1.2.rbi → psych@5.2.3.rbi} +289 -236
  19. data/sorbet/rbi/gems/{racc@1.8.0.rbi → racc@1.8.1.rbi} +0 -4
  20. data/sorbet/rbi/gems/rbi@0.2.3.rbi +4542 -0
  21. data/sorbet/rbi/gems/rbs@3.8.1.rbi +6882 -0
  22. data/sorbet/rbi/gems/{rdoc@6.7.0.rbi → rdoc@6.11.0.rbi} +1115 -1058
  23. data/sorbet/rbi/gems/{regexp_parser@2.9.2.rbi → regexp_parser@2.10.0.rbi} +193 -170
  24. data/sorbet/rbi/gems/{rspec-core@3.13.0.rbi → rspec-core@3.13.2.rbi} +146 -280
  25. data/sorbet/rbi/gems/{rspec-expectations@3.13.0.rbi → rspec-expectations@3.13.3.rbi} +323 -294
  26. data/sorbet/rbi/gems/{rspec-mocks@3.13.1.rbi → rspec-mocks@3.13.2.rbi} +46 -46
  27. data/sorbet/rbi/gems/{rspec-support@3.13.1.rbi → rspec-support@3.13.2.rbi} +22 -22
  28. data/sorbet/rbi/gems/ruboclean@0.7.1.rbi +473 -0
  29. data/sorbet/rbi/gems/{rubocop-ast@1.31.3.rbi → rubocop-ast@1.37.0.rbi} +1293 -745
  30. data/sorbet/rbi/gems/{rubocop-rspec@2.30.0.rbi → rubocop-rspec@3.4.0.rbi} +341 -1073
  31. data/sorbet/rbi/gems/{rubocop@1.64.1.rbi → rubocop@1.70.0.rbi} +5693 -3796
  32. data/sorbet/rbi/gems/{simplecov-html@0.12.3.rbi → simplecov-html@0.13.1.rbi} +77 -68
  33. data/sorbet/rbi/gems/{spoom@1.3.2.rbi → spoom@1.5.1.rbi} +2306 -1701
  34. data/sorbet/rbi/gems/{stringio@3.1.0.rbi → stringio@3.1.2.rbi} +1 -0
  35. data/sorbet/rbi/gems/{tapioca@0.14.3.rbi → tapioca@0.16.8.rbi} +411 -332
  36. data/sorbet/rbi/gems/{thor@1.3.1.rbi → thor@1.3.2.rbi} +57 -31
  37. data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
  38. data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
  39. data/sorbet/rbi/gems/{webrick@1.8.1.rbi → webrick@1.9.1.rbi} +92 -72
  40. data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
  41. data/sorbet/rbi/gems/{yard@0.9.36.rbi → yard@0.9.37.rbi} +393 -235
  42. metadata +41 -42
  43. data/sorbet/rbi/gems/rbi@0.1.13.rbi +0 -3078
  44. data/sorbet/rbi/gems/rexml@3.2.8.rbi +0 -4794
  45. data/sorbet/rbi/gems/ruboclean@0.6.0.rbi +0 -315
  46. data/sorbet/rbi/gems/rubocop-capybara@2.20.0.rbi +0 -1208
  47. data/sorbet/rbi/gems/rubocop-factory_bot@2.25.1.rbi +0 -928
  48. data/sorbet/rbi/gems/rubocop-rspec_rails@2.28.3.rbi +0 -911
  49. data/sorbet/rbi/gems/strscan@3.1.0.rbi +0 -9
  50. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
  51. /data/sorbet/rbi/gems/{io-console@0.7.2.rbi → io-console@0.8.0.rbi} +0 -0
  52. /data/sorbet/rbi/gems/{reline@0.5.8.rbi → reline@0.6.0.rbi} +0 -0
  53. /data/sorbet/rbi/gems/{ruby-lsp@0.17.2.rbi → ruby-lsp@0.23.6.rbi} +0 -0
@@ -4,129 +4,130 @@
4
4
  # This is an autogenerated file for types exported from the `simplecov-html` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem simplecov-html`.
6
6
 
7
+
7
8
  # source://simplecov-html//lib/simplecov-html.rb#16
8
9
  module SimpleCov
9
10
  class << self
10
- # source://simplecov/0.21.2/lib/simplecov.rb#174
11
+ # source://simplecov/0.22.0/lib/simplecov.rb#174
11
12
  def at_exit_behavior; end
12
13
 
13
- # source://simplecov/0.21.2/lib/simplecov.rb#170
14
+ # source://simplecov/0.22.0/lib/simplecov.rb#170
14
15
  def clear_result; end
15
16
 
16
- # source://simplecov/0.21.2/lib/simplecov.rb#86
17
+ # source://simplecov/0.22.0/lib/simplecov.rb#86
17
18
  def collate(result_filenames, profile = T.unsafe(nil), ignore_timeout: T.unsafe(nil), &block); end
18
19
 
19
- # source://simplecov/0.21.2/lib/simplecov.rb#223
20
+ # source://simplecov/0.22.0/lib/simplecov.rb#223
20
21
  def exit_and_report_previous_error(exit_status); end
21
22
 
22
- # source://simplecov/0.21.2/lib/simplecov.rb#200
23
+ # source://simplecov/0.22.0/lib/simplecov.rb#200
23
24
  def exit_status_from_exception; end
24
25
 
25
- # source://simplecov/0.21.2/lib/simplecov.rb#28
26
+ # source://simplecov/0.22.0/lib/simplecov.rb#28
26
27
  def external_at_exit; end
27
28
 
28
- # source://simplecov/0.21.2/lib/simplecov.rb#28
29
+ # source://simplecov/0.22.0/lib/simplecov.rb#28
29
30
  def external_at_exit=(_arg0); end
30
31
 
31
- # source://simplecov/0.21.2/lib/simplecov.rb#28
32
+ # source://simplecov/0.22.0/lib/simplecov.rb#28
32
33
  def external_at_exit?; end
33
34
 
34
- # source://simplecov/0.21.2/lib/simplecov.rb#131
35
+ # source://simplecov/0.22.0/lib/simplecov.rb#131
35
36
  def filtered(files); end
36
37
 
37
- # source://simplecov/0.21.2/lib/simplecov.rb#268
38
+ # source://simplecov/0.22.0/lib/simplecov.rb#268
38
39
  def final_result_process?; end
39
40
 
40
- # source://simplecov/0.21.2/lib/simplecov.rb#142
41
+ # source://simplecov/0.22.0/lib/simplecov.rb#142
41
42
  def grouped(files); end
42
43
 
43
- # source://simplecov/0.21.2/lib/simplecov.rb#162
44
+ # source://simplecov/0.22.0/lib/simplecov.rb#162
44
45
  def load_adapter(name); end
45
46
 
46
- # source://simplecov/0.21.2/lib/simplecov.rb#158
47
+ # source://simplecov/0.22.0/lib/simplecov.rb#158
47
48
  def load_profile(name); end
48
49
 
49
- # source://simplecov/0.21.2/lib/simplecov.rb#24
50
+ # source://simplecov/0.22.0/lib/simplecov.rb#24
50
51
  def pid; end
51
52
 
52
- # source://simplecov/0.21.2/lib/simplecov.rb#24
53
+ # source://simplecov/0.22.0/lib/simplecov.rb#24
53
54
  def pid=(_arg0); end
54
55
 
55
- # source://simplecov/0.21.2/lib/simplecov.rb#213
56
+ # source://simplecov/0.22.0/lib/simplecov.rb#213
56
57
  def previous_error?(error_exit_status); end
57
58
 
58
- # source://simplecov/0.21.2/lib/simplecov.rb#248
59
+ # source://simplecov/0.22.0/lib/simplecov.rb#248
59
60
  def process_result(result); end
60
61
 
61
- # source://simplecov/0.21.2/lib/simplecov.rb#233
62
+ # source://simplecov/0.22.0/lib/simplecov.rb#233
62
63
  def process_results_and_report_error; end
63
64
 
64
- # source://simplecov/0.21.2/lib/simplecov.rb#229
65
+ # source://simplecov/0.22.0/lib/simplecov.rb#229
65
66
  def ready_to_process_results?; end
66
67
 
67
- # source://simplecov/0.21.2/lib/simplecov.rb#101
68
+ # source://simplecov/0.22.0/lib/simplecov.rb#101
68
69
  def result; end
69
70
 
70
- # source://simplecov/0.21.2/lib/simplecov.rb#124
71
+ # source://simplecov/0.22.0/lib/simplecov.rb#124
71
72
  def result?; end
72
73
 
73
- # source://simplecov/0.21.2/lib/simplecov.rb#256
74
+ # source://simplecov/0.22.0/lib/simplecov.rb#256
74
75
  def result_exit_status(result); end
75
76
 
76
- # source://simplecov/0.21.2/lib/simplecov.rb#296
77
+ # source://simplecov/0.22.0/lib/simplecov.rb#296
77
78
  def round_coverage(coverage); end
78
79
 
79
- # source://simplecov/0.21.2/lib/simplecov.rb#186
80
+ # source://simplecov/0.22.0/lib/simplecov.rb#186
80
81
  def run_exit_tasks!; end
81
82
 
82
- # source://simplecov/0.21.2/lib/simplecov.rb#24
83
+ # source://simplecov/0.22.0/lib/simplecov.rb#24
83
84
  def running; end
84
85
 
85
- # source://simplecov/0.21.2/lib/simplecov.rb#24
86
+ # source://simplecov/0.22.0/lib/simplecov.rb#24
86
87
  def running=(_arg0); end
87
88
 
88
- # source://simplecov/0.21.2/lib/simplecov.rb#48
89
+ # source://simplecov/0.22.0/lib/simplecov.rb#48
89
90
  def start(profile = T.unsafe(nil), &block); end
90
91
 
91
- # source://simplecov/0.21.2/lib/simplecov.rb#276
92
+ # source://simplecov/0.22.0/lib/simplecov.rb#276
92
93
  def wait_for_other_processes; end
93
94
 
94
- # source://simplecov/0.21.2/lib/simplecov.rb#285
95
+ # source://simplecov/0.22.0/lib/simplecov.rb#285
95
96
  def write_last_run(result); end
96
97
 
97
98
  private
98
99
 
99
- # source://simplecov/0.21.2/lib/simplecov.rb#397
100
+ # source://simplecov/0.22.0/lib/simplecov.rb#399
100
101
  def adapt_coverage_result; end
101
102
 
102
- # source://simplecov/0.21.2/lib/simplecov.rb#369
103
+ # source://simplecov/0.22.0/lib/simplecov.rb#371
103
104
  def add_not_loaded_files(result); end
104
105
 
105
- # source://simplecov/0.21.2/lib/simplecov.rb#302
106
+ # source://simplecov/0.22.0/lib/simplecov.rb#302
106
107
  def initial_setup(profile, &block); end
107
108
 
108
- # source://simplecov/0.21.2/lib/simplecov.rb#361
109
+ # source://simplecov/0.22.0/lib/simplecov.rb#363
109
110
  def lookup_corresponding_ruby_coverage_name(criterion); end
110
111
 
111
- # source://simplecov/0.21.2/lib/simplecov.rb#423
112
+ # source://simplecov/0.22.0/lib/simplecov.rb#425
112
113
  def make_parallel_tests_available; end
113
114
 
114
- # source://simplecov/0.21.2/lib/simplecov.rb#432
115
+ # source://simplecov/0.22.0/lib/simplecov.rb#434
115
116
  def probably_running_parallel_tests?; end
116
117
 
117
- # source://simplecov/0.21.2/lib/simplecov.rb#386
118
+ # source://simplecov/0.22.0/lib/simplecov.rb#388
118
119
  def process_coverage_result; end
119
120
 
120
- # source://simplecov/0.21.2/lib/simplecov.rb#408
121
+ # source://simplecov/0.22.0/lib/simplecov.rb#410
121
122
  def remove_useless_results; end
122
123
 
123
- # source://simplecov/0.21.2/lib/simplecov.rb#418
124
+ # source://simplecov/0.22.0/lib/simplecov.rb#420
124
125
  def result_with_not_loaded_files; end
125
126
 
126
- # source://simplecov/0.21.2/lib/simplecov.rb#314
127
+ # source://simplecov/0.22.0/lib/simplecov.rb#314
127
128
  def start_coverage_measurement; end
128
129
 
129
- # source://simplecov/0.21.2/lib/simplecov.rb#349
130
+ # source://simplecov/0.22.0/lib/simplecov.rb#349
130
131
  def start_coverage_with_criteria; end
131
132
  end
132
133
  end
@@ -134,7 +135,7 @@ end
134
135
  # source://simplecov-html//lib/simplecov-html.rb#17
135
136
  module SimpleCov::Formatter
136
137
  class << self
137
- # source://simplecov/0.21.2/lib/simplecov/default_formatter.rb#7
138
+ # source://simplecov/0.22.0/lib/simplecov/default_formatter.rb#7
138
139
  def from_env(env); end
139
140
  end
140
141
  end
@@ -146,71 +147,79 @@ class SimpleCov::Formatter::HTMLFormatter
146
147
  # source://simplecov-html//lib/simplecov-html.rb#19
147
148
  def initialize; end
148
149
 
149
- # @return [Boolean]
150
- #
151
- # source://simplecov-html//lib/simplecov-html.rb#38
152
- def branchable_result?; end
153
-
154
- # source://simplecov-html//lib/simplecov-html.rb#23
150
+ # source://simplecov-html//lib/simplecov-html.rb#26
155
151
  def format(result); end
156
152
 
157
- # @return [Boolean]
158
- #
159
- # source://simplecov-html//lib/simplecov-html.rb#45
160
- def line_status?(source_file, line); end
161
-
162
- # source://simplecov-html//lib/simplecov-html.rb#34
163
- def output_message(result); end
164
-
165
153
  private
166
154
 
167
- # source://simplecov-html//lib/simplecov-html.rb#64
168
- def asset_output_path; end
155
+ # source://simplecov-html//lib/simplecov-html.rb#94
156
+ def asset_inline(name); end
169
157
 
170
158
  # source://simplecov-html//lib/simplecov-html.rb#72
159
+ def asset_output_path; end
160
+
161
+ # source://simplecov-html//lib/simplecov-html.rb#80
171
162
  def assets_path(name); end
172
163
 
173
- # source://simplecov-html//lib/simplecov-html.rb#97
164
+ # @return [Boolean]
165
+ #
166
+ # source://simplecov-html//lib/simplecov-html.rb#41
167
+ def branchable_result?; end
168
+
169
+ # source://simplecov-html//lib/simplecov-html.rb#125
174
170
  def coverage_css_class(covered_percent); end
175
171
 
176
- # source://simplecov-html//lib/simplecov-html.rb#93
172
+ # source://simplecov-html//lib/simplecov-html.rb#121
177
173
  def covered_percent(percent); end
178
174
 
179
175
  # Returns a table containing the given source files
180
176
  #
181
- # source://simplecov-html//lib/simplecov-html.rb#84
177
+ # source://simplecov-html//lib/simplecov-html.rb#112
182
178
  def formatted_file_list(title, source_files); end
183
179
 
184
180
  # Returns the html for the given source_file
185
181
  #
186
- # source://simplecov-html//lib/simplecov-html.rb#77
182
+ # source://simplecov-html//lib/simplecov-html.rb#105
187
183
  def formatted_source_file(source_file); end
188
184
 
189
185
  # Return a (kind of) unique id for the source file given. Uses SHA1 on path for the id
190
186
  #
191
- # source://simplecov-html//lib/simplecov-html.rb#118
187
+ # source://simplecov-html//lib/simplecov-html.rb#146
192
188
  def id(source_file); end
193
189
 
194
- # source://simplecov-html//lib/simplecov-html.rb#130
190
+ # @return [Boolean]
191
+ #
192
+ # source://simplecov-html//lib/simplecov-html.rb#48
193
+ def line_status?(source_file, line); end
194
+
195
+ # source://simplecov-html//lib/simplecov-html.rb#158
195
196
  def link_to_source_file(source_file); end
196
197
 
197
- # source://simplecov-html//lib/simplecov-html.rb#60
198
+ # source://simplecov-html//lib/simplecov-html.rb#56
199
+ def output_message(result); end
200
+
201
+ # source://simplecov-html//lib/simplecov-html.rb#68
198
202
  def output_path; end
199
203
 
200
- # source://simplecov-html//lib/simplecov-html.rb#126
204
+ # source://simplecov-html//lib/simplecov-html.rb#154
201
205
  def shortened_filename(source_file); end
202
206
 
203
- # source://simplecov-html//lib/simplecov-html.rb#107
207
+ # source://simplecov-html//lib/simplecov-html.rb#135
204
208
  def strength_css_class(covered_strength); end
205
209
 
206
210
  # Returns the an erb instance for the template of given name
207
211
  #
208
- # source://simplecov-html//lib/simplecov-html.rb#56
212
+ # source://simplecov-html//lib/simplecov-html.rb#64
209
213
  def template(name); end
210
214
 
211
- # source://simplecov-html//lib/simplecov-html.rb#122
215
+ # source://simplecov-html//lib/simplecov-html.rb#150
212
216
  def timeago(time); end
213
217
  end
214
218
 
219
+ # Only have a few content types, just hardcode them
220
+ #
221
+ # source://simplecov-html//lib/simplecov-html.rb#87
222
+ SimpleCov::Formatter::HTMLFormatter::CONTENT_TYPES = T.let(T.unsafe(nil), Hash)
223
+
215
224
  # source://simplecov-html//lib/simplecov-html/version.rb#6
216
225
  SimpleCov::Formatter::HTMLFormatter::VERSION = T.let(T.unsafe(nil), String)