cobench 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/cobench +3 -3
- 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: afc414be5da28bf1b4703b1a9b7783dafd90594c42dcf6692102f05030af39a0
|
4
|
+
data.tar.gz: 1fdabac9c6c9e1d6179b8c6d6995ee2579d7949111a2c12f24027aa9ecda7c0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5997a605602bb82a900cbb4cc3cc44fa15bfff5333248a8d54eb437897e5caa0ebcf9875a14127cef2ee348bf1f8b395c6fa8f27f6809a356df7e7ba7c9110f7
|
7
|
+
data.tar.gz: 89d955def9ee96a4965e28083e867ba5e30908f9a956f9825296be7111da91669d6d98e077150d2953d52c25b22571299958225a991f09e31b01a2c2f5e2a2f3
|
data/bin/cobench
CHANGED
@@ -107,7 +107,7 @@ begin
|
|
107
107
|
type = "Cobench::#{name.capitalize}"
|
108
108
|
loog.info("Reading #{user}/#{name}...")
|
109
109
|
require_relative f
|
110
|
-
m = type.split('::').reduce(Module, :const_get).new(api,
|
110
|
+
m = type.split('::').reduce(Module, :const_get).new(api, user, opts)
|
111
111
|
if opts.dry?
|
112
112
|
measures = [
|
113
113
|
{ title: 'Issues', total: Random.new.rand(100), href: 'https://github.com/' },
|
@@ -120,8 +120,8 @@ begin
|
|
120
120
|
end
|
121
121
|
measures.each do |d|
|
122
122
|
before = 0
|
123
|
-
before += data[
|
124
|
-
data[
|
123
|
+
before += data[user][d[:title]][:total] if data[user][d[:title]] != nil
|
124
|
+
data[user][d[:title]] = { total: d[:total] + before, href: d[:href] }
|
125
125
|
titles[d[:title]] = d[:title]
|
126
126
|
loog.info("The value of #{user}/#{d[:title]} is #{d[:total]}")
|
127
127
|
end
|
data/features/cli.feature
CHANGED
@@ -11,7 +11,7 @@ Feature: Simple Reporting
|
|
11
11
|
Then Exit code is zero
|
12
12
|
|
13
13
|
Scenario: Simple report
|
14
|
-
When I run bin/cobench with "--coder yegor256 --verbose --dry --to foo"
|
14
|
+
When I run bin/cobench with "--coder yegor256 --coder John --verbose --dry --to foo"
|
15
15
|
Then Stdout contains "XML saved to"
|
16
16
|
And Exit code is zero
|
17
17
|
|
data/lib/cobench/version.rb
CHANGED