turbulence 0.0.9 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Gemfile +0 -8
- data/Gemfile.lock +26 -23
- data/README.md +15 -4
- data/Rakefile +1 -0
- data/bin/bule +5 -4
- data/lib/turbulence/calculators/churn.rb +29 -14
- data/lib/turbulence/calculators/complexity.rb +3 -4
- data/lib/turbulence/checks_environment.rb +2 -5
- data/lib/turbulence/command_line_interface.rb +40 -11
- data/lib/turbulence/scatter_plot_generator.rb +47 -13
- data/lib/turbulence/scm/git.rb +17 -0
- data/lib/turbulence/scm/perforce.rb +90 -0
- data/lib/turbulence/version.rb +1 -1
- data/lib/turbulence.rb +27 -20
- data/spec/turbulence/calculators/churn_spec.rb +63 -11
- data/spec/turbulence/checks_environoment_spec.rb +11 -0
- data/spec/turbulence/command_line_interface_spec.rb +36 -6
- data/spec/turbulence/scatter_splot_generator_spec.rb +97 -0
- data/spec/turbulence/scm/git_spec.rb +29 -0
- data/spec/turbulence/scm/perforce_spec.rb +148 -0
- data/spec/turbulence/turbulence_spec.rb +15 -0
- data/turbulence.gemspec +4 -2
- data/win_rakefile_location_fix.rb +8 -0
- metadata +41 -35
- data/.DS_Store +0 -0
- data/cc.js +0 -1
- data/highcharts.js +0 -162
- data/jquery.min.js +0 -16
- data/turbulence.html +0 -81
data/turbulence.html
DELETED
@@ -1,81 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<script src="jquery.min.js"></script>
|
4
|
-
<script src="highcharts.js"></script>
|
5
|
-
<script src="cc.js"></script>
|
6
|
-
<script>
|
7
|
-
$(document).ready(function() {
|
8
|
-
var chart = new Highcharts.Chart({
|
9
|
-
chart: {
|
10
|
-
renderTo: 'container',
|
11
|
-
defaultSeriesType: 'scatter',
|
12
|
-
zoomType: 'xy'
|
13
|
-
},
|
14
|
-
title: {
|
15
|
-
text: 'Churn vs Complexity'
|
16
|
-
},
|
17
|
-
xAxis: {
|
18
|
-
title: {
|
19
|
-
enabled: true,
|
20
|
-
text: 'Churn'
|
21
|
-
},
|
22
|
-
startOnTick: false,
|
23
|
-
endOnTick: false,
|
24
|
-
labels: {enabled:false},
|
25
|
-
lineWidth: 0,
|
26
|
-
tickWidth: 0
|
27
|
-
},
|
28
|
-
yAxis: {
|
29
|
-
title: {
|
30
|
-
text: 'Complexity'
|
31
|
-
},
|
32
|
-
startOnTick: false,
|
33
|
-
endOnTick: false,
|
34
|
-
labels: {enabled:false}
|
35
|
-
},
|
36
|
-
tooltip: {
|
37
|
-
formatter: function() {
|
38
|
-
var item = this.point;
|
39
|
-
return item.filename + "<br/>" + "churn: " + item.x + "<br/>" + "complexity: " + item.y;
|
40
|
-
}
|
41
|
-
},
|
42
|
-
|
43
|
-
plotOptions: {
|
44
|
-
scatter: {
|
45
|
-
marker: {
|
46
|
-
radius: 5,
|
47
|
-
states: {
|
48
|
-
hover: {
|
49
|
-
enabled: true,
|
50
|
-
lineColor: 'rgb(100,100,100)'
|
51
|
-
}
|
52
|
-
}
|
53
|
-
},
|
54
|
-
states: {
|
55
|
-
hover: {
|
56
|
-
marker: {
|
57
|
-
enabled: false
|
58
|
-
}
|
59
|
-
}
|
60
|
-
}
|
61
|
-
}
|
62
|
-
}
|
63
|
-
});
|
64
|
-
|
65
|
-
$.each(directorySeries, function(directory) {
|
66
|
-
chart.addSeries({
|
67
|
-
name: directory,
|
68
|
-
type: 'scatter',
|
69
|
-
visible: true,
|
70
|
-
data: directorySeries[directory]
|
71
|
-
});
|
72
|
-
});
|
73
|
-
});
|
74
|
-
|
75
|
-
</script>
|
76
|
-
</head>
|
77
|
-
<body>
|
78
|
-
<div id='container'>
|
79
|
-
</div>
|
80
|
-
</body>
|
81
|
-
</html>
|