github_repo_statistics 2.2.23 → 2.2.25
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: 3b0d785bf76a9332bb8fde1a51bfc945a68f0f29a23af2c5e3f33b53d6f2998f
|
4
|
+
data.tar.gz: 0f37ed9e50b2428e7259fb409f5d0b1c9a7abe63878326772d40049c881b8bea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd9f7405572980aa739d9507d81833006a1e09693c7e5385c046fb021f4f5773094b74d286ce1ed98895c01b55436f00cc52fc488077deaaa1cac1acbf3f7ba2
|
7
|
+
data.tar.gz: 24d5e77abac162838a5041a0714cd5f961d3e326a15b2aed237153e060b6cccbadaabcf5fe0abe54ba0dd364274575782c34d52bbf33602ce80611c09ff02e03
|
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
|
@@ -170,19 +170,15 @@ class GithubRepoStatistics
|
|
170
170
|
end
|
171
171
|
|
172
172
|
def files_with_changes(directory_path:, start_date:, end_date:)
|
173
|
-
`git log --name-only --pretty=format:"" --since="#{start_date}" --until="#{end_date}" "#{directory_path}"`
|
173
|
+
`git log origin/master --name-only --pretty=format:"" --since="#{start_date}" --until="#{end_date}" "#{directory_path}"`
|
174
174
|
end
|
175
175
|
|
176
176
|
def git_commit_count(file:, start_date:, end_date:)
|
177
|
-
`git log --since="#{start_date}" --until="#{end_date}" --follow -- "#{file}" | grep -c '^commit'`
|
177
|
+
`git log origin/master --since="#{start_date}" --until="#{end_date}" --follow -- "#{file}" | grep -c '^commit'`
|
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 origin/master --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:)
|
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.2.
|
4
|
+
version: 2.2.25
|
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-
|
11
|
+
date: 2024-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: date
|