Merge pull request #8489 from reitermarkus/document-repology

Document `Repology`.
This commit is contained in:
Markus Reiter 2020-08-26 09:40:32 +02:00 committed by GitHub
commit aa42677dd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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?