git_stats 1.0.14 → 1.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +9 -0
- data/README.md +8 -1
- data/config/locales/bg +63 -0
- data/config/locales/en.yml +3 -1
- data/config/locales/es.yml +63 -0
- data/config/locales/tr.yml +63 -0
- data/config/locales/zh.yml +66 -0
- data/config/locales/zh_tw.yml +65 -0
- data/config/locales/zh_tw_default.yml +76 -0
- data/lib/git_stats/git_data/commit.rb +1 -1
- data/lib/git_stats/git_data/repo.rb +50 -3
- data/lib/git_stats/git_data/short_stat.rb +1 -1
- data/lib/git_stats/stats_view/charts/charts.rb +1 -1
- data/lib/git_stats/stats_view/charts/repo_charts.rb +20 -0
- data/lib/git_stats/version.rb +1 -1
- data/spec/git_data/short_stat_spec.rb +1 -1
- data/templates/assets/export-csv.js +392 -0
- data/templates/assets/exporting.js +27 -0
- data/templates/assets/highstock.js +507 -300
- data/templates/files/_files.haml +4 -0
- data/templates/files/by_extension_by_date.haml +1 -0
- data/templates/layout.haml +2 -0
- data/templates/lines/_lines.haml +4 -0
- data/templates/lines/by_extension_by_date.haml +1 -0
- metadata +15 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 527df627a8550df52cb0c42aa1f4dff69c333bdb
|
4
|
+
data.tar.gz: 6c495b2ae682917bf9e1b2325276aec2046980b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ea267ec84aebdba8390195a8ddb02592631e660004dc05dc7cad6839edc046d9543c4941b9d2b73001f95b9e79cefb729b669a07f26d86475d5277575d74578
|
7
|
+
data.tar.gz: 903ce5230d7eb02f8fc670fce372e8575b11449cec33097232db4f0b041286b9b04a5d5e13343abf8b42e14f4eec0195edee08f21e63b0c8680ecd2c8e43bb01
|
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# GitStats [![Build Status](https://secure.travis-ci.org/tomgi/git_stats.
|
1
|
+
# GitStats [![Build Status](https://secure.travis-ci.org/tomgi/git_stats.svg)](https://secure.travis-ci.org/tomgi/git_stats) [![Build Status](https://codeclimate.com/badge.png)](https://codeclimate.com/github/tomgi/git_stats)
|
2
2
|
|
3
3
|
GitStats is a git repository statistics generator.
|
4
4
|
It browses the repository and outputs html page with statistics.
|
@@ -14,8 +14,15 @@ It browses the repository and outputs html page with statistics.
|
|
14
14
|
|
15
15
|
## Installation
|
16
16
|
|
17
|
+
### Existing ruby/gem environment
|
18
|
+
|
17
19
|
$ gem install git_stats
|
18
20
|
|
21
|
+
### Ubuntu
|
22
|
+
|
23
|
+
$ sudo apt-get install ruby
|
24
|
+
$ sudo gem install git_stats
|
25
|
+
|
19
26
|
## Usage
|
20
27
|
|
21
28
|
### Generator
|
data/config/locales/bg
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
bg:
|
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: Променени редове за период
|
data/config/locales/en.yml
CHANGED
@@ -49,7 +49,7 @@ en:
|
|
49
49
|
best_authors: Best authors
|
50
50
|
insertions: Lines added
|
51
51
|
deletions: Lines deleted
|
52
|
-
first_commit:
|
52
|
+
first_commit: First commit
|
53
53
|
last_commit: Last commit
|
54
54
|
author: Author
|
55
55
|
show_more: More
|
@@ -61,3 +61,5 @@ en:
|
|
61
61
|
insertions_by_date: Lines added by date
|
62
62
|
deletions_by_date: Lines deleted by date
|
63
63
|
changed_lines_by_date: Changed lines by date
|
64
|
+
lines_by_extension_by_date: Lines per extension by date
|
65
|
+
files_by_extension_by_date: Files per extension by date
|
@@ -0,0 +1,63 @@
|
|
1
|
+
es:
|
2
|
+
project_name: Nombre del proyecto
|
3
|
+
project_version: Versión del proyecto
|
4
|
+
tree_path: Dirección de la rama
|
5
|
+
generated_at: Generado en
|
6
|
+
generator: Generador
|
7
|
+
report_period: Periodo reportado
|
8
|
+
total_files: Archivos totales
|
9
|
+
total_lines: Líneas totales
|
10
|
+
total_commits: Commits totales
|
11
|
+
authors: Autores
|
12
|
+
commits: Commits
|
13
|
+
commits_by_hour: Commits por hora
|
14
|
+
files: Archivos
|
15
|
+
lines: Líneas
|
16
|
+
comments: Comentarios
|
17
|
+
files_by_date: Archivos por fecha
|
18
|
+
lines_by_date: Líneas por fecha
|
19
|
+
comments_by_date: Comentarios por fecha
|
20
|
+
files_by_extension: Archivos por extensión
|
21
|
+
lines_by_extension: Líneas por extensión
|
22
|
+
hour_of_day: Hora del día
|
23
|
+
hour: Hora
|
24
|
+
percentage: Porcentaje
|
25
|
+
day: Día
|
26
|
+
day_of_week: Día de la semana
|
27
|
+
hour_of_week: Hora de la semana
|
28
|
+
month: Mes
|
29
|
+
month_of_year: Mes del año
|
30
|
+
year_month: Año y mes
|
31
|
+
commits_by_wday: Commits por día de la semana
|
32
|
+
commits_by_month: Commits por mes
|
33
|
+
commits_by_year_month: Commits por año y mes
|
34
|
+
commits_by_month_of_year: Commits por mes del año
|
35
|
+
year: Año
|
36
|
+
commits_by_year: Commits por año
|
37
|
+
activity: Actividad
|
38
|
+
activity_by_date: Actividad por fecha
|
39
|
+
commits_by_date: Commits por fecha
|
40
|
+
insertions_by_author: Líneas añadidas por autor
|
41
|
+
deletions_by_author: Líneas eliminadas por autor
|
42
|
+
changed_lines_by_author: Líneas cambiadas por autor
|
43
|
+
best_authors_shown: Mostrado los mejores autores
|
44
|
+
commits_count_by_author: Cantidad de commits por autor
|
45
|
+
commits_sum_by_author_by_date: Suma de commits por autor por fecha
|
46
|
+
insertions_by_author_by_date: Líneas añadidas por autor por fecha
|
47
|
+
deletions_by_author_by_date: Líneas eliminadas por autor por fecha
|
48
|
+
changed_lines_by_author_by_date: Líneas editadas por autor por fecha
|
49
|
+
best_authors: Mejores autores
|
50
|
+
insertions: Líneas añadidas
|
51
|
+
deletions: Líneas eliminadas
|
52
|
+
first_commit: Primer commit
|
53
|
+
last_commit: 'Último commit'
|
54
|
+
author: Autor
|
55
|
+
show_more: Mostrar más
|
56
|
+
close: Cerrar
|
57
|
+
binary: Binario
|
58
|
+
text: Texto
|
59
|
+
general: General
|
60
|
+
details: Detalles
|
61
|
+
insertions_by_date: Líneas añadidas por fecha
|
62
|
+
deletions_by_date: Líneas eliminadas por fecha
|
63
|
+
changed_lines_by_date: Líneas cambiadas por fecha
|
@@ -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,66 @@
|
|
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: 提交总量
|
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: 按日期统计每类型文件的文件数量
|
66
|
+
|
@@ -0,0 +1,65 @@
|
|
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: 總commits數量
|
11
|
+
authors: 作者資訊及數量
|
12
|
+
commits: Commits
|
13
|
+
commits_by_hour: Commits數量
|
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: Commits數量
|
32
|
+
commits_by_month: Commits數量
|
33
|
+
commits_by_year_month: Commits數量
|
34
|
+
commits_by_month_of_year: Commits數量
|
35
|
+
year: 年份分佈
|
36
|
+
commits_by_year: Commits數量
|
37
|
+
activity: 活躍程度
|
38
|
+
activity_by_date: 活躍日期
|
39
|
+
commits_by_date: Commits的日期分佈
|
40
|
+
insertions_by_author: 該作者新增的行數
|
41
|
+
deletions_by_author: 該作者刪除的行數
|
42
|
+
changed_lines_by_author: 該作者變更的行數
|
43
|
+
best_authors_shown: 個最活躍的作者
|
44
|
+
commits_count_by_author: 該作者commits數量
|
45
|
+
commits_sum_by_author_by_date: Commits數量的日期分佈
|
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: 變更行數的日期分佈
|
64
|
+
|
65
|
+
|
@@ -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
|