We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1922f0c commit c0a40d4Copy full SHA for c0a40d4
lib/ruby_indexer/lib/ruby_indexer/configuration.rb
@@ -179,7 +179,12 @@ def initial_excluded_gems
179
180
# When working on a gem, we need to make sure that its gemspec dependencies can't be excluded. This is necessary
181
# because Bundler doesn't assign groups to gemspec dependencies
182
- this_gem = Bundler.definition.dependencies.find { |d| d.to_spec.full_gem_path == Dir.pwd }
+ this_gem = Bundler.definition.dependencies.find do |d|
183
+ d.to_spec.full_gem_path == Dir.pwd
184
+ rescue Gem::MissingSpecError
185
+ false
186
+ end
187
+
188
others.concat(this_gem.to_spec.dependencies) if this_gem
189
190
excluded.each do |dependency|
0 commit comments