zitgit 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +1 -13
- data/lib/zitgit.rb +1 -1
- data/lib/zitgit/version.rb +1 -1
- data/public/coffee/application.coffee +0 -18
- data/public/css/app.css +2 -1
- data/public/js/application.js +1 -29
- data/public/scss/app.scss +1 -0
- data/views/index.slim +0 -4
- metadata +2 -3
- data/public/images/refresh.png +0 -0
data/README.md
CHANGED
@@ -4,19 +4,7 @@ Simple sinatra-based web-interface to view git repository history
|
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
gem 'zitgit'
|
10
|
-
|
11
|
-
or install from GitHub:
|
12
|
-
|
13
|
-
gem 'zitgit', git: 'https://github.com/rsludge/zitgit.git'
|
14
|
-
|
15
|
-
And then execute:
|
16
|
-
|
17
|
-
$ bundle install
|
18
|
-
|
19
|
-
Or install with:
|
7
|
+
To install execute:
|
20
8
|
|
21
9
|
$ gem install zitgit
|
22
10
|
|
data/lib/zitgit.rb
CHANGED
data/lib/zitgit/version.rb
CHANGED
@@ -67,21 +67,6 @@ SwitchBranch = ->
|
|
67
67
|
e.preventDefault()
|
68
68
|
ChangeBranch($(this))
|
69
69
|
|
70
|
-
RefreshStatus = ->
|
71
|
-
$.get '/status/', (data)->
|
72
|
-
$('.status').replaceWith data
|
73
|
-
|
74
|
-
RefreshContent = ->
|
75
|
-
RefreshStatus()
|
76
|
-
$('.current_branch').each (index)->
|
77
|
-
if $(this).text() != ''
|
78
|
-
branch_name = $(this).text()
|
79
|
-
$(this).parent('.has-dropdown').find('.dropdown li a').each (index)->
|
80
|
-
if $(this).text() == branch_name
|
81
|
-
ChangeBranch($(this))
|
82
|
-
return false
|
83
|
-
return false
|
84
|
-
|
85
70
|
SelectRow = ($row) ->
|
86
71
|
if $row.offset().top < $('.history').offset().top
|
87
72
|
current_scroll = $('.history').scrollTop()
|
@@ -142,9 +127,6 @@ $ ->
|
|
142
127
|
$('.history').on 'click', '.status-link', (e)->
|
143
128
|
e.preventDefault()
|
144
129
|
LoadStatus()
|
145
|
-
$('.refresh').on 'click', (e)->
|
146
|
-
e.preventDefault()
|
147
|
-
RefreshContent()
|
148
130
|
$('.show_commit').on 'click', '.diff-names li', (e)->
|
149
131
|
SelectDiff $(this)
|
150
132
|
|
data/public/css/app.css
CHANGED
data/public/js/application.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
(function() {
|
2
|
-
var ChangeBranch, ChangeCommit, CommitArrows, LoadStatus,
|
2
|
+
var ChangeBranch, ChangeCommit, CommitArrows, LoadStatus, SelectDiff, SelectRow, SetHeight, SwitchBranch, TableArrows, UpdateDiffsWidth;
|
3
3
|
|
4
4
|
ChangeCommit = function($commit) {
|
5
5
|
var $target_commit;
|
@@ -95,30 +95,6 @@
|
|
95
95
|
});
|
96
96
|
};
|
97
97
|
|
98
|
-
RefreshStatus = function() {
|
99
|
-
return $.get('/status/', function(data) {
|
100
|
-
return $('.status').replaceWith(data);
|
101
|
-
});
|
102
|
-
};
|
103
|
-
|
104
|
-
RefreshContent = function() {
|
105
|
-
RefreshStatus();
|
106
|
-
return $('.current_branch').each(function(index) {
|
107
|
-
var branch_name;
|
108
|
-
|
109
|
-
if ($(this).text() !== '') {
|
110
|
-
branch_name = $(this).text();
|
111
|
-
$(this).parent('.has-dropdown').find('.dropdown li a').each(function(index) {
|
112
|
-
if ($(this).text() === branch_name) {
|
113
|
-
ChangeBranch($(this));
|
114
|
-
return false;
|
115
|
-
}
|
116
|
-
});
|
117
|
-
return false;
|
118
|
-
}
|
119
|
-
});
|
120
|
-
};
|
121
|
-
|
122
98
|
SelectRow = function($row) {
|
123
99
|
var current_scroll, offset;
|
124
100
|
|
@@ -206,10 +182,6 @@
|
|
206
182
|
e.preventDefault();
|
207
183
|
return LoadStatus();
|
208
184
|
});
|
209
|
-
$('.refresh').on('click', function(e) {
|
210
|
-
e.preventDefault();
|
211
|
-
return RefreshContent();
|
212
|
-
});
|
213
185
|
$('.show_commit').on('click', '.diff-names li', function(e) {
|
214
186
|
return SelectDiff($(this));
|
215
187
|
});
|
data/public/scss/app.scss
CHANGED
data/views/index.slim
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zitgit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sinatra
|
@@ -195,7 +195,6 @@ files:
|
|
195
195
|
- public/coffee/application.coffee
|
196
196
|
- public/css/app.css
|
197
197
|
- public/images/loader.gif
|
198
|
-
- public/images/refresh.png
|
199
198
|
- public/js/application.js
|
200
199
|
- public/js/jquery.js
|
201
200
|
- public/js/jquery.nicescroll.js
|
data/public/images/refresh.png
DELETED
Binary file
|