github_repo_statistics 2.3.0 → 2.3.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e27a6a13a4ce688ed3bda40c18cb6eb74ad11f4d0976009a681a21892fdadce5
|
|
4
|
+
data.tar.gz: cbcc63cb44bbfbdd50e4c6f7d5b14efdc6672a0c303d6f0a4226fed64a83b98c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ac54df8ecee12b70d3680668e3aa112ae7b694c3f5da2f56a95a7d87399c8e0a91f9ac3cebf703e427839bf179c81ec005d3f811c25110912b0f8bcd7ee30f97
|
|
7
|
+
data.tar.gz: 33fb0160c53b81602df8eff54904148b9932c6ff461b1cca5caca6a6dd53d1facc1fef036606eb68e8605550f4dd1be0f958cd85c08ab56f54dfd918e26cd358
|
|
@@ -182,7 +182,7 @@ class GithubRepoStatistics
|
|
|
182
182
|
end
|
|
183
183
|
|
|
184
184
|
def new_changes?(file:)
|
|
185
|
-
git_commit_info(file:, start_date: DateTime.now -
|
|
185
|
+
git_commit_info(file:, start_date: DateTime.now - 7, end_date: DateTime.now) == "" ? false : true
|
|
186
186
|
end
|
|
187
187
|
|
|
188
188
|
def analyze_changed_files(uniq_code_files_with_changes:, start_date:, end_date:)
|
|
@@ -343,7 +343,7 @@ class GithubRepoStatistics
|
|
|
343
343
|
|
|
344
344
|
if FILE_OUTPUT
|
|
345
345
|
CSV.open('hotspot.csv', 'w') do |csv|
|
|
346
|
-
csv << ['File', '
|
|
346
|
+
csv << ['File', 'Updated in the past week', 'Contributors', 'Lines', 'Commits', 'Owner', 'PRs']
|
|
347
347
|
hotspot_output.each do |row|
|
|
348
348
|
csv << row
|
|
349
349
|
end
|
|
@@ -351,7 +351,7 @@ class GithubRepoStatistics
|
|
|
351
351
|
else
|
|
352
352
|
puts "\n *Hotspot files(#{filtered_top_touched_files.count}):*\n"
|
|
353
353
|
hotspot_output.each do |row|
|
|
354
|
-
puts " #{row[0]} Contributors: #{row[1]}
|
|
354
|
+
puts " #{row[0]} Contributors: #{row[1]} Updated in the past week: #{row[2]} Lines: #{row[3]} Commits: #{row[4]} Owner: #{row[5]} PRs: #{row[6]}"
|
|
355
355
|
end
|
|
356
356
|
end
|
|
357
357
|
end
|
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.1
|
|
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-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: date
|