github_repo_statistics 2.3.13 → 2.3.15

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: 8d7a3d6beade66d65ab5b6cb336ff19d33979c24a8df10890c4bae0d8ea0a528
4
- data.tar.gz: 44a3d382315b612416f19810aac7a2629a552a6ad492d1cf3632e4c792204856
3
+ metadata.gz: 15bdbf6a84cb25fd25d4ba0b4b55193cf4c20735aa9dcdebb58490f265890fa0
4
+ data.tar.gz: ef47a94f6e6f210b41b9da61fdf295d2d96af959be231269a80d4a916e74fd31
5
5
  SHA512:
6
- metadata.gz: c1d6d87658337a9df4d085931122e3343ab98f0e016369c618e4118e1e7647f1d99f9d3b9a919ccbbde190794a89ca2d2e2b528c1154dd8d8057998cb068afca
7
- data.tar.gz: 5f0e1064c26e65c390042740c8db42938042a3317107fe51a9ed49209a2005741f6cf78662d23489538317ea8fe9614d264b66d61e77a8ee12d7cf8ed0375dd0
6
+ metadata.gz: 5e567718e3790a43c7393de66ecb56dec122a98a1d2e134c6d6098e817304205ef53a2cc0a27ef7a9e1c38ca1fe21b1c8bcf6bad5b0a40af6b8b4bae1aa30b7f
7
+ data.tar.gz: 5e5ca4e463e23a91c9c23a84d5b69e4e172f591cd0488fb8489aa2f9299e467651fc8b2c9e8657fd6a9e0a2de5e4ebf5f5d5c84845df5d4726d307dc1a825b33
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.15)
5
5
  date
6
6
  faraday-retry
7
7
  google-cloud-bigquery
@@ -155,9 +155,8 @@ end
155
155
 
156
156
  if options[:hotspot_check]
157
157
  feature_branch = `git rev-parse --abbrev-ref HEAD`.chomp
158
- system("git checkout #{DEFAULT_BRANCH}", [:out] => File::NULL)
159
158
  puts "Feature branch: #{feature_branch}"
160
- changed_files = `git diff --name-only #{DEFAULT_BRANCH}...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
161
160
  puts "Changed files: #{changed_files}"
162
161
  return if changed_files.empty?
163
162
 
@@ -166,6 +165,7 @@ if options[:hotspot_check]
166
165
  puts "branch_hotspot_files = #{branch_hotspot_files}"
167
166
  return if branch_hotspot_files.empty?
168
167
 
168
+ system("git checkout #{DEFAULT_BRANCH}", [:out] => File::NULL)
169
169
  master_hotspot_files = GithubRepoStatistics.new(duration_in_days: options[:duration_in_days] || 30, directory_path: REPO_PATH,
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}"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class GithubRepoStatistics
4
- VERSION = '2.3.13'
4
+ VERSION = '2.3.15'
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.13
4
+ version: 2.3.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serghei Moret