libdolt 0.19.0 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- libdolt (0.18.0)
4
+ libdolt (0.20.0)
5
5
  htmlentities (~> 4.3)
6
6
  json (~> 1.7)
7
7
  makeup (~> 0.2)
@@ -17,5 +17,5 @@
17
17
  #++
18
18
 
19
19
  module Dolt
20
- VERSION = "0.19.0"
20
+ VERSION = "0.20.0"
21
21
  end
@@ -70,7 +70,7 @@ The content you're attempting to browse appears to be binary.
70
70
  end
71
71
 
72
72
  "<pre class=\"#{class_names.join(' ')}\">" +
73
- "<ol class=\"linenums\">#{lines}</ol></pre>"
73
+ "<ol class=\"linenums gts-lines\">#{lines}</ol></pre>"
74
74
  end
75
75
  end
76
76
  end
@@ -22,6 +22,10 @@ module Dolt
22
22
  def repo_url(repository, url)
23
23
  "/#{repository}#{url}"
24
24
  end
25
+
26
+ def refs_url(repository)
27
+ "/#{repository}/refs"
28
+ end
25
29
  end
26
30
  end
27
31
  end
@@ -22,6 +22,10 @@ module Dolt
22
22
  def repo_url(repository, url)
23
23
  url
24
24
  end
25
+
26
+ def refs_url(repository)
27
+ "/refs"
28
+ end
25
29
  end
26
30
  end
27
31
  end
@@ -47,7 +47,7 @@ describe "tree template" do
47
47
  markup = render("app/models", tree)
48
48
 
49
49
  assert_match /<table class="table table-striped gts-tree-explorer"/, markup
50
- assert_match /data-gts-tree-history="/, markup
50
+ assert_match /data-gts-env-tree-history-url="/, markup
51
51
  end
52
52
 
53
53
  it "renders context for non-empty tree" do
data/views/blame.erb CHANGED
@@ -21,7 +21,7 @@
21
21
  <% @title = "Blame #{path} in #{repository_slug}:master" %>
22
22
 
23
23
  <div class="gts-file gts-browser">
24
- <div id="gts-ref-selector-ph"></div>
24
+ <div class="gts-ref-selector-ph"></div>
25
25
  <ul class="pull-right gts-blob-view">
26
26
  <li><a href="<%= blob_url(repository_slug, ref, path) %>">Blob content</a></li>
27
27
  <li class="active">Blame</li>
data/views/blob.erb CHANGED
@@ -20,7 +20,7 @@
20
20
  <div class="container gts-body">
21
21
  <% @title = "#{path} in #{repository_slug}:master" %>
22
22
  <div class="gts-file gts-browser">
23
- <div id="gts-ref-selector-ph"></div>
23
+ <div class="gts-ref-selector-ph"></div>
24
24
  <ul class="pull-right gts-blob-view">
25
25
  <li class="active">Blob content</li>
26
26
  <li><a href="<%= blame_url(repository_slug, ref, path) %>">Blame</a></li>
data/views/commits.erb CHANGED
@@ -20,7 +20,7 @@
20
20
  <% @title = "History of #{path}" %>
21
21
  <div class="container gts-body">
22
22
  <div class="gts-browser">
23
- <div id="gts-ref-selector-ph"></div>
23
+ <div class="gts-ref-selector-ph"></div>
24
24
  <ul class="pull-right gts-blob-view">
25
25
  <li><a href="<%= blob_url(repository_slug, ref, path) %>">Blob content</a></li>
26
26
  <li><a href="<%= blame_url(repository_slug, ref, path) %>">Blame</a></li>
data/views/layout.erb CHANGED
@@ -22,7 +22,7 @@
22
22
  <meta charset="utf-8">
23
23
  <title><%= @title %></title>
24
24
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
25
- <link href="/css/gitorious.css" rel="stylesheet">
25
+ <link href="/dist/gitorious3.min.css" rel="stylesheet">
26
26
  <link href="/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
27
27
  <link href="/lib/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet">
28
28
  </head>
@@ -30,7 +30,7 @@
30
30
  <div class="gts-masthead navbar">
31
31
  <div class="navbar-inner">
32
32
  <div class="container">
33
- <a class="gts-logo" href="/"><img src="/images/gitorious.png" alt="Gitorious" title="Gitorious"></a>
33
+ <a class="gts-logo" href="/"><img src="/images/gitorious2013.png" alt="Gitorious" title="Gitorious"></a>
34
34
  </div>
35
35
  </div>
36
36
  </div>
@@ -44,18 +44,16 @@
44
44
  </a>
45
45
  </p>
46
46
  <p>
47
- Dolt is part of <a href="http://gitorious.org">Gitorious</a>. Dolt
47
+ Dolt is part of <a href="http://getgitorious.com">Gitorious</a>. Dolt
48
48
  (like Gitorious) is free software licensed under
49
49
  the <a href="http://www.gnu.org/licenses/agpl-3.0.html">GNU Affero
50
50
  General Public License (AGPL)</a> unless noted otherwise.
51
51
  </p>
52
52
  </div>
53
53
  </div>
54
- <script src="/dist/gts-ui-deps.js"></script>
55
- <script src="/js/components/abbrev.js"></script>
56
- <script src="/js/components/url.js"></script>
57
- <script src="/js/components/ref-selector.js"></script>
58
- <script src="/js/components/tree-history.js"></script>
59
- <script src="/js/gitorious.js"></script>
54
+ <% if defined?(repository_slug) %>
55
+ <script data-gts-env-repository-refs-url="<%= refs_url(repository_slug) %>"></script>
56
+ <% end %>
57
+ <script src="/dist/gitorious3.min.js"></script>
60
58
  </body>
61
59
  </html>
data/views/tree.erb CHANGED
@@ -22,8 +22,8 @@
22
22
  @title = "#{path == '' ? './' : path} in #{ref}"
23
23
  levels = accumulate_path(partition_path(path, respond_to?(:maxdepth) ? maxdepth : nil))
24
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) %>">
25
+ <div class="gts-ref-selector-ph"></div>
26
+ <table class="table table-striped gts-tree-explorer" data-gts-env-tree-history-url="<%= tree_history_url(repository_slug, ref, path) %>">
27
27
  <thead>
28
28
  <tr>
29
29
  <th colspan="<%= tree_table_padding_width(levels) + 1 %>">File</th>
metadata CHANGED
@@ -1,24 +1,25 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libdolt
3
3
  version: !ruby/object:Gem::Version
4
+ version: 0.20.0
4
5
  prerelease:
5
- version: 0.19.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Christian Johansen
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-11 00:00:00.000000000 Z
12
+ date: 2013-06-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- type: :runtime
15
+ name: rugged
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
21
  version: 0.17.0.b6
22
+ type: :runtime
22
23
  prerelease: false
23
24
  version_requirements: !ruby/object:Gem::Requirement
24
25
  none: false
@@ -26,15 +27,15 @@ dependencies:
26
27
  - - '='
27
28
  - !ruby/object:Gem::Version
28
29
  version: 0.17.0.b6
29
- name: rugged
30
30
  - !ruby/object:Gem::Dependency
31
- type: :runtime
31
+ name: tzinfo
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
35
  - - ~>
36
36
  - !ruby/object:Gem::Version
37
37
  version: '0.3'
38
+ type: :runtime
38
39
  prerelease: false
39
40
  version_requirements: !ruby/object:Gem::Requirement
40
41
  none: false
@@ -42,15 +43,15 @@ dependencies:
42
43
  - - ~>
43
44
  - !ruby/object:Gem::Version
44
45
  version: '0.3'
45
- name: tzinfo
46
46
  - !ruby/object:Gem::Dependency
47
- type: :runtime
47
+ name: makeup
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  none: false
50
50
  requirements:
51
51
  - - ~>
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0.2'
54
+ type: :runtime
54
55
  prerelease: false
55
56
  version_requirements: !ruby/object:Gem::Requirement
56
57
  none: false
@@ -58,15 +59,15 @@ dependencies:
58
59
  - - ~>
59
60
  - !ruby/object:Gem::Version
60
61
  version: '0.2'
61
- name: makeup
62
62
  - !ruby/object:Gem::Dependency
63
- type: :runtime
63
+ name: htmlentities
64
64
  requirement: !ruby/object:Gem::Requirement
65
65
  none: false
66
66
  requirements:
67
67
  - - ~>
68
68
  - !ruby/object:Gem::Version
69
69
  version: '4.3'
70
+ type: :runtime
70
71
  prerelease: false
71
72
  version_requirements: !ruby/object:Gem::Requirement
72
73
  none: false
@@ -74,15 +75,15 @@ dependencies:
74
75
  - - ~>
75
76
  - !ruby/object:Gem::Version
76
77
  version: '4.3'
77
- name: htmlentities
78
78
  - !ruby/object:Gem::Dependency
79
- type: :runtime
79
+ name: json
80
80
  requirement: !ruby/object:Gem::Requirement
81
81
  none: false
82
82
  requirements:
83
83
  - - ~>
84
84
  - !ruby/object:Gem::Version
85
85
  version: '1.7'
86
+ type: :runtime
86
87
  prerelease: false
87
88
  version_requirements: !ruby/object:Gem::Requirement
88
89
  none: false
@@ -90,15 +91,15 @@ dependencies:
90
91
  - - ~>
91
92
  - !ruby/object:Gem::Version
92
93
  version: '1.7'
93
- name: json
94
94
  - !ruby/object:Gem::Dependency
95
- type: :runtime
95
+ name: mime-types
96
96
  requirement: !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements:
99
99
  - - ~>
100
100
  - !ruby/object:Gem::Version
101
101
  version: '1.19'
102
+ type: :runtime
102
103
  prerelease: false
103
104
  version_requirements: !ruby/object:Gem::Requirement
104
105
  none: false
@@ -106,15 +107,15 @@ dependencies:
106
107
  - - ~>
107
108
  - !ruby/object:Gem::Version
108
109
  version: '1.19'
109
- name: mime-types
110
110
  - !ruby/object:Gem::Dependency
111
- type: :development
111
+ name: minitest
112
112
  requirement: !ruby/object:Gem::Requirement
113
113
  none: false
114
114
  requirements:
115
115
  - - ~>
116
116
  - !ruby/object:Gem::Version
117
117
  version: '2.0'
118
+ type: :development
118
119
  prerelease: false
119
120
  version_requirements: !ruby/object:Gem::Requirement
120
121
  none: false
@@ -122,15 +123,15 @@ dependencies:
122
123
  - - ~>
123
124
  - !ruby/object:Gem::Version
124
125
  version: '2.0'
125
- name: minitest
126
126
  - !ruby/object:Gem::Dependency
127
- type: :development
127
+ name: rake
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
131
131
  - - ~>
132
132
  - !ruby/object:Gem::Version
133
133
  version: '0.9'
134
+ type: :development
134
135
  prerelease: false
135
136
  version_requirements: !ruby/object:Gem::Requirement
136
137
  none: false
@@ -138,15 +139,15 @@ dependencies:
138
139
  - - ~>
139
140
  - !ruby/object:Gem::Version
140
141
  version: '0.9'
141
- name: rake
142
142
  - !ruby/object:Gem::Dependency
143
- type: :development
143
+ name: redcarpet
144
144
  requirement: !ruby/object:Gem::Requirement
145
145
  none: false
146
146
  requirements:
147
147
  - - '='
148
148
  - !ruby/object:Gem::Version
149
149
  version: 2.2.0
150
+ type: :development
150
151
  prerelease: false
151
152
  version_requirements: !ruby/object:Gem::Requirement
152
153
  none: false
@@ -154,15 +155,15 @@ dependencies:
154
155
  - - '='
155
156
  - !ruby/object:Gem::Version
156
157
  version: 2.2.0
157
- name: redcarpet
158
158
  - !ruby/object:Gem::Dependency
159
- type: :development
159
+ name: tiltout
160
160
  requirement: !ruby/object:Gem::Requirement
161
161
  none: false
162
162
  requirements:
163
163
  - - ~>
164
164
  - !ruby/object:Gem::Version
165
165
  version: '1.4'
166
+ type: :development
166
167
  prerelease: false
167
168
  version_requirements: !ruby/object:Gem::Requirement
168
169
  none: false
@@ -170,15 +171,15 @@ dependencies:
170
171
  - - ~>
171
172
  - !ruby/object:Gem::Version
172
173
  version: '1.4'
173
- name: tiltout
174
174
  - !ruby/object:Gem::Dependency
175
- type: :development
175
+ name: mocha
176
176
  requirement: !ruby/object:Gem::Requirement
177
177
  none: false
178
178
  requirements:
179
179
  - - ! '>='
180
180
  - !ruby/object:Gem::Version
181
181
  version: '0'
182
+ type: :development
182
183
  prerelease: false
183
184
  version_requirements: !ruby/object:Gem::Requirement
184
185
  none: false
@@ -186,7 +187,6 @@ dependencies:
186
187
  - - ! '>='
187
188
  - !ruby/object:Gem::Version
188
189
  version: '0'
189
- name: mocha
190
190
  description: Dolt API for serving git trees and syntax highlighted blobs
191
191
  email:
192
192
  - christian@gitorious.org
@@ -306,3 +306,4 @@ signing_key:
306
306
  specification_version: 3
307
307
  summary: Dolt API for serving git trees and syntax highlighted blobs
308
308
  test_files: []
309
+ has_rdoc: