github_repo_statistics 2.2.26 → 2.2.27

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: fe90e8eefeb5f9b22cbd14a6bceb5868fe2f1bbbc7d46bd31482da2df8633e88
4
- data.tar.gz: 25e1ca4829be2bb25d3f8e768a225402bdccebe4543b9201d78a022cc75d3abd
3
+ metadata.gz: c499c4ae5fb475882539b924d59d507f5db8b45abb37e10cad753a4a15d51df2
4
+ data.tar.gz: 4fc45e6a83d203c7feab2c73dd50ff6e9de6eda62c2d4a18838ba504c48aef62
5
5
  SHA512:
6
- metadata.gz: 4de4437a89cfa6d52ec70f629fe384008122a59eaf12a1c51d6910c3bd2afb4e01d6ebd82dfafbd050142046fbb3d131578d9b81881b8d0ed8fe1ff3508b599d
7
- data.tar.gz: 73bf82949318a30d167959e16999231c41d27409d18731e244b6f541db63367e2d9fc52f6e53edf2c13a169ef7fbe66e624b7b049f7eca839aabc086e4822143
6
+ metadata.gz: 5802184f8863d6cb31ff0cb625c84b9dfcd6fb4a73095eafeba769956f27c52b4148b8de9ae502dc16c495aaa2b0f7fbc630ebd0a1ae662a7fb85ba07964d419
7
+ data.tar.gz: 05a70ab1951a64b60a6e8b2a8f7f14a0021eef258441a77afec90b50ba07d08b32c5f2014526a59f3d36d81d7ca74b5f2f5156494834d5be53517789eaa0f6bf
@@ -192,7 +192,6 @@ class GithubRepoStatistics
192
192
  filename = File.basename(file)
193
193
  commit_count = git_commit_count(file:, start_date:, end_date:).to_i
194
194
  git_log = git_commit_info(file:, start_date:, end_date:).split("\n")
195
- puts git_log if @debug
196
195
  teams = git_log.map do |team|
197
196
  team.match(/#{TEAM_REGEX}/)[0].upcase
198
197
  end.reject { |e| EXCLUSIONS&.include?(e) }
@@ -350,9 +349,9 @@ class GithubRepoStatistics
350
349
 
351
350
  return unless @steps.positive?
352
351
 
353
- system("git checkout `git rev-list -1 --before='#{(@begin_time - 115).strftime('%B %d %Y')}' HEAD`",
352
+ system("git checkout `git rev-list -1 --before='#{(@begin_time - duration_in_days).strftime('%B %d %Y')}' HEAD`",
354
353
  %i[out err] => File::NULL)
355
- @begin_time -= 115
354
+ @begin_time -= duration_in_days
356
355
  contribution_message
357
356
  end
358
357
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class GithubRepoStatistics
4
- VERSION = '2.2.26'
4
+ VERSION = '2.2.27'
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.2.26
4
+ version: 2.2.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serghei Moret