solargraph 0.7.1 → 0.7.2
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/lib/solargraph/api_map.rb +4 -1
- data/lib/solargraph/version.rb +1 -1
- data/lib/solargraph/yard_map.rb +6 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5088ef299f87773ea5663feb379e16be34a830c9
|
|
4
|
+
data.tar.gz: 2833fbd7eda8be9fded3e9b060c2f80229585ef7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d2d5af5f54ff5f52f4a53d362372d684763f128c015dbd28001b5d86279cb5073892fc25801885adb832173646b7084012b347b2f3558b0313831804c00008f6
|
|
7
|
+
data.tar.gz: 33534e53f359cfa376f029e4f52ff9a50fd6ee9c588e9286f7d5ee8ad4ce4a2ad5dd25fd558ab0f4e02bb7d8a44616c0d40837be73b5feef2678bc47b249c275
|
data/lib/solargraph/api_map.rb
CHANGED
|
@@ -472,7 +472,10 @@ module Solargraph
|
|
|
472
472
|
Thread.new {
|
|
473
473
|
STDERR.puts "Updating the yardoc..."
|
|
474
474
|
globs = yard_options[:include] - yard_options[:exclude]
|
|
475
|
-
|
|
475
|
+
#cmd = "yardoc #{globs.join(' ')} -e #{Solargraph::YARD_EXTENSION_FILE} #{yard_options[:flags].join(' ')}"
|
|
476
|
+
cmd = "yardoc -e #{Solargraph::YARD_EXTENSION_FILE}"
|
|
477
|
+
STDERR.puts "Update yardoc with #{cmd}"
|
|
478
|
+
STDERR.puts `#{cmd}`
|
|
476
479
|
unless $?.success?
|
|
477
480
|
STDERR.puts "There was an error processing the workspace yardoc."
|
|
478
481
|
end
|
data/lib/solargraph/version.rb
CHANGED
data/lib/solargraph/yard_map.rb
CHANGED
|
@@ -81,6 +81,7 @@ module Solargraph
|
|
|
81
81
|
cached = cache.get_constants(namespace, scope)
|
|
82
82
|
return cached unless cached.nil?
|
|
83
83
|
consts = []
|
|
84
|
+
binds = []
|
|
84
85
|
result = []
|
|
85
86
|
yardocs.each { |y|
|
|
86
87
|
yard = load_yardoc(y)
|
|
@@ -91,9 +92,7 @@ module Solargraph
|
|
|
91
92
|
# specified namespaces.
|
|
92
93
|
b = yard.root.tag(:bind)
|
|
93
94
|
unless b.nil?
|
|
94
|
-
b.types
|
|
95
|
-
consts += get_instance_methods(t, '', visibility: :public)
|
|
96
|
-
}
|
|
95
|
+
binds.concat b.types
|
|
97
96
|
end
|
|
98
97
|
end
|
|
99
98
|
ns = nil
|
|
@@ -117,6 +116,9 @@ module Solargraph
|
|
|
117
116
|
end
|
|
118
117
|
result.push Suggestion.new(c.to_s.split('::').last, detail: detail, kind: kind)
|
|
119
118
|
}
|
|
119
|
+
binds.each { |type|
|
|
120
|
+
result.concat get_instance_methods(type, '', visibility: [:public])
|
|
121
|
+
}
|
|
120
122
|
cache.set_constants(namespace, scope, result)
|
|
121
123
|
result
|
|
122
124
|
end
|
|
@@ -192,6 +194,7 @@ module Solargraph
|
|
|
192
194
|
label = "#{n}"
|
|
193
195
|
args = get_method_args(m)
|
|
194
196
|
label += " #{args.join(', ')}" unless args.empty?
|
|
197
|
+
STDERR.puts "Adding #{label} from yard"
|
|
195
198
|
meths.push Suggestion.new(label, insert: "#{n.gsub(/=/, ' = ')}", kind: Suggestion::METHOD, documentation: m.docstring, code_object: m, detail: "#{ns}", location: "#{m.file}:#{m.line}")
|
|
196
199
|
end
|
|
197
200
|
}
|