solargraph 0.5.1 → 0.5.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/version.rb +1 -1
- data/lib/solargraph/yard_map.rb +8 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9d63b5888bfb3dd7eb529ba3d608996891bb7e35
|
|
4
|
+
data.tar.gz: 33b50877fdb1fd77554fadca922ae00c8683a7a3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aea722501a008196ceae50a0d3169473e159a5438cebe19c3747665e1c5ae9489a9f1e55065334956f4b74d39aaac4ea84ffd67cb7dec6263c2fbbc26331eae7
|
|
7
|
+
data.tar.gz: c20fefd1ee60adf1aa03b08504be25cee40d6cfa0aa988c1684a22cf10fbe7590f59dda14aba0cf33d78b77875fc2e66e6d28a52e9bf845dedbac1775afbc633
|
data/lib/solargraph/version.rb
CHANGED
data/lib/solargraph/yard_map.rb
CHANGED
|
@@ -187,8 +187,14 @@ module Solargraph
|
|
|
187
187
|
end
|
|
188
188
|
|
|
189
189
|
def find_fully_qualified_namespace namespace, scope
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
yardocs.each { |y|
|
|
191
|
+
yard = YARD::Registry.load! y
|
|
192
|
+
unless yard.nil?
|
|
193
|
+
obj = find_first_resolved_namespace(yard, namespace, scope)
|
|
194
|
+
return obj.path unless obj.nil?
|
|
195
|
+
end
|
|
196
|
+
}
|
|
197
|
+
nil
|
|
192
198
|
end
|
|
193
199
|
|
|
194
200
|
private
|
|
@@ -220,7 +226,6 @@ module Solargraph
|
|
|
220
226
|
def find_first_resolved_namespace yard, namespace, scope
|
|
221
227
|
parts = scope.split('::')
|
|
222
228
|
while parts.length > 0
|
|
223
|
-
puts "Looking for #{namespace} in #{parts.join('::')}"
|
|
224
229
|
ns = yard.resolve(P(parts.join('::')), namespace, true)
|
|
225
230
|
return ns unless ns.nil?
|
|
226
231
|
parts.pop
|
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.5.
|
|
4
|
+
version: 0.5.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Fred Snyder
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-04-
|
|
11
|
+
date: 2017-04-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: parser
|