fastlane/lib/fastlane/plugins/plugin_fetcher.rb in fastlane-2.79.0.beta.20180123010002 vs fastlane/lib/fastlane/plugins/plugin_fetcher.rb in fastlane-2.79.0.beta.20180124010003
- old
+ new
@@ -10,11 +10,11 @@
require 'open-uri'
page = 1
plugins = []
loop do
- url = "https://rubygems.org/api/v1/search.json?query=#{PluginManager.plugin_prefix}#{search_query}&page=#{page}"
+ url = "https://rubygems.org/api/v1/search.json?query=#{PluginManager.plugin_prefix}&page=#{page}"
FastlaneCore::UI.verbose("RubyGems API Request: #{url}")
results = JSON.parse(open(url).read)
break if results.count == 0
plugins += results.collect do |current|
@@ -23,10 +23,10 @@
page += 1
end
return plugins if search_query.to_s.length == 0
plugins.keep_if do |current|
- current.full_name.include?(search_query)
+ current.full_name.include?(search_query) or current.info.include?(search_query)
end
return plugins
end
end