git_ownership_insights 1.0.7 → 1.0.9

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: fe758dc63a0e4961606d39b2c484581613564a1ef1fd3644add238a1cd934f6c
4
- data.tar.gz: a8a442b6c563f81df7342d3a796e2244cbdb8a66215af52ed6be34a4c629b388
3
+ metadata.gz: f7975c52466ff8152129983834939960192795ed43b63dc99e930d687cc8913f
4
+ data.tar.gz: b7ab381e8916c57a5d942a9efbeea6a58563bc811bc868fb548b79dcd1a9889d
5
5
  SHA512:
6
- metadata.gz: 8fbcfe9390bcabac1dc9b716958baf9df93af32640ce309e31f007a6c0dcab69824060c2c6f682e0f52372da0560a9fa78af0b3844b13fc200e28d660a17f79e
7
- data.tar.gz: 13da08836e586de38dd186bf7054408b10253ddf1cd84a04a4ab305c723efba64b0cf91dfd7e090e16a6347abb7e27bc562ae0b1787e74b917dc4e04f76e87b5
6
+ metadata.gz: 8cff237852117440dfead023b6e403cce0b0b78c83713fa73318d7c5c695ccd1d83aabe7310bd0534c9a79d8c827635cb31f4845a502d0a155837821a5ed7926
7
+ data.tar.gz: 99185e95efb4e6d7316cdacd30270306be94caf3a2afa58af864acf4b6ccc95634c9b73937053a7747f77559915a26213c15829629e7a83ffc4f27677cbe9afe
@@ -62,7 +62,7 @@ module GitOwnershipInsights
62
62
  count += 1 if lines_count > size
63
63
  end
64
64
 
65
- puts " Total number of code files longer than #{size} lines: #{count}"
65
+ puts " *Total number of code files longer than #{size} lines:* #{count}"
66
66
  end
67
67
 
68
68
  def self.count_hotspot_lines(files)
@@ -82,7 +82,7 @@ module GitOwnershipInsights
82
82
  count += lines_count
83
83
  end
84
84
 
85
- puts " Total lines of hotspot code: #{count}"
85
+ puts " *Total lines of hotspot code:* #{count}"
86
86
  end
87
87
 
88
88
  def self.contribution_message(directory_path:, duration_in_days:, begin_time:, debug: nil, steps: nil)
@@ -155,19 +155,19 @@ module GitOwnershipInsights
155
155
  filtered_top_touched_files = filtered_files.sort_by { |element, count| [-count.last, element] }
156
156
 
157
157
  puts ""
158
- puts "Timeframe: #{(begin_time - duration_in_days).strftime('%Y-%m-%d')} to #{begin_time.strftime('%Y-%m-%d')}"
159
- puts " Hotspot Code Changes: #{churn_count} (#{hotspot_changes_percentage.round(2)}%)"
160
- puts " Cross-Squad Dependency:"
161
- puts " Squads depending on each other occurrences: #{cross_teams_count}"
162
- puts " Squads with single responsibility: #{single_ownership_teams_count}"
163
- puts " Files exceeding #{BIG_FILE_SIZE} lines with multiple contributors: #{filtered_top_touched_files.count}"
158
+ puts "*Timeframe:* #{(begin_time - duration_in_days).strftime('%Y-%m-%d')} to #{begin_time.strftime('%Y-%m-%d')}"
159
+ puts " *Hotspot Code Changes:* #{churn_count} (#{hotspot_changes_percentage.round(2)}%)"
160
+ puts " *Cross-Squad Dependency:*"
161
+ puts " *Contributions by multiple squads to the same files:* #{cross_teams_count}"
162
+ puts " *Contributions by single squads contributing to single files:* #{single_ownership_teams_count}"
163
+ puts " *Files exceeding #{BIG_FILE_SIZE} lines with multiple contributors:* #{filtered_top_touched_files.count}"
164
164
  count_hotspot_lines(filtered_files.keys)
165
165
  count_big_files(directory_path)
166
- puts " Code files with a single contributor: #{(100 - ((files_changed_by_many_teams.to_f / code_files_with_changes.count) * 100)).round(2)}%"
167
- puts " Total amount of code changes: #{total_changes}"
168
- puts " Total files changed: #{code_files_with_changes.count}"
169
- puts " Total files in the folder: #{file_count}"
170
- puts " Contributors: #{contributors}"
166
+ puts " *Code files with a single contributor:* #{(100 - ((files_changed_by_many_teams.to_f / code_files_with_changes.count) * 100)).round(2)}%"
167
+ puts " *Total amount of code changes:* #{total_changes}"
168
+ puts " *Total files changed:* #{code_files_with_changes.count}"
169
+ puts " *Total files in the folder:* #{file_count}"
170
+ puts " *Contributors:* #{contributors}"
171
171
 
172
172
  if HOTSPOT
173
173
  puts "\n"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GitOwnershipInsights
4
- VERSION = '1.0.7'
4
+ VERSION = '1.0.9'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_ownership_insights
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serghei Moret
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-24 00:00:00.000000000 Z
11
+ date: 2024-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: date