sorbet-result 0.3.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +13 -0
- data/Gemfile.lock +17 -15
- data/README.md +16 -2
- data/lib/typed/failure.rb +20 -0
- data/lib/typed/result.rb +15 -0
- data/lib/typed/success.rb +19 -0
- data/sorbet/rbi/gems/{minitest@5.18.0.rbi → minitest@5.18.1.rbi} +134 -134
- data/sorbet/rbi/gems/{parser@3.2.2.1.rbi → parser@3.2.2.3.rbi} +544 -544
- data/sorbet/rbi/gems/racc@1.7.1.rbi +161 -0
- data/sorbet/rbi/gems/{regexp_parser@2.8.0.rbi → regexp_parser@2.8.1.rbi} +33 -32
- data/sorbet/rbi/gems/{rubocop@1.52.0.rbi → rubocop@1.52.1.rbi} +155 -169
- data/sorbet/rbi/gems/{unparser@0.6.7.rbi → unparser@0.6.8.rbi} +19 -18
- metadata +9 -8
@@ -1099,13 +1099,13 @@ class Unparser::Color
|
|
1099
1099
|
def format(text); end
|
1100
1100
|
end
|
1101
1101
|
|
1102
|
-
# source://unparser//lib/unparser/color.rb#
|
1102
|
+
# source://unparser//lib/unparser/color.rb#41
|
1103
1103
|
Unparser::Color::GREEN = T.let(T.unsafe(nil), Unparser::Color)
|
1104
1104
|
|
1105
1105
|
# source://unparser//lib/unparser/color.rb#17
|
1106
1106
|
Unparser::Color::NONE = T.let(T.unsafe(nil), T.untyped)
|
1107
1107
|
|
1108
|
-
# source://unparser//lib/unparser/color.rb#
|
1108
|
+
# source://unparser//lib/unparser/color.rb#40
|
1109
1109
|
Unparser::Color::RED = T.let(T.unsafe(nil), Unparser::Color)
|
1110
1110
|
|
1111
1111
|
# Holds the comments that remain to be emitted
|
@@ -3692,7 +3692,7 @@ class Unparser::NodeDetails::Send
|
|
3692
3692
|
|
3693
3693
|
# @return [Boolean]
|
3694
3694
|
#
|
3695
|
-
# source://unparser//lib/unparser/node_details/send.rb#
|
3695
|
+
# source://unparser//lib/unparser/node_details/send.rb#37
|
3696
3696
|
def arguments?; end
|
3697
3697
|
|
3698
3698
|
# @return [Boolean]
|
@@ -3702,7 +3702,7 @@ class Unparser::NodeDetails::Send
|
|
3702
3702
|
|
3703
3703
|
# @return [Boolean]
|
3704
3704
|
#
|
3705
|
-
# source://unparser//lib/unparser/node_details/send.rb#
|
3705
|
+
# source://unparser//lib/unparser/node_details/send.rb#33
|
3706
3706
|
def assignment_operator?; end
|
3707
3707
|
|
3708
3708
|
# @return [Boolean]
|
@@ -3710,7 +3710,7 @@ class Unparser::NodeDetails::Send
|
|
3710
3710
|
# source://unparser//lib/unparser/node_details/send.rb#21
|
3711
3711
|
def binary_syntax_allowed?; end
|
3712
3712
|
|
3713
|
-
# source://unparser//lib/unparser/node_details/send.rb#
|
3713
|
+
# source://unparser//lib/unparser/node_details/send.rb#41
|
3714
3714
|
def non_assignment_selector; end
|
3715
3715
|
|
3716
3716
|
# source://unparser//lib/unparser/dsl.rb#18
|
@@ -3726,7 +3726,7 @@ class Unparser::NodeDetails::Send
|
|
3726
3726
|
|
3727
3727
|
# @return [Boolean]
|
3728
3728
|
#
|
3729
|
-
# source://unparser//lib/unparser/node_details/send.rb#
|
3729
|
+
# source://unparser//lib/unparser/node_details/send.rb#29
|
3730
3730
|
def selector_unary_operator?; end
|
3731
3731
|
|
3732
3732
|
# source://unparser//lib/unparser/adamantium/method_builder.rb#87
|
@@ -3913,21 +3913,22 @@ class Unparser::Validation
|
|
3913
3913
|
|
3914
3914
|
# Test if source could be unparsed successfully
|
3915
3915
|
#
|
3916
|
+
#
|
3916
3917
|
# @api private
|
3917
3918
|
# @return [Boolean]
|
3918
3919
|
#
|
3919
|
-
# source://unparser//lib/unparser/validation.rb#
|
3920
|
+
# source://unparser//lib/unparser/validation.rb#21
|
3920
3921
|
def success?; end
|
3921
3922
|
|
3922
3923
|
private
|
3923
3924
|
|
3924
|
-
# source://unparser//lib/unparser/validation.rb#
|
3925
|
+
# source://unparser//lib/unparser/validation.rb#108
|
3925
3926
|
def make_report(label, attribute_name); end
|
3926
3927
|
|
3927
|
-
# source://unparser//lib/unparser/validation.rb#
|
3928
|
+
# source://unparser//lib/unparser/validation.rb#120
|
3928
3929
|
def node_diff_report; end
|
3929
3930
|
|
3930
|
-
# source://unparser//lib/unparser/validation.rb#
|
3931
|
+
# source://unparser//lib/unparser/validation.rb#112
|
3931
3932
|
def report_exception(exception); end
|
3932
3933
|
|
3933
3934
|
class << self
|
@@ -3939,7 +3940,7 @@ class Unparser::Validation
|
|
3939
3940
|
# @param original_node [Parser::AST::Node]
|
3940
3941
|
# @return [Validator]
|
3941
3942
|
#
|
3942
|
-
# source://unparser//lib/unparser/validation.rb#
|
3943
|
+
# source://unparser//lib/unparser/validation.rb#81
|
3943
3944
|
def from_node(original_node); end
|
3944
3945
|
|
3945
3946
|
# Create validator from file
|
@@ -3947,7 +3948,7 @@ class Unparser::Validation
|
|
3947
3948
|
# @param path [Pathname]
|
3948
3949
|
# @return [Validator]
|
3949
3950
|
#
|
3950
|
-
# source://unparser//lib/unparser/validation.rb#
|
3951
|
+
# source://unparser//lib/unparser/validation.rb#102
|
3951
3952
|
def from_path(path); end
|
3952
3953
|
|
3953
3954
|
# Create validator from string
|
@@ -3955,29 +3956,29 @@ class Unparser::Validation
|
|
3955
3956
|
# @param original_source [String]
|
3956
3957
|
# @return [Validator]
|
3957
3958
|
#
|
3958
|
-
# source://unparser//lib/unparser/validation.rb#
|
3959
|
+
# source://unparser//lib/unparser/validation.rb#55
|
3959
3960
|
def from_string(original_source); end
|
3960
3961
|
|
3961
3962
|
private
|
3962
3963
|
|
3963
|
-
# source://unparser//lib/unparser/validation.rb#
|
3964
|
+
# source://unparser//lib/unparser/validation.rb#135
|
3964
3965
|
def const_unit(_value); end
|
3965
3966
|
end
|
3966
3967
|
end
|
3967
3968
|
|
3968
|
-
# source://unparser//lib/unparser/validation.rb#
|
3969
|
+
# source://unparser//lib/unparser/validation.rb#138
|
3969
3970
|
class Unparser::Validation::Literal < ::Unparser::Validation
|
3970
|
-
# source://unparser//lib/unparser/validation.rb#
|
3971
|
+
# source://unparser//lib/unparser/validation.rb#143
|
3971
3972
|
def report; end
|
3972
3973
|
|
3973
3974
|
# @return [Boolean]
|
3974
3975
|
#
|
3975
|
-
# source://unparser//lib/unparser/validation.rb#
|
3976
|
+
# source://unparser//lib/unparser/validation.rb#139
|
3976
3977
|
def success?; end
|
3977
3978
|
|
3978
3979
|
private
|
3979
3980
|
|
3980
|
-
# source://unparser//lib/unparser/validation.rb#
|
3981
|
+
# source://unparser//lib/unparser/validation.rb#158
|
3981
3982
|
def source_diff_report; end
|
3982
3983
|
end
|
3983
3984
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sorbet-result
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Max VelDink
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sorbet-runtime
|
@@ -68,27 +68,28 @@ files:
|
|
68
68
|
- sorbet/rbi/gems/io-console@0.6.0.rbi
|
69
69
|
- sorbet/rbi/gems/irb@1.7.0.rbi
|
70
70
|
- sorbet/rbi/gems/json@2.6.3.rbi
|
71
|
-
- sorbet/rbi/gems/minitest@5.18.
|
71
|
+
- sorbet/rbi/gems/minitest@5.18.1.rbi
|
72
72
|
- sorbet/rbi/gems/netrc@0.11.0.rbi
|
73
73
|
- sorbet/rbi/gems/parallel@1.23.0.rbi
|
74
|
-
- sorbet/rbi/gems/parser@3.2.2.
|
74
|
+
- sorbet/rbi/gems/parser@3.2.2.3.rbi
|
75
|
+
- sorbet/rbi/gems/racc@1.7.1.rbi
|
75
76
|
- sorbet/rbi/gems/rainbow@3.1.1.rbi
|
76
77
|
- sorbet/rbi/gems/rake@13.0.6.rbi
|
77
78
|
- sorbet/rbi/gems/rbi@0.0.16.rbi
|
78
|
-
- sorbet/rbi/gems/regexp_parser@2.8.
|
79
|
+
- sorbet/rbi/gems/regexp_parser@2.8.1.rbi
|
79
80
|
- sorbet/rbi/gems/reline@0.3.5.rbi
|
80
81
|
- sorbet/rbi/gems/rexml@3.2.5.rbi
|
81
82
|
- sorbet/rbi/gems/rubocop-ast@1.29.0.rbi
|
82
83
|
- sorbet/rbi/gems/rubocop-minitest@0.31.0.rbi
|
83
84
|
- sorbet/rbi/gems/rubocop-rake@0.6.0.rbi
|
84
85
|
- sorbet/rbi/gems/rubocop-sorbet@0.7.0.rbi
|
85
|
-
- sorbet/rbi/gems/rubocop@1.52.
|
86
|
+
- sorbet/rbi/gems/rubocop@1.52.1.rbi
|
86
87
|
- sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi
|
87
88
|
- sorbet/rbi/gems/spoom@1.2.1.rbi
|
88
89
|
- sorbet/rbi/gems/tapioca@0.11.6.rbi
|
89
90
|
- sorbet/rbi/gems/thor@1.2.2.rbi
|
90
91
|
- sorbet/rbi/gems/unicode-display_width@2.4.2.rbi
|
91
|
-
- sorbet/rbi/gems/unparser@0.6.
|
92
|
+
- sorbet/rbi/gems/unparser@0.6.8.rbi
|
92
93
|
- sorbet/rbi/gems/yard-sorbet@0.8.1.rbi
|
93
94
|
- sorbet/rbi/gems/yard@0.9.34.rbi
|
94
95
|
- sorbet/rbi/gems/zeitwerk@2.6.8.rbi
|
@@ -111,7 +112,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
111
112
|
requirements:
|
112
113
|
- - ">="
|
113
114
|
- !ruby/object:Gem::Version
|
114
|
-
version: '
|
115
|
+
version: '3.0'
|
115
116
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
117
|
requirements:
|
117
118
|
- - ">="
|