github_repo_statistics 2.3.19 → 2.3.21

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: 5bcc6156acfe60790b51750cf3d5b39353e92a58a8de3133a849aae2225a02f4
4
- data.tar.gz: b303b0e858fb6fd603dc18a6c90e49ed35fe52d2383c8f54eeb3328ca4422e8f
3
+ metadata.gz: 80e2ed1240a8a3c6d3658367ac8f49fbeba50640d57a693fabd7c4f6a62ddb7c
4
+ data.tar.gz: 735d68fb3ada3cd88335f68889638303c724e75b2a6aa1d7514743c4d0af3208
5
5
  SHA512:
6
- metadata.gz: '015059e962b968ce0bb2b023b83557f98e34e1c9a47069c7e63b8dde02d061121b1de8d599f32564922ec5126980993afe161716bd1c5f486cdd8d75f5a2f205'
7
- data.tar.gz: 6f61d638c7093095756c8cb66efafc77095f82104a3eb96eb9b98b26b15caf4d653ac9c1086cba1ea92f35ff0f3f0f96889cad41a318d6bdfbee7e41cf4e094a
6
+ metadata.gz: d688da55e7556face028bca7655f5617b590397b6fb8c3d4dc8ce5e28996bffe50506cb9a2238d6b150e14fae85e402b9e7f211f69077436fc70487f3d513860
7
+ data.tar.gz: a86031e0e5b0b4380beff12f22b682101370cfe989e37d781e193f15d5aebb871b6de2a73b10f313332390baf3c89687b9bf09bdc9a7e1751bc921fc330e7f3d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- github_repo_statistics (2.3.19)
4
+ github_repo_statistics (2.3.18)
5
5
  date
6
6
  faraday-retry
7
7
  google-cloud-bigquery
@@ -192,7 +192,11 @@ class GithubRepoStatistics
192
192
  end
193
193
 
194
194
  def git_commit_info(file:, start_date:, end_date:, branch: DEFAULT_BRANCH)
195
- `git log origin/#{branch} --pretty=format:"%s" --since="#{start_date}" --until="#{end_date}" -- "#{file}"`
195
+ gl = `git log origin/#{branch} --pretty=format:"%s" --since="#{start_date}" --until="#{end_date}" -- "#{file}"`
196
+ puts "--------"
197
+ puts gl
198
+ puts "----------"
199
+ gl
196
200
  end
197
201
 
198
202
  def new_changes?(file:)
@@ -210,8 +214,8 @@ class GithubRepoStatistics
210
214
  filename = File.basename(file)
211
215
  commit_count = git_commit_count(file:, start_date:, end_date:, branch:).to_i
212
216
  git_log = git_commit_info(file:, start_date:, end_date:, branch:).split("\n")
213
-
214
- if EXCLUDED_PRS && branch != DEFAULT_BRANCH
217
+
218
+ if EXCLUDED_PRS && branch == DEFAULT_BRANCH
215
219
  excluded_prs = EXCLUDED_PRS.split(',')
216
220
  git_log = git_log.reject { |c| excluded_prs.any? { |pr| c.include?(pr) } }
217
221
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class GithubRepoStatistics
4
- VERSION = '2.3.19'
4
+ VERSION = '2.3.21'
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.3.19
4
+ version: 2.3.21
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-06-08 00:00:00.000000000 Z
11
+ date: 2024-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: date