github_repo_statistics 2.2.27 → 2.2.28

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: c499c4ae5fb475882539b924d59d507f5db8b45abb37e10cad753a4a15d51df2
4
- data.tar.gz: 4fc45e6a83d203c7feab2c73dd50ff6e9de6eda62c2d4a18838ba504c48aef62
3
+ metadata.gz: b5ac1d146486a2054b687baa929f806e6ba28538ed754d519863225a333e25bb
4
+ data.tar.gz: 341a0815ee930eacc8a8907491fe0b97d85926e2253d911c2ea934c1f8aaad21
5
5
  SHA512:
6
- metadata.gz: 5802184f8863d6cb31ff0cb625c84b9dfcd6fb4a73095eafeba769956f27c52b4148b8de9ae502dc16c495aaa2b0f7fbc630ebd0a1ae662a7fb85ba07964d419
7
- data.tar.gz: 05a70ab1951a64b60a6e8b2a8f7f14a0021eef258441a77afec90b50ba07d08b32c5f2014526a59f3d36d81d7ca74b5f2f5156494834d5be53517789eaa0f6bf
6
+ metadata.gz: ce70326d2860322b6cef2f0732c9decb713478f68b8d6277ac6f302db49e4ff491d159aebc3caeabe7918b9fd4d69ff3448b1b5ff9dca89782a3a2715ff0a82c
7
+ data.tar.gz: 9a199a3ea3b90f8a75880b0f71d9ca6e9a27df8d759734cf75751d83d30301047550545caf49877c7c7c59f8fc2dbd1bb6608ab0db5a7a46522701ebfbd4a988
@@ -225,8 +225,8 @@ class GithubRepoStatistics
225
225
 
226
226
  def contribution_message
227
227
  duration_in_days = @duration_in_days.to_i
228
- start_date = @begin_time.to_time.to_i - duration_in_days * 86_400 - 30 * 86_400
229
- end_date = @begin_time.to_time.to_i - 30 * 86_400
228
+ start_date = @begin_time.to_time.to_i - duration_in_days * 86_400
229
+ end_date = @begin_time.to_time.to_i
230
230
  git_ls = git_files(directory_path: @directory_path)
231
231
  file_count = filter_existing_code_files(git_ls.split).count
232
232
  all_files_with_changes = files_with_changes(directory_path: @directory_path, start_date:, end_date:).split.sort
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class GithubRepoStatistics
4
- VERSION = '2.2.27'
4
+ VERSION = '2.2.28'
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.27
4
+ version: 2.2.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serghei Moret