github_repo_statistics 2.2.25 → 2.2.27

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: 3b0d785bf76a9332bb8fde1a51bfc945a68f0f29a23af2c5e3f33b53d6f2998f
4
- data.tar.gz: 0f37ed9e50b2428e7259fb409f5d0b1c9a7abe63878326772d40049c881b8bea
3
+ metadata.gz: c499c4ae5fb475882539b924d59d507f5db8b45abb37e10cad753a4a15d51df2
4
+ data.tar.gz: 4fc45e6a83d203c7feab2c73dd50ff6e9de6eda62c2d4a18838ba504c48aef62
5
5
  SHA512:
6
- metadata.gz: cd9f7405572980aa739d9507d81833006a1e09693c7e5385c046fb021f4f5773094b74d286ce1ed98895c01b55436f00cc52fc488077deaaa1cac1acbf3f7ba2
7
- data.tar.gz: 24d5e77abac162838a5041a0714cd5f961d3e326a15b2aed237153e060b6cccbadaabcf5fe0abe54ba0dd364274575782c34d52bbf33602ce80611c09ff02e03
6
+ metadata.gz: 5802184f8863d6cb31ff0cb625c84b9dfcd6fb4a73095eafeba769956f27c52b4148b8de9ae502dc16c495aaa2b0f7fbc630ebd0a1ae662a7fb85ba07964d419
7
+ data.tar.gz: 05a70ab1951a64b60a6e8b2a8f7f14a0021eef258441a77afec90b50ba07d08b32c5f2014526a59f3d36d81d7ca74b5f2f5156494834d5be53517789eaa0f6bf
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.summary = 'This gem prints git ownership insights'
13
13
  spec.homepage = 'https://rubygems.org'
14
14
  spec.license = 'MIT'
15
- spec.required_ruby_version = '>= 3.2'
15
+ spec.required_ruby_version = '>= 3.2.0'
16
16
 
17
17
  spec.metadata['homepage_uri'] = spec.homepage
18
18
  spec.metadata['source_code_uri'] = 'https://rubygems.org'
@@ -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.25'
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.25
4
+ version: 2.2.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serghei Moret
@@ -144,7 +144,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
144
144
  requirements:
145
145
  - - ">="
146
146
  - !ruby/object:Gem::Version
147
- version: '3.2'
147
+ version: 3.2.0
148
148
  required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - ">="