sorbet-result 1.0.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/.standard.yml +6 -0
  4. data/.tool-versions +1 -1
  5. data/CHANGELOG.md +21 -0
  6. data/Gemfile +3 -5
  7. data/Gemfile.lock +79 -64
  8. data/README.md +25 -2
  9. data/Rakefile +3 -5
  10. data/lib/minitest/result_assertions.rb +48 -0
  11. data/lib/sorbet-result.rb +1 -5
  12. data/lib/typed/result.rb +199 -7
  13. data/sorbet/rbi/gems/.gitattributes +1 -0
  14. data/sorbet/rbi/gems/ast@2.4.2.rbi +1 -0
  15. data/sorbet/rbi/gems/erubi@1.13.0.rbi +150 -0
  16. data/sorbet/rbi/gems/{io-console@0.6.0.rbi → io-console@0.7.2.rbi} +1 -0
  17. data/sorbet/rbi/gems/{json@2.6.3.rbi → json@2.7.5.rbi} +168 -72
  18. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14238 -0
  19. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +240 -0
  20. data/sorbet/rbi/gems/{minitest@5.18.1.rbi → minitest@5.25.1.rbi} +337 -282
  21. data/sorbet/rbi/gems/netrc@0.11.0.rbi +1 -0
  22. data/sorbet/rbi/gems/{parallel@1.23.0.rbi → parallel@1.26.3.rbi} +38 -20
  23. data/sorbet/rbi/gems/{parser@3.2.2.3.rbi → parser@3.3.5.1.rbi} +663 -2397
  24. data/sorbet/rbi/gems/prism@1.2.0.rbi +39085 -0
  25. data/sorbet/rbi/gems/psych@5.1.2.rbi +1732 -0
  26. data/sorbet/rbi/gems/{racc@1.7.1.rbi → racc@1.8.1.rbi} +37 -36
  27. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +1 -0
  28. data/sorbet/rbi/gems/{rake@13.0.6.rbi → rake@13.2.1.rbi} +79 -75
  29. data/sorbet/rbi/gems/rbi@0.2.1.rbi +4535 -0
  30. data/sorbet/rbi/gems/{regexp_parser@2.8.1.rbi → regexp_parser@2.9.2.rbi} +190 -167
  31. data/sorbet/rbi/gems/{reline@0.3.5.rbi → reline@0.5.10.rbi} +1 -0
  32. data/sorbet/rbi/gems/{rubocop-ast@1.29.0.rbi → rubocop-ast@1.33.1.rbi} +1220 -748
  33. data/sorbet/rbi/gems/rubocop-performance@1.22.1.rbi +9 -0
  34. data/sorbet/rbi/gems/rubocop-sorbet@0.7.8.rbi +9 -0
  35. data/sorbet/rbi/gems/{rubocop@1.52.1.rbi → rubocop@1.66.1.rbi} +6236 -3446
  36. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1 -0
  37. data/sorbet/rbi/gems/spoom@1.5.0.rbi +4932 -0
  38. data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +9 -0
  39. data/sorbet/rbi/gems/standard-performance@1.5.0.rbi +9 -0
  40. data/sorbet/rbi/gems/standard-sorbet@0.0.2.rbi +53 -0
  41. data/sorbet/rbi/gems/standard@1.41.1.rbi +926 -0
  42. data/sorbet/rbi/gems/stringio@3.1.1.rbi +9 -0
  43. data/sorbet/rbi/gems/{tapioca@0.11.6.rbi → tapioca@0.16.3.rbi} +937 -635
  44. data/sorbet/rbi/gems/{thor@1.2.2.rbi → thor@1.3.2.rbi} +832 -419
  45. data/sorbet/rbi/gems/{unicode-display_width@2.4.2.rbi → unicode-display_width@2.6.0.rbi} +1 -0
  46. data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
  47. data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.37.rbi} +431 -271
  48. data/sorbet/tapioca/config.yml +3 -12
  49. data/sorbet/tapioca/require.rb +0 -1
  50. metadata +37 -47
  51. data/.rubocop.yml +0 -33
  52. data/lib/typed/failure.rb +0 -81
  53. data/lib/typed/success.rb +0 -80
  54. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +0 -1083
  55. data/sorbet/rbi/gems/irb@1.7.0.rbi +0 -342
  56. data/sorbet/rbi/gems/rbi@0.0.16.rbi +0 -3008
  57. data/sorbet/rbi/gems/rexml@3.2.5.rbi +0 -4717
  58. data/sorbet/rbi/gems/rubocop-minitest@0.31.0.rbi +0 -2528
  59. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +0 -328
  60. data/sorbet/rbi/gems/rubocop-sorbet@0.7.0.rbi +0 -1043
  61. data/sorbet/rbi/gems/spoom@1.2.1.rbi +0 -2503
  62. data/sorbet/rbi/gems/unparser@0.6.8.rbi +0 -4525
  63. data/sorbet/rbi/gems/zeitwerk@2.6.8.rbi +0 -986
@@ -0,0 +1,240 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `lint_roller` gem.
5
+ # Please instead update this file by running `bin/tapioca gem lint_roller`.
6
+
7
+
8
+ # source://lint_roller//lib/lint_roller/version.rb#1
9
+ module LintRoller; end
10
+
11
+ # source://lint_roller//lib/lint_roller/about.rb#2
12
+ class LintRoller::About < ::Struct
13
+ # Returns the value of attribute description
14
+ #
15
+ # @return [Object] the current value of description
16
+ def description; end
17
+
18
+ # Sets the attribute description
19
+ #
20
+ # @param value [Object] the value to set the attribute description to.
21
+ # @return [Object] the newly set value
22
+ def description=(_); end
23
+
24
+ # Returns the value of attribute homepage
25
+ #
26
+ # @return [Object] the current value of homepage
27
+ def homepage; end
28
+
29
+ # Sets the attribute homepage
30
+ #
31
+ # @param value [Object] the value to set the attribute homepage to.
32
+ # @return [Object] the newly set value
33
+ def homepage=(_); end
34
+
35
+ # Returns the value of attribute name
36
+ #
37
+ # @return [Object] the current value of name
38
+ def name; end
39
+
40
+ # Sets the attribute name
41
+ #
42
+ # @param value [Object] the value to set the attribute name to.
43
+ # @return [Object] the newly set value
44
+ def name=(_); end
45
+
46
+ # Returns the value of attribute version
47
+ #
48
+ # @return [Object] the current value of version
49
+ def version; end
50
+
51
+ # Sets the attribute version
52
+ #
53
+ # @param value [Object] the value to set the attribute version to.
54
+ # @return [Object] the newly set value
55
+ def version=(_); end
56
+
57
+ class << self
58
+ def [](*_arg0); end
59
+ def inspect; end
60
+ def keyword_init?; end
61
+ def members; end
62
+ def new(*_arg0); end
63
+ end
64
+ end
65
+
66
+ # source://lint_roller//lib/lint_roller/context.rb#2
67
+ class LintRoller::Context < ::Struct
68
+ # Returns the value of attribute engine
69
+ #
70
+ # @return [Object] the current value of engine
71
+ def engine; end
72
+
73
+ # Sets the attribute engine
74
+ #
75
+ # @param value [Object] the value to set the attribute engine to.
76
+ # @return [Object] the newly set value
77
+ def engine=(_); end
78
+
79
+ # Returns the value of attribute engine_version
80
+ #
81
+ # @return [Object] the current value of engine_version
82
+ def engine_version; end
83
+
84
+ # Sets the attribute engine_version
85
+ #
86
+ # @param value [Object] the value to set the attribute engine_version to.
87
+ # @return [Object] the newly set value
88
+ def engine_version=(_); end
89
+
90
+ # Returns the value of attribute rule_format
91
+ #
92
+ # @return [Object] the current value of rule_format
93
+ def rule_format; end
94
+
95
+ # Sets the attribute rule_format
96
+ #
97
+ # @param value [Object] the value to set the attribute rule_format to.
98
+ # @return [Object] the newly set value
99
+ def rule_format=(_); end
100
+
101
+ # Returns the value of attribute runner
102
+ #
103
+ # @return [Object] the current value of runner
104
+ def runner; end
105
+
106
+ # Sets the attribute runner
107
+ #
108
+ # @param value [Object] the value to set the attribute runner to.
109
+ # @return [Object] the newly set value
110
+ def runner=(_); end
111
+
112
+ # Returns the value of attribute runner_version
113
+ #
114
+ # @return [Object] the current value of runner_version
115
+ def runner_version; end
116
+
117
+ # Sets the attribute runner_version
118
+ #
119
+ # @param value [Object] the value to set the attribute runner_version to.
120
+ # @return [Object] the newly set value
121
+ def runner_version=(_); end
122
+
123
+ # Returns the value of attribute target_ruby_version
124
+ #
125
+ # @return [Object] the current value of target_ruby_version
126
+ def target_ruby_version; end
127
+
128
+ # Sets the attribute target_ruby_version
129
+ #
130
+ # @param value [Object] the value to set the attribute target_ruby_version to.
131
+ # @return [Object] the newly set value
132
+ def target_ruby_version=(_); end
133
+
134
+ class << self
135
+ def [](*_arg0); end
136
+ def inspect; end
137
+ def keyword_init?; end
138
+ def members; end
139
+ def new(*_arg0); end
140
+ end
141
+ end
142
+
143
+ # source://lint_roller//lib/lint_roller/error.rb#2
144
+ class LintRoller::Error < ::StandardError; end
145
+
146
+ # source://lint_roller//lib/lint_roller/plugin.rb#2
147
+ class LintRoller::Plugin
148
+ # `config' is a Hash of options passed to the plugin by the user
149
+ #
150
+ # @return [Plugin] a new instance of Plugin
151
+ #
152
+ # source://lint_roller//lib/lint_roller/plugin.rb#4
153
+ def initialize(config = T.unsafe(nil)); end
154
+
155
+ # @raise [Error]
156
+ #
157
+ # source://lint_roller//lib/lint_roller/plugin.rb#8
158
+ def about; end
159
+
160
+ # `context' is an instance of LintRoller::Context provided by the runner
161
+ #
162
+ # @raise [Error]
163
+ #
164
+ # source://lint_roller//lib/lint_roller/plugin.rb#18
165
+ def rules(context); end
166
+
167
+ # `context' is an instance of LintRoller::Context provided by the runner
168
+ #
169
+ # @return [Boolean]
170
+ #
171
+ # source://lint_roller//lib/lint_roller/plugin.rb#13
172
+ def supported?(context); end
173
+ end
174
+
175
+ # source://lint_roller//lib/lint_roller/rules.rb#2
176
+ class LintRoller::Rules < ::Struct
177
+ # Returns the value of attribute config_format
178
+ #
179
+ # @return [Object] the current value of config_format
180
+ def config_format; end
181
+
182
+ # Sets the attribute config_format
183
+ #
184
+ # @param value [Object] the value to set the attribute config_format to.
185
+ # @return [Object] the newly set value
186
+ def config_format=(_); end
187
+
188
+ # Returns the value of attribute error
189
+ #
190
+ # @return [Object] the current value of error
191
+ def error; end
192
+
193
+ # Sets the attribute error
194
+ #
195
+ # @param value [Object] the value to set the attribute error to.
196
+ # @return [Object] the newly set value
197
+ def error=(_); end
198
+
199
+ # Returns the value of attribute type
200
+ #
201
+ # @return [Object] the current value of type
202
+ def type; end
203
+
204
+ # Sets the attribute type
205
+ #
206
+ # @param value [Object] the value to set the attribute type to.
207
+ # @return [Object] the newly set value
208
+ def type=(_); end
209
+
210
+ # Returns the value of attribute value
211
+ #
212
+ # @return [Object] the current value of value
213
+ def value; end
214
+
215
+ # Sets the attribute value
216
+ #
217
+ # @param value [Object] the value to set the attribute value to.
218
+ # @return [Object] the newly set value
219
+ def value=(_); end
220
+
221
+ class << self
222
+ def [](*_arg0); end
223
+ def inspect; end
224
+ def keyword_init?; end
225
+ def members; end
226
+ def new(*_arg0); end
227
+ end
228
+ end
229
+
230
+ # source://lint_roller//lib/lint_roller/support/merges_upstream_metadata.rb#2
231
+ module LintRoller::Support; end
232
+
233
+ # source://lint_roller//lib/lint_roller/support/merges_upstream_metadata.rb#3
234
+ class LintRoller::Support::MergesUpstreamMetadata
235
+ # source://lint_roller//lib/lint_roller/support/merges_upstream_metadata.rb#4
236
+ def merge(plugin_yaml, upstream_yaml); end
237
+ end
238
+
239
+ # source://lint_roller//lib/lint_roller/version.rb#2
240
+ LintRoller::VERSION = T.let(T.unsafe(nil), String)