github_repo_statistics 2.2.26 → 2.2.27
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: c499c4ae5fb475882539b924d59d507f5db8b45abb37e10cad753a4a15d51df2
|
4
|
+
data.tar.gz: 4fc45e6a83d203c7feab2c73dd50ff6e9de6eda62c2d4a18838ba504c48aef62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5802184f8863d6cb31ff0cb625c84b9dfcd6fb4a73095eafeba769956f27c52b4148b8de9ae502dc16c495aaa2b0f7fbc630ebd0a1ae662a7fb85ba07964d419
|
7
|
+
data.tar.gz: 05a70ab1951a64b60a6e8b2a8f7f14a0021eef258441a77afec90b50ba07d08b32c5f2014526a59f3d36d81d7ca74b5f2f5156494834d5be53517789eaa0f6bf
|
@@ -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) }
|
@@ -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
|