solargraph 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/solargraph/api_map.rb +8 -4
- data/lib/solargraph/node_methods.rb +1 -3
- data/lib/solargraph/version.rb +1 -1
- 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: cd1d5ba65a41beba1bc977d6d56fc8e7b7678454
|
4
|
+
data.tar.gz: c9096faa781616892ca761517aa5db33a179f93b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f01ee2f0841c4ec27285117539fce65d5c223e249a8e37eb53eed6dfacd1e600644c72c74ffa6e4fb8afc9e24932bf72c79c0bcdb78e7392648ca3bca79182b4
|
7
|
+
data.tar.gz: dbee777e3dd84e31a1501efe1868f8a88c5d05be0d40547f5a6236f7fbc7788a03da7e7f5548badc2cabdd3e02250f203e458e73718edf21b8c567293faac0b2
|
data/lib/solargraph/api_map.rb
CHANGED
@@ -469,10 +469,14 @@ module Solargraph
|
|
469
469
|
Dir.chdir(workspace) do
|
470
470
|
#YARD::Registry.load(yard_options[:include] - yard_options[:exclude], true)
|
471
471
|
#YARD::Registry.save
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
472
|
+
Thread.new {
|
473
|
+
STDERR.puts "Updating the yardoc..."
|
474
|
+
globs = yard_options[:include] - yard_options[:exclude]
|
475
|
+
STDERR.puts `yardoc -e #{Solargraph::YARD_EXTENSION_FILE} #{yard_options[:flags].join(' ')} #{globs.join(' ')}`
|
476
|
+
unless $?.success?
|
477
|
+
STDERR.puts "There was an error processing the workspace yardoc."
|
478
|
+
end
|
479
|
+
}
|
476
480
|
end
|
477
481
|
end
|
478
482
|
end
|
@@ -68,8 +68,7 @@ module Solargraph
|
|
68
68
|
@yard_options = {
|
69
69
|
include: [],
|
70
70
|
exclude: [],
|
71
|
-
flags: []
|
72
|
-
all: []
|
71
|
+
flags: []
|
73
72
|
}
|
74
73
|
unless workspace.nil?
|
75
74
|
yardopts_file = File.join(workspace, '.yardopts')
|
@@ -77,7 +76,6 @@ module Solargraph
|
|
77
76
|
yardopts = File.read(yardopts_file)
|
78
77
|
yardopts.lines.each { |line|
|
79
78
|
arg = line.strip
|
80
|
-
@yard_options[:all].push arg
|
81
79
|
if arg.start_with?('-')
|
82
80
|
@yard_options[:flags].push arg
|
83
81
|
else
|
data/lib/solargraph/version.rb
CHANGED