sorbet-result 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/.standard.yml +1 -1
  4. data/CHANGELOG.md +17 -0
  5. data/Gemfile +1 -1
  6. data/Gemfile.lock +85 -68
  7. data/README.md +4 -4
  8. data/lib/typed/no_payload_on_failure_error.rb +8 -3
  9. data/lib/typed/result.rb +33 -3
  10. data/sorbet/rbi/gems/{ast@2.4.2.rbi → ast@2.4.3.rbi} +4 -3
  11. data/sorbet/rbi/gems/benchmark@0.4.1.rbi +619 -0
  12. data/sorbet/rbi/gems/cgi@0.5.0.rbi +2961 -0
  13. data/sorbet/rbi/gems/date@3.4.1.rbi +75 -0
  14. data/sorbet/rbi/gems/erb@4.0.4.rbi +910 -0
  15. data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.1.rbi} +25 -15
  16. data/sorbet/rbi/gems/{io-console@0.7.2.rbi → io-console@0.8.0.rbi} +1 -0
  17. data/sorbet/rbi/gems/{json@2.7.1.rbi → json@2.12.2.rbi} +736 -238
  18. data/sorbet/rbi/gems/{language_server-protocol@3.17.0.3.rbi → language_server-protocol@3.17.0.5.rbi} +12 -5
  19. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +1 -0
  20. data/sorbet/rbi/gems/logger@1.7.0.rbi +963 -0
  21. data/sorbet/rbi/gems/{minitest@5.22.2.rbi → minitest@5.25.5.rbi} +326 -308
  22. data/sorbet/rbi/gems/netrc@0.11.0.rbi +1 -0
  23. data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.27.0.rbi} +32 -21
  24. data/sorbet/rbi/gems/{parser@3.3.0.5.rbi → parser@3.3.8.0.rbi} +448 -385
  25. data/sorbet/rbi/gems/pp@0.6.2.rbi +368 -0
  26. data/sorbet/rbi/gems/prettyprint@0.2.0.rbi +477 -0
  27. data/sorbet/rbi/gems/prism@1.4.0.rbi +41732 -0
  28. data/sorbet/rbi/gems/{psych@5.1.2.rbi → psych@5.2.6.rbi} +974 -236
  29. data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.1.rbi} +38 -33
  30. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +1 -0
  31. data/sorbet/rbi/gems/{rake@13.1.0.rbi → rake@13.3.0.rbi} +62 -58
  32. data/sorbet/rbi/gems/rbi@0.3.6.rbi +6893 -0
  33. data/sorbet/rbi/gems/rbs@3.9.4.rbi +6976 -0
  34. data/sorbet/rbi/gems/{regexp_parser@2.9.0.rbi → regexp_parser@2.10.0.rbi} +196 -172
  35. data/sorbet/rbi/gems/{reline@0.4.2.rbi → reline@0.6.1.rbi} +1 -0
  36. data/sorbet/rbi/gems/{rubocop-ast@1.30.0.rbi → rubocop-ast@1.45.1.rbi} +1673 -958
  37. data/sorbet/rbi/gems/{rubocop-performance@1.20.2.rbi → rubocop-performance@1.25.0.rbi} +1 -0
  38. data/sorbet/rbi/gems/{rubocop-sorbet@0.7.7.rbi → rubocop-sorbet@0.9.0.rbi} +1 -0
  39. data/sorbet/rbi/gems/{rubocop@1.60.2.rbi → rubocop@1.75.8.rbi} +9990 -5267
  40. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1 -0
  41. data/sorbet/rbi/gems/spoom@1.6.1.rbi +7274 -0
  42. data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +1 -0
  43. data/sorbet/rbi/gems/{standard-performance@1.3.1.rbi → standard-performance@1.8.0.rbi} +1 -0
  44. data/sorbet/rbi/gems/{standard-sorbet@0.0.2.rbi → standard-sorbet@0.0.3.rbi} +1 -0
  45. data/sorbet/rbi/gems/{standard@1.34.0.rbi → standard@1.50.0.rbi} +182 -97
  46. data/sorbet/rbi/gems/{stringio@3.1.0.rbi → stringio@3.1.7.rbi} +1 -0
  47. data/sorbet/rbi/gems/{tapioca@0.12.0.rbi → tapioca@0.16.11.rbi} +489 -364
  48. data/sorbet/rbi/gems/{thor@1.3.0.rbi → thor@1.3.2.rbi} +114 -81
  49. data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
  50. data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
  51. data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
  52. data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.37.rbi} +430 -270
  53. metadata +46 -55
  54. data/.tool-versions +0 -1
  55. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
  56. data/sorbet/rbi/gems/prism@0.24.0.rbi +0 -31040
  57. data/sorbet/rbi/gems/rbi@0.1.9.rbi +0 -3006
  58. data/sorbet/rbi/gems/rexml@3.2.6.rbi +0 -4781
  59. data/sorbet/rbi/gems/spoom@1.2.4.rbi +0 -3777
  60. data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +0 -23133
  61. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
@@ -4,14 +4,19 @@
4
4
  # This is an autogenerated file for types exported from the `erubi` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem erubi`.
6
6
 
7
+
7
8
  # source://erubi//lib/erubi.rb#3
8
9
  module Erubi
10
+ private
11
+
12
+ def h(_arg0); end
13
+
9
14
  class << self
10
15
  def h(_arg0); end
11
16
  end
12
17
  end
13
18
 
14
- # source://erubi//lib/erubi.rb#54
19
+ # source://erubi//lib/erubi.rb#51
15
20
  class Erubi::Engine
16
21
  # Initialize a new Erubi::Engine. Options:
17
22
  # +:bufval+ :: The value to use for the buffer variable, as a string (default <tt>'::String.new'</tt>).
@@ -42,64 +47,69 @@ class Erubi::Engine
42
47
  #
43
48
  # @return [Engine] a new instance of Engine
44
49
  #
45
- # source://erubi//lib/erubi.rb#94
50
+ # source://erubi//lib/erubi.rb#91
46
51
  def initialize(input, properties = T.unsafe(nil)); end
47
52
 
48
53
  # The variable name used for the buffer variable.
49
54
  #
50
- # source://erubi//lib/erubi.rb#65
55
+ # source://erubi//lib/erubi.rb#62
51
56
  def bufvar; end
52
57
 
53
58
  # The filename of the template, if one was given.
54
59
  #
55
- # source://erubi//lib/erubi.rb#62
60
+ # source://erubi//lib/erubi.rb#59
56
61
  def filename; end
57
62
 
58
63
  # The frozen ruby source code generated from the template, which can be evaled.
59
64
  #
60
- # source://erubi//lib/erubi.rb#59
65
+ # source://erubi//lib/erubi.rb#56
61
66
  def src; end
62
67
 
63
68
  private
64
69
 
70
+ # :nocov:
71
+ #
72
+ # source://erubi//lib/erubi.rb#209
73
+ def _dup_string_if_frozen(string); end
74
+
65
75
  # Add ruby code to the template
66
76
  #
67
- # source://erubi//lib/erubi.rb#226
77
+ # source://erubi//lib/erubi.rb#232
68
78
  def add_code(code); end
69
79
 
70
80
  # Add the given ruby expression result to the template,
71
81
  # escaping it based on the indicator given and escape flag.
72
82
  #
73
- # source://erubi//lib/erubi.rb#235
83
+ # source://erubi//lib/erubi.rb#241
74
84
  def add_expression(indicator, code); end
75
85
 
76
86
  # Add the result of Ruby expression to the template
77
87
  #
78
- # source://erubi//lib/erubi.rb#244
88
+ # source://erubi//lib/erubi.rb#250
79
89
  def add_expression_result(code); end
80
90
 
81
91
  # Add the escaped result of Ruby expression to the template
82
92
  #
83
- # source://erubi//lib/erubi.rb#249
93
+ # source://erubi//lib/erubi.rb#255
84
94
  def add_expression_result_escaped(code); end
85
95
 
86
96
  # Add the given postamble to the src. Can be overridden in subclasses
87
97
  # to make additional changes to src that depend on the current state.
88
98
  #
89
- # source://erubi//lib/erubi.rb#255
99
+ # source://erubi//lib/erubi.rb#261
90
100
  def add_postamble(postamble); end
91
101
 
92
102
  # Add raw text to the template. Modifies argument if argument is mutable as a memory optimization.
93
103
  # Must be called with a string, cannot be called with nil (Rails's subclass depends on it).
94
104
  #
95
- # source://erubi//lib/erubi.rb#213
105
+ # source://erubi//lib/erubi.rb#222
96
106
  def add_text(text); end
97
107
 
98
108
  # Raise an exception, as the base engine class does not support handling other indicators.
99
109
  #
100
110
  # @raise [ArgumentError]
101
111
  #
102
- # source://erubi//lib/erubi.rb#261
112
+ # source://erubi//lib/erubi.rb#267
103
113
  def handle(indicator, code, tailch, rspace, lspace); end
104
114
 
105
115
  # Make sure that any current expression has been terminated.
@@ -107,7 +117,7 @@ class Erubi::Engine
107
117
  # the chain_appends option is used, expressions may not be
108
118
  # terminated.
109
119
  #
110
- # source://erubi//lib/erubi.rb#289
120
+ # source://erubi//lib/erubi.rb#295
111
121
  def terminate_expression; end
112
122
 
113
123
  # Make sure the buffer variable is the target of the next append
@@ -117,13 +127,13 @@ class Erubi::Engine
117
127
  # This method should only be called if the block will result in
118
128
  # code where << will append to the bufvar.
119
129
  #
120
- # source://erubi//lib/erubi.rb#271
130
+ # source://erubi//lib/erubi.rb#277
121
131
  def with_buffer; end
122
132
  end
123
133
 
124
134
  # The default regular expression used for scanning.
125
135
  #
126
- # source://erubi//lib/erubi.rb#56
136
+ # source://erubi//lib/erubi.rb#53
127
137
  Erubi::Engine::DEFAULT_REGEXP = T.let(T.unsafe(nil), Regexp)
128
138
 
129
139
  # source://erubi//lib/erubi.rb#17
@@ -4,5 +4,6 @@
4
4
  # This is an autogenerated file for types exported from the `io-console` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem io-console`.
6
6
 
7
+
7
8
  # THIS IS AN EMPTY RBI FILE.
8
9
  # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem