mangrove 0.31.0 → 0.34.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.
- checksums.yaml +4 -4
- data/README.md +107 -43
- data/lib/mangrove/result.rb +50 -0
- data/lib/mangrove/version.rb +1 -1
- data/sorbet/config +1 -0
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
- data/sorbet/rbi/gems/date@3.4.1.rbi +75 -0
- data/sorbet/rbi/gems/{docile@1.4.0.rbi → docile@1.4.1.rbi} +2 -1
- data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.1.rbi} +26 -17
- data/sorbet/rbi/gems/{json@2.7.2.rbi → json@2.9.1.rbi} +516 -134
- data/sorbet/rbi/gems/logger@1.6.5.rbi +940 -0
- data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.26.3.rbi} +31 -21
- data/sorbet/rbi/gems/{parser@3.3.2.0.rbi → parser@3.3.7.0.rbi} +23 -1736
- data/sorbet/rbi/gems/{prism@0.29.0.rbi → prism@1.3.0.rbi} +13817 -10401
- data/sorbet/rbi/gems/{psych@5.1.2.rbi → psych@5.2.3.rbi} +289 -236
- data/sorbet/rbi/gems/{racc@1.8.0.rbi → racc@1.8.1.rbi} +0 -4
- data/sorbet/rbi/gems/rbi@0.2.3.rbi +4542 -0
- data/sorbet/rbi/gems/rbs@3.8.1.rbi +6882 -0
- data/sorbet/rbi/gems/{rdoc@6.7.0.rbi → rdoc@6.11.0.rbi} +1115 -1058
- data/sorbet/rbi/gems/{regexp_parser@2.9.2.rbi → regexp_parser@2.10.0.rbi} +193 -170
- data/sorbet/rbi/gems/{rspec-core@3.13.0.rbi → rspec-core@3.13.2.rbi} +146 -280
- data/sorbet/rbi/gems/{rspec-expectations@3.13.0.rbi → rspec-expectations@3.13.3.rbi} +323 -294
- data/sorbet/rbi/gems/{rspec-mocks@3.13.1.rbi → rspec-mocks@3.13.2.rbi} +46 -46
- data/sorbet/rbi/gems/{rspec-support@3.13.1.rbi → rspec-support@3.13.2.rbi} +22 -22
- data/sorbet/rbi/gems/ruboclean@0.7.1.rbi +473 -0
- data/sorbet/rbi/gems/{rubocop-ast@1.31.3.rbi → rubocop-ast@1.37.0.rbi} +1293 -745
- data/sorbet/rbi/gems/{rubocop-rspec@2.30.0.rbi → rubocop-rspec@3.4.0.rbi} +341 -1073
- data/sorbet/rbi/gems/{rubocop@1.64.1.rbi → rubocop@1.70.0.rbi} +5693 -3796
- data/sorbet/rbi/gems/{simplecov-html@0.12.3.rbi → simplecov-html@0.13.1.rbi} +77 -68
- data/sorbet/rbi/gems/{spoom@1.3.2.rbi → spoom@1.5.1.rbi} +2306 -1701
- data/sorbet/rbi/gems/{stringio@3.1.0.rbi → stringio@3.1.2.rbi} +1 -0
- data/sorbet/rbi/gems/{tapioca@0.14.3.rbi → tapioca@0.16.8.rbi} +411 -332
- data/sorbet/rbi/gems/{thor@1.3.1.rbi → thor@1.3.2.rbi} +57 -31
- data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
- data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
- data/sorbet/rbi/gems/{webrick@1.8.1.rbi → webrick@1.9.1.rbi} +92 -72
- data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
- data/sorbet/rbi/gems/{yard@0.9.36.rbi → yard@0.9.37.rbi} +393 -235
- metadata +39 -42
- data/sorbet/rbi/gems/rbi@0.1.13.rbi +0 -3078
- data/sorbet/rbi/gems/rexml@3.2.8.rbi +0 -4794
- data/sorbet/rbi/gems/ruboclean@0.6.0.rbi +0 -315
- data/sorbet/rbi/gems/rubocop-capybara@2.20.0.rbi +0 -1208
- data/sorbet/rbi/gems/rubocop-factory_bot@2.25.1.rbi +0 -928
- data/sorbet/rbi/gems/rubocop-rspec_rails@2.28.3.rbi +0 -911
- data/sorbet/rbi/gems/strscan@3.1.0.rbi +0 -9
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
- /data/sorbet/rbi/gems/{io-console@0.7.2.rbi → io-console@0.8.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{reline@0.5.8.rbi → reline@0.6.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{ruby-lsp@0.17.2.rbi → ruby-lsp@0.23.6.rbi} +0 -0
@@ -4,15 +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
|
-
|
11
|
-
def h(value); end
|
15
|
+
def h(_arg0); end
|
12
16
|
end
|
13
17
|
end
|
14
18
|
|
15
|
-
# source://erubi//lib/erubi.rb#
|
19
|
+
# source://erubi//lib/erubi.rb#51
|
16
20
|
class Erubi::Engine
|
17
21
|
# Initialize a new Erubi::Engine. Options:
|
18
22
|
# +:bufval+ :: The value to use for the buffer variable, as a string (default <tt>'::String.new'</tt>).
|
@@ -43,64 +47,69 @@ class Erubi::Engine
|
|
43
47
|
#
|
44
48
|
# @return [Engine] a new instance of Engine
|
45
49
|
#
|
46
|
-
# source://erubi//lib/erubi.rb#
|
50
|
+
# source://erubi//lib/erubi.rb#91
|
47
51
|
def initialize(input, properties = T.unsafe(nil)); end
|
48
52
|
|
49
53
|
# The variable name used for the buffer variable.
|
50
54
|
#
|
51
|
-
# source://erubi//lib/erubi.rb#
|
55
|
+
# source://erubi//lib/erubi.rb#62
|
52
56
|
def bufvar; end
|
53
57
|
|
54
58
|
# The filename of the template, if one was given.
|
55
59
|
#
|
56
|
-
# source://erubi//lib/erubi.rb#
|
60
|
+
# source://erubi//lib/erubi.rb#59
|
57
61
|
def filename; end
|
58
62
|
|
59
63
|
# The frozen ruby source code generated from the template, which can be evaled.
|
60
64
|
#
|
61
|
-
# source://erubi//lib/erubi.rb#
|
65
|
+
# source://erubi//lib/erubi.rb#56
|
62
66
|
def src; end
|
63
67
|
|
64
68
|
private
|
65
69
|
|
70
|
+
# :nocov:
|
71
|
+
#
|
72
|
+
# source://erubi//lib/erubi.rb#209
|
73
|
+
def _dup_string_if_frozen(string); end
|
74
|
+
|
66
75
|
# Add ruby code to the template
|
67
76
|
#
|
68
|
-
# source://erubi//lib/erubi.rb#
|
77
|
+
# source://erubi//lib/erubi.rb#232
|
69
78
|
def add_code(code); end
|
70
79
|
|
71
80
|
# Add the given ruby expression result to the template,
|
72
81
|
# escaping it based on the indicator given and escape flag.
|
73
82
|
#
|
74
|
-
# source://erubi//lib/erubi.rb#
|
83
|
+
# source://erubi//lib/erubi.rb#241
|
75
84
|
def add_expression(indicator, code); end
|
76
85
|
|
77
86
|
# Add the result of Ruby expression to the template
|
78
87
|
#
|
79
|
-
# source://erubi//lib/erubi.rb#
|
88
|
+
# source://erubi//lib/erubi.rb#250
|
80
89
|
def add_expression_result(code); end
|
81
90
|
|
82
91
|
# Add the escaped result of Ruby expression to the template
|
83
92
|
#
|
84
|
-
# source://erubi//lib/erubi.rb#
|
93
|
+
# source://erubi//lib/erubi.rb#255
|
85
94
|
def add_expression_result_escaped(code); end
|
86
95
|
|
87
96
|
# Add the given postamble to the src. Can be overridden in subclasses
|
88
97
|
# to make additional changes to src that depend on the current state.
|
89
98
|
#
|
90
|
-
# source://erubi//lib/erubi.rb#
|
99
|
+
# source://erubi//lib/erubi.rb#261
|
91
100
|
def add_postamble(postamble); end
|
92
101
|
|
93
102
|
# Add raw text to the template. Modifies argument if argument is mutable as a memory optimization.
|
94
103
|
# Must be called with a string, cannot be called with nil (Rails's subclass depends on it).
|
95
104
|
#
|
96
|
-
# source://erubi//lib/erubi.rb#
|
105
|
+
# source://erubi//lib/erubi.rb#222
|
97
106
|
def add_text(text); end
|
98
107
|
|
99
108
|
# Raise an exception, as the base engine class does not support handling other indicators.
|
100
109
|
#
|
101
110
|
# @raise [ArgumentError]
|
102
111
|
#
|
103
|
-
# source://erubi//lib/erubi.rb#
|
112
|
+
# source://erubi//lib/erubi.rb#267
|
104
113
|
def handle(indicator, code, tailch, rspace, lspace); end
|
105
114
|
|
106
115
|
# Make sure that any current expression has been terminated.
|
@@ -108,7 +117,7 @@ class Erubi::Engine
|
|
108
117
|
# the chain_appends option is used, expressions may not be
|
109
118
|
# terminated.
|
110
119
|
#
|
111
|
-
# source://erubi//lib/erubi.rb#
|
120
|
+
# source://erubi//lib/erubi.rb#295
|
112
121
|
def terminate_expression; end
|
113
122
|
|
114
123
|
# Make sure the buffer variable is the target of the next append
|
@@ -118,13 +127,13 @@ class Erubi::Engine
|
|
118
127
|
# This method should only be called if the block will result in
|
119
128
|
# code where << will append to the bufvar.
|
120
129
|
#
|
121
|
-
# source://erubi//lib/erubi.rb#
|
130
|
+
# source://erubi//lib/erubi.rb#277
|
122
131
|
def with_buffer; end
|
123
132
|
end
|
124
133
|
|
125
134
|
# The default regular expression used for scanning.
|
126
135
|
#
|
127
|
-
# source://erubi//lib/erubi.rb#
|
136
|
+
# source://erubi//lib/erubi.rb#53
|
128
137
|
Erubi::Engine::DEFAULT_REGEXP = T.let(T.unsafe(nil), Regexp)
|
129
138
|
|
130
139
|
# source://erubi//lib/erubi.rb#17
|