solargraph 0.7.0 → 0.7.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5d9772edc47881d8e944c68b737e4b065fb2fb30
4
- data.tar.gz: 1f2dbd2d6ec31e1d94c485a87e8a247b4ed49fe0
3
+ metadata.gz: cd1d5ba65a41beba1bc977d6d56fc8e7b7678454
4
+ data.tar.gz: c9096faa781616892ca761517aa5db33a179f93b
5
5
  SHA512:
6
- metadata.gz: b4d94536db05855102ea393348a8a6d589ad76f119d2205aecbb0f4f666e654fc748c1c6890037b44edf028050c6a46faac90c2dcbe6187702498dcb9d34f16e
7
- data.tar.gz: 57223756d8581d876d77026e14397e50ab3d08913a2b15515081d05b2ec1ecf092741bd933078e22a106b4067c0745da14227f9b0ce0bed0e7bf4d1e8ecf61db
6
+ metadata.gz: f01ee2f0841c4ec27285117539fce65d5c223e249a8e37eb53eed6dfacd1e600644c72c74ffa6e4fb8afc9e24932bf72c79c0bcdb78e7392648ca3bca79182b4
7
+ data.tar.gz: dbee777e3dd84e31a1501efe1868f8a88c5d05be0d40547f5a6236f7fbc7788a03da7e7f5548badc2cabdd3e02250f203e458e73718edf21b8c567293faac0b2
@@ -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
- `yardoc -e #{Solargraph::YARD_EXTENSION_FILE} #{yard_options[:all]}`
473
- unless $?.success?
474
- STDERR.puts "There was an error processing the workspace yardoc."
475
- end
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
@@ -1,3 +1,3 @@
1
1
  module Solargraph
2
- VERSION = '0.7.0'
2
+ VERSION = '0.7.1'
3
3
  end
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.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fred Snyder