bin/cobench in cobench-0.0.37 vs bin/cobench in cobench-0.0.38
- old
+ new
@@ -47,10 +47,11 @@
o.bool '--version', 'Show current version'
o.bool '--verbose', 'Print as much log messages as possible'
o.bool '--dry', 'Make no real round trips to GitHub'
o.bool '--reuse', 'Don\'t fetch from GitHub, reuse the existing XML file'
o.integer '--days', 'How many days to measure', default: 7
+ o.integer '--delay', 'Delay between HTTP calls to GitHub API, in milliseconds', default: 1000
o.string '--to', 'Directory where to save all files to', default: './cobench'
o.string '--token', 'GitHub authentication token'
o.array '--coder', 'GitHub nickname of a coder to track'
o.array '--metrics', 'Names of metrics to use (all by default)'
o.array '--include', 'Mask of GitHub repo to include, e.g. yegor256/*'
@@ -91,10 +92,10 @@
else
api = Octokit::Client.new
loog.warn("Connecting to GitHub without a token, this may lead to errors, use --token")
end
api.auto_paginate = true
- api = Obk.new(api, pause: 2000)
+ api = Obk.new(api, pause: opts[:delay])
loog.info("Reading GitHub data for the last #{opts[:days]} days")
titles = {}
data = {}
orgs = {}
opts[:coder].each do |u|