solargraph 0.7.1 → 0.7.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: cd1d5ba65a41beba1bc977d6d56fc8e7b7678454
4
- data.tar.gz: c9096faa781616892ca761517aa5db33a179f93b
3
+ metadata.gz: 5088ef299f87773ea5663feb379e16be34a830c9
4
+ data.tar.gz: 2833fbd7eda8be9fded3e9b060c2f80229585ef7
5
5
  SHA512:
6
- metadata.gz: f01ee2f0841c4ec27285117539fce65d5c223e249a8e37eb53eed6dfacd1e600644c72c74ffa6e4fb8afc9e24932bf72c79c0bcdb78e7392648ca3bca79182b4
7
- data.tar.gz: dbee777e3dd84e31a1501efe1868f8a88c5d05be0d40547f5a6236f7fbc7788a03da7e7f5548badc2cabdd3e02250f203e458e73718edf21b8c567293faac0b2
6
+ metadata.gz: d2d5af5f54ff5f52f4a53d362372d684763f128c015dbd28001b5d86279cb5073892fc25801885adb832173646b7084012b347b2f3558b0313831804c00008f6
7
+ data.tar.gz: 33534e53f359cfa376f029e4f52ff9a50fd6ee9c588e9286f7d5ee8ad4ce4a2ad5dd25fd558ab0f4e02bb7d8a44616c0d40837be73b5feef2678bc47b249c275
@@ -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
- STDERR.puts `yardoc -e #{Solargraph::YARD_EXTENSION_FILE} #{yard_options[:flags].join(' ')} #{globs.join(' ')}`
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
@@ -1,3 +1,3 @@
1
1
  module Solargraph
2
- VERSION = '0.7.1'
2
+ VERSION = '0.7.2'
3
3
  end
@@ -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.each { |t|
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
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solargraph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fred Snyder