update is_released to use Gems.info

Fixes #3391
This commit is contained in:
Pere Urbon-Bayes 2015-06-08 14:56:44 +02:00 committed by Jordan Sissel
parent 11d2f7b3ed
commit d5fc55b3a6

View file

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