github_repo_statistics 2.2.26 → 2.2.28
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: b5ac1d146486a2054b687baa929f806e6ba28538ed754d519863225a333e25bb
|
|
4
|
+
data.tar.gz: 341a0815ee930eacc8a8907491fe0b97d85926e2253d911c2ea934c1f8aaad21
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ce70326d2860322b6cef2f0732c9decb713478f68b8d6277ac6f302db49e4ff491d159aebc3caeabe7918b9fd4d69ff3448b1b5ff9dca89782a3a2715ff0a82c
|
|
7
|
+
data.tar.gz: 9a199a3ea3b90f8a75880b0f71d9ca6e9a27df8d759734cf75751d83d30301047550545caf49877c7c7c59f8fc2dbd1bb6608ab0db5a7a46522701ebfbd4a988
|
|
@@ -192,7 +192,6 @@ class GithubRepoStatistics
|
|
|
192
192
|
filename = File.basename(file)
|
|
193
193
|
commit_count = git_commit_count(file:, start_date:, end_date:).to_i
|
|
194
194
|
git_log = git_commit_info(file:, start_date:, end_date:).split("\n")
|
|
195
|
-
puts git_log if @debug
|
|
196
195
|
teams = git_log.map do |team|
|
|
197
196
|
team.match(/#{TEAM_REGEX}/)[0].upcase
|
|
198
197
|
end.reject { |e| EXCLUSIONS&.include?(e) }
|
|
@@ -226,8 +225,8 @@ class GithubRepoStatistics
|
|
|
226
225
|
|
|
227
226
|
def contribution_message
|
|
228
227
|
duration_in_days = @duration_in_days.to_i
|
|
229
|
-
start_date = @begin_time.to_time.to_i - duration_in_days * 86_400
|
|
230
|
-
end_date = @begin_time.to_time.to_i
|
|
228
|
+
start_date = @begin_time.to_time.to_i - duration_in_days * 86_400
|
|
229
|
+
end_date = @begin_time.to_time.to_i
|
|
231
230
|
git_ls = git_files(directory_path: @directory_path)
|
|
232
231
|
file_count = filter_existing_code_files(git_ls.split).count
|
|
233
232
|
all_files_with_changes = files_with_changes(directory_path: @directory_path, start_date:, end_date:).split.sort
|
|
@@ -350,9 +349,9 @@ class GithubRepoStatistics
|
|
|
350
349
|
|
|
351
350
|
return unless @steps.positive?
|
|
352
351
|
|
|
353
|
-
system("git checkout `git rev-list -1 --before='#{(@begin_time -
|
|
352
|
+
system("git checkout `git rev-list -1 --before='#{(@begin_time - duration_in_days).strftime('%B %d %Y')}' HEAD`",
|
|
354
353
|
%i[out err] => File::NULL)
|
|
355
|
-
@begin_time -=
|
|
354
|
+
@begin_time -= duration_in_days
|
|
356
355
|
contribution_message
|
|
357
356
|
end
|
|
358
357
|
end
|