Document Repology.

This commit is contained in:
Markus Reiter 2020-08-26 09:11:39 +02:00
parent 5cd8b609f7
commit e5a9072422
2 changed files with 4 additions and 1 deletions

View File

@ -27,5 +27,4 @@ Style/Documentation:
- 'utils/shell.rb'
- 'utils/spdx.rb'
- 'utils/livecheck_formula.rb'
- 'utils/repology.rb'
- 'version.rb'

View File

@ -2,10 +2,14 @@
require "utils/curl"
# Repology API client.
#
# @api private
module Repology
module_function
MAX_PAGINATION = 15
private_constant :MAX_PAGINATION
def query_api(last_package_in_response = "")
last_package_in_response += "/" if last_package_in_response.present?