repoman 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -2
- data/TODO.txt +9 -0
- data/lib/repoman/app/public/javascripts/application.js +1 -16
- data/lib/repoman/app/public/javascripts/diffplayback.js +3 -13
- data/lib/repoman/app/public/stylesheets/style.css +76 -37
- data/lib/repoman/app/views/layout.erb +3 -3
- data/lib/repoman/version.rb +1 -1
- metadata +2 -1
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Repoman
|
2
2
|
|
3
|
-
|
3
|
+
A Git tool for tracking file changes over time.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -8,7 +8,9 @@ TODO: Write a gem description
|
|
8
8
|
|
9
9
|
## Usage
|
10
10
|
|
11
|
-
|
11
|
+
1. Go to the repo's base directory of a file you are trying to track
|
12
|
+
2. Run `repoman file_name_you_are_trying_to_track`
|
13
|
+
3. Example `repoman lib/map.rb`
|
12
14
|
|
13
15
|
## Contributing
|
14
16
|
|
data/TODO.txt
ADDED
@@ -9,24 +9,9 @@ $(function() {
|
|
9
9
|
}
|
10
10
|
});
|
11
11
|
|
12
|
-
$('.forward').click(function(e) {
|
13
|
-
e.preventDefault();
|
14
|
-
playback.drawForward();
|
15
|
-
});
|
16
|
-
|
17
|
-
$('.reverse').click(function(e) {
|
18
|
-
e.preventDefault();
|
19
|
-
playback.drawReverse();
|
20
|
-
});
|
21
|
-
|
22
12
|
$('.slider').change(function(e) {
|
23
13
|
e.preventDefault();
|
24
|
-
|
25
|
-
playback.drawForward(this.value - 1);
|
26
|
-
prev = this.value;
|
27
|
-
} else
|
28
|
-
playback.drawReverse(this.value - 1);
|
29
|
-
prev = this.value;
|
14
|
+
playback.drawCommit(this.value);
|
30
15
|
});
|
31
16
|
|
32
17
|
});
|
@@ -11,7 +11,7 @@ DiffPlayback = (function() {
|
|
11
11
|
commit = 0;
|
12
12
|
self = this;
|
13
13
|
this.setupTemplates();
|
14
|
-
this.drawCommit(
|
14
|
+
this.drawCommit(commit);
|
15
15
|
};
|
16
16
|
|
17
17
|
DiffPlayback.prototype.setupTemplates = function() {
|
@@ -19,8 +19,9 @@ DiffPlayback = (function() {
|
|
19
19
|
rowTemplate = Handlebars.compile($('#row-template').html());
|
20
20
|
}
|
21
21
|
|
22
|
-
DiffPlayback.prototype.drawCommit = function() {
|
22
|
+
DiffPlayback.prototype.drawCommit = function(value) {
|
23
23
|
var that = this;
|
24
|
+
commit = value;
|
24
25
|
$('.commit-history .info').html(infoTemplate(this.commits[commit]));
|
25
26
|
$('tbody').html(rowTemplate(this.commits[commit]));
|
26
27
|
$(this.commits[commit].diff_parts).each(function(index, part) {
|
@@ -46,17 +47,6 @@ DiffPlayback = (function() {
|
|
46
47
|
});
|
47
48
|
}
|
48
49
|
|
49
|
-
DiffPlayback.prototype.drawForward = function(value) {
|
50
|
-
commit = value;
|
51
|
-
console.log(commit);
|
52
|
-
this.drawCommit();
|
53
|
-
}
|
54
|
-
|
55
|
-
DiffPlayback.prototype.drawReverse = function(value) {
|
56
|
-
commit = value;
|
57
|
-
this.drawCommit();
|
58
|
-
}
|
59
|
-
|
60
50
|
return DiffPlayback;
|
61
51
|
})();
|
62
52
|
|
@@ -6,8 +6,6 @@ body {
|
|
6
6
|
}
|
7
7
|
|
8
8
|
#container {
|
9
|
-
width: 980px;
|
10
|
-
margin: 0 auto;
|
11
9
|
padding-left: 360px;
|
12
10
|
}
|
13
11
|
|
@@ -39,28 +37,32 @@ strong { font-weight: bold; }
|
|
39
37
|
width: 650px;
|
40
38
|
}
|
41
39
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
}
|
40
|
+
#code table {
|
41
|
+
width: 700px;
|
42
|
+
display: block;
|
43
|
+
}
|
44
|
+
.line_number {
|
45
|
+
background-color: #3b3b3b;
|
46
|
+
color: #aaa;
|
47
|
+
padding: 0 3px 0 4px;
|
48
|
+
text-align: right;
|
49
|
+
}
|
53
50
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
}
|
51
|
+
.code {
|
52
|
+
background-color: white;
|
53
|
+
padding-left: 10px;
|
54
|
+
}
|
59
55
|
|
56
|
+
.bubble {
|
57
|
+
background: #3B3B3B;
|
58
|
+
border-radius: 3px;
|
59
|
+
padding: 3px;
|
60
|
+
float: left;
|
61
|
+
}
|
60
62
|
|
61
|
-
|
62
|
-
|
63
|
-
|
63
|
+
.add td:nth-child(2) {
|
64
|
+
-webkit-animation: code-nav .5s linear forwards;
|
65
|
+
}
|
64
66
|
|
65
67
|
/* Controls */
|
66
68
|
|
@@ -70,28 +72,65 @@ strong { font-weight: bold; }
|
|
70
72
|
left: 20px;
|
71
73
|
}
|
72
74
|
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
75
|
+
.commit-history {
|
76
|
+
background: -webkit-linear-gradient(top, #20202F, #3B3B3B);
|
77
|
+
border: 1px solid black;
|
78
|
+
margin-top: 20px;
|
79
|
+
line-height: 20px;
|
80
|
+
padding: 10px;
|
81
|
+
min-height: 80px;
|
82
|
+
width: 300px;
|
83
|
+
}
|
82
84
|
|
83
|
-
|
84
|
-
|
85
|
-
|
85
|
+
.info {
|
86
|
+
color: white;
|
87
|
+
}
|
86
88
|
|
87
|
-
|
88
|
-
|
89
|
-
|
89
|
+
.commit-info {
|
90
|
+
margin: 0 10px;
|
91
|
+
}
|
90
92
|
|
91
93
|
/* Animations */
|
92
94
|
|
93
|
-
@-webkit-keyframes
|
95
|
+
@-webkit-keyframes code-nav {
|
94
96
|
100% {
|
95
97
|
background-color: #DFD;
|
96
98
|
}
|
97
99
|
}
|
100
|
+
|
101
|
+
@-webkit-keyframes slider-button {
|
102
|
+
100% {
|
103
|
+
background-color: #d3d3d3;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
input[type='range'] {
|
108
|
+
-webkit-appearance: none !important;
|
109
|
+
background: #20202F;
|
110
|
+
height: 7px;
|
111
|
+
width: 100%;
|
112
|
+
}
|
113
|
+
|
114
|
+
input[type='range']::-webkit-slider-thumb {
|
115
|
+
-webkit-appearance: none !important;
|
116
|
+
background: white;
|
117
|
+
border: 2px solid black;
|
118
|
+
height:25px;
|
119
|
+
width:25px;
|
120
|
+
border-radius: 100%;
|
121
|
+
}
|
122
|
+
|
123
|
+
input[type='range']:hover::-webkit-slider-thumb {
|
124
|
+
-webkit-animation: slider-button .2s linear forwards;
|
125
|
+
}
|
126
|
+
|
127
|
+
.cf:before,
|
128
|
+
.cf:after {
|
129
|
+
content:"";
|
130
|
+
display:table;
|
131
|
+
}
|
132
|
+
|
133
|
+
.cf:after {
|
134
|
+
clear:both;
|
135
|
+
}
|
136
|
+
|
@@ -22,8 +22,8 @@
|
|
22
22
|
<script type="text/x-handlebars-template" id="row-template">
|
23
23
|
{{#each file}}
|
24
24
|
<tr>
|
25
|
-
<td class="line_number"
|
26
|
-
<td
|
25
|
+
<td class="line_number"></td>
|
26
|
+
<td style="width: 100%;" class="code">
|
27
27
|
<pre>{{this}}</pre>
|
28
28
|
</td>
|
29
29
|
</tr>
|
@@ -48,7 +48,7 @@
|
|
48
48
|
</table>
|
49
49
|
</div>
|
50
50
|
</div>
|
51
|
-
|
52
51
|
</div>
|
52
|
+
<div class="cf"></div>
|
53
53
|
</body>
|
54
54
|
</html>
|
data/lib/repoman/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: repoman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -153,6 +153,7 @@ files:
|
|
153
153
|
- LICENSE
|
154
154
|
- README.md
|
155
155
|
- Rakefile
|
156
|
+
- TODO.txt
|
156
157
|
- bin/repoman
|
157
158
|
- lib/repoman.rb
|
158
159
|
- lib/repoman/app/app.rb
|