solargraph 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc2beed7eafc3145abaeabd5c12b1e21faa1a511
4
- data.tar.gz: 9d7f689adda7c1b6b47cbae5fc73e21c47b494ff
3
+ metadata.gz: 9d63b5888bfb3dd7eb529ba3d608996891bb7e35
4
+ data.tar.gz: 33b50877fdb1fd77554fadca922ae00c8683a7a3
5
5
  SHA512:
6
- metadata.gz: f108af9d8b4deb6e61700cb4d239aefafd2d596efd914632d71f270f2ff2e1b08cc6ea5e661a9571517a69dfb627a7cd898b489dd4a9977dba9349df701f050b
7
- data.tar.gz: 2a35d50d979bb0b24221d7f4d8983c7b14f620003b5b3167631990404458446c25277fc441491579c6ab6ecdebe536935934cca5be3b40c9d34da53c9c307e64
6
+ metadata.gz: aea722501a008196ceae50a0d3169473e159a5438cebe19c3747665e1c5ae9489a9f1e55065334956f4b74d39aaac4ea84ffd67cb7dec6263c2fbbc26331eae7
7
+ data.tar.gz: c20fefd1ee60adf1aa03b08504be25cee40d6cfa0aa988c1684a22cf10fbe7590f59dda14aba0cf33d78b77875fc2e66e6d28a52e9bf845dedbac1775afbc633
@@ -1,3 +1,3 @@
1
1
  module Solargraph
2
- VERSION = '0.5.1'
2
+ VERSION = '0.5.2'
3
3
  end
@@ -187,8 +187,14 @@ module Solargraph
187
187
  end
188
188
 
189
189
  def find_fully_qualified_namespace namespace, scope
190
- obj = resolve(namespace, scope)
191
- return obj.path unless obj.nil?
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.1
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-12 00:00:00.000000000 Z
11
+ date: 2017-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser