dolt 0.5.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +21 -18
- data/Readme.md +3 -5
- data/bin/dolt +3 -6
- data/dolt.gemspec +5 -16
- data/lib/dolt/sinatra/multi_repo_browser.rb +3 -3
- data/lib/dolt/sinatra/single_repo_browser.rb +3 -3
- data/test/test_helper.rb +5 -3
- data/vendor/ui/css/gitorious.css +5 -0
- metadata +23 -239
- data/lib/dolt/async/when.rb +0 -128
- data/lib/dolt/disk_repo_resolver.rb +0 -39
- data/lib/dolt/git/blame.rb +0 -112
- data/lib/dolt/git/commit.rb +0 -73
- data/lib/dolt/git/repository.rb +0 -139
- data/lib/dolt/git/submodule.rb +0 -35
- data/lib/dolt/git/tree.rb +0 -42
- data/lib/dolt/repo_actions.rb +0 -91
- data/lib/dolt/template_renderer.rb +0 -67
- data/lib/dolt/version.rb +0 -21
- data/lib/dolt/view.rb +0 -23
- data/lib/dolt/view/binary_blob_embedder.rb +0 -41
- data/lib/dolt/view/blame.rb +0 -57
- data/lib/dolt/view/blob.rb +0 -97
- data/lib/dolt/view/breadcrumb.rb +0 -47
- data/lib/dolt/view/commit.rb +0 -27
- data/lib/dolt/view/gravatar.rb +0 -29
- data/lib/dolt/view/markup.rb +0 -107
- data/lib/dolt/view/multi_repository.rb +0 -27
- data/lib/dolt/view/object.rb +0 -44
- data/lib/dolt/view/single_repository.rb +0 -27
- data/lib/dolt/view/smart_blob_renderer.rb +0 -33
- data/lib/dolt/view/syntax_highlight.rb +0 -90
- data/lib/dolt/view/tab_width.rb +0 -30
- data/lib/dolt/view/tree.rb +0 -100
- data/test/dolt/async/when_test.rb +0 -112
- data/test/dolt/git/blame_test.rb +0 -128
- data/test/dolt/git/commit_test.rb +0 -89
- data/test/dolt/git/repository_test.rb +0 -186
- data/test/dolt/repo_actions_test.rb +0 -236
- data/test/dolt/template_renderer_test.rb +0 -122
- data/test/dolt/templates/blame_test.rb +0 -56
- data/test/dolt/templates/blob_test.rb +0 -118
- data/test/dolt/templates/commits_test.rb +0 -61
- data/test/dolt/templates/raw_test.rb +0 -41
- data/test/dolt/templates/refs_test.rb +0 -38
- data/test/dolt/templates/tree_history_test.rb +0 -93
- data/test/dolt/templates/tree_test.rb +0 -65
- data/test/dolt/view/binary_blob_embedder_test.rb +0 -49
- data/test/dolt/view/blame_test.rb +0 -122
- data/test/dolt/view/blob_test.rb +0 -116
- data/test/dolt/view/breadcrumb_test.rb +0 -46
- data/test/dolt/view/commit_test.rb +0 -31
- data/test/dolt/view/gravatar_test.rb +0 -30
- data/test/dolt/view/markup_test.rb +0 -94
- data/test/dolt/view/multi_repository_test.rb +0 -35
- data/test/dolt/view/object_test.rb +0 -83
- data/test/dolt/view/single_repository_test.rb +0 -30
- data/test/dolt/view/smart_blob_renderer_test.rb +0 -38
- data/test/dolt/view/syntax_highlight_test.rb +0 -108
- data/test/dolt/view/tab_width_test.rb +0 -40
- data/test/dolt/view/tree_test.rb +0 -199
- data/views/500.erb +0 -22
- data/views/blame.erb +0 -42
- data/views/blob.erb +0 -31
- data/views/commits.erb +0 -26
- data/views/index.erb +0 -25
- data/views/layout.erb +0 -45
- data/views/raw.erb +0 -19
- data/views/refs.erb +0 -22
- data/views/tree.erb +0 -50
- data/views/tree_history.erb +0 -19
data/views/blob.erb
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
<%#
|
2
|
-
# encoding: utf-8
|
3
|
-
#--
|
4
|
-
# Copyright (C) 2012 Gitorious AS
|
5
|
-
#
|
6
|
-
# This program is free software: you can redistribute it and/or modify
|
7
|
-
# it under the terms of the GNU Affero General Public License as published by
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
9
|
-
# (at your option) any later version.
|
10
|
-
#
|
11
|
-
# This program is distributed in the hope that it will be useful,
|
12
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
-
# GNU Affero General Public License for more details.
|
15
|
-
#
|
16
|
-
# You should have received a copy of the GNU Affero General Public License
|
17
|
-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
18
|
-
#++
|
19
|
-
%>
|
20
|
-
<% @title = "#{path} in #{repository}:master" %>
|
21
|
-
<div class="gts-file gts-browser">
|
22
|
-
<div id="gts-ref-selector-ph"></div>
|
23
|
-
<ul class="pull-right gts-blob-view">
|
24
|
-
<li class="active">Blob content</li>
|
25
|
-
<li><a href="<%= blame_url(repository, ref, path) %>">Blame</a></li>
|
26
|
-
<li><a href="<%= history_url(repository, ref, path) %>">History</a></li>
|
27
|
-
<li><a href="<%= raw_url(repository, ref, path) %>">Raw blob</a></li>
|
28
|
-
</ul>
|
29
|
-
<%= breadcrumb(repository, ref, path) %>
|
30
|
-
<%= format_blob(path, blob.content, repository, ref) %>
|
31
|
-
</div>
|
data/views/commits.erb
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
<% @title = "History of #{path}" %>
|
2
|
-
<div class="gts-browser">
|
3
|
-
<div id="gts-ref-selector-ph"></div>
|
4
|
-
<ul class="pull-right gts-blob-view">
|
5
|
-
<li><a href="<%= blob_url(repository, ref, path) %>">Blob content</a></li>
|
6
|
-
<li><a href="<%= blame_url(repository, ref, path) %>">Blame</a></li>
|
7
|
-
<li class="active">History</li>
|
8
|
-
<li><a href="<%= raw_url(repository, ref, path) %>">Raw blob</a></li>
|
9
|
-
</ul>
|
10
|
-
<%= breadcrumb(repository, ref, path) %>
|
11
|
-
<% commits.each do |commit| %>
|
12
|
-
<div class="gts-commit">
|
13
|
-
<p class="gts-log-message">
|
14
|
-
<span class="gts-commit-oid"><%= commit_oid(commit[:oid]) %></span>:
|
15
|
-
<%= commit[:summary] %>
|
16
|
-
</p>
|
17
|
-
<p>
|
18
|
-
<a class="event-author" href="/~">
|
19
|
-
<img width="24" height="24" src="<%= gravatar(commit[:author][:email]) %>" alt="avatar" class="gts-avatar">
|
20
|
-
<%= commit[:author][:name] %>
|
21
|
-
</a>
|
22
|
-
<span class="event-time"><%= commit[:date].strftime("%H:%M") %></span>
|
23
|
-
</p>
|
24
|
-
</div>
|
25
|
-
<% end %>
|
26
|
-
</div>
|
data/views/index.erb
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
<%#
|
2
|
-
# encoding: utf-8
|
3
|
-
#--
|
4
|
-
# Copyright (C) 2012 Gitorious AS
|
5
|
-
#
|
6
|
-
# This program is free software: you can redistribute it and/or modify
|
7
|
-
# it under the terms of the GNU Affero General Public License as published by
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
9
|
-
# (at your option) any later version.
|
10
|
-
#
|
11
|
-
# This program is distributed in the hope that it will be useful,
|
12
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
-
# GNU Affero General Public License for more details.
|
15
|
-
#
|
16
|
-
# You should have received a copy of the GNU Affero General Public License
|
17
|
-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
18
|
-
#++
|
19
|
-
%>
|
20
|
-
<h1><%= @title = "All repositories" %></h1>
|
21
|
-
<ul>
|
22
|
-
<% repositories.each do |repo| %>
|
23
|
-
<li><a href="/<%= repo %>/tree/master:"><%= repo %></a></li>
|
24
|
-
<% end %>
|
25
|
-
</ul>
|
data/views/layout.erb
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="en">
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<title><%= @title %></title>
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7
|
-
<link href="/css/gitorious.css" rel="stylesheet">
|
8
|
-
<link href="/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
9
|
-
<link href="/lib/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet">
|
10
|
-
</head>
|
11
|
-
<body>
|
12
|
-
<div class="gts-masthead navbar">
|
13
|
-
<div class="navbar-inner">
|
14
|
-
<div class="container">
|
15
|
-
<a class="gts-logo" href="/"><img src="/images/gitorious.png" alt="Gitorious" title="Gitorious"></a>
|
16
|
-
</div>
|
17
|
-
</div>
|
18
|
-
</div>
|
19
|
-
<br><br>
|
20
|
-
<div class="container">
|
21
|
-
<%= yield %>
|
22
|
-
</div>
|
23
|
-
<div class="footer">
|
24
|
-
<div class="container">
|
25
|
-
<p class="pull-right gts-powered-by">
|
26
|
-
<a href="http://gitorious.org">
|
27
|
-
<img alt="Powered by Gitorious" src="/images/powered-by.png" title="Powered by Gitorious">
|
28
|
-
</a>
|
29
|
-
</p>
|
30
|
-
<p>
|
31
|
-
Dolt is part of <a href="http://gitorious.org">Gitorious</a>. Dolt
|
32
|
-
(like Gitorious) is free software licensed under
|
33
|
-
the <a href="http://www.gnu.org/licenses/agpl-3.0.html">GNU Affero
|
34
|
-
General Public License (AGPL)</a> unless noted otherwise.
|
35
|
-
</p>
|
36
|
-
</div>
|
37
|
-
</div>
|
38
|
-
<script src="/dist/gts-ui-deps.js"></script>
|
39
|
-
<script src="/js/components/abbrev.js"></script>
|
40
|
-
<script src="/js/components/url.js"></script>
|
41
|
-
<script src="/js/components/ref-selector.js"></script>
|
42
|
-
<script src="/js/components/tree-history.js"></script>
|
43
|
-
<script src="/js/gitorious.js"></script>
|
44
|
-
</body>
|
45
|
-
</html>
|
data/views/raw.erb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
<%#
|
2
|
-
# encoding: utf-8
|
3
|
-
#--
|
4
|
-
# Copyright (C) 2012 Gitorious AS
|
5
|
-
#
|
6
|
-
# This program is free software: you can redistribute it and/or modify
|
7
|
-
# it under the terms of the GNU Affero General Public License as published by
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
9
|
-
# (at your option) any later version.
|
10
|
-
#
|
11
|
-
# This program is distributed in the hope that it will be useful,
|
12
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
-
# GNU Affero General Public License for more details.
|
15
|
-
#
|
16
|
-
# You should have received a copy of the GNU Affero General Public License
|
17
|
-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
18
|
-
#++
|
19
|
-
%><%= blob.content %>
|
data/views/refs.erb
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
<%#
|
2
|
-
# encoding: utf-8
|
3
|
-
#--
|
4
|
-
# Copyright (C) 2012 Gitorious AS
|
5
|
-
#
|
6
|
-
# This program is free software: you can redistribute it and/or modify
|
7
|
-
# it under the terms of the GNU Affero General Public License as published by
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
9
|
-
# (at your option) any later version.
|
10
|
-
#
|
11
|
-
# This program is distributed in the hope that it will be useful,
|
12
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
-
# GNU Affero General Public License for more details.
|
15
|
-
#
|
16
|
-
# You should have received a copy of the GNU Affero General Public License
|
17
|
-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
18
|
-
#++
|
19
|
-
%>{
|
20
|
-
"heads": [<%= heads.map { |n| "\"#{n}\"" }.join(",") %>],
|
21
|
-
"tags": [<%= tags.map { |n| "\"#{n}\"" }.join(",") %>]
|
22
|
-
}
|
data/views/tree.erb
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
<%#
|
2
|
-
# encoding: utf-8
|
3
|
-
#--
|
4
|
-
# Copyright (C) 2012 Gitorious AS
|
5
|
-
#
|
6
|
-
# This program is free software: you can redistribute it and/or modify
|
7
|
-
# it under the terms of the GNU Affero General Public License as published by
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
9
|
-
# (at your option) any later version.
|
10
|
-
#
|
11
|
-
# This program is distributed in the hope that it will be useful,
|
12
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
-
# GNU Affero General Public License for more details.
|
15
|
-
#
|
16
|
-
# You should have received a copy of the GNU Affero General Public License
|
17
|
-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
18
|
-
#++
|
19
|
-
%>
|
20
|
-
<%
|
21
|
-
@title = "#{path == '' ? './' : path} in #{ref}"
|
22
|
-
levels = accumulate_path(partition_path(path, respond_to?(:maxdepth) ? maxdepth : nil))
|
23
|
-
%>
|
24
|
-
<div id="gts-ref-selector-ph"></div>
|
25
|
-
<table class="table table-striped gts-tree-explorer" data-gts-tree-history="<%= tree_history_url(repository, ref, path) %>">
|
26
|
-
<thead>
|
27
|
-
<tr>
|
28
|
-
<th colspan="<%= tree_table_padding_width(levels) + 1 %>">File</th>
|
29
|
-
<th class="gts-col-changed">Changed</th>
|
30
|
-
<th class="gts-col-commit" colspan="2">Last commit</th>
|
31
|
-
</tr>
|
32
|
-
</thead>
|
33
|
-
<tbody>
|
34
|
-
<%= tree_context(repository, ref, levels) %>
|
35
|
-
<% tree_entries(tree).each do |object| %>
|
36
|
-
<tr>
|
37
|
-
<%= tree_table_padding_td(levels) %>
|
38
|
-
<td class="gts-name">
|
39
|
-
<a href="<%= object_url(repository, ref, path, object) %>">
|
40
|
-
<i class="icon <%= object_icon_class(object) %>"></i>
|
41
|
-
<%= object[:name] %>
|
42
|
-
</a>
|
43
|
-
</td>
|
44
|
-
<td class="gts-commit-date"></td>
|
45
|
-
<td class="gts-commit-oid"></td>
|
46
|
-
<td></td>
|
47
|
-
</tr>
|
48
|
-
<% end %>
|
49
|
-
</tbody>
|
50
|
-
</table>
|
data/views/tree_history.erb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
<%#
|
2
|
-
# encoding: utf-8
|
3
|
-
#--
|
4
|
-
# Copyright (C) 2012 Gitorious AS
|
5
|
-
#
|
6
|
-
# This program is free software: you can redistribute it and/or modify
|
7
|
-
# it under the terms of the GNU Affero General Public License as published by
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
9
|
-
# (at your option) any later version.
|
10
|
-
#
|
11
|
-
# This program is distributed in the hope that it will be useful,
|
12
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
-
# GNU Affero General Public License for more details.
|
15
|
-
#
|
16
|
-
# You should have received a copy of the GNU Affero General Public License
|
17
|
-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
18
|
-
#++
|
19
|
-
%><%= JSON.generate(tree) %>
|