github_repo_statistics 2.3.14 → 2.3.16

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: 9d94bc3e40ce62624d26ad71cede3f3f151e84530e6ad27fc278a9234d4e5170
4
- data.tar.gz: 146afb708f9b43e455c691393ac791473ad553de997720127ae4afd849227091
3
+ metadata.gz: 75f72cbed3ee8cf6466fe3f22b15bc0293e06e5b104810ac91e6996c075819b2
4
+ data.tar.gz: 7588ce9b07b6fe8430aaa2b09684418cca525ac7824b9e247bab0aeb62faf09f
5
5
  SHA512:
6
- metadata.gz: 53e90a20a15dacb9cd9ed1f1c59619993ad51117c8834321d50f7d80281876847231a2b17a4274a2fe480da7cd8f65342ed5659966c220c070a614ffdd00a656
7
- data.tar.gz: af4b349db7fe3ccc130410d08bab08fd4bc9370a4b51cfe1f91af82ca899d829b23cd345e95254a01a96461c7fbbf058f8d5edf13302026730abdb5c2a52a929
6
+ metadata.gz: ea9760f5441e162d9401a2affb903b926d05f538caeb18853b43fff403779da40953519add1abc3328e1b34bcf95b0586fecc5a065cbd18b3290601d7cec35f0
7
+ data.tar.gz: '08f2aa4a9e182f22caf11c2bc623a6106745ceea939bff4a0f321b1a5fbfa7825442c88f55eebfdb171983d51aab0d5493866c59272e24a222cec646f925c6eb'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- github_repo_statistics (2.3.13)
4
+ github_repo_statistics (2.3.16)
5
5
  date
6
6
  faraday-retry
7
7
  google-cloud-bigquery
@@ -156,7 +156,7 @@ end
156
156
  if options[:hotspot_check]
157
157
  feature_branch = `git rev-parse --abbrev-ref HEAD`.chomp
158
158
  puts "Feature branch: #{feature_branch}"
159
- changed_files = `git diff --name-only master...origin/#{feature_branch} | grep #{REPO_PATH} | grep '\.swift'`.split
159
+ changed_files = `git diff --name-only origin/#{DEFAULT_BRANCH}...origin/#{feature_branch} | grep #{REPO_PATH} | grep '\.swift'`.split
160
160
  puts "Changed files: #{changed_files}"
161
161
  return if changed_files.empty?
162
162
 
@@ -170,7 +170,7 @@ if options[:hotspot_check]
170
170
  begin_time: DateTime.now, steps: options[:steps].to_i, debug: options[:debug]).hotspot_check(files: branch_hotspot_files, branch: DEFAULT_BRANCH)
171
171
  puts "master_hotspot_files = #{master_hotspot_files}"
172
172
 
173
- raise 'New hotspot was introduced, contact foundation to unblock the PR' if branch_hotspot_files.count > master_hotspot_files.count
173
+ File.write('./failure.txt', "New hotspot was introduced, contact foundation to unblock the PR. Files: #{branch_hotspot_files - master_hotspot_files}") if branch_hotspot_files.count > master_hotspot_files.count
174
174
  else
175
175
  system("git checkout #{DEFAULT_BRANCH}", [:out] => File::NULL)
176
176
  system('git pull', %i[out err] => File::NULL)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class GithubRepoStatistics
4
- VERSION = '2.3.14'
4
+ VERSION = '2.3.16'
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.14
4
+ version: 2.3.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serghei Moret