cobench 0.0.45 → 0.0.47
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.simplecov +1 -1
- data/Gemfile +1 -1
- data/LICENSE.txt +1 -1
- data/Rakefile +1 -1
- data/assets/index.xsl +22 -3
- data/bin/cobench +1 -1
- data/cobench.gemspec +2 -2
- data/features/step_definitions/steps.rb +1 -1
- data/features/support/env.rb +1 -1
- data/lib/cobench/mask.rb +4 -2
- data/lib/cobench/match.rb +2 -2
- data/lib/cobench/metrics/commits.rb +2 -2
- data/lib/cobench/metrics/issues.rb +2 -2
- data/lib/cobench/metrics/pulls.rb +2 -2
- data/lib/cobench/metrics/reviews.rb +2 -2
- data/lib/cobench/version.rb +3 -3
- data/test/metrics/test_pulls.rb +2 -2
- data/test/metrics/test_reviews.rb +2 -2
- data/test/test__helper.rb +1 -1
- data/test/test_mask.rb +2 -2
- data/test/test_match.rb +2 -2
- metadata +16 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20d2cd3046931b9e30d2878aac4ff348c0bde94b2e457d6c1a12c6268194fe1f
|
4
|
+
data.tar.gz: eaf1407d3e3e133486ac7c4f64a7f7b0463bab0b9b12cf0243c990ae4bb3375b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe713ab9f20ede06ce67137478f02d48aab269161915fdd747603579d745c18bee587e406805e5f5bc2409ce1383ce6084282909c0382c22e46fcd9172fe12e6
|
7
|
+
data.tar.gz: 66c0ef0997ed3d8451f79cae6e65a9493289e622af8cd658737e599c073ba539cd0adb231789008d3ff52b82be7e2b33dd8c53d90a373173eb5174f508080056
|
data/.simplecov
CHANGED
data/Gemfile
CHANGED
data/LICENSE.txt
CHANGED
data/Rakefile
CHANGED
data/assets/index.xsl
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
<!--
|
3
3
|
(The MIT License)
|
4
4
|
|
5
|
-
Copyright (c) 2022 Yegor Bugayenko
|
5
|
+
Copyright (c) 2022-2023 Yegor Bugayenko
|
6
6
|
|
7
7
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
8
|
of this software and associated documentation files (the 'Software'), to deal
|
@@ -44,7 +44,15 @@ SOFTWARE.
|
|
44
44
|
</script>
|
45
45
|
<script type="text/javascript">
|
46
46
|
$(function() {
|
47
|
-
$("#metrics").tablesorter(
|
47
|
+
$("#metrics").tablesorter({
|
48
|
+
textExtraction: function(node) {
|
49
|
+
var attr = $(node).attr('data-sort-value');
|
50
|
+
if (typeof attr !== 'undefined' && attr !== false) {
|
51
|
+
return attr;
|
52
|
+
}
|
53
|
+
return $(node).text();
|
54
|
+
}
|
55
|
+
});
|
48
56
|
});
|
49
57
|
$(function() {
|
50
58
|
let params = (new URL(document.location)).searchParams;
|
@@ -202,6 +210,7 @@ SOFTWARE.
|
|
202
210
|
<p>
|
203
211
|
<xsl:text>Score = </xsl:text>
|
204
212
|
<xsl:for-each select="cobench/weights/w[. != '0']">
|
213
|
+
<xsl:sort select="@id" data-type="number" order="descending"/>
|
205
214
|
<xsl:if test="position() > 1">
|
206
215
|
<xsl:text> + </xsl:text>
|
207
216
|
</xsl:if>
|
@@ -305,7 +314,7 @@ SOFTWARE.
|
|
305
314
|
</xsl:if>
|
306
315
|
</td>
|
307
316
|
<td class="avatar">
|
308
|
-
<img src="https://
|
317
|
+
<img src="https://github.com/{@id}.png" width="64" height="64"/>
|
309
318
|
</td>
|
310
319
|
<td>
|
311
320
|
<a href="https://github.com/{@id}">
|
@@ -370,6 +379,16 @@ SOFTWARE.
|
|
370
379
|
</xsl:choose>
|
371
380
|
</xsl:variable>
|
372
381
|
<td class="num">
|
382
|
+
<xsl:attribute name="data-sort-value">
|
383
|
+
<xsl:choose>
|
384
|
+
<xsl:when test="@actual">
|
385
|
+
<xsl:value-of select="@actual"/>
|
386
|
+
</xsl:when>
|
387
|
+
<xsl:otherwise>
|
388
|
+
<xsl:copy-of select="$value"/>
|
389
|
+
</xsl:otherwise>
|
390
|
+
</xsl:choose>
|
391
|
+
</xsl:attribute>
|
373
392
|
<xsl:choose>
|
374
393
|
<xsl:when test="@actual">
|
375
394
|
<span class="firebrick">
|
data/bin/cobench
CHANGED
data/cobench.gemspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2022 Yegor Bugayenko
|
1
|
+
# Copyright (c) 2022-2023 Yegor Bugayenko
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -48,7 +48,6 @@ Gem::Specification.new do |s|
|
|
48
48
|
s.add_runtime_dependency 'octokit', '~>4.0'
|
49
49
|
s.add_runtime_dependency 'rainbow', '~>3.0'
|
50
50
|
s.add_runtime_dependency 'slop', '~>4.4'
|
51
|
-
s.add_runtime_dependency 'xcop', '~>0.6'
|
52
51
|
s.add_development_dependency 'codecov', '0.6.0'
|
53
52
|
s.add_development_dependency 'cucumber', '8.0.0'
|
54
53
|
s.add_development_dependency 'minitest', '5.15.0'
|
@@ -56,4 +55,5 @@ Gem::Specification.new do |s|
|
|
56
55
|
s.add_development_dependency 'rdoc', '6.4.0'
|
57
56
|
s.add_development_dependency 'rubocop', '1.32.0'
|
58
57
|
s.add_development_dependency 'rubocop-rspec', '2.11.1'
|
58
|
+
s.add_development_dependency 'xcop', '0.7.1'
|
59
59
|
end
|
data/features/support/env.rb
CHANGED
data/lib/cobench/mask.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2022 Yegor Bugayenko
|
1
|
+
# Copyright (c) 2022-2023 Yegor Bugayenko
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -18,9 +18,11 @@
|
|
18
18
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
19
|
# SOFTWARE.
|
20
20
|
|
21
|
+
require_relative 'version'
|
22
|
+
|
21
23
|
# Mask to apply for a repo name.
|
22
24
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
23
|
-
# Copyright:: Copyright (c) 2022 Yegor Bugayenko
|
25
|
+
# Copyright:: Copyright (c) 2022-2023 Yegor Bugayenko
|
24
26
|
# License:: MIT
|
25
27
|
class Cobench::Mask
|
26
28
|
def initialize(txt)
|
data/lib/cobench/match.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2022 Yegor Bugayenko
|
1
|
+
# Copyright (c) 2022-2023 Yegor Bugayenko
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -22,7 +22,7 @@ require_relative 'mask'
|
|
22
22
|
|
23
23
|
# Match of masks.
|
24
24
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
25
|
-
# Copyright:: Copyright (c) 2022 Yegor Bugayenko
|
25
|
+
# Copyright:: Copyright (c) 2022-2023 Yegor Bugayenko
|
26
26
|
# License:: MIT
|
27
27
|
class Cobench::Match
|
28
28
|
def initialize(opts, loog)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2022 Yegor Bugayenko
|
1
|
+
# Copyright (c) 2022-2023 Yegor Bugayenko
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -23,7 +23,7 @@ require_relative '../match'
|
|
23
23
|
|
24
24
|
# Commits in GitHub API.
|
25
25
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
26
|
-
# Copyright:: Copyright (c) 2022 Yegor Bugayenko
|
26
|
+
# Copyright:: Copyright (c) 2022-2023 Yegor Bugayenko
|
27
27
|
# License:: MIT
|
28
28
|
class Cobench::Commits
|
29
29
|
def initialize(api, user, opts)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2022 Yegor Bugayenko
|
1
|
+
# Copyright (c) 2022-2023 Yegor Bugayenko
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -23,7 +23,7 @@ require_relative '../match'
|
|
23
23
|
|
24
24
|
# Issues in GitHub API.
|
25
25
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
26
|
-
# Copyright:: Copyright (c) 2022 Yegor Bugayenko
|
26
|
+
# Copyright:: Copyright (c) 2022-2023 Yegor Bugayenko
|
27
27
|
# License:: MIT
|
28
28
|
class Cobench::Issues
|
29
29
|
def initialize(api, user, opts)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2022 Yegor Bugayenko
|
1
|
+
# Copyright (c) 2022-2023 Yegor Bugayenko
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -24,7 +24,7 @@ require_relative '../match'
|
|
24
24
|
|
25
25
|
# Pulls in GitHub API.
|
26
26
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
27
|
-
# Copyright:: Copyright (c) 2022 Yegor Bugayenko
|
27
|
+
# Copyright:: Copyright (c) 2022-2023 Yegor Bugayenko
|
28
28
|
# License:: MIT
|
29
29
|
class Cobench::Pulls
|
30
30
|
def initialize(api, user, opts)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2022 Yegor Bugayenko
|
1
|
+
# Copyright (c) 2022-2023 Yegor Bugayenko
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -23,7 +23,7 @@ require_relative '../match'
|
|
23
23
|
|
24
24
|
# Reviews in GitHub API.
|
25
25
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
26
|
-
# Copyright:: Copyright (c) 2022 Yegor Bugayenko
|
26
|
+
# Copyright:: Copyright (c) 2022-2023 Yegor Bugayenko
|
27
27
|
# License:: MIT
|
28
28
|
class Cobench::Reviews
|
29
29
|
def initialize(api, user, opts)
|
data/lib/cobench/version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2022 Yegor Bugayenko
|
1
|
+
# Copyright (c) 2022-2023 Yegor Bugayenko
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -20,8 +20,8 @@
|
|
20
20
|
|
21
21
|
# Cobench main module.
|
22
22
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
23
|
-
# Copyright:: Copyright (c) 2022 Yegor Bugayenko
|
23
|
+
# Copyright:: Copyright (c) 2022-2023 Yegor Bugayenko
|
24
24
|
# License:: MIT
|
25
25
|
module Cobench
|
26
|
-
VERSION = '0.0.
|
26
|
+
VERSION = '0.0.47'.freeze
|
27
27
|
end
|
data/test/metrics/test_pulls.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2022 Yegor Bugayenko
|
1
|
+
# Copyright (c) 2022-2023 Yegor Bugayenko
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -25,7 +25,7 @@ require_relative '../../lib/cobench/metrics/pulls'
|
|
25
25
|
|
26
26
|
# Test for Pulls.
|
27
27
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
28
|
-
# Copyright:: Copyright (c) 2022 Yegor Bugayenko
|
28
|
+
# Copyright:: Copyright (c) 2022-2023 Yegor Bugayenko
|
29
29
|
# License:: MIT
|
30
30
|
class TestPulls < Minitest::Test
|
31
31
|
def test_real
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2022 Yegor Bugayenko
|
1
|
+
# Copyright (c) 2022-2023 Yegor Bugayenko
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -25,7 +25,7 @@ require_relative '../../lib/cobench/metrics/reviews'
|
|
25
25
|
|
26
26
|
# Test for Reviews.
|
27
27
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
28
|
-
# Copyright:: Copyright (c) 2022 Yegor Bugayenko
|
28
|
+
# Copyright:: Copyright (c) 2022-2023 Yegor Bugayenko
|
29
29
|
# License:: MIT
|
30
30
|
class TestReviews < Minitest::Test
|
31
31
|
def test_real
|
data/test/test__helper.rb
CHANGED
data/test/test_mask.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2022 Yegor Bugayenko
|
1
|
+
# Copyright (c) 2022-2023 Yegor Bugayenko
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -23,7 +23,7 @@ require_relative '../lib/cobench/mask'
|
|
23
23
|
|
24
24
|
# Test for Mask.
|
25
25
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
26
|
-
# Copyright:: Copyright (c) 2022 Yegor Bugayenko
|
26
|
+
# Copyright:: Copyright (c) 2022-2023 Yegor Bugayenko
|
27
27
|
# License:: MIT
|
28
28
|
class TestMask < Minitest::Test
|
29
29
|
def test_positive
|
data/test/test_match.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2022 Yegor Bugayenko
|
1
|
+
# Copyright (c) 2022-2023 Yegor Bugayenko
|
2
2
|
#
|
3
3
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
# of this software and associated documentation files (the 'Software'), to deal
|
@@ -24,7 +24,7 @@ require_relative '../lib/cobench/match'
|
|
24
24
|
|
25
25
|
# Test for Match.
|
26
26
|
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
27
|
-
# Copyright:: Copyright (c) 2022 Yegor Bugayenko
|
27
|
+
# Copyright:: Copyright (c) 2022-2023 Yegor Bugayenko
|
28
28
|
# License:: MIT
|
29
29
|
class TestMatch < Minitest::Test
|
30
30
|
def test_positive
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cobench
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.47
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backtrace
|
@@ -122,20 +122,6 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '4.4'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: xcop
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0.6'
|
132
|
-
type: :runtime
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0.6'
|
139
125
|
- !ruby/object:Gem::Dependency
|
140
126
|
name: codecov
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -234,6 +220,20 @@ dependencies:
|
|
234
220
|
- - '='
|
235
221
|
- !ruby/object:Gem::Version
|
236
222
|
version: 2.11.1
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: xcop
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - '='
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: 0.7.1
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - '='
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: 0.7.1
|
237
237
|
description: Downloads statistics from GitHub and builds a nice HTML report
|
238
238
|
email: yegor256@gmail.com
|
239
239
|
executables:
|