git_ownership_insights 1.0.7 → 1.0.8

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: fe758dc63a0e4961606d39b2c484581613564a1ef1fd3644add238a1cd934f6c
4
- data.tar.gz: a8a442b6c563f81df7342d3a796e2244cbdb8a66215af52ed6be34a4c629b388
3
+ metadata.gz: 67339ef0ad157a4b396b000fba31d443dbc938a24019a7bd98d1a3fe4c4a80c7
4
+ data.tar.gz: 9ccdb62fe54aefb9c1ee348d831a584a4c83465b5e4cc07fc50be1ba5221b8e6
5
5
  SHA512:
6
- metadata.gz: 8fbcfe9390bcabac1dc9b716958baf9df93af32640ce309e31f007a6c0dcab69824060c2c6f682e0f52372da0560a9fa78af0b3844b13fc200e28d660a17f79e
7
- data.tar.gz: 13da08836e586de38dd186bf7054408b10253ddf1cd84a04a4ab305c723efba64b0cf91dfd7e090e16a6347abb7e27bc562ae0b1787e74b917dc4e04f76e87b5
6
+ metadata.gz: 0a61138e4efd95f389684f0bbbe79478af6c2e020365d1cbb54aa6bdd5f696e096939a85a66f8c215909dcb20d095ec839ee21573e17bbd1cd1d4c1f4121cb71
7
+ data.tar.gz: 7e242a2bd0bbbfbe42b7d8732e4ffb85fe92025e3f5a65509a0689dc31ab41baa096886ba8c068636f7b4e743667ca779c275822a1a5f43186a197ed5d4c4be7
@@ -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 " *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}"
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.8'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serghei Moret