ginatra 3.0.0 → 3.0.1
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.
- data/.travis.yml +1 -0
- data/bin/ginatra +36 -35
- data/bin/ginatra-setup +16 -13
- data/ginatra.gemspec +1 -1
- data/lib/ginatra.rb +1 -1
- metadata +13 -13
data/.travis.yml
CHANGED
data/bin/ginatra
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
HELP = <<HELP
|
3
|
+
module Ginatra
|
4
|
+
module Executable
|
5
|
+
HELP = <<-HELP
|
7
6
|
Usage: ginatra [ setup |
|
8
7
|
version |
|
9
8
|
server <options> <command> |
|
@@ -32,42 +31,44 @@ Ginatra Directory Commands:
|
|
32
31
|
remove - Removes the <globs> from the aforementioned array.
|
33
32
|
list - Lists the globs Ginatra looks in for repositories
|
34
33
|
|
35
|
-
HELP
|
34
|
+
HELP
|
36
35
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
36
|
+
def self.daemon
|
37
|
+
path = File.expand_path(File.dirname(__FILE__))
|
38
|
+
load "#{path}/ginatra-daemon"
|
39
|
+
end
|
41
40
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
41
|
+
def self.directory
|
42
|
+
path = File.expand_path(File.dirname(__FILE__))
|
43
|
+
load "#{path}/ginatra-directory"
|
44
|
+
end
|
46
45
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
46
|
+
def self.server
|
47
|
+
path = File.expand_path(File.dirname(__FILE__))
|
48
|
+
load("#{path}/ginatra-server")
|
49
|
+
end
|
51
50
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
51
|
+
def self.setup
|
52
|
+
path = File.expand_path(File.dirname(__FILE__))
|
53
|
+
load("#{path}/ginatra-setup")
|
54
|
+
end
|
56
55
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
setup
|
63
|
-
|
64
|
-
daemon
|
65
|
-
|
66
|
-
directory
|
67
|
-
|
68
|
-
server
|
69
|
-
|
70
|
-
|
56
|
+
def self.execute(command, args)
|
57
|
+
case command
|
58
|
+
when "version"
|
59
|
+
require "ginatra"
|
60
|
+
puts Ginatra::VERSION
|
61
|
+
when "setup"
|
62
|
+
setup
|
63
|
+
when "daemon"
|
64
|
+
daemon
|
65
|
+
when "directory"
|
66
|
+
directory
|
67
|
+
when "server"
|
68
|
+
server
|
69
|
+
else
|
70
|
+
puts Ginatra::Executable::HELP
|
71
|
+
end
|
71
72
|
end
|
72
73
|
end
|
73
74
|
end
|
data/bin/ginatra-setup
CHANGED
@@ -1,24 +1,27 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require "ginatra"
|
3
|
+
require "ginatra/config"
|
4
4
|
require "rbconfig"
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
unless ENV['TRAVIS']
|
7
|
+
if RbConfig::CONFIG["ruby_version"] < "1.9"
|
8
|
+
$stderr.puts "You need Ruby 1.9.2 to run ginatra"
|
9
|
+
exit(1)
|
10
|
+
end
|
10
11
|
|
11
|
-
if `which pygmentize` !~ /pygmentize/
|
12
|
-
|
13
|
-
|
14
|
-
end
|
12
|
+
if `which pygmentize` !~ /pygmentize/
|
13
|
+
$stderr.puts "You need Pygmentize to run ginatra"
|
14
|
+
exit(1)
|
15
|
+
end
|
16
|
+
|
17
|
+
if `git --version` < "git version 1.6.3"
|
18
|
+
$stderr.puts "You need at least git version 1.6.3 to run ginatra"
|
19
|
+
exit(1)
|
20
|
+
end
|
15
21
|
|
16
|
-
|
17
|
-
$stderr.puts "You need at least git version 1.6.3 to run ginatra"
|
18
|
-
exit(1)
|
22
|
+
puts "checked deps"
|
19
23
|
end
|
20
24
|
|
21
|
-
puts "checked deps"
|
22
25
|
Ginatra::Config.safe_setup
|
23
26
|
puts "installed config"
|
24
27
|
|
data/ginatra.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "ginatra"
|
3
|
-
s.version = "3.0.
|
3
|
+
s.version = "3.0.1"
|
4
4
|
s.summary = "A Gitweb Clone in Sinatra and Grit"
|
5
5
|
s.description = "Host your own git repository browser through the power of Sinatra and Grit"
|
6
6
|
s.email = "sam@lenary.co.uk"
|
data/lib/ginatra.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ginatra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ date: 2011-09-02 00:00:00.000000000Z
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
17
|
-
requirement: &
|
17
|
+
requirement: &2153624660 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 1.0.15
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2153624660
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: sinatra
|
28
|
-
requirement: &
|
28
|
+
requirement: &2153624180 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: 1.2.6
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *2153624180
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: grit
|
39
|
-
requirement: &
|
39
|
+
requirement: &2153623720 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ~>
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: 2.4.1
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *2153623720
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: vegas
|
50
|
-
requirement: &
|
50
|
+
requirement: &2153623260 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ~>
|
@@ -55,10 +55,10 @@ dependencies:
|
|
55
55
|
version: 0.1.8
|
56
56
|
type: :runtime
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *2153623260
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: builder
|
61
|
-
requirement: &
|
61
|
+
requirement: &2153622800 !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
63
|
requirements:
|
64
64
|
- - ~>
|
@@ -66,10 +66,10 @@ dependencies:
|
|
66
66
|
version: 3.0.0
|
67
67
|
type: :runtime
|
68
68
|
prerelease: false
|
69
|
-
version_requirements: *
|
69
|
+
version_requirements: *2153622800
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: erubis
|
72
|
-
requirement: &
|
72
|
+
requirement: &2153622340 !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
75
|
- - ~>
|
@@ -77,7 +77,7 @@ dependencies:
|
|
77
77
|
version: 2.7.0
|
78
78
|
type: :runtime
|
79
79
|
prerelease: false
|
80
|
-
version_requirements: *
|
80
|
+
version_requirements: *2153622340
|
81
81
|
description: Host your own git repository browser through the power of Sinatra and
|
82
82
|
Grit
|
83
83
|
email: sam@lenary.co.uk
|