dolt 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +5 -5
- data/Readme.org +7 -2
- data/bin/dolt +1 -1
- data/dolt.gemspec +2 -2
- data/lib/dolt/sinatra/multi_repo_browser.rb +4 -0
- data/test/dolt/sinatra/multi_repo_browser_test.rb +6 -0
- data/vendor/ui/css/gitorious.css +16 -0
- metadata +4 -4
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
dolt (0.
|
4
|
+
dolt (0.15.0)
|
5
5
|
json (~> 1.5)
|
6
|
-
libdolt (~> 0.
|
6
|
+
libdolt (~> 0.19)
|
7
7
|
main (~> 5.2)
|
8
8
|
sinatra (~> 1.0)
|
9
9
|
thin (~> 1.4)
|
@@ -20,7 +20,7 @@ GEM
|
|
20
20
|
github-markup (0.7.5)
|
21
21
|
htmlentities (4.3.1)
|
22
22
|
json (1.8.0)
|
23
|
-
libdolt (0.
|
23
|
+
libdolt (0.19.0)
|
24
24
|
htmlentities (~> 4.3)
|
25
25
|
json (~> 1.7)
|
26
26
|
makeup (~> 0.2)
|
@@ -50,8 +50,8 @@ GEM
|
|
50
50
|
rack (>= 1.0)
|
51
51
|
rake (0.9.6)
|
52
52
|
rugged (0.17.0.b6)
|
53
|
-
sinatra (1.4.
|
54
|
-
rack (~> 1.
|
53
|
+
sinatra (1.4.3)
|
54
|
+
rack (~> 1.4)
|
55
55
|
rack-protection (~> 1.4)
|
56
56
|
tilt (~> 1.3, >= 1.3.4)
|
57
57
|
thin (1.5.1)
|
data/Readme.org
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
* Dolt
|
2
|
-
Dolt is a stand-
|
2
|
+
Dolt is a stand-alone Git repository browser. It can be used to
|
3
3
|
explore repositories in your browser of choice, and features syntax
|
4
4
|
highlighting with [[http://pygments.org/][Pygments]] and various markdown formats (see
|
5
5
|
below). In addition to offering tree and blob browsing, Dolt also
|
@@ -50,7 +50,7 @@ dolt .
|
|
50
50
|
- =--socket= lets you specify a UNIX socket to listen to instead
|
51
51
|
of a port. Enter the path to a socket.
|
52
52
|
- =--port= lets you specify a different port than 3000. Also
|
53
|
-
supported
|
53
|
+
supported through the environment variable =PORT=.
|
54
54
|
- =--bind= lets you bind to a different IP address than
|
55
55
|
=0.0.0.0=. Also supported through the environment variable =IP=.
|
56
56
|
- =--tabwidth= lets you specify how many spaces to use when
|
@@ -59,6 +59,11 @@ dolt .
|
|
59
59
|
this option will daemonize the dolt process.
|
60
60
|
- =--logfile= lets you specify the path to a log file when running daemonized.
|
61
61
|
|
62
|
+
Please note that some of the options allowed can also be specified
|
63
|
+
using environment variables. If no option is given to the CLI, the
|
64
|
+
environment variable will be used if available, otherwise a
|
65
|
+
default will be used.
|
66
|
+
|
62
67
|
To stop a running Dolt server, you'll need to do a little manual
|
63
68
|
work:
|
64
69
|
|
data/bin/dolt
CHANGED
data/dolt.gemspec
CHANGED
@@ -11,7 +11,7 @@ end
|
|
11
11
|
|
12
12
|
Gem::Specification.new do |s|
|
13
13
|
s.name = "dolt"
|
14
|
-
s.version = "0.
|
14
|
+
s.version = "0.15.0"
|
15
15
|
s.authors = ["Christian Johansen"]
|
16
16
|
s.email = ["christian@gitorious.org"]
|
17
17
|
s.homepage = "http://gitorious.org/gitorious/dolt"
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
|
21
21
|
s.rubyforge_project = "dolt"
|
22
22
|
|
23
|
-
s.add_dependency "libdolt", "~>0.
|
23
|
+
s.add_dependency "libdolt", "~>0.19"
|
24
24
|
s.add_dependency "thin", "~>1.4"
|
25
25
|
s.add_dependency "sinatra", "~>1.0"
|
26
26
|
s.add_dependency "tiltout", "~>1.4"
|
@@ -32,6 +32,10 @@ module Dolt
|
|
32
32
|
body(renderer.render(:index, { :repositories => actions.repositories }))
|
33
33
|
end
|
34
34
|
|
35
|
+
get "/:repo" do
|
36
|
+
redirect "/#{params[:repo]}/tree/master:"
|
37
|
+
end
|
38
|
+
|
35
39
|
get "/*/tree/*:*" do
|
36
40
|
repo, ref, path = params[:splat]
|
37
41
|
tree(repo, ref, path)
|
@@ -38,4 +38,10 @@ describe Dolt::Sinatra::MultiRepoBrowser do
|
|
38
38
|
get "/"
|
39
39
|
assert_equal 200, last_response.status
|
40
40
|
end
|
41
|
+
|
42
|
+
it "redirects repo requests to main tree" do
|
43
|
+
get "/gitorious.git"
|
44
|
+
assert_equal 302, last_response.status
|
45
|
+
assert_equal "/gitorious.git/tree/master:", last_response.headers["Location"]
|
46
|
+
end
|
41
47
|
end
|
data/vendor/ui/css/gitorious.css
CHANGED
@@ -623,3 +623,19 @@ input[type=text].gts-ref-input {
|
|
623
623
|
.gts-markup pre code {
|
624
624
|
font-size: inherit;
|
625
625
|
}
|
626
|
+
|
627
|
+
.gts-readme {
|
628
|
+
background-color: #fff;
|
629
|
+
border: 1px solid #E3E3E3;
|
630
|
+
border-radius: 4px 4px 4px 4px;
|
631
|
+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) inset;
|
632
|
+
margin-bottom: 20px;
|
633
|
+
min-height: 20px;
|
634
|
+
padding: 19px;
|
635
|
+
}
|
636
|
+
.gts-readme .gts-page-header {
|
637
|
+
background-color: #f5f5f5;
|
638
|
+
border-radius: 4px 0px 0px 4px;
|
639
|
+
margin: -19px -19px 10px -19px;
|
640
|
+
padding: 10px 20px 10px 20px;
|
641
|
+
}
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: dolt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.
|
5
|
+
version: 0.15.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-
|
12
|
+
date: 2013-06-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
type: :runtime
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '0.
|
21
|
+
version: '0.19'
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
none: false
|
25
25
|
requirements:
|
26
26
|
- - ~>
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: '0.
|
28
|
+
version: '0.19'
|
29
29
|
name: libdolt
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
type: :runtime
|