dolt 0.29.0 → 0.30.0
Sign up to get free protection for your applications and to get access to all the features.
- data/dolt.gemspec +1 -1
- data/lib/dolt/sinatra/multi_repo_browser.rb +11 -31
- data/lib/dolt/sinatra/repo_browser.rb +47 -0
- data/lib/dolt/sinatra/single_repo_browser.rb +15 -29
- metadata +4 -75
- data/vendor/ui/.gitignore +0 -4
- data/vendor/ui/.gitmodules +0 -39
- data/vendor/ui/Makefile +0 -48
- data/vendor/ui/autolint.js +0 -13
- data/vendor/ui/buster.js +0 -31
- data/vendor/ui/css/gitorious.css +0 -660
- data/vendor/ui/css/syntax-highlight.css +0 -140
- data/vendor/ui/dist/gitorious3-capillary.min.js +0 -12
- data/vendor/ui/dist/gitorious3.min.css +0 -1
- data/vendor/ui/dist/gitorious3.min.js +0 -3
- data/vendor/ui/favicon.ico +0 -0
- data/vendor/ui/iconic/lock_stroke.svg +0 -17
- data/vendor/ui/images/f5f5f5-980x1.png +0 -0
- data/vendor/ui/images/gitorious.png +0 -0
- data/vendor/ui/images/gitorious2013.png +0 -0
- data/vendor/ui/images/powered-by.png +0 -0
- data/vendor/ui/images/white-980x1.png +0 -0
- data/vendor/ui/js/src/app.js +0 -20
- data/vendor/ui/js/src/cache.js +0 -27
- data/vendor/ui/js/src/capillary.js +0 -7
- data/vendor/ui/js/src/components/abbrev.js +0 -24
- data/vendor/ui/js/src/components/blob.js +0 -154
- data/vendor/ui/js/src/components/capillary.js +0 -51
- data/vendor/ui/js/src/components/clone-name-suggestion.js +0 -38
- data/vendor/ui/js/src/components/clone-url-selection.js +0 -35
- data/vendor/ui/js/src/components/collapse.js +0 -17
- data/vendor/ui/js/src/components/comments.js +0 -111
- data/vendor/ui/js/src/components/commit-linker.js +0 -26
- data/vendor/ui/js/src/components/dropdown.js +0 -74
- data/vendor/ui/js/src/components/ganalytics.js +0 -19
- data/vendor/ui/js/src/components/live-markdown-preview.js +0 -35
- data/vendor/ui/js/src/components/loading.js +0 -33
- data/vendor/ui/js/src/components/oid-ref-interpolator.js +0 -9
- data/vendor/ui/js/src/components/profile-menu.js +0 -36
- data/vendor/ui/js/src/components/rails-links.js +0 -24
- data/vendor/ui/js/src/components/ref-selector.js +0 -116
- data/vendor/ui/js/src/components/repository.js +0 -162
- data/vendor/ui/js/src/components/select-details.js +0 -20
- data/vendor/ui/js/src/components/slugify.js +0 -32
- data/vendor/ui/js/src/components/timeago.js +0 -38
- data/vendor/ui/js/src/components/tree-history.js +0 -140
- data/vendor/ui/js/src/components/url.js +0 -65
- data/vendor/ui/js/src/components/user-repo-view-state.js +0 -4
- data/vendor/ui/js/src/gitorious.js +0 -171
- data/vendor/ui/js/src/json-request.js +0 -6
- data/vendor/ui/js/src/logger.js +0 -84
- data/vendor/ui/js/src/spacer.js +0 -5
- data/vendor/ui/js/test-libs/jquery-1.9.1.min.js +0 -5
- data/vendor/ui/js/test/cache-test.js +0 -47
- data/vendor/ui/js/test/components/abbrev-test.js +0 -22
- data/vendor/ui/js/test/components/blob-test.js +0 -90
- data/vendor/ui/js/test/components/clone-name-suggestion-test.js +0 -37
- data/vendor/ui/js/test/components/clone-url-selection-test.js +0 -25
- data/vendor/ui/js/test/components/comments-test.js +0 -139
- data/vendor/ui/js/test/components/commit-linker-test.js +0 -46
- data/vendor/ui/js/test/components/live-markdown-preview-test.js +0 -37
- data/vendor/ui/js/test/components/profile-menu-test.js +0 -46
- data/vendor/ui/js/test/components/ref-selector-test.js +0 -140
- data/vendor/ui/js/test/components/repository-admin-test.js +0 -37
- data/vendor/ui/js/test/components/repository-watching-test.js +0 -74
- data/vendor/ui/js/test/components/timeago-test.js +0 -74
- data/vendor/ui/js/test/components/tree-history-test.js +0 -324
- data/vendor/ui/js/test/components/url-template-test.js +0 -65
- data/vendor/ui/js/test/test-helper.js +0 -2
- data/vendor/ui/lib/bootstrap/css/bootstrap-responsive.min.css +0 -9
- data/vendor/ui/lib/bootstrap/css/bootstrap.min.css +0 -9
- data/vendor/ui/lib/bootstrap/img/glyphicons-halflings-white.png +0 -0
- data/vendor/ui/lib/bootstrap/img/glyphicons-halflings.png +0 -0
- data/vendor/ui/lib/bootstrap/js/bootstrap.min.js +0 -6
- data/vendor/ui/package.json +0 -21
- data/vendor/ui/todo.org +0 -4
data/dolt.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#--
|
3
|
-
# Copyright (C) 2012 Gitorious AS
|
3
|
+
# Copyright (C) 2012-2013 Gitorious AS
|
4
4
|
#
|
5
5
|
# This program is free software: you can redistribute it and/or modify
|
6
6
|
# it under the terms of the GNU Affero General Public License as published by
|
@@ -15,27 +15,18 @@
|
|
15
15
|
# You should have received a copy of the GNU Affero General Public License
|
16
16
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
17
17
|
#++
|
18
|
-
require "sinatra/
|
19
|
-
require "dolt/sinatra/actions"
|
18
|
+
require "dolt/sinatra/repo_browser"
|
20
19
|
require "libdolt/view/multi_repository"
|
21
|
-
require "libdolt/view/blob"
|
22
|
-
require "libdolt/view/tree"
|
23
20
|
|
24
21
|
module Dolt
|
25
22
|
module Sinatra
|
26
|
-
class MultiRepoBrowser <
|
23
|
+
class MultiRepoBrowser < RepoBrowser
|
27
24
|
include Dolt::View::MultiRepository
|
28
|
-
include Dolt::View::Blob
|
29
|
-
include Dolt::View::Tree
|
30
25
|
|
31
|
-
def
|
32
|
-
|
33
|
-
@renderer = renderer
|
34
|
-
super()
|
26
|
+
def self.repo_ref_path_pattern(action)
|
27
|
+
%r{/([^/]+)/#{action}/([^:]+)(?::|%3(?:a|A))(.*)}
|
35
28
|
end
|
36
29
|
|
37
|
-
not_found { renderer.render("404") }
|
38
|
-
|
39
30
|
get "/" do
|
40
31
|
response["Content-Type"] = "text/html"
|
41
32
|
body(renderer.render(:index, { :repositories => lookup.repositories }))
|
@@ -45,9 +36,8 @@ module Dolt
|
|
45
36
|
redirect "/#{params[:repo]}/tree/HEAD:"
|
46
37
|
end
|
47
38
|
|
48
|
-
get "/*/tree/*:*
|
39
|
+
get repo_ref_path_pattern('tree') do |repo, ref, path| # "/*/tree/*:*
|
49
40
|
begin
|
50
|
-
repo, ref, path = params[:splat]
|
51
41
|
dolt.tree(repo, ref, path)
|
52
42
|
rescue Exception => err
|
53
43
|
dolt.render_error(err, repo, ref)
|
@@ -58,9 +48,8 @@ module Dolt
|
|
58
48
|
dolt.force_ref(params[:splat], "tree", "HEAD")
|
59
49
|
end
|
60
50
|
|
61
|
-
get "/*/blob/*:*
|
51
|
+
get repo_ref_path_pattern('blob') do |repo, ref, path| # "/*/blob/*:*
|
62
52
|
begin
|
63
|
-
repo, ref, path = params[:splat]
|
64
53
|
dolt.blob(repo, ref, path)
|
65
54
|
rescue Exception => err
|
66
55
|
dolt.render_error(err, repo, ref)
|
@@ -71,9 +60,8 @@ module Dolt
|
|
71
60
|
dolt.force_ref(params[:splat], "blob", "HEAD")
|
72
61
|
end
|
73
62
|
|
74
|
-
get "/*/raw/*:*
|
63
|
+
get repo_ref_path_pattern('raw') do |repo, ref, path| # "/*/raw/*:*
|
75
64
|
begin
|
76
|
-
repo, ref, path = params[:splat]
|
77
65
|
dolt.raw(repo, ref, path)
|
78
66
|
rescue Exception => err
|
79
67
|
dolt.render_error(err, repo, ref)
|
@@ -84,9 +72,8 @@ module Dolt
|
|
84
72
|
dolt.force_ref(params[:splat], "raw", "HEAD")
|
85
73
|
end
|
86
74
|
|
87
|
-
get "/*/blame/*:*
|
75
|
+
get repo_ref_path_pattern('blame') do |repo, ref, path| # "/*/blame/*:*
|
88
76
|
begin
|
89
|
-
repo, ref, path = params[:splat]
|
90
77
|
dolt.blame(repo, ref, path)
|
91
78
|
rescue Exception => err
|
92
79
|
dolt.render_error(err, repo, ref)
|
@@ -97,9 +84,8 @@ module Dolt
|
|
97
84
|
dolt.force_ref(params[:splat], "blame", "HEAD")
|
98
85
|
end
|
99
86
|
|
100
|
-
get "/*/history/*:*
|
87
|
+
get repo_ref_path_pattern('history') do |repo, ref, path| # "/*/history/*:*
|
101
88
|
begin
|
102
|
-
repo, ref, path = params[:splat]
|
103
89
|
dolt.history(repo, ref, path, (params[:commit_count] || 20).to_i)
|
104
90
|
rescue Exception => err
|
105
91
|
dolt.render_error(err, repo, ref)
|
@@ -118,9 +104,8 @@ module Dolt
|
|
118
104
|
end
|
119
105
|
end
|
120
106
|
|
121
|
-
get "/*/tree_history/*:*
|
107
|
+
get repo_ref_path_pattern('tree_history') do |repo, ref, path| # "/*/tree_history/*:*
|
122
108
|
begin
|
123
|
-
repo, ref, path = params[:splat]
|
124
109
|
dolt.tree_history(repo, ref, path)
|
125
110
|
rescue Exception => err
|
126
111
|
dolt.render_error(err, repo, ref)
|
@@ -128,11 +113,6 @@ module Dolt
|
|
128
113
|
end
|
129
114
|
|
130
115
|
private
|
131
|
-
attr_reader :repo, :lookup, :renderer
|
132
|
-
|
133
|
-
def dolt
|
134
|
-
@dolt ||= Dolt::Sinatra::Actions.new(self, lookup, renderer)
|
135
|
-
end
|
136
116
|
|
137
117
|
def force_ref(args, action, ref)
|
138
118
|
redirect(args.shift + "/#{action}/#{ref}:" + args.join)
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
#--
|
3
|
+
# Copyright (C) 2013 Gitorious AS
|
4
|
+
#
|
5
|
+
# This program is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU Affero General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
#
|
10
|
+
# This program is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU Affero General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU Affero General Public License
|
16
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
17
|
+
#++
|
18
|
+
require "sinatra/base"
|
19
|
+
require "dolt/sinatra/actions"
|
20
|
+
require "libdolt/view/blob"
|
21
|
+
require "libdolt/view/tree"
|
22
|
+
|
23
|
+
module Dolt
|
24
|
+
module Sinatra
|
25
|
+
class RepoBrowser < ::Sinatra::Base
|
26
|
+
include Dolt::View::Blob
|
27
|
+
include Dolt::View::Tree
|
28
|
+
|
29
|
+
not_found { renderer.render("404") }
|
30
|
+
|
31
|
+
def initialize(lookup, renderer)
|
32
|
+
@lookup = lookup
|
33
|
+
@renderer = renderer
|
34
|
+
super()
|
35
|
+
end
|
36
|
+
|
37
|
+
private
|
38
|
+
|
39
|
+
attr_reader :lookup, :renderer
|
40
|
+
|
41
|
+
def dolt
|
42
|
+
@dolt ||= Dolt::Sinatra::Actions.new(self, lookup, renderer)
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
#--
|
3
|
-
# Copyright (C) 2012 Gitorious AS
|
3
|
+
# Copyright (C) 2012-2013 Gitorious AS
|
4
4
|
#
|
5
5
|
# This program is free software: you can redistribute it and/or modify
|
6
6
|
# it under the terms of the GNU Affero General Public License as published by
|
@@ -15,35 +15,29 @@
|
|
15
15
|
# You should have received a copy of the GNU Affero General Public License
|
16
16
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
17
17
|
#++
|
18
|
-
require "sinatra/
|
19
|
-
require "dolt/sinatra/actions"
|
18
|
+
require "dolt/sinatra/repo_browser"
|
20
19
|
require "libdolt/view/single_repository"
|
21
|
-
require "libdolt/view/blob"
|
22
|
-
require "libdolt/view/tree"
|
23
20
|
|
24
21
|
module Dolt
|
25
22
|
module Sinatra
|
26
|
-
class SingleRepoBrowser <
|
23
|
+
class SingleRepoBrowser < RepoBrowser
|
27
24
|
include Dolt::View::SingleRepository
|
28
|
-
|
29
|
-
|
25
|
+
|
26
|
+
def self.ref_path_pattern(action)
|
27
|
+
%r{/#{action}/([^:]+)(?::|%3(?:a|A))(.*)}
|
28
|
+
end
|
30
29
|
|
31
30
|
def initialize(repo, lookup, renderer)
|
32
31
|
@repo = repo
|
33
|
-
|
34
|
-
@renderer = renderer
|
35
|
-
super()
|
32
|
+
super(lookup, renderer)
|
36
33
|
end
|
37
34
|
|
38
|
-
not_found { renderer.render("404") }
|
39
|
-
|
40
35
|
get "/" do
|
41
36
|
redirect("/tree/HEAD:")
|
42
37
|
end
|
43
38
|
|
44
|
-
get "/tree/*:*
|
39
|
+
get ref_path_pattern('tree') do |ref, path| # "/tree/*:*
|
45
40
|
begin
|
46
|
-
ref, path = params[:splat]
|
47
41
|
dolt.tree(repo, ref, path)
|
48
42
|
rescue Exception => err
|
49
43
|
dolt.render_error(err, repo, ref)
|
@@ -54,9 +48,8 @@ module Dolt
|
|
54
48
|
dolt.force_ref(params[:splat], "tree", "HEAD")
|
55
49
|
end
|
56
50
|
|
57
|
-
get "/blob/*:*
|
51
|
+
get ref_path_pattern('blob') do |ref, path| # "/blob/*:*
|
58
52
|
begin
|
59
|
-
ref, path = params[:splat]
|
60
53
|
dolt.blob(repo, ref, path)
|
61
54
|
rescue Exception => err
|
62
55
|
dolt.render_error(err, repo, ref)
|
@@ -67,9 +60,8 @@ module Dolt
|
|
67
60
|
dolt.force_ref(params[:splat], "blob", "HEAD")
|
68
61
|
end
|
69
62
|
|
70
|
-
get "/raw/*:*
|
63
|
+
get ref_path_pattern('raw') do |ref, path| # "/raw/*:*
|
71
64
|
begin
|
72
|
-
ref, path = params[:splat]
|
73
65
|
dolt.raw(repo, ref, path)
|
74
66
|
rescue Exception => err
|
75
67
|
dolt.render_error(err, repo, ref)
|
@@ -80,9 +72,8 @@ module Dolt
|
|
80
72
|
dolt.force_ref(params[:splat], "raw", "HEAD")
|
81
73
|
end
|
82
74
|
|
83
|
-
get "/blame/*:*
|
75
|
+
get ref_path_pattern('blame') do |ref, path| # "/blame/*:*
|
84
76
|
begin
|
85
|
-
ref, path = params[:splat]
|
86
77
|
dolt.blame(repo, ref, path)
|
87
78
|
rescue Exception => err
|
88
79
|
dolt.render_error(err, repo, ref)
|
@@ -93,9 +84,8 @@ module Dolt
|
|
93
84
|
dolt.force_ref(params[:splat], "blame", "HEAD")
|
94
85
|
end
|
95
86
|
|
96
|
-
get "/history/*:*
|
87
|
+
get ref_path_pattern('history') do |ref, path| # "/history/*:*
|
97
88
|
begin
|
98
|
-
ref, path = params[:splat]
|
99
89
|
dolt.history(repo, ref, path, (params[:commit_count] || 20).to_i)
|
100
90
|
rescue Exception => err
|
101
91
|
dolt.render_error(err, repo, ref)
|
@@ -114,9 +104,8 @@ module Dolt
|
|
114
104
|
end
|
115
105
|
end
|
116
106
|
|
117
|
-
get "/tree_history/*:*
|
107
|
+
get ref_path_pattern('tree_history') do |ref, path| # "/tree_history/*:*
|
118
108
|
begin
|
119
|
-
ref, path = params[:splat]
|
120
109
|
dolt.tree_history(repo, ref, path)
|
121
110
|
rescue Exception => err
|
122
111
|
dolt.render_error(err, repo, ref)
|
@@ -124,11 +113,8 @@ module Dolt
|
|
124
113
|
end
|
125
114
|
|
126
115
|
private
|
127
|
-
attr_reader :repo, :lookup, :renderer
|
128
116
|
|
129
|
-
|
130
|
-
@dolt ||= Dolt::Sinatra::Actions.new(self, lookup, renderer)
|
131
|
-
end
|
117
|
+
attr_reader :repo
|
132
118
|
|
133
119
|
def force_ref(args, action, ref)
|
134
120
|
redirect("/#{action}/#{ref}:" + args.join)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dolt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.30.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-
|
12
|
+
date: 2013-09-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: libdolt
|
@@ -174,82 +174,12 @@ files:
|
|
174
174
|
- ./dolt.gemspec
|
175
175
|
- ./lib/dolt/sinatra/actions.rb
|
176
176
|
- ./lib/dolt/sinatra/multi_repo_browser.rb
|
177
|
+
- ./lib/dolt/sinatra/repo_browser.rb
|
177
178
|
- ./lib/dolt/sinatra/single_repo_browser.rb
|
178
179
|
- ./test/dolt/sinatra/actions_test.rb
|
179
180
|
- ./test/dolt/sinatra/multi_repo_browser_test.rb
|
180
181
|
- ./test/dolt/sinatra/single_repo_browser_test.rb
|
181
182
|
- ./test/test_helper.rb
|
182
|
-
- vendor/ui/.gitignore
|
183
|
-
- vendor/ui/.gitmodules
|
184
|
-
- vendor/ui/Makefile
|
185
|
-
- vendor/ui/autolint.js
|
186
|
-
- vendor/ui/buster.js
|
187
|
-
- vendor/ui/css/gitorious.css
|
188
|
-
- vendor/ui/css/syntax-highlight.css
|
189
|
-
- vendor/ui/dist/gitorious3-capillary.min.js
|
190
|
-
- vendor/ui/dist/gitorious3.min.css
|
191
|
-
- vendor/ui/dist/gitorious3.min.js
|
192
|
-
- vendor/ui/favicon.ico
|
193
|
-
- vendor/ui/iconic/lock_stroke.svg
|
194
|
-
- vendor/ui/images/f5f5f5-980x1.png
|
195
|
-
- vendor/ui/images/gitorious.png
|
196
|
-
- vendor/ui/images/gitorious2013.png
|
197
|
-
- vendor/ui/images/powered-by.png
|
198
|
-
- vendor/ui/images/white-980x1.png
|
199
|
-
- vendor/ui/js/src/app.js
|
200
|
-
- vendor/ui/js/src/cache.js
|
201
|
-
- vendor/ui/js/src/capillary.js
|
202
|
-
- vendor/ui/js/src/components/abbrev.js
|
203
|
-
- vendor/ui/js/src/components/blob.js
|
204
|
-
- vendor/ui/js/src/components/capillary.js
|
205
|
-
- vendor/ui/js/src/components/clone-name-suggestion.js
|
206
|
-
- vendor/ui/js/src/components/clone-url-selection.js
|
207
|
-
- vendor/ui/js/src/components/collapse.js
|
208
|
-
- vendor/ui/js/src/components/comments.js
|
209
|
-
- vendor/ui/js/src/components/commit-linker.js
|
210
|
-
- vendor/ui/js/src/components/dropdown.js
|
211
|
-
- vendor/ui/js/src/components/ganalytics.js
|
212
|
-
- vendor/ui/js/src/components/live-markdown-preview.js
|
213
|
-
- vendor/ui/js/src/components/loading.js
|
214
|
-
- vendor/ui/js/src/components/oid-ref-interpolator.js
|
215
|
-
- vendor/ui/js/src/components/profile-menu.js
|
216
|
-
- vendor/ui/js/src/components/rails-links.js
|
217
|
-
- vendor/ui/js/src/components/ref-selector.js
|
218
|
-
- vendor/ui/js/src/components/repository.js
|
219
|
-
- vendor/ui/js/src/components/select-details.js
|
220
|
-
- vendor/ui/js/src/components/slugify.js
|
221
|
-
- vendor/ui/js/src/components/timeago.js
|
222
|
-
- vendor/ui/js/src/components/tree-history.js
|
223
|
-
- vendor/ui/js/src/components/url.js
|
224
|
-
- vendor/ui/js/src/components/user-repo-view-state.js
|
225
|
-
- vendor/ui/js/src/gitorious.js
|
226
|
-
- vendor/ui/js/src/json-request.js
|
227
|
-
- vendor/ui/js/src/logger.js
|
228
|
-
- vendor/ui/js/src/spacer.js
|
229
|
-
- vendor/ui/js/test-libs/jquery-1.9.1.min.js
|
230
|
-
- vendor/ui/js/test/cache-test.js
|
231
|
-
- vendor/ui/js/test/components/abbrev-test.js
|
232
|
-
- vendor/ui/js/test/components/blob-test.js
|
233
|
-
- vendor/ui/js/test/components/clone-name-suggestion-test.js
|
234
|
-
- vendor/ui/js/test/components/clone-url-selection-test.js
|
235
|
-
- vendor/ui/js/test/components/comments-test.js
|
236
|
-
- vendor/ui/js/test/components/commit-linker-test.js
|
237
|
-
- vendor/ui/js/test/components/live-markdown-preview-test.js
|
238
|
-
- vendor/ui/js/test/components/profile-menu-test.js
|
239
|
-
- vendor/ui/js/test/components/ref-selector-test.js
|
240
|
-
- vendor/ui/js/test/components/repository-admin-test.js
|
241
|
-
- vendor/ui/js/test/components/repository-watching-test.js
|
242
|
-
- vendor/ui/js/test/components/timeago-test.js
|
243
|
-
- vendor/ui/js/test/components/tree-history-test.js
|
244
|
-
- vendor/ui/js/test/components/url-template-test.js
|
245
|
-
- vendor/ui/js/test/test-helper.js
|
246
|
-
- vendor/ui/lib/bootstrap/css/bootstrap-responsive.min.css
|
247
|
-
- vendor/ui/lib/bootstrap/css/bootstrap.min.css
|
248
|
-
- vendor/ui/lib/bootstrap/img/glyphicons-halflings-white.png
|
249
|
-
- vendor/ui/lib/bootstrap/img/glyphicons-halflings.png
|
250
|
-
- vendor/ui/lib/bootstrap/js/bootstrap.min.js
|
251
|
-
- vendor/ui/package.json
|
252
|
-
- vendor/ui/todo.org
|
253
183
|
- bin/dolt
|
254
184
|
homepage: http://gitorious.org/gitorious/dolt
|
255
185
|
licenses: []
|
@@ -271,9 +201,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
271
201
|
version: '0'
|
272
202
|
requirements: []
|
273
203
|
rubyforge_project: dolt
|
274
|
-
rubygems_version: 1.8.
|
204
|
+
rubygems_version: 1.8.23
|
275
205
|
signing_key:
|
276
206
|
specification_version: 3
|
277
207
|
summary: Dolt serves git trees and syntax highlighted blobs
|
278
208
|
test_files: []
|
279
|
-
has_rdoc:
|
data/vendor/ui/.gitignore
DELETED
data/vendor/ui/.gitmodules
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
[submodule "js/lib/culljs"]
|
2
|
-
path = js/lib/culljs
|
3
|
-
url = https://github.com/culljs/culljs.git
|
4
|
-
[submodule "js/lib/dome"]
|
5
|
-
path = js/lib/dome
|
6
|
-
url = https://github.com/culljs/dome.git
|
7
|
-
[submodule "js/lib/reqwest"]
|
8
|
-
path = js/lib/reqwest
|
9
|
-
url = https://github.com/ded/reqwest.git
|
10
|
-
[submodule "js/lib/spin.js"]
|
11
|
-
path = js/lib/spin.js
|
12
|
-
url = https://github.com/fgnass/spin.js.git
|
13
|
-
[submodule "lib/bane"]
|
14
|
-
path = lib/bane
|
15
|
-
url = https://github.com/busterjs/bane.git
|
16
|
-
[submodule "js/lib/bane"]
|
17
|
-
path = js/lib/bane
|
18
|
-
url = https://github.com/busterjs/bane.git
|
19
|
-
[submodule "js/lib/when"]
|
20
|
-
path = js/lib/when
|
21
|
-
url = https://github.com/cujojs/when.git
|
22
|
-
[submodule "js/lib/showdown"]
|
23
|
-
path = js/lib/showdown
|
24
|
-
url = https://github.com/coreyti/showdown.git
|
25
|
-
[submodule "js/lib/uinit"]
|
26
|
-
path = js/lib/uinit
|
27
|
-
url = https://git.gitorious.org/gitorious/uinit.git
|
28
|
-
[submodule "js/lib/samsam"]
|
29
|
-
path = js/lib/samsam
|
30
|
-
url = git@github.com:busterjs/samsam.git
|
31
|
-
[submodule "js/lib/timeago"]
|
32
|
-
path = js/lib/timeago
|
33
|
-
url = https://github.com/cjohansen/timeago.git
|
34
|
-
[submodule "js/lib/raphael"]
|
35
|
-
path = js/lib/raphael
|
36
|
-
url = https://github.com/DmitryBaranovskiy/raphael.git
|
37
|
-
[submodule "js/lib/capillary"]
|
38
|
-
path = js/lib/capillary
|
39
|
-
url = https://git.gitorious.org/capillary/capillary-js.git
|
data/vendor/ui/Makefile
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
GTS3_DEPS=js/lib/spin.js/spin.js js/lib/when/when.js js/lib/bane/lib/bane.js js/lib/reqwest/reqwest.js js/lib/uinit/lib/uinit.js js/lib/showdown/src/showdown.js js/lib/timeago/timeago.js
|
2
|
-
|
3
|
-
GTS3_UTILS=js/src/app.js js/src/cache.js js/src/json-request.js
|
4
|
-
|
5
|
-
GTS3_COMPONENTS=js/src/components/dropdown.js js/src/components/ganalytics.js js/src/components/abbrev.js js/src/components/url.js js/src/components/ref-selector.js js/src/components/tree-history.js js/src/components/commit-linker.js js/src/components/user-repo-view-state.js js/src/components/profile-menu.js js/src/components/clone-url-selection.js js/src/components/blob.js js/src/components/live-markdown-preview.js js/src/components/timeago.js js/src/components/collapse.js js/src/components/repository.js js/src/components/rails-links.js js/src/components/clone-name-suggestion.js js/src/components/loading.js js/src/components/oid-ref-interpolator.js js/src/components/comments.js js/src/components/slugify.js js/src/components/select-details.js
|
6
|
-
|
7
|
-
CAPILLARY_SOURCES=js/lib/raphael/raphael-min.js js/src/spacer.js js/lib/capillary/lib/capillary.js js/lib/capillary/lib/capillary/branch.js js/lib/capillary/lib/capillary/graph.js js/lib/capillary/lib/capillary/formatters/scale.js js/lib/capillary/lib/capillary/formatters/svg-data.js js/lib/capillary/lib/capillary/formatters/raphael.js js/lib/capillary/lib/capillary/formatters/message-markup.js js/src/components/capillary.js js/src/capillary.js
|
8
|
-
|
9
|
-
all: dist/gitorious3.min.css dist/gitorious3-capillary.min.js dist/gitorious3.min.js
|
10
|
-
|
11
|
-
rebuild: clean all
|
12
|
-
|
13
|
-
node_modules/.bin/uglifyjs:
|
14
|
-
npm install uglify-js
|
15
|
-
|
16
|
-
js/lib/culljs/dist/cull.js:
|
17
|
-
cd js/lib/culljs && npm install && node build -s -n
|
18
|
-
|
19
|
-
js/lib/dome/dist/dome.js:
|
20
|
-
cd js/lib/dome && npm install && node build -s -n
|
21
|
-
|
22
|
-
dist/gitorious3-dependencies.min.js: $(GTS3_DEPS) js/lib/culljs/dist/cull.js js/lib/dome/dist/dome.js node_modules/.bin/uglifyjs
|
23
|
-
cat js/lib/culljs/dist/cull.js \
|
24
|
-
js/lib/dome/dist/dome.js \
|
25
|
-
$(GTS3_DEPS) | ./node_modules/.bin/uglifyjs -m -c > dist/gitorious3-dependencies.min.js
|
26
|
-
du -h dist/gitorious3-dependencies.min.js
|
27
|
-
|
28
|
-
dist/gitorious3-components.min.js: $(GTS3_UTILS) $(GTS3_COMPONENTS) js/src/gitorious.js node_modules/.bin/uglifyjs
|
29
|
-
cat $(GTS3_UTILS) $(GTS3_COMPONENTS) js/src/gitorious.js | ./node_modules/.bin/uglifyjs -m -c > dist/gitorious3-components.min.js
|
30
|
-
du -h dist/gitorious3-components.min.js
|
31
|
-
|
32
|
-
dist/gitorious3.min.js: dist/gitorious3-dependencies.min.js dist/gitorious3-components.min.js
|
33
|
-
cat dist/gitorious3-dependencies.min.js dist/gitorious3-components.min.js > dist/gitorious3.min.js
|
34
|
-
du -h dist/gitorious3.min.js
|
35
|
-
|
36
|
-
dist/gitorious3-capillary.min.js: $(CAPILLARY_SOURCES) node_modules/.bin/uglifyjs
|
37
|
-
cat $(CAPILLARY_SOURCES) ./node_modules/.bin/uglifyjs -m -c > dist/gitorious3-capillary.min.js
|
38
|
-
du -h dist/gitorious3-capillary.min.js
|
39
|
-
|
40
|
-
dist/gitorious3.min.css: css/gitorious.css css/syntax-highlight.css
|
41
|
-
juicer merge -f -o dist/gitorious3.min.css css/gitorious.css
|
42
|
-
du -h dist/gitorious3.min.css
|
43
|
-
|
44
|
-
clean:
|
45
|
-
rm -fr
|
46
|
-
rm -fr js/lib/culljs/dist
|
47
|
-
rm -fr js/lib/dome/dist
|
48
|
-
|