sorbet-result 0.3.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.standard.yml +6 -0
- data/.tool-versions +1 -1
- data/CHANGELOG.md +16 -0
- data/Gemfile +2 -4
- data/Gemfile.lock +75 -55
- data/README.md +23 -0
- data/Rakefile +3 -5
- data/lib/minitest/result_assertions.rb +48 -0
- data/lib/sorbet-result.rb +1 -5
- data/lib/typed/result.rb +169 -7
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/erubi@1.12.0.rbi +145 -0
- data/sorbet/rbi/gems/{json@2.6.3.rbi → json@2.7.1.rbi} +80 -60
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +239 -0
- data/sorbet/rbi/gems/{minitest@5.18.1.rbi → minitest@5.22.2.rbi} +285 -241
- data/sorbet/rbi/gems/{parallel@1.23.0.rbi → parallel@1.24.0.rbi} +8 -1
- data/sorbet/rbi/gems/{parser@3.2.2.3.rbi → parser@3.3.0.5.rbi} +438 -2219
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
- data/sorbet/rbi/gems/prism@0.24.0.rbi +31040 -0
- data/sorbet/rbi/gems/psych@5.1.2.rbi +1731 -0
- data/sorbet/rbi/gems/{racc@1.7.1.rbi → racc@1.7.3.rbi} +35 -39
- data/sorbet/rbi/gems/{rake@13.0.6.rbi → rake@13.1.0.rbi} +68 -65
- data/sorbet/rbi/gems/{rbi@0.0.16.rbi → rbi@0.1.9.rbi} +712 -714
- data/sorbet/rbi/gems/{regexp_parser@2.8.1.rbi → regexp_parser@2.9.0.rbi} +187 -165
- data/sorbet/rbi/gems/{rexml@3.2.5.rbi → rexml@3.2.6.rbi} +116 -52
- data/sorbet/rbi/gems/{rubocop-ast@1.29.0.rbi → rubocop-ast@1.30.0.rbi} +77 -77
- data/sorbet/rbi/gems/rubocop-performance@1.20.2.rbi +8 -0
- data/sorbet/rbi/gems/rubocop-sorbet@0.7.7.rbi +8 -0
- data/sorbet/rbi/gems/{rubocop@1.52.1.rbi → rubocop@1.60.2.rbi} +3593 -1700
- data/sorbet/rbi/gems/{spoom@1.2.1.rbi → spoom@1.2.4.rbi} +1378 -104
- data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +8 -0
- data/sorbet/rbi/gems/standard-performance@1.3.1.rbi +8 -0
- data/sorbet/rbi/gems/standard-sorbet@0.0.2.rbi +52 -0
- data/sorbet/rbi/gems/standard@1.34.0.rbi +850 -0
- data/sorbet/rbi/gems/stringio@3.1.0.rbi +8 -0
- data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +23133 -0
- data/sorbet/rbi/gems/{tapioca@0.11.6.rbi → tapioca@0.12.0.rbi} +776 -574
- data/sorbet/rbi/gems/{thor@1.2.2.rbi → thor@1.3.0.rbi} +775 -395
- data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +1 -1
- data/sorbet/rbi/gems/yard@0.9.34.rbi +2 -2
- data/sorbet/tapioca/config.yml +3 -12
- data/sorbet/tapioca/require.rb +0 -1
- metadata +42 -35
- data/.rubocop.yml +0 -33
- data/lib/typed/failure.rb +0 -81
- data/lib/typed/success.rb +0 -80
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +0 -1083
- data/sorbet/rbi/gems/irb@1.7.0.rbi +0 -342
- data/sorbet/rbi/gems/rubocop-minitest@0.31.0.rbi +0 -2528
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +0 -328
- data/sorbet/rbi/gems/rubocop-sorbet@0.7.0.rbi +0 -1043
- data/sorbet/rbi/gems/unparser@0.6.8.rbi +0 -4525
- data/sorbet/rbi/gems/zeitwerk@2.6.8.rbi +0 -986
- /data/sorbet/rbi/gems/{io-console@0.6.0.rbi → io-console@0.7.2.rbi} +0 -0
- /data/sorbet/rbi/gems/{reline@0.3.5.rbi → reline@0.4.2.rbi} +0 -0
- /data/sorbet/rbi/gems/{unicode-display_width@2.4.2.rbi → unicode-display_width@2.5.0.rbi} +0 -0
@@ -0,0 +1,8 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `standard-custom` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem standard-custom`.
|
6
|
+
|
7
|
+
# THIS IS AN EMPTY RBI FILE.
|
8
|
+
# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `standard-performance` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem standard-performance`.
|
6
|
+
|
7
|
+
# THIS IS AN EMPTY RBI FILE.
|
8
|
+
# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `standard-sorbet` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem standard-sorbet`.
|
6
|
+
|
7
|
+
# source://standard-sorbet//lib/standard/sorbet/version.rb#1
|
8
|
+
module Standard; end
|
9
|
+
|
10
|
+
# source://standard-sorbet//lib/standard/sorbet/version.rb#2
|
11
|
+
module Standard::Sorbet; end
|
12
|
+
|
13
|
+
# source://standard-sorbet//lib/standard/sorbet/plugin.rb#2
|
14
|
+
class Standard::Sorbet::Plugin < ::LintRoller::Plugin
|
15
|
+
# @return [Plugin] a new instance of Plugin
|
16
|
+
#
|
17
|
+
# source://standard-sorbet//lib/standard/sorbet/plugin.rb#3
|
18
|
+
def initialize(config); end
|
19
|
+
|
20
|
+
# source://standard-sorbet//lib/standard/sorbet/plugin.rb#8
|
21
|
+
def about; end
|
22
|
+
|
23
|
+
# source://standard-sorbet//lib/standard/sorbet/plugin.rb#21
|
24
|
+
def rules(context); end
|
25
|
+
|
26
|
+
# @return [Boolean]
|
27
|
+
#
|
28
|
+
# source://standard-sorbet//lib/standard/sorbet/plugin.rb#17
|
29
|
+
def supported?(context); end
|
30
|
+
|
31
|
+
private
|
32
|
+
|
33
|
+
# This is not fantastic.
|
34
|
+
#
|
35
|
+
# When you `require "rubocop-sorbet"`, it will not only load the cops,
|
36
|
+
# but it will also monkey-patch RuboCop's default_configuration, which is
|
37
|
+
# something that can't be undone for the lifetime of the process.
|
38
|
+
#
|
39
|
+
# See: https://github.com/Shopify/rubocop-sorbet/blob/main/lib/rubocop/sorbet/inject.rb
|
40
|
+
#
|
41
|
+
# As an alternative, standard-sorbet loads the cops directly, and then
|
42
|
+
# simply tells the RuboCop config loader that it's been loaded. This is
|
43
|
+
# taking advantage of a private API of an `attr_reader` that probably wasn't
|
44
|
+
# meant to be mutated externally, but it's better than the `Inject` monkey
|
45
|
+
# patching that rubocop-sorbet does (and many other RuboCop plugins do)
|
46
|
+
#
|
47
|
+
# source://standard-sorbet//lib/standard/sorbet/plugin.rb#51
|
48
|
+
def trick_rubocop_into_thinking_we_required_rubocop_sorbet!; end
|
49
|
+
end
|
50
|
+
|
51
|
+
# source://standard-sorbet//lib/standard/sorbet/version.rb#3
|
52
|
+
Standard::Sorbet::VERSION = T.let(T.unsafe(nil), String)
|