github_repo_statistics 2.3.4 → 2.3.5

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: 48ce01a230f9ced8662708cdcb0cce31cdf18d5e7a27947fd39be3f3c60f7591
4
- data.tar.gz: 40d40be9acc6963f80e4d6aa5391ae4736b73c736a7c1cbbc1b1bb77e62775cb
3
+ metadata.gz: 538bcf5774623f5443c771c731035806d40bc7ecced742899a95168dca809094
4
+ data.tar.gz: '063853f3714c6a18e70d9eb936e88d2ef7c592203936412f6f9981960ae5db7f'
5
5
  SHA512:
6
- metadata.gz: 4f8d61c8f46cdd13f1e7a5bfa8a1cd5b955d3abdc3ad334b237447de8c66a535dc2e10a03468ead22c5b20fd753d45df02a487b9bd06e3c0846c4ceb7eb7e087
7
- data.tar.gz: c970f9082411d85305559bea74b098e51b5c99ba41a1fc0767ac0228ec006c1e1e04016c34afc478135c671ef11156181cdc86a1bbead9293f7f6b58fcce6f17
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.3)
4
+ github_repo_statistics (2.3.5)
5
5
  date
6
6
  faraday-retry
7
7
  google-cloud-bigquery
@@ -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.4'
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.4
4
+ version: 2.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serghei Moret