Document Repology.
This commit is contained in:
parent
5cd8b609f7
commit
e5a9072422
@ -27,5 +27,4 @@ Style/Documentation:
|
|||||||
- 'utils/shell.rb'
|
- 'utils/shell.rb'
|
||||||
- 'utils/spdx.rb'
|
- 'utils/spdx.rb'
|
||||||
- 'utils/livecheck_formula.rb'
|
- 'utils/livecheck_formula.rb'
|
||||||
- 'utils/repology.rb'
|
|
||||||
- 'version.rb'
|
- 'version.rb'
|
||||||
|
|||||||
@ -2,10 +2,14 @@
|
|||||||
|
|
||||||
require "utils/curl"
|
require "utils/curl"
|
||||||
|
|
||||||
|
# Repology API client.
|
||||||
|
#
|
||||||
|
# @api private
|
||||||
module Repology
|
module Repology
|
||||||
module_function
|
module_function
|
||||||
|
|
||||||
MAX_PAGINATION = 15
|
MAX_PAGINATION = 15
|
||||||
|
private_constant :MAX_PAGINATION
|
||||||
|
|
||||||
def query_api(last_package_in_response = "")
|
def query_api(last_package_in_response = "")
|
||||||
last_package_in_response += "/" if last_package_in_response.present?
|
last_package_in_response += "/" if last_package_in_response.present?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user