fix the case where a plugin is released and has a similar name to one still not released, fixing failured on the all plugins test

Fixes #3391
This commit is contained in:
Pere Urbon-Bayes 2015-06-08 13:08:49 +02:00 committed by Jordan Sissel
parent e2450f1f78
commit 11d2f7b3ed

View file

@ -152,7 +152,7 @@ module LogStash
def self.is_released?(plugin)
require 'gems'
!Gems.search(plugin).empty?
!Gems.search(plugin).reject{ |h| h['name'] != plugin }.empty?
end
end
end