github_repo_statistics 2.3.8 → 2.3.9

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: 45f9b41fdeece55840918ee51ada62d6c23509620e50c19e5a495df7bea0d0a8
4
- data.tar.gz: 1a128c270392e20ed6b0d48db13cac15f3d1dfd41ab5b5f8b0f97d46c263df9b
3
+ metadata.gz: ecaa439bb6f1d7aa92d048d1240177ed96d0eadba836cd87ddd896c634919b3c
4
+ data.tar.gz: 14d7afae69b4d42f204f8ce03a39a0713fc735ca6a5aac4e327df231493b58c5
5
5
  SHA512:
6
- metadata.gz: 00c4d3572b32f831af53cec591c415828f1326875794da0df1b1009880ffd90cd1c99c01e8a6cc56b8d40ccd113fae09ecbb65d826ab273e635d1e036d782d29
7
- data.tar.gz: ceadd24b9ccc16eedaf41a99e9dc1ef7f7843994b162c0c4a89ba829528197f85715bc29305a0f6a3bbde6436f5aed7ef2ce7a716ff74168f2f72ef79e15554a
6
+ metadata.gz: dda0b818b28d5ed849e02c81bcd185518fb73732cc9994479eb8a817ff1ab0ed77ec31df5dfd5f9c05844855d7a34ea7e042374887c0c39a1378d82357ef969e
7
+ data.tar.gz: e46f3f75c0393a3cad4443a992cd03d91f0ebbf905d01d3e2ccc41c3d2164e427e68bde73191525004371a23f5cff8d68a8dd7584e687d382d9936c24fc1df67
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- github_repo_statistics (2.3.8)
4
+ github_repo_statistics (2.3.9)
5
5
  date
6
6
  faraday-retry
7
7
  google-cloud-bigquery
@@ -155,14 +155,16 @@ end
155
155
 
156
156
  if options[:hotspot_check]
157
157
  feature_branch = `git rev-parse --abbrev-ref HEAD`.chomp
158
+ puts "Feature branch: #{feature_branch}"
158
159
  changed_files = `git diff --name-only master...#{feature_branch} | grep #{REPO_PATH} | grep '\.swift'`.split
160
+ puts "Changed files: #{changed_files}"
159
161
  branch_hotspot_files = GithubRepoStatistics.new(duration_in_days: options[:duration_in_days] || 30, directory_path: REPO_PATH,
160
162
  begin_time: DateTime.now, steps: options[:steps].to_i, debug: options[:debug]).hotspot_check(files: changed_files, branch: feature_branch)
163
+ puts "branch_hotspot_files = #{branch_hotspot_files}"
161
164
  system("git checkout #{DEFAULT_BRANCH}", [:out] => File::NULL)
162
- system('git pull', %i[out err] => File::NULL)
163
165
  master_hotspot_files = GithubRepoStatistics.new(duration_in_days: options[:duration_in_days] || 30, directory_path: REPO_PATH,
164
166
  begin_time: DateTime.now, steps: options[:steps].to_i, debug: options[:debug]).hotspot_check(files: changed_files, branch: DEFAULT_BRANCH)
165
-
167
+ puts "master_hotspot_files = #{master_hotspot_files}"
166
168
  raise 'New hotspot was introduced, contact foundation to unblock the PR' if branch_hotspot_files > master_hotspot_files
167
169
  else
168
170
  system("git checkout #{DEFAULT_BRANCH}", [:out] => File::NULL)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class GithubRepoStatistics
4
- VERSION = '2.3.8'
4
+ VERSION = '2.3.9'
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.8
4
+ version: 2.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serghei Moret