github_repo_statistics 2.3.0 → 2.3.1

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: 2992ae14c4b2bab0ffc8cdee2c5c2e33a0b7dcc08f2fdb62b194975e944dd625
4
- data.tar.gz: 43837ce970edb37d1f52fc88a97a4799d7cf72d33057788d06e71bee9e90e4e7
3
+ metadata.gz: e27a6a13a4ce688ed3bda40c18cb6eb74ad11f4d0976009a681a21892fdadce5
4
+ data.tar.gz: cbcc63cb44bbfbdd50e4c6f7d5b14efdc6672a0c303d6f0a4226fed64a83b98c
5
5
  SHA512:
6
- metadata.gz: f1566d02371061b2a29bd5177438c5fc399c0e554144f110940b686b865c6f7959ca7f7bd54db700ae4745725d430457ec7508c8eb5be0ebf3cbd682c5efca3d
7
- data.tar.gz: f13509d5a8de4daa42c02a5194b3814a75d2110b15ab63b0cfb503ac6d2a76aa75d9d1a496b613b723e6f3596ea0d113ba59577f738ae501a1b2d762161a03dd
6
+ metadata.gz: ac54df8ecee12b70d3680668e3aa112ae7b694c3f5da2f56a95a7d87399c8e0a91f9ac3cebf703e427839bf179c81ec005d3f811c25110912b0f8bcd7ee30f97
7
+ data.tar.gz: 33fb0160c53b81602df8eff54904148b9932c6ff461b1cca5caca6a6dd53d1facc1fef036606eb68e8605550f4dd1be0f958cd85c08ab56f54dfd918e26cd358
@@ -182,7 +182,7 @@ class GithubRepoStatistics
182
182
  end
183
183
 
184
184
  def new_changes?(file:)
185
- git_commit_info(file:, start_date: DateTime.now - 1, end_date: DateTime.now) == "" ? false : true
185
+ git_commit_info(file:, start_date: DateTime.now - 7, end_date: DateTime.now) == "" ? false : true
186
186
  end
187
187
 
188
188
  def analyze_changed_files(uniq_code_files_with_changes:, start_date:, end_date:)
@@ -343,7 +343,7 @@ class GithubRepoStatistics
343
343
 
344
344
  if FILE_OUTPUT
345
345
  CSV.open('hotspot.csv', 'w') do |csv|
346
- csv << ['File', 'New change', 'Contributors', 'Lines', 'Commits', 'Owner', 'PRs']
346
+ csv << ['File', 'Updated in the past week', 'Contributors', 'Lines', 'Commits', 'Owner', 'PRs']
347
347
  hotspot_output.each do |row|
348
348
  csv << row
349
349
  end
@@ -351,7 +351,7 @@ class GithubRepoStatistics
351
351
  else
352
352
  puts "\n *Hotspot files(#{filtered_top_touched_files.count}):*\n"
353
353
  hotspot_output.each do |row|
354
- puts " #{row[0]} Contributors: #{row[1]} New change: #{row[2]} Lines: #{row[3]} Commits: #{row[4]} Owner: #{row[5]} PRs: #{row[6]}"
354
+ puts " #{row[0]} Contributors: #{row[1]} Updated in the past week: #{row[2]} Lines: #{row[3]} Commits: #{row[4]} Owner: #{row[5]} PRs: #{row[6]}"
355
355
  end
356
356
  end
357
357
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class GithubRepoStatistics
4
- VERSION = '2.3.0'
4
+ VERSION = '2.3.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github_repo_statistics
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
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-05-07 00:00:00.000000000 Z
11
+ date: 2024-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: date