solargraph 0.47.2 → 0.54.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/.github/FUNDING.yml +1 -0
- data/.github/workflows/plugins.yml +40 -0
- data/.github/workflows/rspec.yml +4 -8
- data/.github/workflows/typecheck.yml +34 -0
- data/.yardopts +2 -2
- data/CHANGELOG.md +166 -3
- data/LICENSE +1 -1
- data/README.md +19 -16
- data/SPONSORS.md +2 -9
- data/lib/solargraph/api_map/cache.rb +50 -20
- data/lib/solargraph/api_map/source_to_yard.rb +17 -10
- data/lib/solargraph/api_map/store.rb +68 -15
- data/lib/solargraph/api_map.rb +238 -112
- data/lib/solargraph/bench.rb +3 -2
- data/lib/solargraph/cache.rb +77 -0
- data/lib/solargraph/complex_type/type_methods.rb +116 -35
- data/lib/solargraph/complex_type/unique_type.rb +261 -33
- data/lib/solargraph/complex_type.rb +149 -30
- data/lib/solargraph/convention/rakefile.rb +17 -0
- data/lib/solargraph/convention.rb +2 -3
- data/lib/solargraph/converters/dd.rb +5 -0
- data/lib/solargraph/converters/dl.rb +3 -0
- data/lib/solargraph/converters/dt.rb +3 -0
- data/lib/solargraph/diagnostics/rubocop.rb +23 -8
- data/lib/solargraph/diagnostics/rubocop_helpers.rb +4 -1
- data/lib/solargraph/diagnostics/type_check.rb +1 -0
- data/lib/solargraph/diagnostics.rb +2 -2
- data/lib/solargraph/doc_map.rb +187 -0
- data/lib/solargraph/gem_pins.rb +72 -0
- data/lib/solargraph/language_server/host/diagnoser.rb +2 -2
- data/lib/solargraph/language_server/host/dispatch.rb +22 -5
- data/lib/solargraph/language_server/host/message_worker.rb +4 -0
- data/lib/solargraph/language_server/host/sources.rb +8 -65
- data/lib/solargraph/language_server/host.rb +88 -93
- data/lib/solargraph/language_server/message/base.rb +1 -1
- data/lib/solargraph/language_server/message/completion_item/resolve.rb +3 -1
- data/lib/solargraph/language_server/message/extended/check_gem_version.rb +13 -1
- data/lib/solargraph/language_server/message/extended/download_core.rb +1 -5
- data/lib/solargraph/language_server/message/initialize.rb +27 -0
- data/lib/solargraph/language_server/message/initialized.rb +1 -0
- data/lib/solargraph/language_server/message/text_document/document_symbol.rb +4 -1
- data/lib/solargraph/language_server/message/text_document/formatting.rb +5 -4
- data/lib/solargraph/language_server/message/text_document/hover.rb +2 -0
- data/lib/solargraph/language_server/message/text_document/signature_help.rb +1 -6
- data/lib/solargraph/language_server/message/text_document/type_definition.rb +24 -0
- data/lib/solargraph/language_server/message/text_document.rb +1 -1
- data/lib/solargraph/language_server/message/workspace/did_change_configuration.rb +5 -0
- data/lib/solargraph/language_server/message/workspace/did_change_watched_files.rb +10 -3
- data/lib/solargraph/language_server/message.rb +1 -0
- data/lib/solargraph/language_server/progress.rb +118 -0
- data/lib/solargraph/language_server/transport/adapter.rb +16 -1
- data/lib/solargraph/language_server/transport/data_reader.rb +2 -0
- data/lib/solargraph/language_server.rb +1 -0
- data/lib/solargraph/library.rb +231 -104
- data/lib/solargraph/location.rb +1 -0
- data/lib/solargraph/page.rb +6 -0
- data/lib/solargraph/parser/comment_ripper.rb +4 -0
- data/lib/solargraph/parser/node_methods.rb +47 -7
- data/lib/solargraph/parser/node_processor/base.rb +11 -1
- data/lib/solargraph/parser/node_processor.rb +1 -0
- data/lib/solargraph/parser/{legacy → parser_gem}/class_methods.rb +31 -9
- data/lib/solargraph/parser/{legacy → parser_gem}/flawed_builder.rb +3 -1
- data/lib/solargraph/parser/{legacy → parser_gem}/node_chainer.rb +57 -41
- data/lib/solargraph/parser/parser_gem/node_methods.rb +495 -0
- data/lib/solargraph/parser/{rubyvm → parser_gem}/node_processors/alias_node.rb +1 -1
- data/lib/solargraph/parser/parser_gem/node_processors/args_node.rb +53 -0
- data/lib/solargraph/parser/{rubyvm → parser_gem}/node_processors/begin_node.rb +1 -1
- data/lib/solargraph/parser/{legacy → parser_gem}/node_processors/block_node.rb +3 -2
- data/lib/solargraph/parser/{legacy → parser_gem}/node_processors/casgn_node.rb +14 -4
- data/lib/solargraph/parser/{rubyvm → parser_gem}/node_processors/cvasgn_node.rb +1 -1
- data/lib/solargraph/parser/{rubyvm → parser_gem}/node_processors/def_node.rb +7 -20
- data/lib/solargraph/parser/{legacy → parser_gem}/node_processors/defs_node.rb +2 -2
- data/lib/solargraph/parser/{legacy → parser_gem}/node_processors/gvasgn_node.rb +1 -1
- data/lib/solargraph/parser/{legacy → parser_gem}/node_processors/ivasgn_node.rb +2 -2
- data/lib/solargraph/parser/{legacy → parser_gem}/node_processors/lvasgn_node.rb +2 -2
- data/lib/solargraph/parser/parser_gem/node_processors/masgn_node.rb +47 -0
- data/lib/solargraph/parser/{legacy → parser_gem}/node_processors/namespace_node.rb +2 -2
- data/lib/solargraph/parser/{legacy → parser_gem}/node_processors/orasgn_node.rb +1 -1
- data/lib/solargraph/parser/{legacy → parser_gem}/node_processors/resbody_node.rb +3 -3
- data/lib/solargraph/parser/parser_gem/node_processors/sclass_node.rb +42 -0
- data/lib/solargraph/parser/{legacy → parser_gem}/node_processors/send_node.rb +7 -5
- data/lib/solargraph/parser/{legacy → parser_gem}/node_processors/sym_node.rb +1 -1
- data/lib/solargraph/parser/parser_gem/node_processors.rb +56 -0
- data/lib/solargraph/parser/parser_gem.rb +12 -0
- data/lib/solargraph/parser/region.rb +1 -1
- data/lib/solargraph/parser/snippet.rb +2 -0
- data/lib/solargraph/parser.rb +9 -10
- data/lib/solargraph/pin/base.rb +69 -11
- data/lib/solargraph/pin/base_variable.rb +40 -7
- data/lib/solargraph/pin/block.rb +81 -33
- data/lib/solargraph/pin/closure.rb +17 -2
- data/lib/solargraph/pin/common.rb +7 -3
- data/lib/solargraph/pin/conversions.rb +34 -8
- data/lib/solargraph/pin/delegated_method.rb +101 -0
- data/lib/solargraph/pin/documenting.rb +25 -32
- data/lib/solargraph/pin/instance_variable.rb +4 -0
- data/lib/solargraph/pin/local_variable.rb +13 -1
- data/lib/solargraph/pin/method.rb +273 -17
- data/lib/solargraph/pin/namespace.rb +17 -1
- data/lib/solargraph/pin/parameter.rb +40 -28
- data/lib/solargraph/pin/reference/override.rb +2 -2
- data/lib/solargraph/pin/reference.rb +8 -0
- data/lib/solargraph/pin/search.rb +4 -4
- data/lib/solargraph/pin/signature.rb +143 -0
- data/lib/solargraph/pin.rb +2 -1
- data/lib/solargraph/range.rb +4 -6
- data/lib/solargraph/rbs_map/conversions.rb +607 -0
- data/lib/solargraph/rbs_map/core_fills.rb +50 -0
- data/lib/solargraph/rbs_map/core_map.rb +28 -0
- data/lib/solargraph/rbs_map/stdlib_map.rb +33 -0
- data/lib/solargraph/rbs_map.rb +92 -0
- data/lib/solargraph/shell.rb +85 -59
- data/lib/solargraph/source/chain/array.rb +32 -0
- data/lib/solargraph/source/chain/block_symbol.rb +13 -0
- data/lib/solargraph/source/chain/call.rb +125 -61
- data/lib/solargraph/source/chain/constant.rb +15 -1
- data/lib/solargraph/source/chain/if.rb +23 -0
- data/lib/solargraph/source/chain/link.rb +8 -2
- data/lib/solargraph/source/chain/or.rb +1 -1
- data/lib/solargraph/source/chain/z_super.rb +3 -3
- data/lib/solargraph/source/chain.rb +64 -14
- data/lib/solargraph/source/change.rb +3 -0
- data/lib/solargraph/source/cursor.rb +2 -0
- data/lib/solargraph/source/source_chainer.rb +8 -5
- data/lib/solargraph/source/updater.rb +1 -0
- data/lib/solargraph/source.rb +18 -63
- data/lib/solargraph/source_map/clip.rb +31 -23
- data/lib/solargraph/source_map/mapper.rb +23 -7
- data/lib/solargraph/source_map.rb +36 -11
- data/lib/solargraph/type_checker/checks.rb +10 -2
- data/lib/solargraph/type_checker.rb +229 -100
- data/lib/solargraph/version.rb +1 -1
- data/lib/solargraph/views/environment.erb +2 -2
- data/lib/solargraph/workspace/config.rb +15 -11
- data/lib/solargraph/workspace.rb +41 -17
- data/lib/solargraph/yard_map/cache.rb +6 -0
- data/lib/solargraph/yard_map/helpers.rb +1 -1
- data/lib/solargraph/yard_map/mapper/to_method.rb +23 -7
- data/lib/solargraph/yard_map/mapper.rb +1 -1
- data/lib/solargraph/yard_map/to_method.rb +11 -4
- data/lib/solargraph/yard_map.rb +1 -443
- data/lib/solargraph/yard_tags.rb +20 -0
- data/lib/solargraph/yardoc.rb +52 -0
- data/lib/solargraph.rb +8 -6
- data/solargraph.gemspec +19 -8
- metadata +164 -99
- data/.travis.yml +0 -19
- data/lib/solargraph/api_map/bundler_methods.rb +0 -22
- data/lib/solargraph/compat.rb +0 -37
- data/lib/solargraph/convention/rspec.rb +0 -30
- data/lib/solargraph/documentor.rb +0 -76
- data/lib/solargraph/language_server/host/cataloger.rb +0 -56
- data/lib/solargraph/parser/legacy/node_methods.rb +0 -325
- data/lib/solargraph/parser/legacy/node_processors/alias_node.rb +0 -23
- data/lib/solargraph/parser/legacy/node_processors/args_node.rb +0 -35
- data/lib/solargraph/parser/legacy/node_processors/begin_node.rb +0 -15
- data/lib/solargraph/parser/legacy/node_processors/cvasgn_node.rb +0 -23
- data/lib/solargraph/parser/legacy/node_processors/def_node.rb +0 -63
- data/lib/solargraph/parser/legacy/node_processors/sclass_node.rb +0 -21
- data/lib/solargraph/parser/legacy/node_processors.rb +0 -54
- data/lib/solargraph/parser/legacy.rb +0 -12
- data/lib/solargraph/parser/rubyvm/class_methods.rb +0 -144
- data/lib/solargraph/parser/rubyvm/node_chainer.rb +0 -160
- data/lib/solargraph/parser/rubyvm/node_methods.rb +0 -315
- data/lib/solargraph/parser/rubyvm/node_processors/args_node.rb +0 -85
- data/lib/solargraph/parser/rubyvm/node_processors/block_node.rb +0 -42
- data/lib/solargraph/parser/rubyvm/node_processors/casgn_node.rb +0 -22
- data/lib/solargraph/parser/rubyvm/node_processors/defs_node.rb +0 -57
- data/lib/solargraph/parser/rubyvm/node_processors/gvasgn_node.rb +0 -23
- data/lib/solargraph/parser/rubyvm/node_processors/ivasgn_node.rb +0 -38
- data/lib/solargraph/parser/rubyvm/node_processors/kw_arg_node.rb +0 -39
- data/lib/solargraph/parser/rubyvm/node_processors/lit_node.rb +0 -20
- data/lib/solargraph/parser/rubyvm/node_processors/lvasgn_node.rb +0 -27
- data/lib/solargraph/parser/rubyvm/node_processors/namespace_node.rb +0 -39
- data/lib/solargraph/parser/rubyvm/node_processors/opt_arg_node.rb +0 -26
- data/lib/solargraph/parser/rubyvm/node_processors/orasgn_node.rb +0 -15
- data/lib/solargraph/parser/rubyvm/node_processors/resbody_node.rb +0 -45
- data/lib/solargraph/parser/rubyvm/node_processors/sclass_node.rb +0 -21
- data/lib/solargraph/parser/rubyvm/node_processors/scope_node.rb +0 -15
- data/lib/solargraph/parser/rubyvm/node_processors/send_node.rb +0 -277
- data/lib/solargraph/parser/rubyvm/node_processors/sym_node.rb +0 -18
- data/lib/solargraph/parser/rubyvm/node_processors.rb +0 -63
- data/lib/solargraph/parser/rubyvm.rb +0 -40
- data/lib/solargraph/yard_map/core_docs.rb +0 -170
- data/lib/solargraph/yard_map/core_fills.rb +0 -208
- data/lib/solargraph/yard_map/core_gen.rb +0 -76
- data/lib/solargraph/yard_map/rdoc_to_yard.rb +0 -140
- data/lib/solargraph/yard_map/stdlib_fills.rb +0 -43
- data/lib/yard-solargraph.rb +0 -33
- data/yardoc/2.2.2.tar.gz +0 -0
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solargraph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.54.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fred Snyder
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backport
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '2.0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: '2.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: diff-lcs
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,61 +67,89 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '1.4'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: jaro_winkler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '1.6'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '1.6'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: kramdown
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '2.3'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '2.3'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name: kramdown
|
98
|
+
name: kramdown-parser-gfm
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '1.1'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '1.1'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: logger
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '1.
|
117
|
+
version: '1.6'
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '1.
|
124
|
+
version: '1.6'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: observer
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0.1'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0.1'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: ostruct
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0.6'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0.6'
|
125
153
|
- !ruby/object:Gem::Dependency
|
126
154
|
name: parser
|
127
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,40 +164,54 @@ dependencies:
|
|
136
164
|
- - "~>"
|
137
165
|
- !ruby/object:Gem::Version
|
138
166
|
version: '3.0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: rbs
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '3.3'
|
174
|
+
type: :runtime
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '3.3'
|
139
181
|
- !ruby/object:Gem::Dependency
|
140
182
|
name: reverse_markdown
|
141
183
|
requirement: !ruby/object:Gem::Requirement
|
142
184
|
requirements:
|
143
185
|
- - ">="
|
144
186
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
187
|
+
version: '2.0'
|
146
188
|
- - "<"
|
147
189
|
- !ruby/object:Gem::Version
|
148
|
-
version: '
|
190
|
+
version: '4'
|
149
191
|
type: :runtime
|
150
192
|
prerelease: false
|
151
193
|
version_requirements: !ruby/object:Gem::Requirement
|
152
194
|
requirements:
|
153
195
|
- - ">="
|
154
196
|
- !ruby/object:Gem::Version
|
155
|
-
version:
|
197
|
+
version: '2.0'
|
156
198
|
- - "<"
|
157
199
|
- !ruby/object:Gem::Version
|
158
|
-
version: '
|
200
|
+
version: '4'
|
159
201
|
- !ruby/object:Gem::Dependency
|
160
202
|
name: rubocop
|
161
203
|
requirement: !ruby/object:Gem::Requirement
|
162
204
|
requirements:
|
163
|
-
- - "
|
205
|
+
- - "~>"
|
164
206
|
- !ruby/object:Gem::Version
|
165
|
-
version: '
|
207
|
+
version: '1.38'
|
166
208
|
type: :runtime
|
167
209
|
prerelease: false
|
168
210
|
version_requirements: !ruby/object:Gem::Requirement
|
169
211
|
requirements:
|
170
|
-
- - "
|
212
|
+
- - "~>"
|
171
213
|
- !ruby/object:Gem::Version
|
172
|
-
version: '
|
214
|
+
version: '1.38'
|
173
215
|
- !ruby/object:Gem::Dependency
|
174
216
|
name: thor
|
175
217
|
requirement: !ruby/object:Gem::Requirement
|
@@ -218,6 +260,20 @@ dependencies:
|
|
218
260
|
- - ">="
|
219
261
|
- !ruby/object:Gem::Version
|
220
262
|
version: 0.9.24
|
263
|
+
- !ruby/object:Gem::Dependency
|
264
|
+
name: yard-solargraph
|
265
|
+
requirement: !ruby/object:Gem::Requirement
|
266
|
+
requirements:
|
267
|
+
- - "~>"
|
268
|
+
- !ruby/object:Gem::Version
|
269
|
+
version: '0.1'
|
270
|
+
type: :runtime
|
271
|
+
prerelease: false
|
272
|
+
version_requirements: !ruby/object:Gem::Requirement
|
273
|
+
requirements:
|
274
|
+
- - "~>"
|
275
|
+
- !ruby/object:Gem::Version
|
276
|
+
version: '0.1'
|
221
277
|
- !ruby/object:Gem::Dependency
|
222
278
|
name: pry
|
223
279
|
requirement: !ruby/object:Gem::Requirement
|
@@ -246,6 +302,20 @@ dependencies:
|
|
246
302
|
- - "~>"
|
247
303
|
- !ruby/object:Gem::Version
|
248
304
|
version: '3.1'
|
305
|
+
- !ruby/object:Gem::Dependency
|
306
|
+
name: rake
|
307
|
+
requirement: !ruby/object:Gem::Requirement
|
308
|
+
requirements:
|
309
|
+
- - "~>"
|
310
|
+
- !ruby/object:Gem::Version
|
311
|
+
version: '13.2'
|
312
|
+
type: :development
|
313
|
+
prerelease: false
|
314
|
+
version_requirements: !ruby/object:Gem::Requirement
|
315
|
+
requirements:
|
316
|
+
- - "~>"
|
317
|
+
- !ruby/object:Gem::Version
|
318
|
+
version: '13.2'
|
249
319
|
- !ruby/object:Gem::Dependency
|
250
320
|
name: rspec
|
251
321
|
requirement: !ruby/object:Gem::Requirement
|
@@ -253,9 +323,6 @@ dependencies:
|
|
253
323
|
- - "~>"
|
254
324
|
- !ruby/object:Gem::Version
|
255
325
|
version: '3.5'
|
256
|
-
- - ">="
|
257
|
-
- !ruby/object:Gem::Version
|
258
|
-
version: 3.5.0
|
259
326
|
type: :development
|
260
327
|
prerelease: false
|
261
328
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -263,9 +330,6 @@ dependencies:
|
|
263
330
|
- - "~>"
|
264
331
|
- !ruby/object:Gem::Version
|
265
332
|
version: '3.5'
|
266
|
-
- - ">="
|
267
|
-
- !ruby/object:Gem::Version
|
268
|
-
version: 3.5.0
|
269
333
|
- !ruby/object:Gem::Dependency
|
270
334
|
name: simplecov
|
271
335
|
requirement: !ruby/object:Gem::Requirement
|
@@ -294,6 +358,20 @@ dependencies:
|
|
294
358
|
- - "~>"
|
295
359
|
- !ruby/object:Gem::Version
|
296
360
|
version: '3.6'
|
361
|
+
- !ruby/object:Gem::Dependency
|
362
|
+
name: irb
|
363
|
+
requirement: !ruby/object:Gem::Requirement
|
364
|
+
requirements:
|
365
|
+
- - ">="
|
366
|
+
- !ruby/object:Gem::Version
|
367
|
+
version: '0'
|
368
|
+
type: :development
|
369
|
+
prerelease: false
|
370
|
+
version_requirements: !ruby/object:Gem::Requirement
|
371
|
+
requirements:
|
372
|
+
- - ">="
|
373
|
+
- !ruby/object:Gem::Version
|
374
|
+
version: '0'
|
297
375
|
description: IDE tools for code completion, inline documentation, and static analysis
|
298
376
|
email: admin@castwide.com
|
299
377
|
executables:
|
@@ -301,10 +379,12 @@ executables:
|
|
301
379
|
extensions: []
|
302
380
|
extra_rdoc_files: []
|
303
381
|
files:
|
382
|
+
- ".github/FUNDING.yml"
|
383
|
+
- ".github/workflows/plugins.yml"
|
304
384
|
- ".github/workflows/rspec.yml"
|
385
|
+
- ".github/workflows/typecheck.yml"
|
305
386
|
- ".gitignore"
|
306
387
|
- ".rspec"
|
307
|
-
- ".travis.yml"
|
308
388
|
- ".yardopts"
|
309
389
|
- CHANGELOG.md
|
310
390
|
- Gemfile
|
@@ -316,12 +396,11 @@ files:
|
|
316
396
|
- lib/.rubocop.yml
|
317
397
|
- lib/solargraph.rb
|
318
398
|
- lib/solargraph/api_map.rb
|
319
|
-
- lib/solargraph/api_map/bundler_methods.rb
|
320
399
|
- lib/solargraph/api_map/cache.rb
|
321
400
|
- lib/solargraph/api_map/source_to_yard.rb
|
322
401
|
- lib/solargraph/api_map/store.rb
|
323
402
|
- lib/solargraph/bench.rb
|
324
|
-
- lib/solargraph/
|
403
|
+
- lib/solargraph/cache.rb
|
325
404
|
- lib/solargraph/complex_type.rb
|
326
405
|
- lib/solargraph/complex_type/type_methods.rb
|
327
406
|
- lib/solargraph/complex_type/unique_type.rb
|
@@ -329,7 +408,7 @@ files:
|
|
329
408
|
- lib/solargraph/convention/base.rb
|
330
409
|
- lib/solargraph/convention/gemfile.rb
|
331
410
|
- lib/solargraph/convention/gemspec.rb
|
332
|
-
- lib/solargraph/convention/
|
411
|
+
- lib/solargraph/convention/rakefile.rb
|
333
412
|
- lib/solargraph/converters/dd.rb
|
334
413
|
- lib/solargraph/converters/dl.rb
|
335
414
|
- lib/solargraph/converters/dt.rb
|
@@ -342,13 +421,13 @@ files:
|
|
342
421
|
- lib/solargraph/diagnostics/severities.rb
|
343
422
|
- lib/solargraph/diagnostics/type_check.rb
|
344
423
|
- lib/solargraph/diagnostics/update_errors.rb
|
345
|
-
- lib/solargraph/
|
424
|
+
- lib/solargraph/doc_map.rb
|
346
425
|
- lib/solargraph/environ.rb
|
426
|
+
- lib/solargraph/gem_pins.rb
|
347
427
|
- lib/solargraph/language_server.rb
|
348
428
|
- lib/solargraph/language_server/completion_item_kinds.rb
|
349
429
|
- lib/solargraph/language_server/error_codes.rb
|
350
430
|
- lib/solargraph/language_server/host.rb
|
351
|
-
- lib/solargraph/language_server/host/cataloger.rb
|
352
431
|
- lib/solargraph/language_server/host/diagnoser.rb
|
353
432
|
- lib/solargraph/language_server/host/dispatch.rb
|
354
433
|
- lib/solargraph/language_server/host/message_worker.rb
|
@@ -392,12 +471,14 @@ files:
|
|
392
471
|
- lib/solargraph/language_server/message/text_document/references.rb
|
393
472
|
- lib/solargraph/language_server/message/text_document/rename.rb
|
394
473
|
- lib/solargraph/language_server/message/text_document/signature_help.rb
|
474
|
+
- lib/solargraph/language_server/message/text_document/type_definition.rb
|
395
475
|
- lib/solargraph/language_server/message/workspace.rb
|
396
476
|
- lib/solargraph/language_server/message/workspace/did_change_configuration.rb
|
397
477
|
- lib/solargraph/language_server/message/workspace/did_change_watched_files.rb
|
398
478
|
- lib/solargraph/language_server/message/workspace/did_change_workspace_folders.rb
|
399
479
|
- lib/solargraph/language_server/message/workspace/workspace_symbol.rb
|
400
480
|
- lib/solargraph/language_server/message_types.rb
|
481
|
+
- lib/solargraph/language_server/progress.rb
|
401
482
|
- lib/solargraph/language_server/request.rb
|
402
483
|
- lib/solargraph/language_server/symbol_kinds.rb
|
403
484
|
- lib/solargraph/language_server/transport.rb
|
@@ -410,59 +491,34 @@ files:
|
|
410
491
|
- lib/solargraph/page.rb
|
411
492
|
- lib/solargraph/parser.rb
|
412
493
|
- lib/solargraph/parser/comment_ripper.rb
|
413
|
-
- lib/solargraph/parser/legacy.rb
|
414
|
-
- lib/solargraph/parser/legacy/class_methods.rb
|
415
|
-
- lib/solargraph/parser/legacy/flawed_builder.rb
|
416
|
-
- lib/solargraph/parser/legacy/node_chainer.rb
|
417
|
-
- lib/solargraph/parser/legacy/node_methods.rb
|
418
|
-
- lib/solargraph/parser/legacy/node_processors.rb
|
419
|
-
- lib/solargraph/parser/legacy/node_processors/alias_node.rb
|
420
|
-
- lib/solargraph/parser/legacy/node_processors/args_node.rb
|
421
|
-
- lib/solargraph/parser/legacy/node_processors/begin_node.rb
|
422
|
-
- lib/solargraph/parser/legacy/node_processors/block_node.rb
|
423
|
-
- lib/solargraph/parser/legacy/node_processors/casgn_node.rb
|
424
|
-
- lib/solargraph/parser/legacy/node_processors/cvasgn_node.rb
|
425
|
-
- lib/solargraph/parser/legacy/node_processors/def_node.rb
|
426
|
-
- lib/solargraph/parser/legacy/node_processors/defs_node.rb
|
427
|
-
- lib/solargraph/parser/legacy/node_processors/gvasgn_node.rb
|
428
|
-
- lib/solargraph/parser/legacy/node_processors/ivasgn_node.rb
|
429
|
-
- lib/solargraph/parser/legacy/node_processors/lvasgn_node.rb
|
430
|
-
- lib/solargraph/parser/legacy/node_processors/namespace_node.rb
|
431
|
-
- lib/solargraph/parser/legacy/node_processors/orasgn_node.rb
|
432
|
-
- lib/solargraph/parser/legacy/node_processors/resbody_node.rb
|
433
|
-
- lib/solargraph/parser/legacy/node_processors/sclass_node.rb
|
434
|
-
- lib/solargraph/parser/legacy/node_processors/send_node.rb
|
435
|
-
- lib/solargraph/parser/legacy/node_processors/sym_node.rb
|
436
494
|
- lib/solargraph/parser/node_methods.rb
|
437
495
|
- lib/solargraph/parser/node_processor.rb
|
438
496
|
- lib/solargraph/parser/node_processor/base.rb
|
497
|
+
- lib/solargraph/parser/parser_gem.rb
|
498
|
+
- lib/solargraph/parser/parser_gem/class_methods.rb
|
499
|
+
- lib/solargraph/parser/parser_gem/flawed_builder.rb
|
500
|
+
- lib/solargraph/parser/parser_gem/node_chainer.rb
|
501
|
+
- lib/solargraph/parser/parser_gem/node_methods.rb
|
502
|
+
- lib/solargraph/parser/parser_gem/node_processors.rb
|
503
|
+
- lib/solargraph/parser/parser_gem/node_processors/alias_node.rb
|
504
|
+
- lib/solargraph/parser/parser_gem/node_processors/args_node.rb
|
505
|
+
- lib/solargraph/parser/parser_gem/node_processors/begin_node.rb
|
506
|
+
- lib/solargraph/parser/parser_gem/node_processors/block_node.rb
|
507
|
+
- lib/solargraph/parser/parser_gem/node_processors/casgn_node.rb
|
508
|
+
- lib/solargraph/parser/parser_gem/node_processors/cvasgn_node.rb
|
509
|
+
- lib/solargraph/parser/parser_gem/node_processors/def_node.rb
|
510
|
+
- lib/solargraph/parser/parser_gem/node_processors/defs_node.rb
|
511
|
+
- lib/solargraph/parser/parser_gem/node_processors/gvasgn_node.rb
|
512
|
+
- lib/solargraph/parser/parser_gem/node_processors/ivasgn_node.rb
|
513
|
+
- lib/solargraph/parser/parser_gem/node_processors/lvasgn_node.rb
|
514
|
+
- lib/solargraph/parser/parser_gem/node_processors/masgn_node.rb
|
515
|
+
- lib/solargraph/parser/parser_gem/node_processors/namespace_node.rb
|
516
|
+
- lib/solargraph/parser/parser_gem/node_processors/orasgn_node.rb
|
517
|
+
- lib/solargraph/parser/parser_gem/node_processors/resbody_node.rb
|
518
|
+
- lib/solargraph/parser/parser_gem/node_processors/sclass_node.rb
|
519
|
+
- lib/solargraph/parser/parser_gem/node_processors/send_node.rb
|
520
|
+
- lib/solargraph/parser/parser_gem/node_processors/sym_node.rb
|
439
521
|
- lib/solargraph/parser/region.rb
|
440
|
-
- lib/solargraph/parser/rubyvm.rb
|
441
|
-
- lib/solargraph/parser/rubyvm/class_methods.rb
|
442
|
-
- lib/solargraph/parser/rubyvm/node_chainer.rb
|
443
|
-
- lib/solargraph/parser/rubyvm/node_methods.rb
|
444
|
-
- lib/solargraph/parser/rubyvm/node_processors.rb
|
445
|
-
- lib/solargraph/parser/rubyvm/node_processors/alias_node.rb
|
446
|
-
- lib/solargraph/parser/rubyvm/node_processors/args_node.rb
|
447
|
-
- lib/solargraph/parser/rubyvm/node_processors/begin_node.rb
|
448
|
-
- lib/solargraph/parser/rubyvm/node_processors/block_node.rb
|
449
|
-
- lib/solargraph/parser/rubyvm/node_processors/casgn_node.rb
|
450
|
-
- lib/solargraph/parser/rubyvm/node_processors/cvasgn_node.rb
|
451
|
-
- lib/solargraph/parser/rubyvm/node_processors/def_node.rb
|
452
|
-
- lib/solargraph/parser/rubyvm/node_processors/defs_node.rb
|
453
|
-
- lib/solargraph/parser/rubyvm/node_processors/gvasgn_node.rb
|
454
|
-
- lib/solargraph/parser/rubyvm/node_processors/ivasgn_node.rb
|
455
|
-
- lib/solargraph/parser/rubyvm/node_processors/kw_arg_node.rb
|
456
|
-
- lib/solargraph/parser/rubyvm/node_processors/lit_node.rb
|
457
|
-
- lib/solargraph/parser/rubyvm/node_processors/lvasgn_node.rb
|
458
|
-
- lib/solargraph/parser/rubyvm/node_processors/namespace_node.rb
|
459
|
-
- lib/solargraph/parser/rubyvm/node_processors/opt_arg_node.rb
|
460
|
-
- lib/solargraph/parser/rubyvm/node_processors/orasgn_node.rb
|
461
|
-
- lib/solargraph/parser/rubyvm/node_processors/resbody_node.rb
|
462
|
-
- lib/solargraph/parser/rubyvm/node_processors/sclass_node.rb
|
463
|
-
- lib/solargraph/parser/rubyvm/node_processors/scope_node.rb
|
464
|
-
- lib/solargraph/parser/rubyvm/node_processors/send_node.rb
|
465
|
-
- lib/solargraph/parser/rubyvm/node_processors/sym_node.rb
|
466
522
|
- lib/solargraph/parser/snippet.rb
|
467
523
|
- lib/solargraph/pin.rb
|
468
524
|
- lib/solargraph/pin/base.rb
|
@@ -473,6 +529,7 @@ files:
|
|
473
529
|
- lib/solargraph/pin/common.rb
|
474
530
|
- lib/solargraph/pin/constant.rb
|
475
531
|
- lib/solargraph/pin/conversions.rb
|
532
|
+
- lib/solargraph/pin/delegated_method.rb
|
476
533
|
- lib/solargraph/pin/documenting.rb
|
477
534
|
- lib/solargraph/pin/duck_method.rb
|
478
535
|
- lib/solargraph/pin/global_variable.rb
|
@@ -493,14 +550,22 @@ files:
|
|
493
550
|
- lib/solargraph/pin/reference/require.rb
|
494
551
|
- lib/solargraph/pin/reference/superclass.rb
|
495
552
|
- lib/solargraph/pin/search.rb
|
553
|
+
- lib/solargraph/pin/signature.rb
|
496
554
|
- lib/solargraph/pin/singleton.rb
|
497
555
|
- lib/solargraph/pin/symbol.rb
|
498
556
|
- lib/solargraph/position.rb
|
499
557
|
- lib/solargraph/range.rb
|
558
|
+
- lib/solargraph/rbs_map.rb
|
559
|
+
- lib/solargraph/rbs_map/conversions.rb
|
560
|
+
- lib/solargraph/rbs_map/core_fills.rb
|
561
|
+
- lib/solargraph/rbs_map/core_map.rb
|
562
|
+
- lib/solargraph/rbs_map/stdlib_map.rb
|
500
563
|
- lib/solargraph/server_methods.rb
|
501
564
|
- lib/solargraph/shell.rb
|
502
565
|
- lib/solargraph/source.rb
|
503
566
|
- lib/solargraph/source/chain.rb
|
567
|
+
- lib/solargraph/source/chain/array.rb
|
568
|
+
- lib/solargraph/source/chain/block_symbol.rb
|
504
569
|
- lib/solargraph/source/chain/block_variable.rb
|
505
570
|
- lib/solargraph/source/chain/call.rb
|
506
571
|
- lib/solargraph/source/chain/class_variable.rb
|
@@ -508,6 +573,7 @@ files:
|
|
508
573
|
- lib/solargraph/source/chain/global_variable.rb
|
509
574
|
- lib/solargraph/source/chain/hash.rb
|
510
575
|
- lib/solargraph/source/chain/head.rb
|
576
|
+
- lib/solargraph/source/chain/if.rb
|
511
577
|
- lib/solargraph/source/chain/instance_variable.rb
|
512
578
|
- lib/solargraph/source/chain/link.rb
|
513
579
|
- lib/solargraph/source/chain/literal.rb
|
@@ -541,24 +607,23 @@ files:
|
|
541
607
|
- lib/solargraph/workspace/config.rb
|
542
608
|
- lib/solargraph/yard_map.rb
|
543
609
|
- lib/solargraph/yard_map/cache.rb
|
544
|
-
- lib/solargraph/yard_map/core_docs.rb
|
545
|
-
- lib/solargraph/yard_map/core_fills.rb
|
546
|
-
- lib/solargraph/yard_map/core_gen.rb
|
547
610
|
- lib/solargraph/yard_map/helpers.rb
|
548
611
|
- lib/solargraph/yard_map/mapper.rb
|
549
612
|
- lib/solargraph/yard_map/mapper/to_constant.rb
|
550
613
|
- lib/solargraph/yard_map/mapper/to_method.rb
|
551
614
|
- lib/solargraph/yard_map/mapper/to_namespace.rb
|
552
|
-
- lib/solargraph/yard_map/rdoc_to_yard.rb
|
553
|
-
- lib/solargraph/yard_map/stdlib_fills.rb
|
554
615
|
- lib/solargraph/yard_map/to_method.rb
|
555
|
-
- lib/
|
616
|
+
- lib/solargraph/yard_tags.rb
|
617
|
+
- lib/solargraph/yardoc.rb
|
556
618
|
- solargraph.gemspec
|
557
|
-
|
558
|
-
homepage: http://solargraph.org
|
619
|
+
homepage: https://solargraph.org
|
559
620
|
licenses:
|
560
621
|
- MIT
|
561
|
-
metadata:
|
622
|
+
metadata:
|
623
|
+
funding_uri: https://www.patreon.com/castwide
|
624
|
+
bug_tracker_uri: https://github.com/castwide/solargraph/issues
|
625
|
+
changelog_uri: https://github.com/castwide/solargraph/blob/master/CHANGELOG.md
|
626
|
+
source_code_uri: https://github.com/castwide/solargraph
|
562
627
|
post_install_message:
|
563
628
|
rdoc_options: []
|
564
629
|
require_paths:
|
@@ -567,7 +632,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
567
632
|
requirements:
|
568
633
|
- - ">="
|
569
634
|
- !ruby/object:Gem::Version
|
570
|
-
version: '
|
635
|
+
version: '3.0'
|
571
636
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
572
637
|
requirements:
|
573
638
|
- - ">="
|
data/.travis.yml
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- 2.4
|
4
|
-
- 2.5
|
5
|
-
- 2.6
|
6
|
-
- 2.7
|
7
|
-
- 3.0
|
8
|
-
- jruby-head
|
9
|
-
matrix:
|
10
|
-
include:
|
11
|
-
- rvm: 2.7
|
12
|
-
os: osx
|
13
|
-
allow_failures:
|
14
|
-
- rvm: jruby-head
|
15
|
-
before_install:
|
16
|
-
- gem update --system
|
17
|
-
- gem install bundler
|
18
|
-
before_script: yard gems
|
19
|
-
script: rspec
|
@@ -1,22 +0,0 @@
|
|
1
|
-
require 'bundler'
|
2
|
-
require 'shellwords'
|
3
|
-
|
4
|
-
module Solargraph
|
5
|
-
class ApiMap
|
6
|
-
module BundlerMethods
|
7
|
-
module_function
|
8
|
-
|
9
|
-
# @param directory [String]
|
10
|
-
# @return [Hash]
|
11
|
-
def require_from_bundle directory
|
12
|
-
begin
|
13
|
-
Solargraph.logger.info "Loading gems for bundler/require"
|
14
|
-
Documentor.specs_from_bundle(directory)
|
15
|
-
rescue BundleNotFoundError => e
|
16
|
-
Solargraph.logger.warn e.message
|
17
|
-
{}
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
data/lib/solargraph/compat.rb
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
unless Hash.method_defined?(:transform_keys)
|
2
|
-
class Hash
|
3
|
-
def transform_keys &block
|
4
|
-
result = {}
|
5
|
-
each_pair do |k, v|
|
6
|
-
result[block.call(k)] = v
|
7
|
-
end
|
8
|
-
result
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
unless Hash.method_defined?(:transform_values)
|
14
|
-
class Hash
|
15
|
-
def transform_values &block
|
16
|
-
result = {}
|
17
|
-
each_pair do |k, v|
|
18
|
-
result[k] = block.call(v)
|
19
|
-
end
|
20
|
-
result
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
unless Array.method_defined?(:sum)
|
26
|
-
class Array
|
27
|
-
def sum &block
|
28
|
-
inject(0) do |s, x|
|
29
|
-
if block
|
30
|
-
s + block.call(x)
|
31
|
-
else
|
32
|
-
s + x
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Solargraph
|
4
|
-
module Convention
|
5
|
-
class Rspec < Base
|
6
|
-
def local source_map
|
7
|
-
return EMPTY_ENVIRON unless File.basename(source_map.filename) =~ /_spec\.rb$/
|
8
|
-
@environ ||= Environ.new(
|
9
|
-
requires: ['rspec'],
|
10
|
-
domains: ['RSpec::Matchers', 'RSpec::ExpectationGroups'],
|
11
|
-
pins: [
|
12
|
-
# This override is necessary due to an erroneous @return tag in
|
13
|
-
# rspec's YARD documentation.
|
14
|
-
# @todo The return types have been fixed (https://github.com/rspec/rspec-expectations/pull/1121)
|
15
|
-
Solargraph::Pin::Reference::Override.method_return('RSpec::Matchers#expect', 'RSpec::Expectations::ExpectationTarget')
|
16
|
-
].concat(extras)
|
17
|
-
)
|
18
|
-
end
|
19
|
-
|
20
|
-
private
|
21
|
-
|
22
|
-
def extras
|
23
|
-
@@extras ||= SourceMap.load_string(%(
|
24
|
-
def describe(*args); end
|
25
|
-
def it(*args); end
|
26
|
-
)).pins
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|