Only include Logstash plugins in list of plugins

When generating list of compatible plugins for documentation, we
previously were accidentally include all gems, not just logstash
plugins.

Fixes #7521
This commit is contained in:
Jordan Sissel 2017-06-22 14:59:56 -07:00
parent fc26a1692f
commit 70fa6f2d57

View file

@ -135,7 +135,7 @@ class PluginVersionWorking
end
def extract_versions(definition, dependencies, from)
definition.specs.each do |spec|
definition.specs.select { |spec| spec.metadata && spec.metadata["logstash_plugin"] == "true" }.each do |spec|
dependencies[spec.name] ||= []
dependencies[spec.name] << VersionDependencies.new(spec.version, from)
end