cobench 0.0.47 → 0.0.49
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/pdd.yml +1 -1
- data/.github/workflows/rake.yml +1 -1
- data/.github/workflows/xcop.yml +1 -1
- data/Gemfile +9 -0
- data/assets/index.xsl +2 -2
- data/cobench.gemspec +1 -9
- data/features/step_definitions/steps.rb +1 -1
- data/lib/cobench/metrics/pulls.rb +1 -1
- data/lib/cobench/metrics/reviews.rb +10 -0
- data/lib/cobench/version.rb +1 -1
- data/test/test__helper.rb +0 -4
- metadata +4 -116
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a84ac17fa4339a99fc8d31ae5b1f4f17817385594b503d26d4d5636d314b2626
|
4
|
+
data.tar.gz: 12c6435acecce153da8250dcb124435fc31f7e9c7bc106678a217822d06b90d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d63511d8608921f3130581813a178b39459dfb96281a2cbf23912fc795ac0b091f8a25e4a74287c9d1fb2f3bee7c1b4152654341edcda554c77aee67336bb217
|
7
|
+
data.tar.gz: 4c8e62a7e955b978103dfc6c73d610652de3682e1c0e16f1e2e2b26a5ab622daf5dc9b1a31c641f537de2086222abe105f2c040a29030b36c3ddb837f223eca8
|
data/.github/workflows/pdd.yml
CHANGED
data/.github/workflows/rake.yml
CHANGED
data/.github/workflows/xcop.yml
CHANGED
data/Gemfile
CHANGED
@@ -20,3 +20,12 @@
|
|
20
20
|
|
21
21
|
source 'https://rubygems.org'
|
22
22
|
gemspec
|
23
|
+
|
24
|
+
gem 'cucumber', '8.0.0', require: false
|
25
|
+
gem 'minitest', '5.19.0', require: false
|
26
|
+
gem 'rake', '13.0.6', require: false
|
27
|
+
gem 'rdoc', '6.5.0', require: false
|
28
|
+
gem 'rubocop', '1.55.1', require: false
|
29
|
+
gem 'rubocop-rspec', '2.23.2', require: false
|
30
|
+
gem 'simplecov', '0.22.0', require: false
|
31
|
+
gem 'xcop', '0.7.1', require: false
|
data/assets/index.xsl
CHANGED
@@ -148,11 +148,11 @@ SOFTWARE.
|
|
148
148
|
<xsl:text>hits of code</xsl:text>
|
149
149
|
</a>
|
150
150
|
<xsl:text>. </xsl:text>
|
151
|
-
<xsl:text>"Issues" is the total number of
|
151
|
+
<xsl:text>"Issues" is the total number of </xsl:text>
|
152
152
|
<a href="https://docs.github.com/en/issues">
|
153
153
|
<xsl:text>issues</xsl:text>
|
154
154
|
</a>
|
155
|
-
<xsl:text
|
155
|
+
<xsl:text> submitted by the user. </xsl:text>
|
156
156
|
<xsl:text>"LcP" is an average lifecycle of a pull request in hours. </xsl:text>
|
157
157
|
<xsl:text>"Msgs" is the total number of messages posted in pull requests where the user was a reviewer. </xsl:text>
|
158
158
|
<xsl:text>"Pulls" is the total number of </xsl:text>
|
data/cobench.gemspec
CHANGED
@@ -45,15 +45,7 @@ Gem::Specification.new do |s|
|
|
45
45
|
s.add_runtime_dependency 'loog', '~>0.2'
|
46
46
|
s.add_runtime_dependency 'nokogiri', '~>1.10'
|
47
47
|
s.add_runtime_dependency 'obk', '0.3.0'
|
48
|
-
s.add_runtime_dependency 'octokit', '~>
|
48
|
+
s.add_runtime_dependency 'octokit', '~>6.0'
|
49
49
|
s.add_runtime_dependency 'rainbow', '~>3.0'
|
50
50
|
s.add_runtime_dependency 'slop', '~>4.4'
|
51
|
-
s.add_development_dependency 'codecov', '0.6.0'
|
52
|
-
s.add_development_dependency 'cucumber', '8.0.0'
|
53
|
-
s.add_development_dependency 'minitest', '5.15.0'
|
54
|
-
s.add_development_dependency 'rake', '13.0.6'
|
55
|
-
s.add_development_dependency 'rdoc', '6.4.0'
|
56
|
-
s.add_development_dependency 'rubocop', '1.32.0'
|
57
|
-
s.add_development_dependency 'rubocop-rspec', '2.11.1'
|
58
|
-
s.add_development_dependency 'xcop', '0.7.1'
|
59
51
|
end
|
@@ -40,7 +40,7 @@ end
|
|
40
40
|
|
41
41
|
Given(/^I have a "([^"]*)" file with content:$/) do |file, text|
|
42
42
|
FileUtils.mkdir_p(File.dirname(file)) unless File.exist?(file)
|
43
|
-
File.write(file, text.gsub(
|
43
|
+
File.write(file, text.gsub('\\xFF', 0xFF.chr))
|
44
44
|
end
|
45
45
|
|
46
46
|
When(%r{^I run bin/cobench with "([^"]*)"$}) do |arg|
|
@@ -43,6 +43,16 @@ class Cobench::Reviews
|
|
43
43
|
repo = p.repository_url.split('/')[-2..-1].join('/')
|
44
44
|
next unless Cobench::Match.new(@opts, loog).matches?(repo)
|
45
45
|
loog.debug("Including #{repo}##{pr} reviewed by @#{@user}")
|
46
|
+
reviews = @api.pull_request_reviews(repo, pr).count { |c| c[:user][:login].downcase == @user }
|
47
|
+
if reviews.zero?
|
48
|
+
loog.debug("There are no reviews in #{repo}##{pr} by @#{@user}")
|
49
|
+
next
|
50
|
+
end
|
51
|
+
pr_json = @api.pull_request(repo, pr)
|
52
|
+
if pr_json[:user][:login] == @user
|
53
|
+
loog.debug("There PR is authored by @#{@user}, skipping it (GitHub API mistake)")
|
54
|
+
next
|
55
|
+
end
|
46
56
|
posted = @api.pull_request_comments(repo, pr).count { |c| c[:user][:login].downcase == @user }
|
47
57
|
posted += @api.issue_comments(repo, pr).count { |c| c[:user][:login].downcase == @user }
|
48
58
|
loog.debug("#{posted} messages posted by @#{@user} to #{repo}##{pr}")
|
data/lib/cobench/version.rb
CHANGED
data/test/test__helper.rb
CHANGED
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.49
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: backtrace
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '6.0'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '6.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rainbow
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,118 +122,6 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '4.4'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: codecov
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - '='
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: 0.6.0
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - '='
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: 0.6.0
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: cucumber
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - '='
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: 8.0.0
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - '='
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: 8.0.0
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: minitest
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - '='
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: 5.15.0
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - '='
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: 5.15.0
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: rake
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - '='
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: 13.0.6
|
174
|
-
type: :development
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - '='
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: 13.0.6
|
181
|
-
- !ruby/object:Gem::Dependency
|
182
|
-
name: rdoc
|
183
|
-
requirement: !ruby/object:Gem::Requirement
|
184
|
-
requirements:
|
185
|
-
- - '='
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: 6.4.0
|
188
|
-
type: :development
|
189
|
-
prerelease: false
|
190
|
-
version_requirements: !ruby/object:Gem::Requirement
|
191
|
-
requirements:
|
192
|
-
- - '='
|
193
|
-
- !ruby/object:Gem::Version
|
194
|
-
version: 6.4.0
|
195
|
-
- !ruby/object:Gem::Dependency
|
196
|
-
name: rubocop
|
197
|
-
requirement: !ruby/object:Gem::Requirement
|
198
|
-
requirements:
|
199
|
-
- - '='
|
200
|
-
- !ruby/object:Gem::Version
|
201
|
-
version: 1.32.0
|
202
|
-
type: :development
|
203
|
-
prerelease: false
|
204
|
-
version_requirements: !ruby/object:Gem::Requirement
|
205
|
-
requirements:
|
206
|
-
- - '='
|
207
|
-
- !ruby/object:Gem::Version
|
208
|
-
version: 1.32.0
|
209
|
-
- !ruby/object:Gem::Dependency
|
210
|
-
name: rubocop-rspec
|
211
|
-
requirement: !ruby/object:Gem::Requirement
|
212
|
-
requirements:
|
213
|
-
- - '='
|
214
|
-
- !ruby/object:Gem::Version
|
215
|
-
version: 2.11.1
|
216
|
-
type: :development
|
217
|
-
prerelease: false
|
218
|
-
version_requirements: !ruby/object:Gem::Requirement
|
219
|
-
requirements:
|
220
|
-
- - '='
|
221
|
-
- !ruby/object:Gem::Version
|
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
125
|
description: Downloads statistics from GitHub and builds a nice HTML report
|
238
126
|
email: yegor256@gmail.com
|
239
127
|
executables:
|