github_repo_statistics 2.3.3 → 2.3.5

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: bdc56e1b4161b43e58b1c055640a0642cb23d67543b862ade3c9c3b3bb063ca9
4
- data.tar.gz: 217dd6a6bca243b9d5a9b2f128d2daabb89fefec6797594eeb053163feef6a17
3
+ metadata.gz: 538bcf5774623f5443c771c731035806d40bc7ecced742899a95168dca809094
4
+ data.tar.gz: '063853f3714c6a18e70d9eb936e88d2ef7c592203936412f6f9981960ae5db7f'
5
5
  SHA512:
6
- metadata.gz: bc29053f5cdd3a17845c67eddac486e5ba8e1d106f490a5347438cc1d017641a90094bc2a2e7ba4a916b30737ce542fdbe19f706954afdd3e1f4a1d4e62945fd
7
- data.tar.gz: f2aa93b43b2d25b4d244cc7248ee54ec617ce0dfffb7c05103fd468c8ade199c7390b31a126590ff57246c8ab3ffe444ef5f7c435c792fe4eae58a3804f656dc
6
+ metadata.gz: 7073aca1430b973a1a4ef07be6436843d532539bcd0aa5e12caaa22cf6b9c2e6152538d366934e4436aae95d3a64a6fecbe408ad5c9770e1ca6dda3a3aadaafe
7
+ data.tar.gz: 603ecfda33d86d85f8c41a4ea40860830c6e2311b37cb4e8c31d9d58b1a80fd1204c961a2b0326329df42298a9a7b95dea7a05d39da711792f2ccd4119ad450c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- github_repo_statistics (2.3.2)
4
+ github_repo_statistics (2.3.5)
5
5
  date
6
6
  faraday-retry
7
7
  google-cloud-bigquery
@@ -37,7 +37,7 @@ OptionParser.new do |opts|
37
37
  options[:excluded_files] = excluded_files
38
38
  end
39
39
 
40
- opts.on('--excluded-commits STRING',
40
+ opts.on('--excluded-prs STRING',
41
41
  'Comma-delimited list of excluded PRs [example: 1234,1235,2222]') do |excluded_prs|
42
42
  options[:excluded_prs] = excluded_prs
43
43
  end
@@ -198,7 +198,8 @@ class GithubRepoStatistics
198
198
  git_log = git_commit_info(file:, start_date:, end_date:).split("\n")
199
199
 
200
200
  if EXCLUDED_PRS
201
- git_log = git_log.reject { |c| c.include?(EXCLUDED_PRS) }
201
+ excluded_prs = EXCLUDED_PRS.split(',')
202
+ git_log = git_log.reject { |c| excluded_prs.any? { |pr| c.include?(pr) } }
202
203
  end
203
204
 
204
205
  prs = git_log.map do |pr|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class GithubRepoStatistics
4
- VERSION = '2.3.3'
4
+ VERSION = '2.3.5'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github_repo_statistics
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.3
4
+ version: 2.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serghei Moret