libdolt 0.17.1 → 0.18.0

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.
@@ -17,5 +17,5 @@
17
17
  #++
18
18
 
19
19
  module Dolt
20
- VERSION = "0.17.1"
20
+ VERSION = "0.18.0"
21
21
  end
data/views/404.erb CHANGED
@@ -17,6 +17,8 @@
17
17
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
18
18
  #++
19
19
  %>
20
- <h1><%= @title = "No such path" %></h1>
21
- <h2><%= CGI::escapeElement(error.respond_to?(:message) ? error.message : error).gsub(/</, "&lt;") %></h2>
22
- <p><a href="<%= tree_url(repository_slug, ref, "") %>">Go back</a></p>
20
+ <div class="container gts-body">
21
+ <h1><%= @title = "No such path" %></h1>
22
+ <h2><%= CGI::escapeElement(error.respond_to?(:message) ? error.message : error).gsub(/</, "&lt;") %></h2>
23
+ <p><a href="<%= tree_url(repository_slug, ref, "") %>">Go back</a></p>
24
+ </div>
data/views/500.erb CHANGED
@@ -1,7 +1,7 @@
1
1
  <%#
2
2
  # encoding: utf-8
3
3
  #--
4
- # Copyright (C) 2012 Gitorious AS
4
+ # Copyright (C) 2012-2013 Gitorious AS
5
5
  #
6
6
  # This program is free software: you can redistribute it and/or modify
7
7
  # it under the terms of the GNU Affero General Public License as published by
@@ -17,11 +17,13 @@
17
17
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
18
18
  #++
19
19
  %>
20
- <h1><%= @title = "An error occurred" %></h1>
21
- <h2><%= CGI::escapeElement(error.respond_to?(:message) ? error.message : error).gsub(/</, "&lt;") %></h2>
22
- <% if error.respond_to?(:backtrace) && !error.backtrace.nil? %>
23
- <ul>
24
- <%= error.backtrace.map { |l| "<li>#{l}</li>" }.join("") %>
25
- </ul>
26
- <% end %>
27
- <p><a href="<%= tree_url(repository_slug, ref, "") %>">Go back</a></p>
20
+ <div class="container gts-body">
21
+ <h1><%= @title = "An error occurred" %></h1>
22
+ <h2><%= CGI::escapeElement(error.respond_to?(:message) ? error.message : error).gsub(/</, "&lt;") %></h2>
23
+ <% if error.respond_to?(:backtrace) && !error.backtrace.nil? %>
24
+ <ul>
25
+ <%= error.backtrace.map { |l| "<li>#{l}</li>" }.join("") %>
26
+ </ul>
27
+ <% end %>
28
+ <p><a href="<%= tree_url(repository_slug, ref, "") %>">Go back</a></p>
29
+ </div>
data/views/blame.erb CHANGED
@@ -1,7 +1,7 @@
1
1
  <%#
2
2
  # encoding: utf-8
3
3
  #--
4
- # Copyright (C) 2012 Gitorious AS
4
+ # Copyright (C) 2012-2013 Gitorious AS
5
5
  #
6
6
  # This program is free software: you can redistribute it and/or modify
7
7
  # it under the terms of the GNU Affero General Public License as published by
@@ -17,26 +17,28 @@
17
17
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
18
18
  #++
19
19
  %>
20
- <% @title = "Blame #{path} in #{repository_slug}:master" %>
20
+ <div class="container gts-body">
21
+ <% @title = "Blame #{path} in #{repository_slug}:master" %>
21
22
 
22
- <div class="gts-file gts-browser">
23
- <div id="gts-ref-selector-ph"></div>
24
- <ul class="pull-right gts-blob-view">
25
- <li><a href="<%= blob_url(repository_slug, ref, path) %>">Blob content</a></li>
26
- <li class="active">Blame</li>
27
- <li><a href="<%= history_url(repository_slug, ref, path) %>">History</a></li>
28
- <li><a href="<%= raw_url(repository_slug, ref, path) %>">Raw blob</a></li>
29
- </ul>
30
- <%= breadcrumb(repository_slug, ref, path) %>
31
- <table class="gts-code-listing">
32
- <% annotations = blame_annotations(blame) %>
33
- <% lines = blame_lines(path, blame) %>
34
- <% annotations.length.times do |i| %>
35
- <tr>
36
- <%= blame_annotation_cell(annotations[i]) %>
37
- <td class="linenum L<%= i + 1 %>"><%= i + 1 %></td>
38
- <%= blame_code_cell(lines[i]) %>
39
- </tr>
40
- <% end %>
41
- </table>
23
+ <div class="gts-file gts-browser">
24
+ <div id="gts-ref-selector-ph"></div>
25
+ <ul class="pull-right gts-blob-view">
26
+ <li><a href="<%= blob_url(repository_slug, ref, path) %>">Blob content</a></li>
27
+ <li class="active">Blame</li>
28
+ <li><a href="<%= history_url(repository_slug, ref, path) %>">History</a></li>
29
+ <li><a href="<%= raw_url(repository_slug, ref, path) %>">Raw blob</a></li>
30
+ </ul>
31
+ <%= breadcrumb(repository_slug, ref, path) %>
32
+ <table class="gts-code-listing">
33
+ <% annotations = blame_annotations(blame) %>
34
+ <% lines = blame_lines(path, blame) %>
35
+ <% annotations.length.times do |i| %>
36
+ <tr>
37
+ <%= blame_annotation_cell(annotations[i]) %>
38
+ <td class="linenum L<%= i + 1 %>"><%= i + 1 %></td>
39
+ <%= blame_code_cell(lines[i]) %>
40
+ </tr>
41
+ <% end %>
42
+ </table>
43
+ </div>
42
44
  </div>
data/views/blob.erb CHANGED
@@ -1,7 +1,7 @@
1
1
  <%#
2
2
  # encoding: utf-8
3
3
  #--
4
- # Copyright (C) 2012 Gitorious AS
4
+ # Copyright (C) 2012-2013 Gitorious AS
5
5
  #
6
6
  # This program is free software: you can redistribute it and/or modify
7
7
  # it under the terms of the GNU Affero General Public License as published by
@@ -17,15 +17,17 @@
17
17
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
18
18
  #++
19
19
  %>
20
- <% @title = "#{path} in #{repository_slug}: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_slug, ref, path) %>">Blame</a></li>
26
- <li><a href="<%= history_url(repository_slug, ref, path) %>">History</a></li>
27
- <li><a href="<%= raw_url(repository_slug, ref, path) %>">Raw blob</a></li>
28
- </ul>
29
- <%= breadcrumb(repository_slug, ref, path) %>
30
- <%= format_blob(path, blob.text(nil, Encoding.default_external), repository_slug, ref) %>
20
+ <div class="container gts-body">
21
+ <% @title = "#{path} in #{repository_slug}:master" %>
22
+ <div class="gts-file gts-browser">
23
+ <div id="gts-ref-selector-ph"></div>
24
+ <ul class="pull-right gts-blob-view">
25
+ <li class="active">Blob content</li>
26
+ <li><a href="<%= blame_url(repository_slug, ref, path) %>">Blame</a></li>
27
+ <li><a href="<%= history_url(repository_slug, ref, path) %>">History</a></li>
28
+ <li><a href="<%= raw_url(repository_slug, ref, path) %>">Raw blob</a></li>
29
+ </ul>
30
+ <%= breadcrumb(repository_slug, ref, path) %>
31
+ <%= format_blob(path, blob.text(nil, Encoding.default_external), repository_slug, ref) %>
32
+ </div>
31
33
  </div>
data/views/commits.erb CHANGED
@@ -1,26 +1,47 @@
1
+ <%#
2
+ # encoding: utf-8
3
+ #--
4
+ # Copyright (C) 2012-2013 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
+ %>
1
20
  <% @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_slug, ref, path) %>">Blob content</a></li>
6
- <li><a href="<%= blame_url(repository_slug, ref, path) %>">Blame</a></li>
7
- <li class="active">History</li>
8
- <li><a href="<%= raw_url(repository_slug, ref, path) %>">Raw blob</a></li>
9
- </ul>
10
- <%= breadcrumb(repository_slug, ref, path) %>
11
- <% commits.each do |commit| %>
12
- <div class="gts-commit">
13
- <p class="gts-log-message">
14
- <span class="gts-commit-oid" data-gts-commit-oid="<%= 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 %>
21
+ <div class="container gts-body">
22
+ <div class="gts-browser">
23
+ <div id="gts-ref-selector-ph"></div>
24
+ <ul class="pull-right gts-blob-view">
25
+ <li><a href="<%= blob_url(repository_slug, ref, path) %>">Blob content</a></li>
26
+ <li><a href="<%= blame_url(repository_slug, ref, path) %>">Blame</a></li>
27
+ <li class="active">History</li>
28
+ <li><a href="<%= raw_url(repository_slug, ref, path) %>">Raw blob</a></li>
29
+ </ul>
30
+ <%= breadcrumb(repository_slug, ref, path) %>
31
+ <% commits.each do |commit| %>
32
+ <div class="gts-commit">
33
+ <p class="gts-log-message">
34
+ <span class="gts-commit-oid" data-gts-commit-oid="<%= commit[:oid] %>"><%= commit_oid(commit[:oid]) %></span>:
35
+ <%= commit[:summary] %>
36
+ </p>
37
+ <p>
38
+ <a class="event-author" href="/~">
39
+ <img width="24" height="24" src="<%= gravatar(commit[:author][:email]) %>" alt="avatar" class="gts-avatar">
40
+ <%= commit[:author][:name] %>
41
+ </a>
42
+ <span class="event-time"><%= commit[:date].strftime("%H:%M") %></span>
43
+ </p>
44
+ </div>
45
+ <% end %>
46
+ </div>
26
47
  </div>
data/views/index.erb CHANGED
@@ -1,7 +1,7 @@
1
1
  <%#
2
2
  # encoding: utf-8
3
3
  #--
4
- # Copyright (C) 2012 Gitorious AS
4
+ # Copyright (C) 2012-2013 Gitorious AS
5
5
  #
6
6
  # This program is free software: you can redistribute it and/or modify
7
7
  # it under the terms of the GNU Affero General Public License as published by
@@ -17,9 +17,11 @@
17
17
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
18
18
  #++
19
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>
20
+ <div class="container gts-body">
21
+ <h1><%= @title = "All repositories" %></h1>
22
+ <ul>
23
+ <% repositories.each do |repo| %>
24
+ <li><a href="/<%= repo %>/tree/master:"><%= repo %></a></li>
25
+ <% end %>
26
+ </ul>
27
+ </div>
data/views/layout.erb CHANGED
@@ -1,4 +1,22 @@
1
- <!DOCTYPE html>
1
+ <%#
2
+ # encoding: utf-8
3
+ #--
4
+ # Copyright (C) 2012-2013 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
+ %><!DOCTYPE html>
2
20
  <html lang="en">
3
21
  <head>
4
22
  <meta charset="utf-8">
@@ -17,9 +35,7 @@
17
35
  </div>
18
36
  </div>
19
37
  <br><br>
20
- <div class="container">
21
- <%= yield %>
22
- </div>
38
+ <%= yield %>
23
39
  <div class="footer">
24
40
  <div class="container">
25
41
  <p class="pull-right gts-powered-by">
data/views/raw.erb CHANGED
@@ -1,7 +1,7 @@
1
1
  <%#
2
2
  # encoding: utf-8
3
3
  #--
4
- # Copyright (C) 2012 Gitorious AS
4
+ # Copyright (C) 2012-2013 Gitorious AS
5
5
  #
6
6
  # This program is free software: you can redistribute it and/or modify
7
7
  # it under the terms of the GNU Affero General Public License as published by
@@ -16,4 +16,5 @@
16
16
  # You should have received a copy of the GNU Affero General Public License
17
17
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
18
18
  #++
19
- %><%= blob.content %>
19
+ %>
20
+ <div class="container gts-body"><%= blob.content %></div>
data/views/tree.erb CHANGED
@@ -1,7 +1,7 @@
1
1
  <%#
2
2
  # encoding: utf-8
3
3
  #--
4
- # Copyright (C) 2012 Gitorious AS
4
+ # Copyright (C) 2012-2013 Gitorious AS
5
5
  #
6
6
  # This program is free software: you can redistribute it and/or modify
7
7
  # it under the terms of the GNU Affero General Public License as published by
@@ -17,34 +17,36 @@
17
17
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
18
18
  #++
19
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_slug, 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_slug, ref, levels) %>
35
- <% tree_entries(tree).each do |object| %>
20
+ <div class="container gts-body">
21
+ <%
22
+ @title = "#{path == '' ? './' : path} in #{ref}"
23
+ levels = accumulate_path(partition_path(path, respond_to?(:maxdepth) ? maxdepth : nil))
24
+ %>
25
+ <div id="gts-ref-selector-ph"></div>
26
+ <table class="table table-striped gts-tree-explorer" data-gts-tree-history="<%= tree_history_url(repository_slug, ref, path) %>">
27
+ <thead>
36
28
  <tr>
37
- <%= tree_table_padding_td(levels) %>
38
- <td class="gts-name">
39
- <a href="<%= object_url(repository_slug, 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>
29
+ <th colspan="<%= tree_table_padding_width(levels) + 1 %>">File</th>
30
+ <th class="gts-col-changed">Changed</th>
31
+ <th class="gts-col-commit" colspan="2">Last commit</th>
47
32
  </tr>
48
- <% end %>
49
- </tbody>
50
- </table>
33
+ </thead>
34
+ <tbody>
35
+ <%= tree_context(repository_slug, ref, levels) %>
36
+ <% tree_entries(tree).each do |object| %>
37
+ <tr>
38
+ <%= tree_table_padding_td(levels) %>
39
+ <td class="gts-name">
40
+ <a href="<%= object_url(repository_slug, ref, path, object) %>">
41
+ <i class="icon <%= object_icon_class(object) %>"></i>
42
+ <%= object[:name] %>
43
+ </a>
44
+ </td>
45
+ <td class="gts-commit-date"></td>
46
+ <td class="gts-commit-oid"></td>
47
+ <td></td>
48
+ </tr>
49
+ <% end %>
50
+ </tbody>
51
+ </table>
52
+ </div>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libdolt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.1
4
+ version: 0.18.0
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-31 00:00:00.000000000 Z
12
+ date: 2013-06-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rugged