nova_git_stats 2.4.0 → 2.4.1

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: d9440379e3d738893ac9832855eff2654bc67d8502ba96b484026bfd89352e36
4
- data.tar.gz: 2db5e384bed363e5d27dfc2f9c8808ce633f53c61ab9eb994fd4be0e58f3e92f
3
+ metadata.gz: b1996d0d582611faf605fd506c883aae035ed6fae7a79132c65ae5cd38b89556
4
+ data.tar.gz: d14c12fcfeb98b89e5601fb7d308acaa974283aa854b55f69f18b61af92a9318
5
5
  SHA512:
6
- metadata.gz: f408d2226bc0cf2a72471212d8169da91afb7b18c6b0afa000c227b33147cf77a42e48967e922e465f13134015db4cc05daf3de7ffbaa242a4edd2f3442dcf9a
7
- data.tar.gz: 0b25a20352dcb760a10a3859583c966062f33262823f61ae4d960e3b1659ac96d917c0020b76f05bc714452cd05dab24609a2b3f2d0454f7c80beefdf481449a
6
+ metadata.gz: fdb84a88af7f80f77aa0ada0d71a29104461fed0367bb79b4876d649b19bc0719c26bab0a85bf59b30c614b335d68f065879ecb713d3f4bcd6d76b1dff8ed1d2
7
+ data.tar.gz: b86533d24e059ad0680b87d0e22a6b40e462c5f3e298420496f5c322171665bdfd4a84972dd80f4ee65288504f24c74cb2b76cbc0196c564ad3d147016c09433
data/CHANGELOG.md CHANGED
@@ -2,7 +2,16 @@
2
2
 
3
3
  ## [master]
4
4
 
5
- [master]: https://github.com/mishina2228/nova_git_stats/compare/v2.4.0...master
5
+ [master]: https://github.com/mishina2228/nova_git_stats/compare/v2.4.1...master
6
+
7
+ ## [2.4.1]
8
+
9
+ [2.4.1]: https://github.com/mishina2228/nova_git_stats/compare/v2.4.0...v2.4.1
10
+
11
+ * Changes
12
+ * Relax activesupport version from `>= 6.1` to `>= 5.2`
13
+ * Replace deprecated DateTime with Time
14
+ * Support Haml 6
6
15
 
7
16
  ## [2.4.0]
8
17
 
@@ -53,7 +53,7 @@ module GitStats
53
53
  repo: self,
54
54
  sha: commit_line[:sha],
55
55
  stamp: commit_line[:stamp],
56
- date: DateTime.parse(commit_line[:date]),
56
+ date: Time.parse(commit_line[:date]),
57
57
  author: authors.first! { |a| a.email == commit_line[:author_email] }
58
58
  )
59
59
  end.sort_by!(&:date)
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GitStats
4
- VERSION = '2.4.0'
4
+ VERSION = '2.4.1'
5
5
 
6
6
  def self.version
7
7
  VERSION
data/lib/git_stats.rb CHANGED
@@ -8,6 +8,7 @@ end
8
8
 
9
9
  require 'active_support/all'
10
10
  require 'fileutils'
11
+ require 'haml'
11
12
  require 'tilt'
12
13
  require 'pathname'
13
14
  require 'lazy_high_charts'
@@ -28,7 +28,7 @@
28
28
  %table{class: 'table table-bordered table-condensed'}
29
29
  %tr
30
30
  %th= :hour.t
31
- - (0..23).each do |h|
31
+ - 24.times do |h|
32
32
  %th= h
33
33
  %tr
34
34
  %th= :commits.t
@@ -60,13 +60,13 @@
60
60
  %table{class: 'table table-bordered table-condensed'}
61
61
  %tr
62
62
  %th
63
- - (0..23).each do |h|
63
+ - 24.times do |h|
64
64
  %th= h
65
65
  - max = author.activity.by_wday_hour.values.map { |h| h.values.empty? ? 0 : h.values.max }.max
66
- - (0..6).each do |day|
66
+ - 7.times do |day|
67
67
  %tr
68
68
  %th= I18n.t('date.abbr_day_names')[day]
69
- - (0..23).each do |hour|
69
+ - 24.times do |hour|
70
70
  - color = max ? format('%02x', 255 - author.activity.by_wday_hour[day][hour] * 100 / max) : 'FF'
71
71
  %td{style: "background-color: ##{color}#{color}#{color};"}= author.activity.by_wday_hour[day][hour]
72
72
 
@@ -1 +1 @@
1
- = render_partial('activity/_activity', page: :activity_by_date, author: author)
1
+ != render_partial('activity/_activity', page: :activity_by_date, author: author)
@@ -1 +1 @@
1
- = render_partial('activity/_activity', page: :day_of_week, author: author)
1
+ != render_partial('activity/_activity', page: :day_of_week, author: author)
@@ -1 +1 @@
1
- = render_partial('activity/_activity', page: :hour_of_day, author: author)
1
+ != render_partial('activity/_activity', page: :hour_of_day, author: author)
@@ -1 +1 @@
1
- = render_partial('activity/_activity', page: :hour_of_week, author: author)
1
+ != render_partial('activity/_activity', page: :hour_of_week, author: author)
@@ -1 +1 @@
1
- = render_partial('activity/_activity', page: :month_of_year, author: author)
1
+ != render_partial('activity/_activity', page: :month_of_year, author: author)
@@ -1 +1 @@
1
- = render_partial('activity/_activity', page: :year, author: author)
1
+ != render_partial('activity/_activity', page: :year, author: author)
@@ -1 +1 @@
1
- = render_partial('activity/_activity', page: :year_month, author: author)
1
+ != render_partial('activity/_activity', page: :year_month, author: author)
@@ -1 +1 @@
1
- = render_partial('author_details/_author_details', page: :changed_lines_by_date, author: author)
1
+ != render_partial('author_details/_author_details', page: :changed_lines_by_date, author: author)
@@ -1 +1 @@
1
- = render_partial('author_details/_author_details', page: :commits_by_date, author: author)
1
+ != render_partial('author_details/_author_details', page: :commits_by_date, author: author)
@@ -1 +1 @@
1
- = render_partial('author_details/_author_details', page: :deletions_by_date, author: author)
1
+ != render_partial('author_details/_author_details', page: :deletions_by_date, author: author)
@@ -1 +1 @@
1
- = render_partial('author_details/_author_details', page: :insertions_by_date, author: author)
1
+ != render_partial('author_details/_author_details', page: :insertions_by_date, author: author)
@@ -1 +1 @@
1
- = render_partial('authors/_authors', page: :best_authors)
1
+ != render_partial('authors/_authors', page: :best_authors)
@@ -1 +1 @@
1
- = render_partial('authors/_authors', page: :changed_lines_by_author_by_date)
1
+ != render_partial('authors/_authors', page: :changed_lines_by_author_by_date)
@@ -1 +1 @@
1
- = render_partial('authors/_authors', page: :commits_sum_by_author_by_date)
1
+ != render_partial('authors/_authors', page: :commits_sum_by_author_by_date)
@@ -1 +1 @@
1
- = render_partial('authors/_authors', page: :deletions_by_author_by_date)
1
+ != render_partial('authors/_authors', page: :deletions_by_author_by_date)
@@ -1 +1 @@
1
- = render_partial('authors/_authors', page: :insertions_by_author_by_date)
1
+ != render_partial('authors/_authors', page: :insertions_by_author_by_date)
@@ -1 +1 @@
1
- = render_partial('comments/_comments', page: :comments_by_date)
1
+ != render_partial('comments/_comments', page: :comments_by_date)
@@ -1 +1 @@
1
- = render_partial('files/_files', page: :files_by_date)
1
+ != render_partial('files/_files', page: :files_by_date)
@@ -1 +1 @@
1
- = render_partial('files/_files', page: :files_by_extension)
1
+ != render_partial('files/_files', page: :files_by_extension)
@@ -10,7 +10,7 @@
10
10
  %td= repo.tree_path
11
11
  %tr
12
12
  %td= :generated_at.t
13
- %td= I18n.l(DateTime.now, format: :long)
13
+ %td= I18n.l(Time.now, format: :long)
14
14
  %tr
15
15
  %td= :generator.t
16
16
  %td NovaGitStats #{GitStats::VERSION}
@@ -28,7 +28,7 @@
28
28
  %li.nav-item{class: active_page.start_with?(name.to_s.underscore) ? 'active' : ''}
29
29
  %a.nav-link{href: link_to(href, active_page)}= name.t
30
30
  .container
31
- = yield
31
+ != yield
32
32
  %script{src: 'https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js',
33
33
  integrity: 'sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p', crossorigin: 'anonymous'}
34
34
  %script{src: 'https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js',
@@ -1 +1 @@
1
- = render_partial('lines/_lines', page: :lines_by_date)
1
+ != render_partial('lines/_lines', page: :lines_by_date)
@@ -1 +1 @@
1
- = render_partial('lines/_lines', page: :lines_by_extension)
1
+ != render_partial('lines/_lines', page: :lines_by_extension)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nova_git_stats
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomasz Gieniusz
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-07-24 00:00:00.000000000 Z
12
+ date: 2022-10-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionview
@@ -17,7 +17,7 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '6.1'
20
+ version: '5.2'
21
21
  - - "<"
22
22
  - !ruby/object:Gem::Version
23
23
  version: '8.0'
@@ -27,7 +27,7 @@ dependencies:
27
27
  requirements:
28
28
  - - ">="
29
29
  - !ruby/object:Gem::Version
30
- version: '6.1'
30
+ version: '5.2'
31
31
  - - "<"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '8.0'
@@ -37,7 +37,7 @@ dependencies:
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '6.1'
40
+ version: '5.2'
41
41
  - - "<"
42
42
  - !ruby/object:Gem::Version
43
43
  version: '8.0'
@@ -47,7 +47,7 @@ dependencies:
47
47
  requirements:
48
48
  - - ">="
49
49
  - !ruby/object:Gem::Version
50
- version: '6.1'
50
+ version: '5.2'
51
51
  - - "<"
52
52
  - !ruby/object:Gem::Version
53
53
  version: '8.0'
@@ -55,16 +55,22 @@ dependencies:
55
55
  name: haml
56
56
  requirement: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - "~>"
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '5'
61
+ - - "<"
59
62
  - !ruby/object:Gem::Version
60
- version: '5.0'
63
+ version: '7'
61
64
  type: :runtime
62
65
  prerelease: false
63
66
  version_requirements: !ruby/object:Gem::Requirement
64
67
  requirements:
65
- - - "~>"
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: '5'
71
+ - - "<"
66
72
  - !ruby/object:Gem::Version
67
- version: '5.0'
73
+ version: '7'
68
74
  - !ruby/object:Gem::Dependency
69
75
  name: i18n
70
76
  requirement: !ruby/object:Gem::Requirement
@@ -220,7 +226,7 @@ metadata:
220
226
  changelog_uri: https://github.com/mishina2228/git_stats/blob/master/CHANGELOG.md
221
227
  homepage_uri: https://github.com/mishina2228/git_stats
222
228
  rubygems_mfa_required: 'true'
223
- source_code_uri: https://github.com/mishina2228/git_stats/tree/v2.4.0
229
+ source_code_uri: https://github.com/mishina2228/git_stats/tree/v2.4.1
224
230
  post_install_message:
225
231
  rdoc_options: []
226
232
  require_paths: