ruby-lsp-rake 0.3.3 → 0.3.5
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/.rubocop.yml +13 -0
- data/Rakefile +5 -1
- data/lib/ruby_lsp/ruby_lsp_rake/addon.rb +15 -29
- data/lib/ruby_lsp/ruby_lsp_rake/code_lens.rb +5 -11
- data/lib/ruby_lsp/ruby_lsp_rake/definition.rb +9 -18
- data/lib/ruby_lsp/ruby_lsp_rake/hover.rb +10 -16
- data/lib/ruby_lsp/ruby_lsp_rake/indexing_enhancement.rb +13 -11
- data/lib/ruby_lsp_rake/version.rb +1 -1
- data/sorbet/config +1 -0
- data/sorbet/rbi/gems/{ast@2.4.2.rbi → ast@2.4.3.rbi} +34 -34
- data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
- data/sorbet/rbi/gems/{erubi@1.13.0.rbi → erubi@1.13.1.rbi} +27 -22
- data/sorbet/rbi/gems/{json@2.8.2.rbi → json@2.12.0.rbi} +355 -205
- data/sorbet/rbi/gems/{language_server-protocol@3.17.0.3.rbi → language_server-protocol@3.17.0.5.rbi} +2693 -2687
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +86 -0
- data/sorbet/rbi/gems/{logger@1.6.1.rbi → logger@1.7.0.rbi} +120 -77
- data/sorbet/rbi/gems/{minitest@5.25.2.rbi → minitest@5.25.5.rbi} +397 -391
- data/sorbet/rbi/gems/{parallel@1.26.3.rbi → parallel@1.27.0.rbi} +72 -72
- data/sorbet/rbi/gems/{parser@3.3.6.0.rbi → parser@3.3.8.0.rbi} +1080 -1064
- data/sorbet/rbi/gems/{prism@1.2.0.rbi → prism@1.4.0.rbi} +8503 -5856
- data/sorbet/rbi/gems/{rbi@0.2.1.rbi → rbi@0.3.3.rbi} +3175 -968
- data/sorbet/rbi/gems/{rbs@3.6.1.rbi → rbs@3.9.3.rbi} +1857 -1736
- data/sorbet/rbi/gems/{regexp_parser@2.9.2.rbi → regexp_parser@2.10.0.rbi} +1037 -1014
- data/sorbet/rbi/gems/rexml@3.4.1.rbi +5240 -0
- data/sorbet/rbi/gems/{rubocop-ast@1.36.2.rbi → rubocop-ast@1.44.1.rbi} +1771 -1625
- data/sorbet/rbi/gems/{rubocop@1.69.0.rbi → rubocop@1.75.5.rbi} +12342 -9764
- data/sorbet/rbi/gems/ruby-lsp@0.23.19.rbi +7453 -0
- data/sorbet/rbi/gems/{spoom@1.5.0.rbi → spoom@1.6.3.rbi} +3098 -1045
- data/sorbet/rbi/gems/{tapioca@0.16.5.rbi → tapioca@0.16.11.rbi} +821 -791
- data/sorbet/rbi/gems/{unicode-display_width@3.1.2.rbi → unicode-display_width@3.1.4.rbi} +34 -32
- data/sorbet/tapioca/require.rb +1 -2
- metadata +26 -23
- data/sorbet/rbi/gems/ruby-lsp@0.22.1.rbi +0 -6119
@@ -5,7 +5,7 @@
|
|
5
5
|
# Please instead update this file by running `bin/tapioca gem erubi`.
|
6
6
|
|
7
7
|
|
8
|
-
# source://erubi
|
8
|
+
# source://erubi//lib/erubi.rb#3
|
9
9
|
module Erubi
|
10
10
|
private
|
11
11
|
|
@@ -16,7 +16,7 @@ module Erubi
|
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
|
-
# source://erubi
|
19
|
+
# source://erubi//lib/erubi.rb#51
|
20
20
|
class Erubi::Engine
|
21
21
|
# Initialize a new Erubi::Engine. Options:
|
22
22
|
# +:bufval+ :: The value to use for the buffer variable, as a string (default <tt>'::String.new'</tt>).
|
@@ -47,64 +47,69 @@ class Erubi::Engine
|
|
47
47
|
#
|
48
48
|
# @return [Engine] a new instance of Engine
|
49
49
|
#
|
50
|
-
# source://erubi
|
50
|
+
# source://erubi//lib/erubi.rb#91
|
51
51
|
def initialize(input, properties = T.unsafe(nil)); end
|
52
52
|
|
53
53
|
# The variable name used for the buffer variable.
|
54
54
|
#
|
55
|
-
# source://erubi
|
55
|
+
# source://erubi//lib/erubi.rb#62
|
56
56
|
def bufvar; end
|
57
57
|
|
58
58
|
# The filename of the template, if one was given.
|
59
59
|
#
|
60
|
-
# source://erubi
|
60
|
+
# source://erubi//lib/erubi.rb#59
|
61
61
|
def filename; end
|
62
62
|
|
63
63
|
# The frozen ruby source code generated from the template, which can be evaled.
|
64
64
|
#
|
65
|
-
# source://erubi
|
65
|
+
# source://erubi//lib/erubi.rb#56
|
66
66
|
def src; end
|
67
67
|
|
68
68
|
private
|
69
69
|
|
70
|
+
# :nocov:
|
71
|
+
#
|
72
|
+
# source://erubi//lib/erubi.rb#209
|
73
|
+
def _dup_string_if_frozen(string); end
|
74
|
+
|
70
75
|
# Add ruby code to the template
|
71
76
|
#
|
72
|
-
# source://erubi
|
77
|
+
# source://erubi//lib/erubi.rb#232
|
73
78
|
def add_code(code); end
|
74
79
|
|
75
80
|
# Add the given ruby expression result to the template,
|
76
81
|
# escaping it based on the indicator given and escape flag.
|
77
82
|
#
|
78
|
-
# source://erubi
|
83
|
+
# source://erubi//lib/erubi.rb#241
|
79
84
|
def add_expression(indicator, code); end
|
80
85
|
|
81
86
|
# Add the result of Ruby expression to the template
|
82
87
|
#
|
83
|
-
# source://erubi
|
88
|
+
# source://erubi//lib/erubi.rb#250
|
84
89
|
def add_expression_result(code); end
|
85
90
|
|
86
91
|
# Add the escaped result of Ruby expression to the template
|
87
92
|
#
|
88
|
-
# source://erubi
|
93
|
+
# source://erubi//lib/erubi.rb#255
|
89
94
|
def add_expression_result_escaped(code); end
|
90
95
|
|
91
96
|
# Add the given postamble to the src. Can be overridden in subclasses
|
92
97
|
# to make additional changes to src that depend on the current state.
|
93
98
|
#
|
94
|
-
# source://erubi
|
99
|
+
# source://erubi//lib/erubi.rb#261
|
95
100
|
def add_postamble(postamble); end
|
96
101
|
|
97
102
|
# Add raw text to the template. Modifies argument if argument is mutable as a memory optimization.
|
98
103
|
# Must be called with a string, cannot be called with nil (Rails's subclass depends on it).
|
99
104
|
#
|
100
|
-
# source://erubi
|
105
|
+
# source://erubi//lib/erubi.rb#222
|
101
106
|
def add_text(text); end
|
102
107
|
|
103
108
|
# Raise an exception, as the base engine class does not support handling other indicators.
|
104
109
|
#
|
105
110
|
# @raise [ArgumentError]
|
106
111
|
#
|
107
|
-
# source://erubi
|
112
|
+
# source://erubi//lib/erubi.rb#267
|
108
113
|
def handle(indicator, code, tailch, rspace, lspace); end
|
109
114
|
|
110
115
|
# Make sure that any current expression has been terminated.
|
@@ -112,7 +117,7 @@ class Erubi::Engine
|
|
112
117
|
# the chain_appends option is used, expressions may not be
|
113
118
|
# terminated.
|
114
119
|
#
|
115
|
-
# source://erubi
|
120
|
+
# source://erubi//lib/erubi.rb#295
|
116
121
|
def terminate_expression; end
|
117
122
|
|
118
123
|
# Make sure the buffer variable is the target of the next append
|
@@ -122,29 +127,29 @@ class Erubi::Engine
|
|
122
127
|
# This method should only be called if the block will result in
|
123
128
|
# code where << will append to the bufvar.
|
124
129
|
#
|
125
|
-
# source://erubi
|
130
|
+
# source://erubi//lib/erubi.rb#277
|
126
131
|
def with_buffer; end
|
127
132
|
end
|
128
133
|
|
129
134
|
# The default regular expression used for scanning.
|
130
135
|
#
|
131
|
-
# source://erubi
|
136
|
+
# source://erubi//lib/erubi.rb#53
|
132
137
|
Erubi::Engine::DEFAULT_REGEXP = T.let(T.unsafe(nil), Regexp)
|
133
138
|
|
134
|
-
# source://erubi
|
139
|
+
# source://erubi//lib/erubi.rb#17
|
135
140
|
Erubi::FREEZE_TEMPLATE_LITERALS = T.let(T.unsafe(nil), TrueClass)
|
136
141
|
|
137
|
-
# source://erubi
|
142
|
+
# source://erubi//lib/erubi.rb#15
|
138
143
|
Erubi::MATCH_METHOD = T.let(T.unsafe(nil), Symbol)
|
139
144
|
|
140
|
-
# source://erubi
|
145
|
+
# source://erubi//lib/erubi.rb#8
|
141
146
|
Erubi::RANGE_FIRST = T.let(T.unsafe(nil), Integer)
|
142
147
|
|
143
|
-
# source://erubi
|
148
|
+
# source://erubi//lib/erubi.rb#9
|
144
149
|
Erubi::RANGE_LAST = T.let(T.unsafe(nil), Integer)
|
145
150
|
|
146
|
-
# source://erubi
|
151
|
+
# source://erubi//lib/erubi.rb#16
|
147
152
|
Erubi::SKIP_DEFINED_FOR_INSTANCE_VARIABLE = T.let(T.unsafe(nil), TrueClass)
|
148
153
|
|
149
|
-
# source://erubi
|
154
|
+
# source://erubi//lib/erubi.rb#4
|
150
155
|
Erubi::VERSION = T.let(T.unsafe(nil), String)
|