github_repo_statistics 2.2.24 → 2.2.25

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: 304846ad93b653c7d552405301e314f357a1f8285c52982f52f817ed2c865d08
4
- data.tar.gz: 383b38b87e388e3b57dc484930cfeea5d688da80c1c3b6aefe4f5633bf7209b8
3
+ metadata.gz: 3b0d785bf76a9332bb8fde1a51bfc945a68f0f29a23af2c5e3f33b53d6f2998f
4
+ data.tar.gz: 0f37ed9e50b2428e7259fb409f5d0b1c9a7abe63878326772d40049c881b8bea
5
5
  SHA512:
6
- metadata.gz: 3f173f77d984fb0cf446c8b024cacea967ddfde03143068c36eb8ec1214560691ee7e7368cf4fd6ad7e3f70d0459a7289c0633036ae3fefbfc26d79dfbdaa4dc
7
- data.tar.gz: 980c8eb7018c3661a4823bbd674aa58d1cb4fb94de79be224b8bc3fd0495c22f61c4501c6c9d3fa882d2ff9b15d3deb435cdf553a9035ef7678e56d35ad9fc4c
6
+ metadata.gz: cd9f7405572980aa739d9507d81833006a1e09693c7e5385c046fb021f4f5773094b74d286ce1ed98895c01b55436f00cc52fc488077deaaa1cac1acbf3f7ba2
7
+ data.tar.gz: 24d5e77abac162838a5041a0714cd5f961d3e326a15b2aed237153e060b6cccbadaabcf5fe0abe54ba0dd364274575782c34d52bbf33602ce80611c09ff02e03
@@ -170,15 +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 log --pretty=format:"%s" --since="#{start_date}" --until="#{end_date}" -- "#{file}"`
181
+ `git log origin/master --pretty=format:"%s" --since="#{start_date}" --until="#{end_date}" -- "#{file}"`
182
182
  end
183
183
 
184
184
  def analyze_changed_files(uniq_code_files_with_changes:, start_date:, end_date:)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class GithubRepoStatistics
4
- VERSION = '2.2.24'
4
+ VERSION = '2.2.25'
5
5
  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.2.24
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-04-29 00:00:00.000000000 Z
11
+ date: 2024-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: date