cobench 0.0.37 → 0.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/cobench +2 -1
- data/features/cli.feature +1 -1
- data/lib/cobench/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 581c5998a978db8683fa8e675b8e293aa5b66f75a37ec52e72fabc92994c4e8b
|
4
|
+
data.tar.gz: 76b7dd517e81bdd4011d294f3a325e4b9bc271a6130fedb8c3d36c97aac49f5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85618ec2a17dc04c0d6fadc20547468432fff9daa79e8cf58929a0ad81790328fc9533a8d015010ab164f05b59f23098a795e30c4a8ca14de64f3b39dbdfb901
|
7
|
+
data.tar.gz: 295d72ce7a9cd87396066e8d0f6831b1bd5830f9ad3311b86723eb1377dd4bb8772bd9bd4f48a3b6789f208313360cc549d6c88cc3c3281e7cf87ce2f4dcaf04
|
data/bin/cobench
CHANGED
@@ -49,6 +49,7 @@ opts = Slop.parse(args, strict: true, help: true) do |o|
|
|
49
49
|
o.bool '--dry', 'Make no real round trips to GitHub'
|
50
50
|
o.bool '--reuse', 'Don\'t fetch from GitHub, reuse the existing XML file'
|
51
51
|
o.integer '--days', 'How many days to measure', default: 7
|
52
|
+
o.integer '--delay', 'Delay between HTTP calls to GitHub API, in milliseconds', default: 1000
|
52
53
|
o.string '--to', 'Directory where to save all files to', default: './cobench'
|
53
54
|
o.string '--token', 'GitHub authentication token'
|
54
55
|
o.array '--coder', 'GitHub nickname of a coder to track'
|
@@ -93,7 +94,7 @@ def build_xml(opts, loog)
|
|
93
94
|
loog.warn("Connecting to GitHub without a token, this may lead to errors, use --token")
|
94
95
|
end
|
95
96
|
api.auto_paginate = true
|
96
|
-
api = Obk.new(api, pause:
|
97
|
+
api = Obk.new(api, pause: opts[:delay])
|
97
98
|
loog.info("Reading GitHub data for the last #{opts[:days]} days")
|
98
99
|
titles = {}
|
99
100
|
data = {}
|
data/features/cli.feature
CHANGED
@@ -16,7 +16,7 @@ Feature: Simple Reporting
|
|
16
16
|
And Exit code is zero
|
17
17
|
|
18
18
|
Scenario: Simple report through real GitHub API
|
19
|
-
When I run bin/cobench with "--coder=yegor256 --include=*/* --days=1 --verbose"
|
19
|
+
When I run bin/cobench with "--coder=yegor256 --include=*/* --days=1 --verbose --delay=5000"
|
20
20
|
Then Stdout contains "XML saved to"
|
21
21
|
And Exit code is zero
|
22
22
|
|
data/lib/cobench/version.rb
CHANGED