github_repo_statistics 2.2.23 → 2.2.24
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: 304846ad93b653c7d552405301e314f357a1f8285c52982f52f817ed2c865d08
|
|
4
|
+
data.tar.gz: 383b38b87e388e3b57dc484930cfeea5d688da80c1c3b6aefe4f5633bf7209b8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3f173f77d984fb0cf446c8b024cacea967ddfde03143068c36eb8ec1214560691ee7e7368cf4fd6ad7e3f70d0459a7289c0633036ae3fefbfc26d79dfbdaa4dc
|
|
7
|
+
data.tar.gz: 980c8eb7018c3661a4823bbd674aa58d1cb4fb94de79be224b8bc3fd0495c22f61c4501c6c9d3fa882d2ff9b15d3deb435cdf553a9035ef7678e56d35ad9fc4c
|
data/bin/github_repo_statistics
CHANGED
|
@@ -125,7 +125,7 @@ unless CI
|
|
|
125
125
|
end
|
|
126
126
|
|
|
127
127
|
system("git checkout #{DEFAULT_BRANCH}", [:out] => File::NULL)
|
|
128
|
-
system('git pull')
|
|
128
|
+
system('git pull', %i[out err] => File::NULL)
|
|
129
129
|
|
|
130
130
|
GithubRepoStatistics.new(duration_in_days: options[:duration_in_days] || 30, directory_path: REPO_PATH,
|
|
131
131
|
begin_time: DateTime.now, steps: options[:steps].to_i, debug: options[:debug]).contribution_message
|
|
@@ -178,11 +178,7 @@ class GithubRepoStatistics
|
|
|
178
178
|
end
|
|
179
179
|
|
|
180
180
|
def git_commit_info(file:, start_date:, end_date:)
|
|
181
|
-
`git
|
|
182
|
-
puts "File: #{file}, Start: #{start_date}, End: #{end_date}, Now: #{Time.now}" if @debug
|
|
183
|
-
res = `git log --pretty=format:"%s" --since="#{start_date}" --until="#{end_date}" --follow -- "#{file}"`
|
|
184
|
-
puts res if @debug
|
|
185
|
-
res
|
|
181
|
+
`git log --pretty=format:"%s" --since="#{start_date}" --until="#{end_date}" -- "#{file}"`
|
|
186
182
|
end
|
|
187
183
|
|
|
188
184
|
def analyze_changed_files(uniq_code_files_with_changes:, start_date:, end_date:)
|