github_repo_statistics 2.3.2 → 2.3.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48ce01a230f9ced8662708cdcb0cce31cdf18d5e7a27947fd39be3f3c60f7591
|
4
|
+
data.tar.gz: 40d40be9acc6963f80e4d6aa5391ae4736b73c736a7c1cbbc1b1bb77e62775cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f8d61c8f46cdd13f1e7a5bfa8a1cd5b955d3abdc3ad334b237447de8c66a535dc2e10a03468ead22c5b20fd753d45df02a487b9bd06e3c0846c4ceb7eb7e087
|
7
|
+
data.tar.gz: c970f9082411d85305559bea74b098e51b5c99ba41a1fc0767ac0228ec006c1e1e04016c34afc478135c671ef11156181cdc86a1bbead9293f7f6b58fcce6f17
|
data/Gemfile.lock
CHANGED
data/bin/github_repo_statistics
CHANGED
@@ -37,9 +37,9 @@ OptionParser.new do |opts|
|
|
37
37
|
options[:excluded_files] = excluded_files
|
38
38
|
end
|
39
39
|
|
40
|
-
opts.on('--excluded-
|
41
|
-
'Comma-delimited list of excluded
|
42
|
-
options[:
|
40
|
+
opts.on('--excluded-prs STRING',
|
41
|
+
'Comma-delimited list of excluded PRs [example: 1234,1235,2222]') do |excluded_prs|
|
42
|
+
options[:excluded_prs] = excluded_prs
|
43
43
|
end
|
44
44
|
|
45
45
|
opts.on('--steps STRING', 'Number of steps the script will go into the past [default: 1]') do |steps|
|
@@ -111,7 +111,7 @@ HOTSPOT = options[:hotspot_files] || false
|
|
111
111
|
FILE_OUTPUT = options[:file_output] || false
|
112
112
|
CODE_EXTENSIONS = options[:code_extension] ? options[:code_extension].split(',') : ['.swift', '.kt']
|
113
113
|
EXCLUDED_FILES = options[:excluded_files]
|
114
|
-
|
114
|
+
EXCLUDED_PRS = options[:excluded_prs]
|
115
115
|
|
116
116
|
unless CI
|
117
117
|
puts "\nDirectory: #{REPO_PATH}\n"
|
@@ -197,8 +197,8 @@ class GithubRepoStatistics
|
|
197
197
|
commit_count = git_commit_count(file:, start_date:, end_date:).to_i
|
198
198
|
git_log = git_commit_info(file:, start_date:, end_date:).split("\n")
|
199
199
|
|
200
|
-
if
|
201
|
-
git_log = git_log.reject { |c| c.include?(
|
200
|
+
if EXCLUDED_PRS
|
201
|
+
git_log = git_log.reject { |c| c.include?(EXCLUDED_PRS) }
|
202
202
|
end
|
203
203
|
|
204
204
|
prs = git_log.map do |pr|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github_repo_statistics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Serghei Moret
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: date
|