nova_git_stats 2.3.0 → 2.4.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: d9c75ae01414c7ec2ecd2a0ba1f1e94bc042f0b40d59ff46d9fae171686ee0d6
4
- data.tar.gz: 50c677c1d4f8434f9c0a5ae87f58fcac8bde933b88a09171b27e880b375e8657
3
+ metadata.gz: b1996d0d582611faf605fd506c883aae035ed6fae7a79132c65ae5cd38b89556
4
+ data.tar.gz: d14c12fcfeb98b89e5601fb7d308acaa974283aa854b55f69f18b61af92a9318
5
5
  SHA512:
6
- metadata.gz: fc05e086ff8c61ff82c9ab7fb848637da6985464e8e7ee9ca5eeb2146441d60d1bc3b5ea4b64592c9d04a4b1d2e14b17b61634823545b30a17436bf5ed073adb
7
- data.tar.gz: 62c0fedfcd7a15b09f2b217a673e1609027b1bb5f61af4836a8307253ee0e114ed0a3ef8fdf3fa9ebc476fca0f4d54eb18e501f409cc2538706570cb71b82840
6
+ metadata.gz: fdb84a88af7f80f77aa0ada0d71a29104461fed0367bb79b4876d649b19bc0719c26bab0a85bf59b30c614b335d68f065879ecb713d3f4bcd6d76b1dff8ed1d2
7
+ data.tar.gz: b86533d24e059ad0680b87d0e22a6b40e462c5f3e298420496f5c322171665bdfd4a84972dd80f4ee65288504f24c74cb2b76cbc0196c564ad3d147016c09433
data/CHANGELOG.md CHANGED
@@ -2,11 +2,31 @@
2
2
 
3
3
  ## [master]
4
4
 
5
- [master]: https://github.com/mishina2228/nova_git_stats/compare/v2.3.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
15
+
16
+ ## [2.4.0]
17
+
18
+ [2.4.0]: https://github.com/mishina2228/nova_git_stats/compare/v2.3.0...v2.4.0
19
+
20
+ * Bugfixes
21
+ * Renamed CLI option name `--tree` to `--tree-path`
22
+ * **This is a potentially breaking change.**
23
+ * `--tree` and `-d` did not work before.
24
+ The CLI option name was `--tree`, but an internal variable name was `tree-path`, and there was a mismatch.
25
+ So we changed the CLI option name `--tree` to `--tree-path`.
6
26
 
7
27
  ## [2.3.0]
8
28
 
9
- [2.3.0]: https://github.com/mishina2228/nova_git_stats/compare/v2.2.0...2.3.0
29
+ [2.3.0]: https://github.com/mishina2228/nova_git_stats/compare/v2.2.0...v2.3.0
10
30
 
11
31
  * Breaking Changes
12
32
  * Stop bundling jQuery and Bootstrap assets
@@ -25,7 +45,7 @@
25
45
 
26
46
  ## [2.2.0]
27
47
 
28
- [2.2.0]: https://github.com/mishina2228/nova_git_stats/compare/v2.1.2...2.2.0
48
+ [2.2.0]: https://github.com/mishina2228/nova_git_stats/compare/v2.1.2...v2.2.0
29
49
 
30
50
  * Features
31
51
  * Renamed to NovaGitStats(nova_git_stats) from GitStats(git_stats)
data/README.md CHANGED
@@ -72,7 +72,7 @@ It browses the repository and outputs html page with statistics.
72
72
  -t, [--last-commit-sha=LAST_COMMIT_SHA] # Commit where statistics should stop.
73
73
  # Default: HEAD
74
74
  -s, [--silent], [--no-silent] # Silent mode. Don't output anything.
75
- -d, [--tree=TREE] # Tree where statistics should be generated.
75
+ -d, [--tree-path=TREE_PATH] # Tree path of where statistics should be generated.
76
76
  # Default: .
77
77
  -c, [--comment-string=COMMENT_STRING] # The string which is used for comments.
78
78
  # Default: //
data/lib/git_stats/cli.rb CHANGED
@@ -17,7 +17,7 @@ module GitStats
17
17
  option :first_commit_sha, aliases: '-f', desc: 'Commit from where statistics should start.'
18
18
  option :last_commit_sha, aliases: '-t', default: 'HEAD', desc: 'Commit where statistics should stop.'
19
19
  option :silent, aliases: '-s', type: :boolean, desc: 'Silent mode. Don\'t output anything.'
20
- option :tree, aliases: '-d', default: '.', desc: 'Tree where statistics should be generated.'
20
+ option :tree_path, aliases: '-d', default: '.', desc: 'Tree path of where statistics should be generated.'
21
21
  option :comment_string, aliases: '-c', default: '//', desc: 'The string which is used for comments.'
22
22
 
23
23
  desc 'generate', 'Generates the statistics of a git repository'
@@ -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)
@@ -16,7 +16,7 @@ module GitStats
16
16
  end
17
17
 
18
18
  def ==(other)
19
- ((repo == other.repo) && (relative_path == other.relative_path))
19
+ repo == other.repo && relative_path == other.relative_path
20
20
  end
21
21
  end
22
22
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GitStats
4
- VERSION = '2.3.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.3.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-06-29 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.3.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: