gitstats-rb 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +5 -0
  3. data/LICENSE +674 -0
  4. data/README.md +74 -0
  5. data/bin/gitstats +200 -0
  6. data/gitstats-rb.gemspec +24 -0
  7. data/lib/gitstats.rb +18 -0
  8. data/lib/gitstats/author.rb +37 -0
  9. data/lib/gitstats/git.rb +165 -0
  10. data/lib/gitstats/renderer.rb +30 -0
  11. data/lib/gitstats/renderer/gnuplot.rb +150 -0
  12. data/lib/gitstats/renderer/haml.rb +72 -0
  13. data/lib/gitstats/renderer/sass.rb +33 -0
  14. data/lib/gitstats/statgen.rb +119 -0
  15. data/lib/gitstats/stats.rb +12 -0
  16. data/lib/gitstats/stats/commit.rb +63 -0
  17. data/lib/gitstats/stats/commit/author.rb +17 -0
  18. data/lib/gitstats/stats/commit/time.rb +109 -0
  19. data/lib/gitstats/stats/file.rb +15 -0
  20. data/lib/gitstats/stats/file/filetype.rb +14 -0
  21. data/lib/gitstats/yearmonth.rb +39 -0
  22. data/template/gnuplot/activity.haml +3 -0
  23. data/template/gnuplot/asc.gif +0 -0
  24. data/template/gnuplot/authors.haml +2 -0
  25. data/template/gnuplot/bg.gif +0 -0
  26. data/template/gnuplot/commits_per_hour.plot +14 -0
  27. data/template/gnuplot/commits_per_month.plot +15 -0
  28. data/template/gnuplot/commits_per_wday.plot +15 -0
  29. data/template/gnuplot/commits_per_year.plot +11 -0
  30. data/template/gnuplot/commits_per_yearmonth.plot +11 -0
  31. data/template/gnuplot/desc.gif +0 -0
  32. data/template/gnuplot/filechanges_by_yearmonth.plot +17 -0
  33. data/template/gnuplot/files.haml +2 -0
  34. data/template/gnuplot/files_by_yearmonth.plot +11 -0
  35. data/template/gnuplot/helpers/block.rb +26 -0
  36. data/template/gnuplot/helpers/config.rb +12 -0
  37. data/template/gnuplot/helpers/names.rb +79 -0
  38. data/template/gnuplot/helpers/utils.rb +16 -0
  39. data/template/gnuplot/index.haml +2 -0
  40. data/template/gnuplot/jqplot.canvasAxisLabelRenderer.min.js +57 -0
  41. data/template/gnuplot/jqplot.canvasAxisTickRenderer.min.js +57 -0
  42. data/template/gnuplot/jqplot.canvasTextRenderer.min.js +57 -0
  43. data/template/gnuplot/jqplot.cursor.min.js +57 -0
  44. data/template/gnuplot/jqplot.dateAxisRenderer.min.js +57 -0
  45. data/template/gnuplot/jquery.jqplot.min.css +1 -0
  46. data/template/gnuplot/jquery.jqplot.min.js +57 -0
  47. data/template/gnuplot/jquery.js +4 -0
  48. data/template/gnuplot/jquery.tablesorter.js +4 -0
  49. data/template/gnuplot/lastweeks.plot +14 -0
  50. data/template/gnuplot/layouts/default.haml +117 -0
  51. data/template/gnuplot/linechanges_by_yearmonth.plot +17 -0
  52. data/template/gnuplot/lines.haml +2 -0
  53. data/template/gnuplot/lines_by_yearmonth.plot +11 -0
  54. data/template/gnuplot/partials/authors.haml +30 -0
  55. data/template/gnuplot/partials/blockheader.haml +2 -0
  56. data/template/gnuplot/partials/blocktoc.haml +7 -0
  57. data/template/gnuplot/partials/commitchart.haml +60 -0
  58. data/template/gnuplot/partials/commits_per_month.haml +27 -0
  59. data/template/gnuplot/partials/commits_per_year.haml +27 -0
  60. data/template/gnuplot/partials/commits_per_yearmonth.haml +27 -0
  61. data/template/gnuplot/partials/day_of_week.haml +28 -0
  62. data/template/gnuplot/partials/filechanges_by_yearmonth.haml +3 -0
  63. data/template/gnuplot/partials/files_by_yearmonth.haml +3 -0
  64. data/template/gnuplot/partials/fileschart.haml +86 -0
  65. data/template/gnuplot/partials/filetypes.haml +23 -0
  66. data/template/gnuplot/partials/general.haml +34 -0
  67. data/template/gnuplot/partials/hour_of_day.haml +28 -0
  68. data/template/gnuplot/partials/hour_of_week.haml +24 -0
  69. data/template/gnuplot/partials/lastweeks.haml +24 -0
  70. data/template/gnuplot/partials/linechanges_by_yearmonth.haml +3 -0
  71. data/template/gnuplot/partials/lines_by_yearmonth.haml +3 -0
  72. data/template/gnuplot/partials/lineschart.haml +86 -0
  73. data/template/gnuplot/partials/repos.haml +13 -0
  74. data/template/gnuplot/partials/top_authors_of_year.haml +30 -0
  75. data/template/gnuplot/partials/top_authors_of_yearmonth.haml +30 -0
  76. data/template/gnuplot/style.scss +132 -0
  77. data/template/highcharts/activity.haml +5 -0
  78. data/template/highcharts/authors.haml +3 -0
  79. data/template/highcharts/bootstrap-theme.min.css +10 -0
  80. data/template/highcharts/bootstrap.min.css +10 -0
  81. data/template/highcharts/bootstrap.min.js +11 -0
  82. data/template/highcharts/exporting.js +23 -0
  83. data/template/highcharts/glyphicons-halflings-regular.eot +0 -0
  84. data/template/highcharts/glyphicons-halflings-regular.svg +229 -0
  85. data/template/highcharts/glyphicons-halflings-regular.ttf +0 -0
  86. data/template/highcharts/glyphicons-halflings-regular.woff +0 -0
  87. data/template/highcharts/heatmap.js +23 -0
  88. data/template/highcharts/helpers/block.rb +27 -0
  89. data/template/highcharts/helpers/names.rb +62 -0
  90. data/template/highcharts/helpers/params.rb +35 -0
  91. data/template/highcharts/highcharts.js +308 -0
  92. data/template/highcharts/index.haml +2 -0
  93. data/template/highcharts/jquery-1.11.1.min.js +4 -0
  94. data/template/highcharts/jquery.dataTables.min.css +1 -0
  95. data/template/highcharts/jquery.dataTables.min.js +164 -0
  96. data/template/highcharts/layouts/default.haml +54 -0
  97. data/template/highcharts/partials/activity_per_day.haml +65 -0
  98. data/template/highcharts/partials/activity_per_hour.haml +42 -0
  99. data/template/highcharts/partials/activity_per_month.haml +47 -0
  100. data/template/highcharts/partials/activity_per_week_last_year.haml +47 -0
  101. data/template/highcharts/partials/activity_per_weekday.haml +44 -0
  102. data/template/highcharts/partials/activity_per_weekday_and_hour.haml +20 -0
  103. data/template/highcharts/partials/blocktoc.haml +4 -0
  104. data/template/highcharts/partials/commits_per_author.haml +64 -0
  105. data/template/highcharts/partials/commits_per_author_detailed.haml +92 -0
  106. data/template/highcharts/partials/general.haml +33 -0
  107. data/template/highcharts/partials/globalstats.haml +41 -0
  108. data/template/highcharts/partials/repos.haml +12 -0
  109. data/template/highcharts/set_highcharts.js +323 -0
  110. data/template/highcharts/style.scss +148 -0
  111. metadata +227 -0
@@ -0,0 +1,148 @@
1
+ /* Padding for the nav bar */
2
+ body {
3
+ padding-top: 50px;
4
+ }
5
+
6
+ #myDialog
7
+ {
8
+ height:95%;
9
+ width:95%;
10
+ }
11
+
12
+ /* Hide for mobile, show later */
13
+
14
+ .sidebar {
15
+ display: none;
16
+ }
17
+
18
+ @media (min-width: 768px) {
19
+ .sidebar {
20
+ position: fixed;
21
+ top: 51px;
22
+ bottom: 0;
23
+ left: 0;
24
+ z-index: 1000;
25
+ display: block;
26
+ padding: 20px;
27
+ overflow-x: hidden;
28
+ overflow-y: auto;
29
+ background-color: #f5f5f5;
30
+ border-right: 1px solid #eee;
31
+ }
32
+ }
33
+
34
+ .nav-sidebar {
35
+ margin-right: -21px;
36
+ margin-bottom: 20px;
37
+ margin-left: -20px;
38
+ }
39
+ .nav-sidebar > li > a {
40
+ padding-right: 20px;
41
+ padding-left: 20px;
42
+ }
43
+ .nav-sidebar > .active > a,
44
+ .nav-sidebar > .active > a:hover,
45
+ .nav-sidebar > .active > a:focus {
46
+ color: #fff;
47
+ background-color: #428bca;
48
+ }
49
+
50
+ /*
51
+ STATISTICS
52
+ */
53
+ #block-globalstats {
54
+ color: #FFFFFF;
55
+ font-weight: bold;
56
+ }
57
+
58
+ .thumbnails:before, .thumbnails:after {
59
+ content: "";
60
+ display: table;
61
+ line-height: 0;
62
+ }
63
+
64
+ .thumbnails:after {
65
+ clear: both;
66
+ }
67
+
68
+ .thumbnails:before, .thumbnails:after {
69
+ content: "";
70
+ display: table;
71
+ line-height: 0;
72
+ }
73
+
74
+ .thumbnails {
75
+ list-style: none outside none;
76
+ margin-left: -20px;
77
+ }
78
+
79
+ ul, ol {
80
+ margin: 0 0 10px 25px;
81
+ padding: 0;
82
+ }
83
+
84
+ #block-globalstats .thumbnail {
85
+ background: none repeat scroll 0 0 #3498DB;
86
+ padding: 10px;
87
+ }
88
+
89
+ .thumbnail {
90
+ position: relative;
91
+ }
92
+
93
+ .thumbnail {
94
+ border: 1px solid #DDDDDD;
95
+ border-radius: 4px;
96
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055);
97
+ display: block;
98
+ line-height: 20px;
99
+ padding: 4px;
100
+ transition: all 0.2s ease-in-out 0s;
101
+ }
102
+
103
+ .thumbnails > li {
104
+ float: left;
105
+ margin-bottom: 20px;
106
+ margin-left: 20px;
107
+ }
108
+
109
+ .span4 {
110
+ width: 300px;
111
+ }
112
+
113
+ #block-globalstats .thumbnail .title {
114
+ font-size: 1.1em;
115
+ }
116
+
117
+ #block-globalstats .thumbnail .value {
118
+ font-size: 3em;
119
+ line-height: 1em;
120
+ padding-top: 10px;
121
+ text-align: right;
122
+ }
123
+
124
+ .thumbnail h5 {
125
+ background: none repeat scroll 0 0 #1ABC9C;
126
+ color: #FFFFFF;
127
+ padding: 10px;
128
+ position: absolute;
129
+ right: 10px;
130
+ top: 0;
131
+ font-size: 16px;
132
+ font-weight: 500;
133
+ text-transform: uppercase;
134
+ margin: 10px 0;
135
+ }
136
+
137
+ .thumbnail h4 {
138
+ font-size: 18px;
139
+ font-weight: 500;
140
+ margin: 5px;
141
+ border-bottom: 0 none;
142
+ }
143
+
144
+ .thumbnail h4 small {
145
+ color: #999999;
146
+ font-weight: normal;
147
+ line-height: 1;
148
+ }
metadata ADDED
@@ -0,0 +1,227 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gitstats-rb
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Mario Werner
8
+ - Christoph Plank
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2019-10-17 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: haml
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '5.0'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '5.0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: sass
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '3.4'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '3.4'
42
+ - !ruby/object:Gem::Dependency
43
+ name: compass
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '1.0'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '1.0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: compass-blueprint
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '1.0'
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '1.0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: gnuplot
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: '2.6'
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '2.6'
84
+ description: Generates statistics of git repositories like http://gitstats.sourceforge.net
85
+ but with a more extendable and flexible backend system
86
+ email:
87
+ - mario.werner@iaik.tugraz.at
88
+ - chrisistuff@gmail.com
89
+ executables:
90
+ - gitstats
91
+ extensions: []
92
+ extra_rdoc_files: []
93
+ files:
94
+ - ".gitignore"
95
+ - LICENSE
96
+ - README.md
97
+ - bin/gitstats
98
+ - gitstats-rb.gemspec
99
+ - lib/gitstats.rb
100
+ - lib/gitstats/author.rb
101
+ - lib/gitstats/git.rb
102
+ - lib/gitstats/renderer.rb
103
+ - lib/gitstats/renderer/gnuplot.rb
104
+ - lib/gitstats/renderer/haml.rb
105
+ - lib/gitstats/renderer/sass.rb
106
+ - lib/gitstats/statgen.rb
107
+ - lib/gitstats/stats.rb
108
+ - lib/gitstats/stats/commit.rb
109
+ - lib/gitstats/stats/commit/author.rb
110
+ - lib/gitstats/stats/commit/time.rb
111
+ - lib/gitstats/stats/file.rb
112
+ - lib/gitstats/stats/file/filetype.rb
113
+ - lib/gitstats/yearmonth.rb
114
+ - template/gnuplot/activity.haml
115
+ - template/gnuplot/asc.gif
116
+ - template/gnuplot/authors.haml
117
+ - template/gnuplot/bg.gif
118
+ - template/gnuplot/commits_per_hour.plot
119
+ - template/gnuplot/commits_per_month.plot
120
+ - template/gnuplot/commits_per_wday.plot
121
+ - template/gnuplot/commits_per_year.plot
122
+ - template/gnuplot/commits_per_yearmonth.plot
123
+ - template/gnuplot/desc.gif
124
+ - template/gnuplot/filechanges_by_yearmonth.plot
125
+ - template/gnuplot/files.haml
126
+ - template/gnuplot/files_by_yearmonth.plot
127
+ - template/gnuplot/helpers/block.rb
128
+ - template/gnuplot/helpers/config.rb
129
+ - template/gnuplot/helpers/names.rb
130
+ - template/gnuplot/helpers/utils.rb
131
+ - template/gnuplot/index.haml
132
+ - template/gnuplot/jqplot.canvasAxisLabelRenderer.min.js
133
+ - template/gnuplot/jqplot.canvasAxisTickRenderer.min.js
134
+ - template/gnuplot/jqplot.canvasTextRenderer.min.js
135
+ - template/gnuplot/jqplot.cursor.min.js
136
+ - template/gnuplot/jqplot.dateAxisRenderer.min.js
137
+ - template/gnuplot/jquery.jqplot.min.css
138
+ - template/gnuplot/jquery.jqplot.min.js
139
+ - template/gnuplot/jquery.js
140
+ - template/gnuplot/jquery.tablesorter.js
141
+ - template/gnuplot/lastweeks.plot
142
+ - template/gnuplot/layouts/default.haml
143
+ - template/gnuplot/linechanges_by_yearmonth.plot
144
+ - template/gnuplot/lines.haml
145
+ - template/gnuplot/lines_by_yearmonth.plot
146
+ - template/gnuplot/partials/authors.haml
147
+ - template/gnuplot/partials/blockheader.haml
148
+ - template/gnuplot/partials/blocktoc.haml
149
+ - template/gnuplot/partials/commitchart.haml
150
+ - template/gnuplot/partials/commits_per_month.haml
151
+ - template/gnuplot/partials/commits_per_year.haml
152
+ - template/gnuplot/partials/commits_per_yearmonth.haml
153
+ - template/gnuplot/partials/day_of_week.haml
154
+ - template/gnuplot/partials/filechanges_by_yearmonth.haml
155
+ - template/gnuplot/partials/files_by_yearmonth.haml
156
+ - template/gnuplot/partials/fileschart.haml
157
+ - template/gnuplot/partials/filetypes.haml
158
+ - template/gnuplot/partials/general.haml
159
+ - template/gnuplot/partials/hour_of_day.haml
160
+ - template/gnuplot/partials/hour_of_week.haml
161
+ - template/gnuplot/partials/lastweeks.haml
162
+ - template/gnuplot/partials/linechanges_by_yearmonth.haml
163
+ - template/gnuplot/partials/lines_by_yearmonth.haml
164
+ - template/gnuplot/partials/lineschart.haml
165
+ - template/gnuplot/partials/repos.haml
166
+ - template/gnuplot/partials/top_authors_of_year.haml
167
+ - template/gnuplot/partials/top_authors_of_yearmonth.haml
168
+ - template/gnuplot/style.scss
169
+ - template/highcharts/activity.haml
170
+ - template/highcharts/authors.haml
171
+ - template/highcharts/bootstrap-theme.min.css
172
+ - template/highcharts/bootstrap.min.css
173
+ - template/highcharts/bootstrap.min.js
174
+ - template/highcharts/exporting.js
175
+ - template/highcharts/glyphicons-halflings-regular.eot
176
+ - template/highcharts/glyphicons-halflings-regular.svg
177
+ - template/highcharts/glyphicons-halflings-regular.ttf
178
+ - template/highcharts/glyphicons-halflings-regular.woff
179
+ - template/highcharts/heatmap.js
180
+ - template/highcharts/helpers/block.rb
181
+ - template/highcharts/helpers/names.rb
182
+ - template/highcharts/helpers/params.rb
183
+ - template/highcharts/highcharts.js
184
+ - template/highcharts/index.haml
185
+ - template/highcharts/jquery-1.11.1.min.js
186
+ - template/highcharts/jquery.dataTables.min.css
187
+ - template/highcharts/jquery.dataTables.min.js
188
+ - template/highcharts/layouts/default.haml
189
+ - template/highcharts/partials/activity_per_day.haml
190
+ - template/highcharts/partials/activity_per_hour.haml
191
+ - template/highcharts/partials/activity_per_month.haml
192
+ - template/highcharts/partials/activity_per_week_last_year.haml
193
+ - template/highcharts/partials/activity_per_weekday.haml
194
+ - template/highcharts/partials/activity_per_weekday_and_hour.haml
195
+ - template/highcharts/partials/blocktoc.haml
196
+ - template/highcharts/partials/commits_per_author.haml
197
+ - template/highcharts/partials/commits_per_author_detailed.haml
198
+ - template/highcharts/partials/general.haml
199
+ - template/highcharts/partials/globalstats.haml
200
+ - template/highcharts/partials/repos.haml
201
+ - template/highcharts/set_highcharts.js
202
+ - template/highcharts/style.scss
203
+ homepage: https://github.com/niosHD/gitstats-rb
204
+ licenses:
205
+ - GPL-3.0
206
+ metadata: {}
207
+ post_install_message:
208
+ rdoc_options: []
209
+ require_paths:
210
+ - lib
211
+ required_ruby_version: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ required_rubygems_version: !ruby/object:Gem::Requirement
217
+ requirements:
218
+ - - ">="
219
+ - !ruby/object:Gem::Version
220
+ version: '0'
221
+ requirements: []
222
+ rubyforge_project:
223
+ rubygems_version: 2.7.6
224
+ signing_key:
225
+ specification_version: 4
226
+ summary: Generates statistics of git repositories
227
+ test_files: []