nova_git_stats 2.3.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +23 -3
- data/README.md +1 -1
- data/lib/git_stats/cli.rb +1 -1
- data/lib/git_stats/git_data/repo.rb +1 -1
- data/lib/git_stats/git_data/tree.rb +1 -1
- data/lib/git_stats/version.rb +1 -1
- data/lib/git_stats.rb +1 -0
- data/templates/activity/_activity.haml +4 -4
- data/templates/activity/by_date.haml +1 -1
- data/templates/activity/day_of_week.haml +1 -1
- data/templates/activity/hour_of_day.haml +1 -1
- data/templates/activity/hour_of_week.haml +1 -1
- data/templates/activity/month_of_year.haml +1 -1
- data/templates/activity/year.haml +1 -1
- data/templates/activity/year_month.haml +1 -1
- data/templates/author_details/changed_lines_by_date.haml +1 -1
- data/templates/author_details/commits_by_date.haml +1 -1
- data/templates/author_details/deletions_by_date.haml +1 -1
- data/templates/author_details/insertions_by_date.haml +1 -1
- data/templates/authors/best_authors.haml +1 -1
- data/templates/authors/changed_lines_by_author_by_date.haml +1 -1
- data/templates/authors/commits_sum_by_author_by_date.haml +1 -1
- data/templates/authors/deletions_by_author_by_date.haml +1 -1
- data/templates/authors/insertions_by_author_by_date.haml +1 -1
- data/templates/comments/by_date.haml +1 -1
- data/templates/files/by_date.haml +1 -1
- data/templates/files/by_extension.haml +1 -1
- data/templates/general.haml +1 -1
- data/templates/layout.haml +1 -1
- data/templates/lines/by_date.haml +1 -1
- data/templates/lines/by_extension.haml +1 -1
- metadata +17 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1996d0d582611faf605fd506c883aae035ed6fae7a79132c65ae5cd38b89556
|
4
|
+
data.tar.gz: d14c12fcfeb98b89e5601fb7d308acaa974283aa854b55f69f18b61af92a9318
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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...
|
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...
|
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=
|
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 :
|
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:
|
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)
|
data/lib/git_stats/version.rb
CHANGED
data/lib/git_stats.rb
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
%table{class: 'table table-bordered table-condensed'}
|
29
29
|
%tr
|
30
30
|
%th= :hour.t
|
31
|
-
-
|
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
|
-
-
|
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
|
-
-
|
66
|
+
- 7.times do |day|
|
67
67
|
%tr
|
68
68
|
%th= I18n.t('date.abbr_day_names')[day]
|
69
|
-
-
|
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
|
-
|
1
|
+
!= render_partial('activity/_activity', page: :activity_by_date, author: author)
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
!= render_partial('activity/_activity', page: :day_of_week, author: author)
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
!= render_partial('activity/_activity', page: :hour_of_day, author: author)
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
!= render_partial('activity/_activity', page: :hour_of_week, author: author)
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
!= render_partial('activity/_activity', page: :month_of_year, author: author)
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
!= render_partial('activity/_activity', page: :year, author: author)
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
!= render_partial('activity/_activity', page: :year_month, author: author)
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
!= render_partial('author_details/_author_details', page: :changed_lines_by_date, author: author)
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
!= render_partial('author_details/_author_details', page: :commits_by_date, author: author)
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
!= render_partial('author_details/_author_details', page: :deletions_by_date, author: author)
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
!= render_partial('author_details/_author_details', page: :insertions_by_date, author: author)
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
!= render_partial('authors/_authors', page: :best_authors)
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
!= render_partial('authors/_authors', page: :changed_lines_by_author_by_date)
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
!= render_partial('authors/_authors', page: :commits_sum_by_author_by_date)
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
!= render_partial('authors/_authors', page: :deletions_by_author_by_date)
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
!= render_partial('authors/_authors', page: :insertions_by_author_by_date)
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
!= render_partial('comments/_comments', page: :comments_by_date)
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
!= render_partial('files/_files', page: :files_by_date)
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
!= render_partial('files/_files', page: :files_by_extension)
|
data/templates/general.haml
CHANGED
data/templates/layout.haml
CHANGED
@@ -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
|
-
|
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
|
-
|
1
|
+
!= render_partial('lines/_lines', page: :lines_by_date)
|
@@ -1 +1 @@
|
|
1
|
-
|
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
|
+
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-
|
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: '
|
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: '
|
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: '
|
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: '
|
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: '
|
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: '
|
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.
|
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:
|