gitoe 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +6 -5
- data/content/ie_workaround.coffee +22 -0
- data/content/index.haml +24 -8
- data/content/style.sass +3 -0
- data/lib/gitoe/httpserver/public/ie_workaround.js +6 -0
- data/lib/gitoe/httpserver/public/index.html +38 -8
- data/lib/gitoe/httpserver/public/style.css +3 -0
- data/lib/gitoe/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4617aa19f48922bf4387a265759d73a2f6602d7e
|
4
|
+
data.tar.gz: 857f74f0d23c1e314b378c64065ff9b5ef0e951c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1efe9f45450c4f87a436cca414326cffd8d597ae3c5a579fcabf7eccaeeb65eb131b9b3e4058abc537200b75b7dbb4340deb657bbedd2bba40c0ad0926556162
|
7
|
+
data.tar.gz: 5d8bcd58cfb7a701ffb066a5e4808289fdd4fcce304e7e3e419306ba0a86b73a701cf2cad5dbeb39c4d86be5ba37cddf7408f0b30ddf874e8340f39432e80e7f
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,7 @@ gitoe
|
|
2
2
|
=====
|
3
3
|
#### a local web app, to show local git changes
|
4
4
|
|
5
|
-
gitoe (hopefully) reveals:
|
5
|
+
gitoe (hopefully) reveals changes done in a local repository, like:
|
6
6
|
|
7
7
|
- what did I do ?
|
8
8
|
- what did this `git command` do ?
|
@@ -15,16 +15,17 @@ And running
|
|
15
15
|
|
16
16
|
$ gitoe
|
17
17
|
|
18
|
-
starts a local web server at [127.0.0.1:12345](127.0.0.1:12345).
|
18
|
+
By default, it starts a local web server at [127.0.0.1:12345](http://127.0.0.1:12345/). Interface and port can be specified, run `gitoe -h` for complete usage.
|
19
19
|
|
20
|
-
|
20
|
+
It works by
|
21
21
|
- dig commits out of the repo, and visualize them
|
22
22
|
- look into `.git/logs/refs`, and parses `reflog` message.
|
23
23
|
|
24
|
-
|
24
|
+
Gitoe is build upon
|
25
25
|
|
26
|
-
- [sinatra](www.sinatrarb.com)
|
26
|
+
- [sinatra](http://www.sinatrarb.com)
|
27
27
|
- [libgit2/rugged](https://github.com/libgit2/rugged)
|
28
28
|
- [jquery](http://jquery.com/)
|
29
|
+
- [jquery.scrollTo](https://github.com/flesler/jquery.scrollTo)
|
29
30
|
- [Raphaël](http://raphaeljs.com/)
|
30
31
|
|
@@ -0,0 +1,22 @@
|
|
1
|
+
|
2
|
+
if navigator.userAgent.match /msie/i
|
3
|
+
alert "
|
4
|
+
This page doesn't work in IE. Please consider recent version of modern browsers like Chrome / Mozilla Firefox.\n
|
5
|
+
本ソフトはInternet Explorerで作動しません。最近バージョンのChromeかMozilla Firefoxで試してみてください。
|
6
|
+
"
|
7
|
+
|
8
|
+
# $ = jQuery or throw "demand jQuery"
|
9
|
+
# do ->
|
10
|
+
# if "object" == typeof(console.log)
|
11
|
+
# old_log = console.log
|
12
|
+
# console.log = (args...)->
|
13
|
+
# old_log( args )
|
14
|
+
# console.log "ie sax"
|
15
|
+
|
16
|
+
# do ->
|
17
|
+
# Array::map ||= (fun)->
|
18
|
+
# $.map @, fun
|
19
|
+
|
20
|
+
# Array::filter ||= (fun)->
|
21
|
+
# $(@).filter fun
|
22
|
+
|
data/content/index.haml
CHANGED
@@ -3,7 +3,8 @@
|
|
3
3
|
%head
|
4
4
|
%link(rel="stylesheet" type="text/css" href="reset.css")
|
5
5
|
%link(rel="stylesheet" type="text/css" href="style.css")
|
6
|
-
%script(src="
|
6
|
+
%script(src="jquery/jquery-1.9.1.min.js")
|
7
|
+
%script(src="ie_workaround.js")
|
7
8
|
%script(src="jquery/jquery.scrollTo.min.js")
|
8
9
|
%script(src="raphael-min.js")
|
9
10
|
%script(src="moment.min.js")
|
@@ -15,6 +16,15 @@
|
|
15
16
|
$ ->
|
16
17
|
if /\?dev$/.test location.href
|
17
18
|
setTimeout location.reload.bind(location), 1000
|
19
|
+
:coffee
|
20
|
+
# IE(<8) workaround
|
21
|
+
# from
|
22
|
+
Object.keys ||= (o)->
|
23
|
+
result = []
|
24
|
+
for name in o
|
25
|
+
if o.hasOwnProperty(name)
|
26
|
+
result.push name
|
27
|
+
return result
|
18
28
|
%body
|
19
29
|
#flash
|
20
30
|
#wrapper.fillh.fillv
|
@@ -63,10 +73,16 @@
|
|
63
73
|
#graph.fillh.fillv.scrollh.scrollv
|
64
74
|
#footer.fillh
|
65
75
|
powered by
|
66
|
-
%a(href='
|
67
|
-
|
68
|
-
%a(href='
|
69
|
-
|
70
|
-
%a(href='
|
71
|
-
|
72
|
-
%a(href='
|
76
|
+
%a( href='http://www.sinatrarb.com' )
|
77
|
+
sinatra
|
78
|
+
%a( href='https://github.com/libgit2/rugged' )
|
79
|
+
rugged
|
80
|
+
%a( href='http://jquery.com/' )
|
81
|
+
jQuery
|
82
|
+
%a( href='https://github.com/flesler/jquery.scrollTo' )
|
83
|
+
jquery.scrollTo
|
84
|
+
%a( href='http://raphaeljs.com/' )
|
85
|
+
Raphaël
|
86
|
+
and
|
87
|
+
%a( href='https://github.com/jokester' )
|
88
|
+
Wang Guan
|
data/content/style.sass
CHANGED
@@ -0,0 +1,6 @@
|
|
1
|
+
(function() {
|
2
|
+
if (navigator.userAgent.match(/msie/i)) {
|
3
|
+
alert("This page doesn't work in IE. Please consider recent version of modern browsers like Chrome / Mozilla Firefox.\n本ソフトはInternet Explorerで作動しません。最近バージョンのChromeかMozilla Firefoxで試してみてください。");
|
4
|
+
}
|
5
|
+
|
6
|
+
}).call(this);
|
@@ -3,7 +3,8 @@
|
|
3
3
|
<head>
|
4
4
|
<link href='reset.css' rel='stylesheet' type='text/css'>
|
5
5
|
<link href='style.css' rel='stylesheet' type='text/css'>
|
6
|
-
<script src='
|
6
|
+
<script src='jquery/jquery-1.9.1.min.js'></script>
|
7
|
+
<script src='ie_workaround.js'></script>
|
7
8
|
<script src='jquery/jquery.scrollTo.min.js'></script>
|
8
9
|
<script src='raphael-min.js'></script>
|
9
10
|
<script src='moment.min.js'></script>
|
@@ -21,6 +22,23 @@
|
|
21
22
|
|
22
23
|
}).call(this);
|
23
24
|
</script>
|
25
|
+
<script>
|
26
|
+
(function() {
|
27
|
+
Object.keys || (Object.keys = function(o) {
|
28
|
+
var name, result, _i, _len;
|
29
|
+
|
30
|
+
result = [];
|
31
|
+
for (_i = 0, _len = o.length; _i < _len; _i++) {
|
32
|
+
name = o[_i];
|
33
|
+
if (o.hasOwnProperty(name)) {
|
34
|
+
result.push(name);
|
35
|
+
}
|
36
|
+
}
|
37
|
+
return result;
|
38
|
+
});
|
39
|
+
|
40
|
+
}).call(this);
|
41
|
+
</script>
|
24
42
|
</head>
|
25
43
|
<body>
|
26
44
|
<div id='flash'></div>
|
@@ -36,13 +54,25 @@
|
|
36
54
|
<div class='fillh fillv scrollh scrollv' id='graph'></div>
|
37
55
|
<div class='fillh' id='footer'>
|
38
56
|
powered by
|
39
|
-
<a href='
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
<a href='
|
57
|
+
<a href='http://www.sinatrarb.com'>
|
58
|
+
sinatra
|
59
|
+
</a>
|
60
|
+
<a href='https://github.com/libgit2/rugged'>
|
61
|
+
rugged
|
62
|
+
</a>
|
63
|
+
<a href='http://jquery.com/'>
|
64
|
+
jQuery
|
65
|
+
</a>
|
66
|
+
<a href='https://github.com/flesler/jquery.scrollTo'>
|
67
|
+
jquery.scrollTo
|
68
|
+
</a>
|
69
|
+
<a href='http://raphaeljs.com/'>
|
70
|
+
Raphaël
|
71
|
+
</a>
|
72
|
+
and
|
73
|
+
<a href='https://github.com/jokester'>
|
74
|
+
Wang Guan
|
75
|
+
</a>
|
46
76
|
</div>
|
47
77
|
</div>
|
48
78
|
</div>
|
data/lib/gitoe/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitoe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wang Guan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rugged
|
@@ -185,6 +185,7 @@ files:
|
|
185
185
|
- content/gitoe-draw.coffee
|
186
186
|
- content/gitoe-repo.coffee
|
187
187
|
- content/gitoe.coffee
|
188
|
+
- content/ie_workaround.coffee
|
188
189
|
- content/index.haml
|
189
190
|
- content/jquery/jquery-1.9.1.min.js
|
190
191
|
- content/jquery/jquery.scrollTo.min.js
|
@@ -197,6 +198,7 @@ files:
|
|
197
198
|
- lib/gitoe/httpserver/public/gitoe-draw.js
|
198
199
|
- lib/gitoe/httpserver/public/gitoe-repo.js
|
199
200
|
- lib/gitoe/httpserver/public/gitoe.js
|
201
|
+
- lib/gitoe/httpserver/public/ie_workaround.js
|
200
202
|
- lib/gitoe/httpserver/public/index.html
|
201
203
|
- lib/gitoe/httpserver/public/jquery/jquery-1.9.1.min.js
|
202
204
|
- lib/gitoe/httpserver/public/jquery/jquery.scrollTo.min.js
|