tickrb 0.1.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 +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +15 -0
- data/Gemfile +17 -0
- data/Gemfile.lock +143 -0
- data/LICENSE.txt +21 -0
- data/README.md +112 -0
- data/Rakefile +53 -0
- data/lib/tickrb/auth.rb +106 -0
- data/lib/tickrb/client.rb +144 -0
- data/lib/tickrb/mcp_server.rb +445 -0
- data/lib/tickrb/token_store.rb +29 -0
- data/lib/tickrb/version.rb +6 -0
- data/lib/tickrb.rb +37 -0
- data/sorbet/config +4 -0
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/ast@2.4.3.rbi +585 -0
- data/sorbet/rbi/gems/benchmark@0.4.1.rbi +619 -0
- data/sorbet/rbi/gems/diff-lcs@1.6.2.rbi +1134 -0
- data/sorbet/rbi/gems/dotenv@3.1.8.rbi +295 -0
- data/sorbet/rbi/gems/erubi@1.13.1.rbi +155 -0
- data/sorbet/rbi/gems/json@2.12.2.rbi +2051 -0
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.5.rbi +14244 -0
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +240 -0
- data/sorbet/rbi/gems/logger@1.7.0.rbi +963 -0
- data/sorbet/rbi/gems/net-http@0.6.0.rbi +4247 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
- data/sorbet/rbi/gems/parallel@1.27.0.rbi +291 -0
- data/sorbet/rbi/gems/parser@3.3.8.0.rbi +5535 -0
- data/sorbet/rbi/gems/prism@1.4.0.rbi +41732 -0
- data/sorbet/rbi/gems/racc@1.8.1.rbi +164 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
- data/sorbet/rbi/gems/rake@13.3.0.rbi +3031 -0
- data/sorbet/rbi/gems/rbi@0.3.3.rbi +6742 -0
- data/sorbet/rbi/gems/rbs@3.9.4.rbi +6976 -0
- data/sorbet/rbi/gems/regexp_parser@2.10.0.rbi +3795 -0
- data/sorbet/rbi/gems/rexml@3.4.1.rbi +5243 -0
- data/sorbet/rbi/gems/rspec-core@3.13.4.rbi +11238 -0
- data/sorbet/rbi/gems/rspec-expectations@3.13.5.rbi +8189 -0
- data/sorbet/rbi/gems/rspec-mocks@3.13.5.rbi +5350 -0
- data/sorbet/rbi/gems/rspec-sorbet-types@0.3.0.rbi +130 -0
- data/sorbet/rbi/gems/rspec-support@3.13.4.rbi +1630 -0
- data/sorbet/rbi/gems/rspec@3.13.1.rbi +83 -0
- data/sorbet/rbi/gems/rubocop-ast@1.45.0.rbi +7721 -0
- data/sorbet/rbi/gems/rubocop-performance@1.25.0.rbi +9 -0
- data/sorbet/rbi/gems/rubocop@1.75.8.rbi +62104 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
- data/sorbet/rbi/gems/spoom@1.6.3.rbi +6985 -0
- data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +9 -0
- data/sorbet/rbi/gems/standard-performance@1.8.0.rbi +9 -0
- data/sorbet/rbi/gems/standard@1.50.0.rbi +1146 -0
- data/sorbet/rbi/gems/tapioca@0.16.11.rbi +3628 -0
- data/sorbet/rbi/gems/thor@1.3.2.rbi +4378 -0
- 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/uri@1.0.3.rbi +2325 -0
- data/sorbet/rbi/gems/webrick@1.9.1.rbi +2856 -0
- data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
- data/sorbet/rbi/gems/yard@0.9.37.rbi +18445 -0
- data/sorbet/rbi/tickrb.rbi +9 -0
- data/sorbet/tapioca.yml +10 -0
- data/test_api_direct.rb +98 -0
- data/test_mcp_server.rb +157 -0
- data/tickrb.gemspec +47 -0
- metadata +278 -0
@@ -0,0 +1,295 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `dotenv` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem dotenv`.
|
6
|
+
|
7
|
+
|
8
|
+
# Shim to load environment variables from `.env files into `ENV`.
|
9
|
+
#
|
10
|
+
# source://dotenv//lib/dotenv/version.rb#1
|
11
|
+
module Dotenv
|
12
|
+
extend ::Dotenv
|
13
|
+
|
14
|
+
# Returns the value of attribute instrumenter.
|
15
|
+
#
|
16
|
+
# source://dotenv//lib/dotenv.rb#15
|
17
|
+
def instrumenter; end
|
18
|
+
|
19
|
+
# Sets the attribute instrumenter
|
20
|
+
#
|
21
|
+
# @param value the value to set the attribute instrumenter to.
|
22
|
+
#
|
23
|
+
# source://dotenv//lib/dotenv.rb#15
|
24
|
+
def instrumenter=(_arg0); end
|
25
|
+
|
26
|
+
# Loads environment variables from one or more `.env` files. See `#parse` for more details.
|
27
|
+
#
|
28
|
+
# source://dotenv//lib/dotenv.rb#18
|
29
|
+
def load(*filenames, overwrite: T.unsafe(nil), ignore: T.unsafe(nil)); end
|
30
|
+
|
31
|
+
# Same as `#load`, but raises Errno::ENOENT if any files don't exist
|
32
|
+
#
|
33
|
+
# source://dotenv//lib/dotenv.rb#27
|
34
|
+
def load!(*filenames); end
|
35
|
+
|
36
|
+
# Modify `ENV` for the block and restore it to its previous state afterwards.
|
37
|
+
#
|
38
|
+
# Note that the block is synchronized to prevent concurrent modifications to `ENV`,
|
39
|
+
# so multiple threads will be executed serially.
|
40
|
+
#
|
41
|
+
# @param env [Hash] Hash of keys and values to set in `ENV`
|
42
|
+
#
|
43
|
+
# source://dotenv//lib/dotenv.rb#116
|
44
|
+
def modify(env = T.unsafe(nil), &block); end
|
45
|
+
|
46
|
+
# same as `#load`, but will overwrite existing values in `ENV`
|
47
|
+
#
|
48
|
+
# source://dotenv//lib/dotenv.rb#32
|
49
|
+
def overload(*filenames); end
|
50
|
+
|
51
|
+
# same as `#overwrite`, but raises Errno::ENOENT if any files don't exist
|
52
|
+
#
|
53
|
+
# source://dotenv//lib/dotenv.rb#38
|
54
|
+
def overload!(*filenames); end
|
55
|
+
|
56
|
+
# same as `#load`, but will overwrite existing values in `ENV`
|
57
|
+
#
|
58
|
+
# source://dotenv//lib/dotenv.rb#32
|
59
|
+
def overwrite(*filenames); end
|
60
|
+
|
61
|
+
# same as `#overwrite`, but raises Errno::ENOENT if any files don't exist
|
62
|
+
#
|
63
|
+
# source://dotenv//lib/dotenv.rb#38
|
64
|
+
def overwrite!(*filenames); end
|
65
|
+
|
66
|
+
# Parses the given files, yielding for each file if a block is given.
|
67
|
+
#
|
68
|
+
# @param filenames [String, Array<String>] Files to parse
|
69
|
+
# @param overwrite [Boolean] Overwrite existing `ENV` values
|
70
|
+
# @param ignore [Boolean] Ignore non-existent files
|
71
|
+
# @param block [Proc] Block to yield for each parsed `Dotenv::Environment`
|
72
|
+
# @return [Hash] parsed key/value pairs
|
73
|
+
#
|
74
|
+
# source://dotenv//lib/dotenv.rb#50
|
75
|
+
def parse(*filenames, overwrite: T.unsafe(nil), ignore: T.unsafe(nil), &block); end
|
76
|
+
|
77
|
+
# @raise [MissingKeys]
|
78
|
+
#
|
79
|
+
# source://dotenv//lib/dotenv.rb#126
|
80
|
+
def require_keys(*keys); end
|
81
|
+
|
82
|
+
# Restore `ENV` to a given state
|
83
|
+
#
|
84
|
+
# @param env [Hash] Hash of keys and values to restore, defaults to the last saved state
|
85
|
+
# @param safe [Boolean] Is it safe to modify `ENV`? Defaults to `true` in the main thread, otherwise raises an error.
|
86
|
+
#
|
87
|
+
# source://dotenv//lib/dotenv.rb#77
|
88
|
+
def restore(env = T.unsafe(nil), safe: T.unsafe(nil)); end
|
89
|
+
|
90
|
+
# Save the current `ENV` to be restored later
|
91
|
+
#
|
92
|
+
# source://dotenv//lib/dotenv.rb#67
|
93
|
+
def save; end
|
94
|
+
|
95
|
+
# Update `ENV` with the given hash of keys and values
|
96
|
+
#
|
97
|
+
# @param env [Hash] Hash of keys and values to set in `ENV`
|
98
|
+
# @param overwrite [Boolean] Overwrite existing `ENV` values
|
99
|
+
#
|
100
|
+
# source://dotenv//lib/dotenv.rb#98
|
101
|
+
def update(env = T.unsafe(nil), overwrite: T.unsafe(nil)); end
|
102
|
+
|
103
|
+
private
|
104
|
+
|
105
|
+
# source://dotenv//lib/dotenv.rb#134
|
106
|
+
def instrument(name, payload = T.unsafe(nil), &block); end
|
107
|
+
end
|
108
|
+
|
109
|
+
# A diff between multiple states of ENV.
|
110
|
+
#
|
111
|
+
# source://dotenv//lib/dotenv/diff.rb#3
|
112
|
+
class Dotenv::Diff
|
113
|
+
# Create a new diff. If given a block, the state of ENV after the block will be preserved as
|
114
|
+
# the final state for comparison. Otherwise, the current ENV will be the final state.
|
115
|
+
#
|
116
|
+
# @param a [Hash] the initial state, defaults to a snapshot of current ENV
|
117
|
+
# @param b [Hash] the final state, defaults to the current ENV
|
118
|
+
# @return [Diff] a new instance of Diff
|
119
|
+
# @yield [diff] a block to execute before recording the final state
|
120
|
+
#
|
121
|
+
# source://dotenv//lib/dotenv/diff.rb#16
|
122
|
+
def initialize(a: T.unsafe(nil), b: T.unsafe(nil), &block); end
|
123
|
+
|
124
|
+
# The initial state
|
125
|
+
#
|
126
|
+
# source://dotenv//lib/dotenv/diff.rb#5
|
127
|
+
def a; end
|
128
|
+
|
129
|
+
# Return a Hash of keys added with their new values
|
130
|
+
#
|
131
|
+
# source://dotenv//lib/dotenv/diff.rb#24
|
132
|
+
def added; end
|
133
|
+
|
134
|
+
# Returns true if any keys were added, removed, or changed
|
135
|
+
#
|
136
|
+
# @return [Boolean]
|
137
|
+
#
|
138
|
+
# source://dotenv//lib/dotenv/diff.rb#46
|
139
|
+
def any?; end
|
140
|
+
|
141
|
+
# The final or current state
|
142
|
+
#
|
143
|
+
# source://dotenv//lib/dotenv/diff.rb#8
|
144
|
+
def b; end
|
145
|
+
|
146
|
+
# Returns of Hash of keys changed with an array of their previous and new values
|
147
|
+
#
|
148
|
+
# source://dotenv//lib/dotenv/diff.rb#34
|
149
|
+
def changed; end
|
150
|
+
|
151
|
+
# Returns a Hash of all added, changed, and removed keys and their new values
|
152
|
+
#
|
153
|
+
# source://dotenv//lib/dotenv/diff.rb#41
|
154
|
+
def env; end
|
155
|
+
|
156
|
+
# Returns a Hash of keys removed with their previous values
|
157
|
+
#
|
158
|
+
# source://dotenv//lib/dotenv/diff.rb#29
|
159
|
+
def removed; end
|
160
|
+
|
161
|
+
private
|
162
|
+
|
163
|
+
# source://dotenv//lib/dotenv/diff.rb#52
|
164
|
+
def snapshot; end
|
165
|
+
end
|
166
|
+
|
167
|
+
# A `.env` file that will be read and parsed into a Hash
|
168
|
+
#
|
169
|
+
# source://dotenv//lib/dotenv/environment.rb#3
|
170
|
+
class Dotenv::Environment < ::Hash
|
171
|
+
# Create a new Environment
|
172
|
+
#
|
173
|
+
# @param filename [String] the path to the file to read
|
174
|
+
# @param overwrite [Boolean] whether the parser should assume existing values will be overwritten
|
175
|
+
# @return [Environment] a new instance of Environment
|
176
|
+
#
|
177
|
+
# source://dotenv//lib/dotenv/environment.rb#10
|
178
|
+
def initialize(filename, overwrite: T.unsafe(nil)); end
|
179
|
+
|
180
|
+
# Returns the value of attribute filename.
|
181
|
+
#
|
182
|
+
# source://dotenv//lib/dotenv/environment.rb#4
|
183
|
+
def filename; end
|
184
|
+
|
185
|
+
# source://dotenv//lib/dotenv/environment.rb#17
|
186
|
+
def load; end
|
187
|
+
|
188
|
+
# Returns the value of attribute overwrite.
|
189
|
+
#
|
190
|
+
# source://dotenv//lib/dotenv/environment.rb#4
|
191
|
+
def overwrite; end
|
192
|
+
|
193
|
+
# source://dotenv//lib/dotenv/environment.rb#21
|
194
|
+
def read; end
|
195
|
+
end
|
196
|
+
|
197
|
+
# source://dotenv//lib/dotenv/missing_keys.rb#2
|
198
|
+
class Dotenv::Error < ::StandardError; end
|
199
|
+
|
200
|
+
# Error raised when encountering a syntax error while parsing a .env file.
|
201
|
+
#
|
202
|
+
# source://dotenv//lib/dotenv/parser.rb#6
|
203
|
+
class Dotenv::FormatError < ::SyntaxError; end
|
204
|
+
|
205
|
+
# source://dotenv//lib/dotenv/missing_keys.rb#4
|
206
|
+
class Dotenv::MissingKeys < ::Dotenv::Error
|
207
|
+
# @return [MissingKeys] a new instance of MissingKeys
|
208
|
+
#
|
209
|
+
# source://dotenv//lib/dotenv/missing_keys.rb#5
|
210
|
+
def initialize(keys); end
|
211
|
+
end
|
212
|
+
|
213
|
+
# Parses the `.env` file format into key/value pairs.
|
214
|
+
# It allows for variable substitutions, command substitutions, and exporting of variables.
|
215
|
+
#
|
216
|
+
# source://dotenv//lib/dotenv/parser.rb#10
|
217
|
+
class Dotenv::Parser
|
218
|
+
# @return [Parser] a new instance of Parser
|
219
|
+
#
|
220
|
+
# source://dotenv//lib/dotenv/parser.rb#46
|
221
|
+
def initialize(string, overwrite: T.unsafe(nil)); end
|
222
|
+
|
223
|
+
# source://dotenv//lib/dotenv/parser.rb#53
|
224
|
+
def call; end
|
225
|
+
|
226
|
+
private
|
227
|
+
|
228
|
+
# Determine if a variable is already defined and should not be overwritten.
|
229
|
+
#
|
230
|
+
# @return [Boolean]
|
231
|
+
#
|
232
|
+
# source://dotenv//lib/dotenv/parser.rb#76
|
233
|
+
def existing?(key); end
|
234
|
+
|
235
|
+
# source://dotenv//lib/dotenv/parser.rb#101
|
236
|
+
def expand_newlines(value); end
|
237
|
+
|
238
|
+
# source://dotenv//lib/dotenv/parser.rb#80
|
239
|
+
def parse_value(value); end
|
240
|
+
|
241
|
+
# source://dotenv//lib/dotenv/parser.rb#97
|
242
|
+
def unescape_characters(value); end
|
243
|
+
|
244
|
+
class << self
|
245
|
+
# source://dotenv//lib/dotenv/parser.rb#41
|
246
|
+
def call(*_arg0, **_arg1, &_arg2); end
|
247
|
+
|
248
|
+
# Returns the value of attribute substitutions.
|
249
|
+
#
|
250
|
+
# source://dotenv//lib/dotenv/parser.rb#39
|
251
|
+
def substitutions; end
|
252
|
+
end
|
253
|
+
end
|
254
|
+
|
255
|
+
# source://dotenv//lib/dotenv/parser.rb#16
|
256
|
+
Dotenv::Parser::LINE = T.let(T.unsafe(nil), Regexp)
|
257
|
+
|
258
|
+
# source://dotenv//lib/dotenv/parser.rb#36
|
259
|
+
Dotenv::Parser::QUOTED_STRING = T.let(T.unsafe(nil), Regexp)
|
260
|
+
|
261
|
+
# An internal monitor to synchronize access to ENV in multi-threaded environments.
|
262
|
+
#
|
263
|
+
# source://dotenv//lib/dotenv.rb#12
|
264
|
+
Dotenv::SEMAPHORE = T.let(T.unsafe(nil), Monitor)
|
265
|
+
|
266
|
+
# source://dotenv//lib/dotenv/substitutions/variable.rb#4
|
267
|
+
module Dotenv::Substitutions; end
|
268
|
+
|
269
|
+
# Substitute shell commands in a value.
|
270
|
+
#
|
271
|
+
# SHA=$(git rev-parse HEAD)
|
272
|
+
#
|
273
|
+
# source://dotenv//lib/dotenv/substitutions/command.rb#9
|
274
|
+
module Dotenv::Substitutions::Command
|
275
|
+
class << self
|
276
|
+
# source://dotenv//lib/dotenv/substitutions/command.rb#23
|
277
|
+
def call(value, _env); end
|
278
|
+
end
|
279
|
+
end
|
280
|
+
|
281
|
+
# Substitute variables in a value.
|
282
|
+
#
|
283
|
+
# HOST=example.com
|
284
|
+
# URL="https://$HOST"
|
285
|
+
#
|
286
|
+
# source://dotenv//lib/dotenv/substitutions/variable.rb#10
|
287
|
+
module Dotenv::Substitutions::Variable
|
288
|
+
class << self
|
289
|
+
# source://dotenv//lib/dotenv/substitutions/variable.rb#21
|
290
|
+
def call(value, env); end
|
291
|
+
end
|
292
|
+
end
|
293
|
+
|
294
|
+
# source://dotenv//lib/dotenv/version.rb#2
|
295
|
+
Dotenv::VERSION = T.let(T.unsafe(nil), String)
|
@@ -0,0 +1,155 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `erubi` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem erubi`.
|
6
|
+
|
7
|
+
|
8
|
+
# source://erubi//lib/erubi.rb#3
|
9
|
+
module Erubi
|
10
|
+
private
|
11
|
+
|
12
|
+
def h(_arg0); end
|
13
|
+
|
14
|
+
class << self
|
15
|
+
def h(_arg0); end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
# source://erubi//lib/erubi.rb#51
|
20
|
+
class Erubi::Engine
|
21
|
+
# Initialize a new Erubi::Engine. Options:
|
22
|
+
# +:bufval+ :: The value to use for the buffer variable, as a string (default <tt>'::String.new'</tt>).
|
23
|
+
# +:bufvar+ :: The variable name to use for the buffer variable, as a string.
|
24
|
+
# +:chain_appends+ :: Whether to chain <tt><<</t> calls to the buffer variable. Offers better
|
25
|
+
# performance, but can cause issues when the buffer variable is reassigned during
|
26
|
+
# template rendering (default +false+).
|
27
|
+
# +:ensure+ :: Wrap the template in a begin/ensure block restoring the previous value of bufvar.
|
28
|
+
# +:escapefunc+ :: The function to use for escaping, as a string (default: <tt>'::Erubi.h'</tt>).
|
29
|
+
# +:escape+ :: Whether to make <tt><%=</tt> escape by default, and <tt><%==</tt> not escape by default.
|
30
|
+
# +:escape_html+ :: Same as +:escape+, with lower priority.
|
31
|
+
# +:filename+ :: The filename for the template.
|
32
|
+
# the resulting source code. Note this may cause problems if you are wrapping the resulting
|
33
|
+
# source code in other code, because the magic comment only has an effect at the beginning of
|
34
|
+
# the file, and having the magic comment later in the file can trigger warnings.
|
35
|
+
# +:freeze_template_literals+ :: Whether to suffix all literal strings for template code with <tt>.freeze</tt>
|
36
|
+
# (default: +true+ on Ruby 2.1+, +false+ on Ruby 2.0 and older).
|
37
|
+
# Can be set to +false+ on Ruby 2.3+ when frozen string literals are enabled
|
38
|
+
# in order to improve performance.
|
39
|
+
# +:literal_prefix+ :: The prefix to output when using escaped tag delimiters (default <tt>'<%'</tt>).
|
40
|
+
# +:literal_postfix+ :: The postfix to output when using escaped tag delimiters (default <tt>'%>'</tt>).
|
41
|
+
# +:outvar+ :: Same as +:bufvar+, with lower priority.
|
42
|
+
# +:postamble+ :: The postamble for the template, by default returns the resulting source code.
|
43
|
+
# +:preamble+ :: The preamble for the template, by default initializes the buffer variable.
|
44
|
+
# +:regexp+ :: The regexp to use for scanning.
|
45
|
+
# +:src+ :: The initial value to use for the source code, an empty string by default.
|
46
|
+
# +:trim+ :: Whether to trim leading and trailing whitespace, true by default.
|
47
|
+
#
|
48
|
+
# @return [Engine] a new instance of Engine
|
49
|
+
#
|
50
|
+
# source://erubi//lib/erubi.rb#91
|
51
|
+
def initialize(input, properties = T.unsafe(nil)); end
|
52
|
+
|
53
|
+
# The variable name used for the buffer variable.
|
54
|
+
#
|
55
|
+
# source://erubi//lib/erubi.rb#62
|
56
|
+
def bufvar; end
|
57
|
+
|
58
|
+
# The filename of the template, if one was given.
|
59
|
+
#
|
60
|
+
# source://erubi//lib/erubi.rb#59
|
61
|
+
def filename; end
|
62
|
+
|
63
|
+
# The frozen ruby source code generated from the template, which can be evaled.
|
64
|
+
#
|
65
|
+
# source://erubi//lib/erubi.rb#56
|
66
|
+
def src; end
|
67
|
+
|
68
|
+
private
|
69
|
+
|
70
|
+
# :nocov:
|
71
|
+
#
|
72
|
+
# source://erubi//lib/erubi.rb#209
|
73
|
+
def _dup_string_if_frozen(string); end
|
74
|
+
|
75
|
+
# Add ruby code to the template
|
76
|
+
#
|
77
|
+
# source://erubi//lib/erubi.rb#232
|
78
|
+
def add_code(code); end
|
79
|
+
|
80
|
+
# Add the given ruby expression result to the template,
|
81
|
+
# escaping it based on the indicator given and escape flag.
|
82
|
+
#
|
83
|
+
# source://erubi//lib/erubi.rb#241
|
84
|
+
def add_expression(indicator, code); end
|
85
|
+
|
86
|
+
# Add the result of Ruby expression to the template
|
87
|
+
#
|
88
|
+
# source://erubi//lib/erubi.rb#250
|
89
|
+
def add_expression_result(code); end
|
90
|
+
|
91
|
+
# Add the escaped result of Ruby expression to the template
|
92
|
+
#
|
93
|
+
# source://erubi//lib/erubi.rb#255
|
94
|
+
def add_expression_result_escaped(code); end
|
95
|
+
|
96
|
+
# Add the given postamble to the src. Can be overridden in subclasses
|
97
|
+
# to make additional changes to src that depend on the current state.
|
98
|
+
#
|
99
|
+
# source://erubi//lib/erubi.rb#261
|
100
|
+
def add_postamble(postamble); end
|
101
|
+
|
102
|
+
# Add raw text to the template. Modifies argument if argument is mutable as a memory optimization.
|
103
|
+
# Must be called with a string, cannot be called with nil (Rails's subclass depends on it).
|
104
|
+
#
|
105
|
+
# source://erubi//lib/erubi.rb#222
|
106
|
+
def add_text(text); end
|
107
|
+
|
108
|
+
# Raise an exception, as the base engine class does not support handling other indicators.
|
109
|
+
#
|
110
|
+
# @raise [ArgumentError]
|
111
|
+
#
|
112
|
+
# source://erubi//lib/erubi.rb#267
|
113
|
+
def handle(indicator, code, tailch, rspace, lspace); end
|
114
|
+
|
115
|
+
# Make sure that any current expression has been terminated.
|
116
|
+
# The default is to terminate all expressions, but when
|
117
|
+
# the chain_appends option is used, expressions may not be
|
118
|
+
# terminated.
|
119
|
+
#
|
120
|
+
# source://erubi//lib/erubi.rb#295
|
121
|
+
def terminate_expression; end
|
122
|
+
|
123
|
+
# Make sure the buffer variable is the target of the next append
|
124
|
+
# before yielding to the block. Mark that the buffer is the target
|
125
|
+
# of the next append after the block executes.
|
126
|
+
#
|
127
|
+
# This method should only be called if the block will result in
|
128
|
+
# code where << will append to the bufvar.
|
129
|
+
#
|
130
|
+
# source://erubi//lib/erubi.rb#277
|
131
|
+
def with_buffer; end
|
132
|
+
end
|
133
|
+
|
134
|
+
# The default regular expression used for scanning.
|
135
|
+
#
|
136
|
+
# source://erubi//lib/erubi.rb#53
|
137
|
+
Erubi::Engine::DEFAULT_REGEXP = T.let(T.unsafe(nil), Regexp)
|
138
|
+
|
139
|
+
# source://erubi//lib/erubi.rb#17
|
140
|
+
Erubi::FREEZE_TEMPLATE_LITERALS = T.let(T.unsafe(nil), TrueClass)
|
141
|
+
|
142
|
+
# source://erubi//lib/erubi.rb#15
|
143
|
+
Erubi::MATCH_METHOD = T.let(T.unsafe(nil), Symbol)
|
144
|
+
|
145
|
+
# source://erubi//lib/erubi.rb#8
|
146
|
+
Erubi::RANGE_FIRST = T.let(T.unsafe(nil), Integer)
|
147
|
+
|
148
|
+
# source://erubi//lib/erubi.rb#9
|
149
|
+
Erubi::RANGE_LAST = T.let(T.unsafe(nil), Integer)
|
150
|
+
|
151
|
+
# source://erubi//lib/erubi.rb#16
|
152
|
+
Erubi::SKIP_DEFINED_FOR_INSTANCE_VARIABLE = T.let(T.unsafe(nil), TrueClass)
|
153
|
+
|
154
|
+
# source://erubi//lib/erubi.rb#4
|
155
|
+
Erubi::VERSION = T.let(T.unsafe(nil), String)
|