nova_git_stats 2.2.0
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 +7 -0
- data/bin/git_stats +6 -0
- data/config/locales/bg.yml +63 -0
- data/config/locales/bg_default.yml +70 -0
- data/config/locales/de.yml +63 -0
- data/config/locales/de_default.yml +224 -0
- data/config/locales/en.yml +63 -0
- data/config/locales/es.yml +63 -0
- data/config/locales/es_deafult.yml +70 -0
- data/config/locales/pl.yml +63 -0
- data/config/locales/pl_default.yml +224 -0
- data/config/locales/tr.yml +63 -0
- data/config/locales/tr_default.yml +70 -0
- data/config/locales/zh_cn.yml +65 -0
- data/config/locales/zh_cn_default.yml +70 -0
- data/config/locales/zh_tw.yml +63 -0
- data/config/locales/zh_tw_default.yml +76 -0
- data/lib/git_stats/base.rb +28 -0
- data/lib/git_stats/cli.rb +35 -0
- data/lib/git_stats/command_parser.rb +30 -0
- data/lib/git_stats/command_runner.rb +13 -0
- data/lib/git_stats/core_extensions/enumerable.rb +8 -0
- data/lib/git_stats/core_extensions/hash.rb +24 -0
- data/lib/git_stats/core_extensions/symbol.rb +5 -0
- data/lib/git_stats/generator.rb +38 -0
- data/lib/git_stats/git_data/activity.rb +76 -0
- data/lib/git_stats/git_data/author.rb +77 -0
- data/lib/git_stats/git_data/blob.rb +41 -0
- data/lib/git_stats/git_data/comment_stat.rb +38 -0
- data/lib/git_stats/git_data/commit.rb +76 -0
- data/lib/git_stats/git_data/repo.rb +172 -0
- data/lib/git_stats/git_data/short_stat.rb +29 -0
- data/lib/git_stats/git_data/tree.rb +21 -0
- data/lib/git_stats/hash_initializable.rb +9 -0
- data/lib/git_stats/i18n.rb +2 -0
- data/lib/git_stats/inspector.rb +52 -0
- data/lib/git_stats/stats_view/charts/activity_charts.rb +69 -0
- data/lib/git_stats/stats_view/charts/authors_charts.rb +49 -0
- data/lib/git_stats/stats_view/charts/chart.rb +126 -0
- data/lib/git_stats/stats_view/charts/charts.rb +36 -0
- data/lib/git_stats/stats_view/charts/repo_charts.rb +61 -0
- data/lib/git_stats/stats_view/template.rb +21 -0
- data/lib/git_stats/stats_view/view.rb +89 -0
- data/lib/git_stats/stats_view/view_data.rb +28 -0
- data/lib/git_stats/version.rb +7 -0
- data/lib/git_stats.rb +14 -0
- data/templates/activity/_activity.haml +102 -0
- data/templates/activity/by_date.haml +1 -0
- data/templates/activity/day_of_week.haml +1 -0
- data/templates/activity/hour_of_day.haml +1 -0
- data/templates/activity/hour_of_week.haml +1 -0
- data/templates/activity/month_of_year.haml +1 -0
- data/templates/activity/year.haml +1 -0
- data/templates/activity/year_month.haml +1 -0
- data/templates/assets/bootstrap/css/bootstrap-3.3.7.min.css +6 -0
- data/templates/assets/bootstrap/css/bootstrap-theme-3.3.7.min.css +6 -0
- data/templates/assets/bootstrap/css/bootstrap-theme.min.css.map +1 -0
- data/templates/assets/bootstrap/css/bootstrap.min.css.map +1 -0
- data/templates/assets/bootstrap/js/bootstrap-3.3.7.min.js +7 -0
- data/templates/assets/bootstrap-4.6.0-dist/css/bootstrap-grid.css +3872 -0
- data/templates/assets/bootstrap-4.6.0-dist/css/bootstrap-grid.css.map +1 -0
- data/templates/assets/bootstrap-4.6.0-dist/css/bootstrap-grid.min.css +7 -0
- data/templates/assets/bootstrap-4.6.0-dist/css/bootstrap-grid.min.css.map +1 -0
- data/templates/assets/bootstrap-4.6.0-dist/css/bootstrap-reboot.css +325 -0
- data/templates/assets/bootstrap-4.6.0-dist/css/bootstrap-reboot.css.map +1 -0
- data/templates/assets/bootstrap-4.6.0-dist/css/bootstrap-reboot.min.css +8 -0
- data/templates/assets/bootstrap-4.6.0-dist/css/bootstrap-reboot.min.css.map +1 -0
- data/templates/assets/bootstrap-4.6.0-dist/css/bootstrap.css +10298 -0
- data/templates/assets/bootstrap-4.6.0-dist/css/bootstrap.css.map +1 -0
- data/templates/assets/bootstrap-4.6.0-dist/css/bootstrap.min.css +7 -0
- data/templates/assets/bootstrap-4.6.0-dist/css/bootstrap.min.css.map +1 -0
- data/templates/assets/bootstrap-4.6.0-dist/js/bootstrap.bundle.js +7045 -0
- data/templates/assets/bootstrap-4.6.0-dist/js/bootstrap.bundle.js.map +1 -0
- data/templates/assets/bootstrap-4.6.0-dist/js/bootstrap.bundle.min.js +7 -0
- data/templates/assets/bootstrap-4.6.0-dist/js/bootstrap.bundle.min.js.map +1 -0
- data/templates/assets/bootstrap-4.6.0-dist/js/bootstrap.js +4432 -0
- data/templates/assets/bootstrap-4.6.0-dist/js/bootstrap.js.map +1 -0
- data/templates/assets/bootstrap-4.6.0-dist/js/bootstrap.min.js +7 -0
- data/templates/assets/bootstrap-4.6.0-dist/js/bootstrap.min.js.map +1 -0
- data/templates/assets/export-data.js +17 -0
- data/templates/assets/exporting.js +27 -0
- data/templates/assets/highstock.js +525 -0
- data/templates/assets/jquery-3.6.0.min.js +2 -0
- data/templates/assets/menu.css +28 -0
- data/templates/author_details/_author_details.haml +31 -0
- data/templates/author_details/changed_lines_by_date.haml +1 -0
- data/templates/author_details/commits_by_date.haml +1 -0
- data/templates/author_details/deletions_by_date.haml +1 -0
- data/templates/author_details/insertions_by_date.haml +1 -0
- data/templates/authors/_authors.haml +72 -0
- data/templates/authors/best_authors.haml +1 -0
- data/templates/authors/changed_lines_by_author_by_date.haml +1 -0
- data/templates/authors/commits_sum_by_author_by_date.haml +1 -0
- data/templates/authors/deletions_by_author_by_date.haml +1 -0
- data/templates/authors/insertions_by_author_by_date.haml +1 -0
- data/templates/comments/_comments.haml +11 -0
- data/templates/comments/by_date.haml +1 -0
- data/templates/files/_files.haml +16 -0
- data/templates/files/by_date.haml +1 -0
- data/templates/files/by_extension.haml +1 -0
- data/templates/general.haml +31 -0
- data/templates/layout.haml +32 -0
- data/templates/lines/_lines.haml +16 -0
- data/templates/lines/by_date.haml +1 -0
- data/templates/lines/by_extension.haml +1 -0
- data/templates/static/index.html +5 -0
- metadata +262 -0
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
pl:
|
|
2
|
+
date:
|
|
3
|
+
abbr_day_names:
|
|
4
|
+
- nie
|
|
5
|
+
- pon
|
|
6
|
+
- wto
|
|
7
|
+
- śro
|
|
8
|
+
- czw
|
|
9
|
+
- pią
|
|
10
|
+
- sob
|
|
11
|
+
abbr_month_names:
|
|
12
|
+
-
|
|
13
|
+
- sty
|
|
14
|
+
- lut
|
|
15
|
+
- mar
|
|
16
|
+
- kwi
|
|
17
|
+
- maj
|
|
18
|
+
- cze
|
|
19
|
+
- lip
|
|
20
|
+
- sie
|
|
21
|
+
- wrz
|
|
22
|
+
- paź
|
|
23
|
+
- lis
|
|
24
|
+
- gru
|
|
25
|
+
day_names:
|
|
26
|
+
- niedziela
|
|
27
|
+
- poniedziałek
|
|
28
|
+
- wtorek
|
|
29
|
+
- środa
|
|
30
|
+
- czwartek
|
|
31
|
+
- piątek
|
|
32
|
+
- sobota
|
|
33
|
+
formats:
|
|
34
|
+
default: ! '%d-%m-%Y'
|
|
35
|
+
long: ! '%B %d, %Y'
|
|
36
|
+
short: ! '%d %b'
|
|
37
|
+
month_names:
|
|
38
|
+
-
|
|
39
|
+
- styczeń
|
|
40
|
+
- luty
|
|
41
|
+
- marzec
|
|
42
|
+
- kwiecień
|
|
43
|
+
- maj
|
|
44
|
+
- czerwiec
|
|
45
|
+
- lipiec
|
|
46
|
+
- sierpień
|
|
47
|
+
- wrzesień
|
|
48
|
+
- październik
|
|
49
|
+
- listopad
|
|
50
|
+
- grudzień
|
|
51
|
+
order:
|
|
52
|
+
- :day
|
|
53
|
+
- :month
|
|
54
|
+
- :year
|
|
55
|
+
datetime:
|
|
56
|
+
distance_in_words:
|
|
57
|
+
about_x_hours:
|
|
58
|
+
few: około %{count} godziny
|
|
59
|
+
one: około godziny
|
|
60
|
+
other: około %{count} godzin
|
|
61
|
+
many: około %{count} godzin
|
|
62
|
+
about_x_months:
|
|
63
|
+
few: około %{count} miesiące
|
|
64
|
+
one: około miesiąca
|
|
65
|
+
other: około %{count} miesięcy
|
|
66
|
+
many: około %{count} miesięcy
|
|
67
|
+
about_x_years:
|
|
68
|
+
few: około %{count} lata
|
|
69
|
+
one: około rok
|
|
70
|
+
other: około %{count} lat
|
|
71
|
+
many: około %{count} lat
|
|
72
|
+
almost_x_years:
|
|
73
|
+
few: prawie %{count} lata
|
|
74
|
+
one: prawie rok
|
|
75
|
+
other: prawie %{count} lat
|
|
76
|
+
many: prawie %{count} lat
|
|
77
|
+
half_a_minute: pół minuty
|
|
78
|
+
less_than_x_minutes:
|
|
79
|
+
few: mniej niż %{count} minuty
|
|
80
|
+
one: mniej niż minutę
|
|
81
|
+
other: mniej niż %{count} minut
|
|
82
|
+
many: mniej niż %{count} minut
|
|
83
|
+
less_than_x_seconds:
|
|
84
|
+
few: mniej niż %{count} sekundy
|
|
85
|
+
one: mniej niż sekundę
|
|
86
|
+
other: mniej niż %{count} sekund
|
|
87
|
+
many: mniej niż %{count} sekund
|
|
88
|
+
over_x_years:
|
|
89
|
+
few: ponad %{count} lata
|
|
90
|
+
one: ponad rok
|
|
91
|
+
other: ponad %{count} lat
|
|
92
|
+
many: ponad %{count} lat
|
|
93
|
+
x_days:
|
|
94
|
+
few: ! '%{count} dni'
|
|
95
|
+
one: 1 dzień
|
|
96
|
+
other: ! '%{count} dni'
|
|
97
|
+
many: ! '%{count} dni'
|
|
98
|
+
x_minutes:
|
|
99
|
+
few: ! '%{count} minuty'
|
|
100
|
+
one: 1 minuta
|
|
101
|
+
other: ! '%{count} minut'
|
|
102
|
+
many: ! '%{count} minut'
|
|
103
|
+
x_months:
|
|
104
|
+
few: ! '%{count} miesiące'
|
|
105
|
+
one: 1 miesiąc
|
|
106
|
+
other: ! '%{count} miesięcy'
|
|
107
|
+
many: ! '%{count} miesięcy'
|
|
108
|
+
x_seconds:
|
|
109
|
+
few: ! '%{count} sekundy'
|
|
110
|
+
one: 1 sekunda
|
|
111
|
+
other: ! '%{count} sekund'
|
|
112
|
+
many: ! '%{count} sekund'
|
|
113
|
+
prompts:
|
|
114
|
+
day: Dzień
|
|
115
|
+
hour: Godzina
|
|
116
|
+
minute: Minuta
|
|
117
|
+
month: Miesiąc
|
|
118
|
+
second: Sekundy
|
|
119
|
+
year: Rok
|
|
120
|
+
errors: &errors
|
|
121
|
+
format: ! '%{attribute} %{message}'
|
|
122
|
+
messages:
|
|
123
|
+
accepted: musi zostać zaakceptowane
|
|
124
|
+
blank: nie może być puste
|
|
125
|
+
confirmation: nie zgadza się z potwierdzeniem
|
|
126
|
+
empty: nie może być puste
|
|
127
|
+
equal_to: musi być równe %{count}
|
|
128
|
+
even: musi być parzyste
|
|
129
|
+
exclusion: jest zarezerwowane
|
|
130
|
+
greater_than: musi być większe od %{count}
|
|
131
|
+
greater_than_or_equal_to: musi być większe lub równe %{count}
|
|
132
|
+
inclusion: nie znajduje się na liście dopuszczalnych wartości
|
|
133
|
+
invalid: jest nieprawidłowe
|
|
134
|
+
less_than: musi być mniejsze od %{count}
|
|
135
|
+
less_than_or_equal_to: musi być mniejsze lub równe %{count}
|
|
136
|
+
not_a_number: nie jest liczbą
|
|
137
|
+
not_an_integer: musi być liczbą całkowitą
|
|
138
|
+
odd: musi być nieparzyste
|
|
139
|
+
record_invalid: ! 'Negatywne sprawdzenie poprawności: %{errors}'
|
|
140
|
+
taken: zostało już zajęte
|
|
141
|
+
too_long: jest za długie (maksymalnie %{count} znaków)
|
|
142
|
+
too_short: jest za krótkie (przynajmniej %{count} znaków)
|
|
143
|
+
wrong_length: ma nieprawidłową długość (powinna wynosić %{count} znaków)
|
|
144
|
+
template:
|
|
145
|
+
body: ! 'Błędy dotyczą następujących pól:'
|
|
146
|
+
header:
|
|
147
|
+
one: ! '%{model} nie został zachowany z powodu jednego błędu'
|
|
148
|
+
few: ! '%{model} nie został zachowany z powodu %{count} błędów'
|
|
149
|
+
other: ! '%{model} nie został zachowany z powodu %{count} błędów'
|
|
150
|
+
helpers:
|
|
151
|
+
select:
|
|
152
|
+
prompt: Proszę wybrać
|
|
153
|
+
submit:
|
|
154
|
+
create: Utwórz %{model}
|
|
155
|
+
submit: Zapisz %{model}
|
|
156
|
+
update: Aktualizuj %{model}
|
|
157
|
+
number:
|
|
158
|
+
currency:
|
|
159
|
+
format:
|
|
160
|
+
delimiter: ! ' '
|
|
161
|
+
format: ! '%u %n'
|
|
162
|
+
precision: 2
|
|
163
|
+
separator: ! ','
|
|
164
|
+
significant: false
|
|
165
|
+
strip_insignificant_zeros: true
|
|
166
|
+
unit: PLN
|
|
167
|
+
format:
|
|
168
|
+
delimiter: ! ' '
|
|
169
|
+
precision: 3
|
|
170
|
+
separator: ! ','
|
|
171
|
+
significant: false
|
|
172
|
+
strip_insignificant_zeros: false
|
|
173
|
+
human:
|
|
174
|
+
decimal_units:
|
|
175
|
+
format: ! '%n %u'
|
|
176
|
+
units:
|
|
177
|
+
billion: Miliard
|
|
178
|
+
million: Milion
|
|
179
|
+
quadrillion: Biliard
|
|
180
|
+
thousand: Tysiąc
|
|
181
|
+
trillion: Bilion
|
|
182
|
+
unit: ''
|
|
183
|
+
format:
|
|
184
|
+
delimiter: ''
|
|
185
|
+
precision: 3
|
|
186
|
+
significant: true
|
|
187
|
+
strip_insignificant_zeros: true
|
|
188
|
+
storage_units:
|
|
189
|
+
format: ! '%n %u'
|
|
190
|
+
units:
|
|
191
|
+
byte:
|
|
192
|
+
one: bajt
|
|
193
|
+
few: bajty
|
|
194
|
+
many: bajty
|
|
195
|
+
other: bajty
|
|
196
|
+
gb: GB
|
|
197
|
+
kb: KB
|
|
198
|
+
mb: MB
|
|
199
|
+
tb: TB
|
|
200
|
+
percentage:
|
|
201
|
+
format:
|
|
202
|
+
delimiter: ''
|
|
203
|
+
precision:
|
|
204
|
+
format:
|
|
205
|
+
delimiter: ''
|
|
206
|
+
support:
|
|
207
|
+
array:
|
|
208
|
+
last_word_connector: ! ' oraz '
|
|
209
|
+
two_words_connector: ! ' i '
|
|
210
|
+
words_connector: ! ', '
|
|
211
|
+
time:
|
|
212
|
+
am: przed południem
|
|
213
|
+
formats:
|
|
214
|
+
default: ! '%a, %d %b %Y %H:%M:%S %z'
|
|
215
|
+
long: ! '%B %d, %Y %H:%M'
|
|
216
|
+
short: ! '%d %b %H:%M'
|
|
217
|
+
pm: po południu
|
|
218
|
+
# remove these aliases after 'activemodel' and 'activerecord' namespaces are removed from Rails repository
|
|
219
|
+
activemodel:
|
|
220
|
+
errors:
|
|
221
|
+
<<: *errors
|
|
222
|
+
activerecord:
|
|
223
|
+
errors:
|
|
224
|
+
<<: *errors
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
tr:
|
|
2
|
+
project_name: Proje Adı
|
|
3
|
+
project_version: Proje Sürümü
|
|
4
|
+
tree_path: Tree yolu
|
|
5
|
+
generated_at: Oluşturulma zamanı
|
|
6
|
+
generator: Oluşturan
|
|
7
|
+
report_period: Raporlama Aralığı
|
|
8
|
+
total_files: Toplam dosya sayısı
|
|
9
|
+
total_lines: Toplam satır sayısı
|
|
10
|
+
total_commits: Toplam gönderim sayısı
|
|
11
|
+
authors: Geliştiriciler
|
|
12
|
+
commits: Gönderim sayısı
|
|
13
|
+
commits_by_hour: Saatlik gönderim sayısı
|
|
14
|
+
files: Dosyalar
|
|
15
|
+
lines: Satırlar
|
|
16
|
+
comments: Yorumlar
|
|
17
|
+
files_by_date: Tarihe göre dosya
|
|
18
|
+
lines_by_date: Tarihe göre satır sayısı
|
|
19
|
+
comments_by_date: Tarihe göre yorum sayısı
|
|
20
|
+
files_by_extension: Türüne göre dosyalar
|
|
21
|
+
lines_by_extension: Türüne göre satırlar
|
|
22
|
+
hour_of_day: Günlük saate göre
|
|
23
|
+
hour: Saat
|
|
24
|
+
percentage: Yüzde
|
|
25
|
+
day: Gün
|
|
26
|
+
day_of_week: Haftalık günlere göre
|
|
27
|
+
hour_of_week: Haftalık saate göre
|
|
28
|
+
month: Ay
|
|
29
|
+
month_of_year: Yıllık aya göre
|
|
30
|
+
year_month: Yıl ve ay
|
|
31
|
+
commits_by_wday: Hafta günlere göre gönderim
|
|
32
|
+
commits_by_month: Aya göre gönderim
|
|
33
|
+
commits_by_year_month: Yıl ve aya göre gönderim
|
|
34
|
+
commits_by_month_of_year: Yılın aylarına göre gönderim
|
|
35
|
+
year: Yıl
|
|
36
|
+
commits_by_year: Yıla göre gönderim
|
|
37
|
+
activity: Aktivite
|
|
38
|
+
activity_by_date: Güne göre
|
|
39
|
+
commits_by_date: Günlük gönderim
|
|
40
|
+
insertions_by_author: Geliştirici tarafından eklenen satırlar
|
|
41
|
+
deletions_by_author: Geliştirici tarafından silinen satırlar
|
|
42
|
+
changed_lines_by_author: Geliştirici tarafından değiştirilen satırlar
|
|
43
|
+
best_authors_shown: en iyi geliştiriciler
|
|
44
|
+
commits_count_by_author: Geliştiriciye göre gönderim sayısı
|
|
45
|
+
commits_sum_by_author_by_date: Günlük geliştiriciye göre gönderim sayısı
|
|
46
|
+
insertions_by_author_by_date: Günlük geliştiriciye göre satır sayısı
|
|
47
|
+
deletions_by_author_by_date: Günlük geliştiriciye göre silinen satır sayısı
|
|
48
|
+
changed_lines_by_author_by_date: Günlük geliştiriciye göre değişen satır sayısı
|
|
49
|
+
best_authors: En İyi Geliştiriciler
|
|
50
|
+
insertions: Eklenen satır
|
|
51
|
+
deletions: Silinen satırlar
|
|
52
|
+
first_commit: İlk gönderim
|
|
53
|
+
last_commit: Son gönderim
|
|
54
|
+
author: Geliştirici
|
|
55
|
+
show_more: Fazlası
|
|
56
|
+
close: Kapat
|
|
57
|
+
binary: Binary
|
|
58
|
+
text: Text
|
|
59
|
+
general: Genel
|
|
60
|
+
details: Detaylar
|
|
61
|
+
insertions_by_date: Güne göre eklenen satırlar
|
|
62
|
+
deletions_by_date: Güne göre silinen satırlar
|
|
63
|
+
changed_lines_by_date: Güne göre değişen satırlar
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
tr:
|
|
2
|
+
date:
|
|
3
|
+
abbr_day_names:
|
|
4
|
+
- Pzr
|
|
5
|
+
- Pzt
|
|
6
|
+
- Sal
|
|
7
|
+
- Çrş
|
|
8
|
+
- Prş
|
|
9
|
+
- Cum
|
|
10
|
+
- Cts
|
|
11
|
+
abbr_month_names:
|
|
12
|
+
-
|
|
13
|
+
- Oca
|
|
14
|
+
- Şub
|
|
15
|
+
- Mar
|
|
16
|
+
- Nis
|
|
17
|
+
- May
|
|
18
|
+
- Haz
|
|
19
|
+
- Tem
|
|
20
|
+
- Ağu
|
|
21
|
+
- Eyl
|
|
22
|
+
- Eki
|
|
23
|
+
- Kas
|
|
24
|
+
- Ara
|
|
25
|
+
day_names:
|
|
26
|
+
- Pazar
|
|
27
|
+
- Pazartesi
|
|
28
|
+
- Salı
|
|
29
|
+
- Çarşamba
|
|
30
|
+
- Perşembe
|
|
31
|
+
- Cuma
|
|
32
|
+
- Cumartesi
|
|
33
|
+
formats:
|
|
34
|
+
default: "%d.%m.%Y"
|
|
35
|
+
long: "%e %B %Y, %A"
|
|
36
|
+
short: "%e %b"
|
|
37
|
+
month_names:
|
|
38
|
+
-
|
|
39
|
+
- Ocak
|
|
40
|
+
- Şubat
|
|
41
|
+
- Mart
|
|
42
|
+
- Nisan
|
|
43
|
+
- Mayıs
|
|
44
|
+
- Haziran
|
|
45
|
+
- Temmuz
|
|
46
|
+
- Ağustos
|
|
47
|
+
- Eylül
|
|
48
|
+
- Ekim
|
|
49
|
+
- Kasım
|
|
50
|
+
- Aralık
|
|
51
|
+
order:
|
|
52
|
+
- :day
|
|
53
|
+
- :month
|
|
54
|
+
- :year
|
|
55
|
+
prompts:
|
|
56
|
+
second: Saniye
|
|
57
|
+
minute: Dakika
|
|
58
|
+
hour: Saat
|
|
59
|
+
day: Gün
|
|
60
|
+
month: Ay
|
|
61
|
+
year: Yıl
|
|
62
|
+
errors:
|
|
63
|
+
format: "%{attribute} %{message}"
|
|
64
|
+
time:
|
|
65
|
+
am: öğleden önce
|
|
66
|
+
formats:
|
|
67
|
+
default: "%a %d.%b.%y %H:%M"
|
|
68
|
+
long: "%e %B %Y, %A, %H:%M"
|
|
69
|
+
short: "%e %B, %H:%M"
|
|
70
|
+
pm: öğleden sonra
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
zh_cn:
|
|
2
|
+
project_name: 项目名称
|
|
3
|
+
project_version: 版本
|
|
4
|
+
tree_path: 路径
|
|
5
|
+
generated_at: 报告生成时间
|
|
6
|
+
generator: 报告生成工具
|
|
7
|
+
report_period: 报告分析范围
|
|
8
|
+
total_files: 总文件数
|
|
9
|
+
total_lines: 总行数
|
|
10
|
+
total_commits: 提交总量
|
|
11
|
+
authors: 作者数量
|
|
12
|
+
commits: 提交数量
|
|
13
|
+
commits_by_hour: 按时段统计提交数量
|
|
14
|
+
files: 文件数量
|
|
15
|
+
lines: 行数
|
|
16
|
+
comments: 注释量
|
|
17
|
+
files_by_date: 按日期统计文件数量
|
|
18
|
+
lines_by_date: 按日期统计代码行数
|
|
19
|
+
comments_by_date: 按日期统计注释量
|
|
20
|
+
files_by_extension: 按文件类型统计文件数量
|
|
21
|
+
lines_by_extension: 按文件类型统计代码行数
|
|
22
|
+
hour_of_day: 每日时间分布
|
|
23
|
+
hour: 时段
|
|
24
|
+
percentage: 占比(%)
|
|
25
|
+
day: 按星期几统计
|
|
26
|
+
day_of_week: 按星期几统计
|
|
27
|
+
hour_of_week: 按星期几的时段统计
|
|
28
|
+
month: 月份
|
|
29
|
+
month_of_year: 按月份分布
|
|
30
|
+
year_month: 年/月分布
|
|
31
|
+
commits_by_wday: 按工作日统计提交数量
|
|
32
|
+
commits_by_month: 按月统计提交数量
|
|
33
|
+
commits_by_year_month: 按年/月统计提交数量
|
|
34
|
+
commits_by_month_of_year: 按某年某月统计提交数量
|
|
35
|
+
year: 年份分布
|
|
36
|
+
commits_by_year: 按年份统计提交数量
|
|
37
|
+
activity: 活跃度
|
|
38
|
+
activity_by_date: 按日期统计活跃度
|
|
39
|
+
commits_by_date: 按日期统计提交量分布
|
|
40
|
+
insertions_by_author: 该作者新增的行数
|
|
41
|
+
deletions_by_author: 该作者删除的行数
|
|
42
|
+
changed_lines_by_author: 该作者变更的行数
|
|
43
|
+
best_authors_shown: 个最活跃的作者
|
|
44
|
+
commits_count_by_author: 按作者统计提交数量
|
|
45
|
+
commits_sum_by_author_by_date: 按日期及作者统计提交数量
|
|
46
|
+
insertions_by_author_by_date: 按日期及作者统计增加行数
|
|
47
|
+
deletions_by_author_by_date: 按日期及作者统计删除行数
|
|
48
|
+
changed_lines_by_author_by_date: 按日期及作者统计变更行数
|
|
49
|
+
best_authors: 作者排行榜
|
|
50
|
+
insertions: 新增行数
|
|
51
|
+
deletions: 删除行数
|
|
52
|
+
first_commit: 首次提交
|
|
53
|
+
last_commit: 最近一次提交
|
|
54
|
+
author: 作者
|
|
55
|
+
show_more: 更多
|
|
56
|
+
close: 关闭
|
|
57
|
+
binary: 二级制文件
|
|
58
|
+
text: 文本文件
|
|
59
|
+
general: 常规
|
|
60
|
+
details: 详情
|
|
61
|
+
insertions_by_date: 按日期统计增加行数
|
|
62
|
+
deletions_by_date: 按日期统计删除行数
|
|
63
|
+
changed_lines_by_date: 按日期统计变更行数
|
|
64
|
+
lines_by_extension_by_date: 按日期统计没类型文件的代码行数
|
|
65
|
+
files_by_extension_by_date: 按日期统计每类型文件的文件数量
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
zh_cn:
|
|
2
|
+
date:
|
|
3
|
+
abbr_day_names:
|
|
4
|
+
- 周日
|
|
5
|
+
- 周一
|
|
6
|
+
- 周二
|
|
7
|
+
- 周三
|
|
8
|
+
- 周四
|
|
9
|
+
- 周五
|
|
10
|
+
- 周六
|
|
11
|
+
abbr_month_names:
|
|
12
|
+
-
|
|
13
|
+
- 1月
|
|
14
|
+
- 2月
|
|
15
|
+
- 3月
|
|
16
|
+
- 4月
|
|
17
|
+
- 5月
|
|
18
|
+
- 6月
|
|
19
|
+
- 7月
|
|
20
|
+
- 8月
|
|
21
|
+
- 9月
|
|
22
|
+
- 10月
|
|
23
|
+
- 11月
|
|
24
|
+
- 12月
|
|
25
|
+
day_names:
|
|
26
|
+
- 星期日
|
|
27
|
+
- 星期一
|
|
28
|
+
- 星期二
|
|
29
|
+
- 星期三
|
|
30
|
+
- 星期四
|
|
31
|
+
- 星期五
|
|
32
|
+
- 星期六
|
|
33
|
+
formats:
|
|
34
|
+
default: "%Y-%m-%d"
|
|
35
|
+
long: "%Y年%m月%d日"
|
|
36
|
+
short: "%m月%d日"
|
|
37
|
+
month_names:
|
|
38
|
+
-
|
|
39
|
+
- 一月
|
|
40
|
+
- 二月
|
|
41
|
+
- 三月
|
|
42
|
+
- 四月
|
|
43
|
+
- 五月
|
|
44
|
+
- 六月
|
|
45
|
+
- 七月
|
|
46
|
+
- 八月
|
|
47
|
+
- 九月
|
|
48
|
+
- 十月
|
|
49
|
+
- 十一月
|
|
50
|
+
- 十二月
|
|
51
|
+
order:
|
|
52
|
+
- :year
|
|
53
|
+
- :month
|
|
54
|
+
- :day
|
|
55
|
+
prompts:
|
|
56
|
+
second: 秒
|
|
57
|
+
minute: 分
|
|
58
|
+
hour: 时
|
|
59
|
+
day: 日
|
|
60
|
+
month: 月
|
|
61
|
+
year: 年
|
|
62
|
+
errors:
|
|
63
|
+
format: "%{attribute} %{message}"
|
|
64
|
+
time:
|
|
65
|
+
am: 上午
|
|
66
|
+
formats:
|
|
67
|
+
default: "%Y年%m月%d日 %A %H:%M:%S %Z"
|
|
68
|
+
long: "%Y年%m月%d日 %H:%M"
|
|
69
|
+
short: "%m月%d日 %H:%M"
|
|
70
|
+
pm: 下午
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
zh_tw:
|
|
2
|
+
project_name: 專案名稱
|
|
3
|
+
project_version: 版本
|
|
4
|
+
tree_path: 路徑
|
|
5
|
+
generated_at: 報告產生時間
|
|
6
|
+
generator: 報告產生工具
|
|
7
|
+
report_period: 報告分析範圍
|
|
8
|
+
total_files: 總檔案數量
|
|
9
|
+
total_lines: 文字總行數
|
|
10
|
+
total_commits: 總 commit 數量
|
|
11
|
+
authors: 作者資訊及數量
|
|
12
|
+
commits: Commits
|
|
13
|
+
commits_by_hour: Commit 數量
|
|
14
|
+
files: 檔案數量
|
|
15
|
+
lines: 文字行數
|
|
16
|
+
comments: 註解
|
|
17
|
+
files_by_date: 檔案數量的日期分佈
|
|
18
|
+
lines_by_date: 行數的日期分佈
|
|
19
|
+
comments_by_date: 說明、註解的日期分佈
|
|
20
|
+
files_by_extension: 以副檔名區分
|
|
21
|
+
lines_by_extension: 以副檔名區分
|
|
22
|
+
hour_of_day: 每日時間分佈
|
|
23
|
+
hour: 時間(時)
|
|
24
|
+
percentage: 佔百分比
|
|
25
|
+
day: 日期
|
|
26
|
+
day_of_week: 每週日期分佈
|
|
27
|
+
hour_of_week: 每週時間分佈
|
|
28
|
+
month: 月份
|
|
29
|
+
month_of_year: 月份分佈
|
|
30
|
+
year_month: 年/月分佈
|
|
31
|
+
commits_by_wday: Commit 數量
|
|
32
|
+
commits_by_month: Commit 數量
|
|
33
|
+
commits_by_year_month: Commit 數量
|
|
34
|
+
commits_by_month_of_year: Commit 數量
|
|
35
|
+
year: 年份分佈
|
|
36
|
+
commits_by_year: Commit 數量
|
|
37
|
+
activity: 活躍程度
|
|
38
|
+
activity_by_date: 活躍日期
|
|
39
|
+
commits_by_date: Commit 日期分佈
|
|
40
|
+
insertions_by_author: 該作者新增的行數
|
|
41
|
+
deletions_by_author: 該作者刪除的行數
|
|
42
|
+
changed_lines_by_author: 該作者變更的行數
|
|
43
|
+
best_authors_shown: 個最活躍的作者
|
|
44
|
+
commits_count_by_author: 該作者 commit 數量
|
|
45
|
+
commits_sum_by_author_by_date: Commit 數量的日期分佈
|
|
46
|
+
insertions_by_author_by_date: 增加行數的日期分佈
|
|
47
|
+
deletions_by_author_by_date: 刪除行數的日期分佈
|
|
48
|
+
changed_lines_by_author_by_date: 變更行數的日期分佈
|
|
49
|
+
best_authors: 作者排行
|
|
50
|
+
insertions: 新增行數
|
|
51
|
+
deletions: 刪除行數
|
|
52
|
+
first_commit: 最早的 commit
|
|
53
|
+
last_commit: 最近一次 commit
|
|
54
|
+
author: 作者
|
|
55
|
+
show_more: 更多
|
|
56
|
+
close: 關閉
|
|
57
|
+
binary: 二進位檔
|
|
58
|
+
text: 純文字檔
|
|
59
|
+
general: 一般資訊
|
|
60
|
+
details: 細節
|
|
61
|
+
insertions_by_date: 增加行數的日期分佈
|
|
62
|
+
deletions_by_date: 刪除行數的日期分佈
|
|
63
|
+
changed_lines_by_date: 變更行數的日期分佈
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
zh_tw:
|
|
2
|
+
date:
|
|
3
|
+
abbr_day_names:
|
|
4
|
+
- 日
|
|
5
|
+
- 一
|
|
6
|
+
- 二
|
|
7
|
+
- 三
|
|
8
|
+
- 四
|
|
9
|
+
- 五
|
|
10
|
+
- 六
|
|
11
|
+
abbr_month_names:
|
|
12
|
+
-
|
|
13
|
+
- 1月
|
|
14
|
+
- 2月
|
|
15
|
+
- 3月
|
|
16
|
+
- 4月
|
|
17
|
+
- 5月
|
|
18
|
+
- 6月
|
|
19
|
+
- 7月
|
|
20
|
+
- 8月
|
|
21
|
+
- 9月
|
|
22
|
+
- 10月
|
|
23
|
+
- 11月
|
|
24
|
+
- 12月
|
|
25
|
+
day_names:
|
|
26
|
+
- 星期一
|
|
27
|
+
- 星期二
|
|
28
|
+
- 星期三
|
|
29
|
+
- 星期四
|
|
30
|
+
- 星期五
|
|
31
|
+
- 星期六
|
|
32
|
+
- 星期日
|
|
33
|
+
formats:
|
|
34
|
+
default: ! '%Y. %m. %d'
|
|
35
|
+
long: ! '%D. %B %d'
|
|
36
|
+
short: ! '%b %d'
|
|
37
|
+
month_names:
|
|
38
|
+
-
|
|
39
|
+
- 1月
|
|
40
|
+
- 2月
|
|
41
|
+
- 3月
|
|
42
|
+
- 4月
|
|
43
|
+
- 5月
|
|
44
|
+
- 6月
|
|
45
|
+
- 7月
|
|
46
|
+
- 8月
|
|
47
|
+
- 9月
|
|
48
|
+
- 10月
|
|
49
|
+
- 11月
|
|
50
|
+
- 12月
|
|
51
|
+
order:
|
|
52
|
+
- :year
|
|
53
|
+
- :month
|
|
54
|
+
- :day
|
|
55
|
+
prompts:
|
|
56
|
+
day: 日
|
|
57
|
+
hour: 時
|
|
58
|
+
minute: 分
|
|
59
|
+
month: 月
|
|
60
|
+
second: 秒
|
|
61
|
+
year: 年
|
|
62
|
+
errors: &errors
|
|
63
|
+
format: ! '%{attribute} %{message}'
|
|
64
|
+
time:
|
|
65
|
+
am: 上午
|
|
66
|
+
formats:
|
|
67
|
+
default: ! '%Y年%B%d日 %a, %H:%M:%S %z'
|
|
68
|
+
long: ! '%Y年%B%d日 %H:%M'
|
|
69
|
+
short: ! '%Y/%b/%d %H:%M'
|
|
70
|
+
pm: 下午
|
|
71
|
+
activemodel:
|
|
72
|
+
errors:
|
|
73
|
+
<<: *errors
|
|
74
|
+
activerecord:
|
|
75
|
+
errors:
|
|
76
|
+
<<: *errors
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
require_relative 'core_extensions/hash'
|
|
2
|
+
require_relative 'core_extensions/symbol'
|
|
3
|
+
require_relative 'core_extensions/enumerable'
|
|
4
|
+
|
|
5
|
+
require_relative 'version'
|
|
6
|
+
require_relative 'i18n'
|
|
7
|
+
require_relative 'generator'
|
|
8
|
+
require_relative 'command_runner'
|
|
9
|
+
require_relative 'command_parser'
|
|
10
|
+
|
|
11
|
+
require_relative 'git_data/activity'
|
|
12
|
+
require_relative 'git_data/author'
|
|
13
|
+
require_relative 'git_data/blob'
|
|
14
|
+
require_relative 'git_data/commit'
|
|
15
|
+
require_relative 'git_data/repo'
|
|
16
|
+
require_relative 'git_data/short_stat'
|
|
17
|
+
require_relative 'git_data/comment_stat'
|
|
18
|
+
require_relative 'git_data/tree'
|
|
19
|
+
|
|
20
|
+
require_relative 'stats_view/template'
|
|
21
|
+
require_relative 'stats_view/view'
|
|
22
|
+
require_relative 'stats_view/view_data'
|
|
23
|
+
|
|
24
|
+
require_relative 'stats_view/charts/activity_charts'
|
|
25
|
+
require_relative 'stats_view/charts/authors_charts'
|
|
26
|
+
require_relative 'stats_view/charts/chart'
|
|
27
|
+
require_relative 'stats_view/charts/charts'
|
|
28
|
+
require_relative 'stats_view/charts/repo_charts'
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
require_relative '../git_stats'
|
|
2
|
+
require 'thor'
|
|
3
|
+
|
|
4
|
+
module GitStats
|
|
5
|
+
class CLI < Thor
|
|
6
|
+
class << self
|
|
7
|
+
def exit_on_failure?
|
|
8
|
+
true
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
option :path, aliases: '-p', default: '.', desc: 'Path to git repository from which statistics should be generated.'
|
|
13
|
+
option :out_path, aliases: '-o', default: './git_stats', desc: 'Output path where statistics should be written.'
|
|
14
|
+
option :language, aliases: '-l', default: 'en', desc: 'Language of written statistics.'
|
|
15
|
+
option :first_commit_sha, aliases: '-f', desc: 'Commit from where statistics should start.'
|
|
16
|
+
option :last_commit_sha, aliases: '-t', default: 'HEAD', desc: 'Commit where statistics should stop.'
|
|
17
|
+
option :silent, aliases: '-s', type: :boolean, desc: 'Silent mode. Don\'t output anything.'
|
|
18
|
+
option :tree, aliases: '-d', default: '.', desc: 'Tree where statistics should be generated.'
|
|
19
|
+
option :comment_string, aliases: '-c', default: '//', desc: 'The string which is used for comments.'
|
|
20
|
+
|
|
21
|
+
desc 'generate', 'Generates the statistics of a git repository'
|
|
22
|
+
def generate
|
|
23
|
+
I18n.locale = options[:language]
|
|
24
|
+
GitStats::Generator.new(options) do |g|
|
|
25
|
+
g.add_command_observer { |command, _result| puts command.to_s } unless options[:silent]
|
|
26
|
+
end.render_all
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
desc 'version', 'Show GitStats version number and quit'
|
|
30
|
+
def version
|
|
31
|
+
puts "GitStats #{GitStats::VERSION}"
|
|
32
|
+
end
|
|
33
|
+
map %w(-v --version) => :version
|
|
34
|
+
end
|
|
35
|
+
end
|