git_handsome 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +17 -0
- data/Rakefile +1 -0
- data/bin/git-handsome +9 -0
- data/config.ru +6 -0
- data/git_handsome.gemspec +23 -0
- data/lib/git_handsome/server.rb +23 -0
- data/lib/git_handsome/version.rb +3 -0
- data/lib/git_handsome.rb +13 -0
- data/public/css/jquery.jqplot.min.css +1 -0
- data/public/js/excanvas.min.js +30 -0
- data/public/js/jquery.jqplot.min.js +30 -0
- data/public/js/jquery.min.js +18 -0
- data/public/js/plugins/jqplot.barRenderer.min.js +30 -0
- data/public/js/plugins/jqplot.canvasAxisTickRenderer.min.js +30 -0
- data/public/js/plugins/jqplot.canvasTextRenderer.min.js +30 -0
- data/public/js/plugins/jqplot.categoryAxisRenderer.min.js +30 -0
- data/public/js/plugins/jqplot.dateAxisRenderer.min.js +30 -0
- data/public/js/plugins/jqplot.pieRenderer.min.js +30 -0
- data/views/index.erb +70 -0
- metadata +89 -0
data/views/index.erb
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
5
|
+
<link rel="stylesheet" type="text/css" href="/css/jquery.jqplot.min.css" />
|
6
|
+
|
7
|
+
<title>Git Handsome</title>
|
8
|
+
</head>
|
9
|
+
<body id="index" onload="">
|
10
|
+
<div id="chart1" style="margin-bottom: 50px;"></div>
|
11
|
+
<div id="chart2" style="float:right; width:600px;"></div>
|
12
|
+
|
13
|
+
<h1>History</h1>
|
14
|
+
<% @commits_by_day.each do |day, commits| %>
|
15
|
+
<h2><%= day %></h2>
|
16
|
+
<% commits.each do |commit| %>
|
17
|
+
<li><%= commit['date'] %>: <%= commit['subject'] %></li>
|
18
|
+
<% end %>
|
19
|
+
<% end %>
|
20
|
+
|
21
|
+
<!--[if lt IE 9]><script language="javascript" type="text/javascript" src="/js/excanvas.min.js"></script><![endif]-->
|
22
|
+
<script language="javascript" type="text/javascript" src="/js/jquery.min.js"></script>
|
23
|
+
<script language="javascript" type="text/javascript" src="/js/jquery.jqplot.min.js"></script>
|
24
|
+
<script type="text/javascript" src="/js/plugins/jqplot.dateAxisRenderer.min.js"></script>
|
25
|
+
<script type="text/javascript" src="/js/plugins/jqplot.canvasTextRenderer.min.js"></script>
|
26
|
+
<script type="text/javascript" src="/js/plugins/jqplot.canvasAxisTickRenderer.min.js"></script>
|
27
|
+
<script type="text/javascript" src="/js/plugins/jqplot.categoryAxisRenderer.min.js"></script>
|
28
|
+
<script type="text/javascript" src="/js/plugins/jqplot.barRenderer.min.js"></script>
|
29
|
+
<script type="text/javascript" src="/js/plugins/jqplot.pieRenderer.min.js"></script>
|
30
|
+
|
31
|
+
<script type="text/javascript">
|
32
|
+
$(document).ready(function(){
|
33
|
+
var line1=<%= @commits_per_day %>;
|
34
|
+
var plot1 = $.jqplot('chart1', [line1], {
|
35
|
+
title: 'Commits per day',
|
36
|
+
series:[{renderer:$.jqplot.BarRenderer}],
|
37
|
+
axesDefaults: {
|
38
|
+
tickRenderer: $.jqplot.CanvasAxisTickRenderer ,
|
39
|
+
tickOptions: {
|
40
|
+
angle: -30,
|
41
|
+
fontSize: '10pt'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
axes: {
|
45
|
+
xaxis: {
|
46
|
+
renderer: $.jqplot.CategoryAxisRenderer
|
47
|
+
}
|
48
|
+
}
|
49
|
+
});
|
50
|
+
|
51
|
+
var data = <%= @commits_by_author %>;
|
52
|
+
var plot2 = jQuery.jqplot ('chart2', [data],
|
53
|
+
{
|
54
|
+
title: 'Commits by author',
|
55
|
+
seriesDefaults: {
|
56
|
+
// Make this a pie chart.
|
57
|
+
renderer: jQuery.jqplot.PieRenderer,
|
58
|
+
rendererOptions: {
|
59
|
+
// Put data labels on the pie slices.
|
60
|
+
// By default, labels show the percentage of the slice.
|
61
|
+
showDataLabels: true
|
62
|
+
}
|
63
|
+
},
|
64
|
+
legend: { show:true, location: 'e' }
|
65
|
+
}
|
66
|
+
);
|
67
|
+
});
|
68
|
+
</script>
|
69
|
+
</body>
|
70
|
+
</html>
|
metadata
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: git_handsome
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Sven Dahlstrand
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-08-06 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: sinatra
|
16
|
+
requirement: &70102276566900 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70102276566900
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: launchy
|
27
|
+
requirement: &70102276566380 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70102276566380
|
36
|
+
description: Pretty graphs for git repositories.
|
37
|
+
email:
|
38
|
+
- sven.dahlstrand@gmail.com
|
39
|
+
executables:
|
40
|
+
- git-handsome
|
41
|
+
extensions: []
|
42
|
+
extra_rdoc_files: []
|
43
|
+
files:
|
44
|
+
- .gitignore
|
45
|
+
- Gemfile
|
46
|
+
- Gemfile.lock
|
47
|
+
- Rakefile
|
48
|
+
- bin/git-handsome
|
49
|
+
- config.ru
|
50
|
+
- git_handsome.gemspec
|
51
|
+
- lib/git_handsome.rb
|
52
|
+
- lib/git_handsome/server.rb
|
53
|
+
- lib/git_handsome/version.rb
|
54
|
+
- public/css/jquery.jqplot.min.css
|
55
|
+
- public/js/excanvas.min.js
|
56
|
+
- public/js/jquery.jqplot.min.js
|
57
|
+
- public/js/jquery.min.js
|
58
|
+
- public/js/plugins/jqplot.barRenderer.min.js
|
59
|
+
- public/js/plugins/jqplot.canvasAxisTickRenderer.min.js
|
60
|
+
- public/js/plugins/jqplot.canvasTextRenderer.min.js
|
61
|
+
- public/js/plugins/jqplot.categoryAxisRenderer.min.js
|
62
|
+
- public/js/plugins/jqplot.dateAxisRenderer.min.js
|
63
|
+
- public/js/plugins/jqplot.pieRenderer.min.js
|
64
|
+
- views/index.erb
|
65
|
+
homepage: ''
|
66
|
+
licenses: []
|
67
|
+
post_install_message:
|
68
|
+
rdoc_options: []
|
69
|
+
require_paths:
|
70
|
+
- lib
|
71
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
+
none: false
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
requirements: []
|
84
|
+
rubyforge_project: git_handsome
|
85
|
+
rubygems_version: 1.8.6
|
86
|
+
signing_key:
|
87
|
+
specification_version: 3
|
88
|
+
summary: Pretty graphs for git repositories.
|
89
|
+
test_files: []
|