git-lighttp 0.3.0 → 0.3.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.
- checksums.yaml +4 -4
- data/LICENSE.txt +21 -0
- data/README.md +90 -0
- data/README.pt-BR.md +96 -0
- data/doc/releases/{v0.1.0.rdoc → v0.1.0.md} +4 -4
- data/doc/releases/{v0.2.0.rdoc → v0.2.0.md} +3 -5
- data/doc/releases/{v0.3.0.rdoc → v0.3.0.md} +3 -3
- data/doc/releases/v0.3.1.md +12 -0
- data/git-lighttp.gemspec +34 -21
- data/lib/git/lighttp.rb +100 -97
- data/lib/git/lighttp/extensions.rb +26 -30
- data/lib/git/lighttp/http_backend.rb +20 -20
- data/lib/git/lighttp/treeish.rb +2 -2
- data/lib/git/lighttp/version.rb +3 -3
- metadata +79 -71
- data/Gemfile +0 -11
- data/Makefile +0 -41
- data/README.pt-BR.rdoc +0 -81
- data/README.rdoc +0 -75
- data/Rakefile +0 -50
- data/test/all.rb +0 -12
- data/test/config_test.rb +0 -43
- data/test/fixtures/config.yml +0 -13
- data/test/fixtures/htgroup +0 -3
- data/test/fixtures/htpasswd +0 -4
- data/test/fixtures/mycode.git/HEAD +0 -1
- data/test/fixtures/mycode.git/config +0 -4
- data/test/fixtures/mycode.git/description +0 -1
- data/test/fixtures/mycode.git/hooks/applypatch-msg.sample +0 -15
- data/test/fixtures/mycode.git/hooks/commit-msg.sample +0 -24
- data/test/fixtures/mycode.git/hooks/post-commit.sample +0 -8
- data/test/fixtures/mycode.git/hooks/post-receive.sample +0 -15
- data/test/fixtures/mycode.git/hooks/post-update.sample +0 -8
- data/test/fixtures/mycode.git/hooks/pre-applypatch.sample +0 -14
- data/test/fixtures/mycode.git/hooks/pre-commit.sample +0 -46
- data/test/fixtures/mycode.git/hooks/pre-rebase.sample +0 -169
- data/test/fixtures/mycode.git/hooks/prepare-commit-msg.sample +0 -36
- data/test/fixtures/mycode.git/hooks/update.sample +0 -128
- data/test/fixtures/mycode.git/info/exclude +0 -6
- data/test/fixtures/mycode.git/info/refs +0 -3
- data/test/fixtures/mycode.git/objects/02/83eb96425444e17b97182e1ba9f216cc67c132 +0 -0
- data/test/fixtures/mycode.git/objects/03/9927042df267a1bc606fc4485b7a79b6a9e3cd +0 -1
- data/test/fixtures/mycode.git/objects/0d/eed0a56fa8f5f2a788d58b3ea235afd547b828 +0 -2
- data/test/fixtures/mycode.git/objects/4b/825dc642cb6eb9a060e54bf8d69288fbee4904 +0 -0
- data/test/fixtures/mycode.git/objects/5e/54a0767e0c380f3baab17938d68c7f464cf171 +0 -1
- data/test/fixtures/mycode.git/objects/63/9b96262e7e19ca2169575e797b234098b8a72e +0 -0
- data/test/fixtures/mycode.git/objects/71/6e9568eed27d5ee4378b3ecf6dd095a547bde9 +0 -1
- data/test/fixtures/mycode.git/objects/b6/f3f0fabeaaaaf2db22b8ef98f59115baec7ef9 +0 -0
- data/test/fixtures/mycode.git/objects/be/118435b9d908fd4a689cd8b0cc98059911a31a +0 -0
- data/test/fixtures/mycode.git/objects/db/aefcb5bde664671c73b99515c386dcbc7f22b6 +0 -0
- data/test/fixtures/mycode.git/objects/eb/669b878d2013ac70aa5dee75e6357ea81d16ea +0 -0
- data/test/fixtures/mycode.git/objects/ed/10cfcf72862e140c97fe899cba2a55f4cb4c20 +0 -0
- data/test/fixtures/mycode.git/objects/ed/1c3a255ab3fce056dc31cd82df9f61a4d9fa22 +0 -0
- data/test/fixtures/mycode.git/objects/info/alternates +0 -0
- data/test/fixtures/mycode.git/objects/info/http-alternates +0 -0
- data/test/fixtures/mycode.git/objects/info/packs +0 -2
- data/test/fixtures/mycode.git/objects/pack/pack-40a8636b62258fffd78ec1e8d254116e72d385a9.idx +0 -0
- data/test/fixtures/mycode.git/objects/pack/pack-40a8636b62258fffd78ec1e8d254116e72d385a9.pack +0 -0
- data/test/fixtures/mycode.git/packed-refs +0 -4
- data/test/fixtures/mycode.git/refs/heads/master +0 -1
- data/test/fixtures/mycode.git/refs/tags/v0.1.0 +0 -1
- data/test/helpers.rb +0 -53
- data/test/htgroup_test.rb +0 -29
- data/test/htpasswd_test.rb +0 -63
- data/test/http_backend_authentication_test.rb +0 -61
- data/test/http_backend_test.rb +0 -123
- data/test/project_handler_test.rb +0 -45
- data/test/treeish_test.rb +0 -33
@@ -1,63 +1,59 @@
|
|
1
|
-
|
1
|
+
# encoding: utf-8
|
2
|
+
class Object #:nodoc:
|
2
3
|
# Set instance variables by key and value only if object respond
|
3
4
|
# to access method for variable.
|
4
5
|
def instance_variables_set_from(hash)
|
5
6
|
hash.collect do |variable, value|
|
6
|
-
|
7
|
+
instance_variable_set("@#{variable}", value) if respond_to? variable
|
7
8
|
end
|
8
9
|
self
|
9
10
|
end
|
10
|
-
|
11
11
|
end
|
12
12
|
|
13
|
-
class Symbol
|
14
|
-
|
13
|
+
class Symbol #:nodoc:
|
15
14
|
# Method for comparison between symbols.
|
16
15
|
def <=>(other)
|
17
|
-
|
16
|
+
to_s <=> other.to_s
|
18
17
|
end
|
19
18
|
|
20
19
|
# Parse the symbol name to constant name. Example:
|
21
20
|
#
|
22
21
|
# $ :http_backend.to_const_name
|
23
|
-
# =>
|
22
|
+
# => 'HttpBackend'
|
24
23
|
def to_const_name
|
25
|
-
n =
|
24
|
+
n = to_s.split(/_/).map(&:capitalize).join
|
26
25
|
RUBY_VERSION =~ /1\.8/ ? n : n.to_sym
|
27
26
|
end
|
28
|
-
|
29
27
|
end
|
30
28
|
|
31
|
-
class Hash
|
32
|
-
|
33
|
-
# Only symbolize all keys, including all key in sub-hashes.
|
29
|
+
class Hash #:nodoc:
|
30
|
+
# Only symbolize all keys, including all key in sub-hashes.
|
34
31
|
def symbolize_keys
|
35
|
-
return
|
36
|
-
|
37
|
-
|
38
|
-
|
32
|
+
return clone if empty?
|
33
|
+
each_with_object({}) do |(key, value), hash|
|
34
|
+
hash[key.to_sym] = (value.is_a? Hash) ? value.symbolize_keys : value
|
35
|
+
hash
|
39
36
|
end
|
40
37
|
end
|
41
38
|
|
42
39
|
# Convert to Struct including all values that are Hash class.
|
43
40
|
def to_struct
|
44
|
-
|
45
|
-
members
|
46
|
-
Struct.new(*members).new(*
|
47
|
-
|
48
|
-
|
41
|
+
attributes = keys.sort
|
42
|
+
members = attributes.map(&:to_sym)
|
43
|
+
Struct.new(*members).new(*attributes.map do |key|
|
44
|
+
attribute = fetch key
|
45
|
+
(attribute.is_a? Hash) ? attribute.to_struct : attribute
|
46
|
+
end) unless empty?
|
49
47
|
end
|
50
|
-
|
51
48
|
end
|
52
49
|
|
53
|
-
class String
|
54
|
-
|
50
|
+
class String #:nodoc:
|
55
51
|
def to_semver_h
|
56
52
|
tags = [:major, :minor, :patch, :status]
|
57
|
-
values =
|
53
|
+
values = split('.').map do |key|
|
58
54
|
# Check pre-release status
|
59
|
-
if key
|
60
|
-
[
|
55
|
+
if key =~ /^(?<minor>\d{1,})(?<status>[a-z]+[\d\w]{1,}.*)$/i
|
56
|
+
[minor.to_i, status]
|
61
57
|
else
|
62
58
|
key.to_i
|
63
59
|
end
|
@@ -66,8 +62,8 @@ class String
|
|
66
62
|
end
|
67
63
|
|
68
64
|
def to_attr_name
|
69
|
-
|
65
|
+
split('::').last.gsub(/(?<obj>.)(?<action>[A-Z])/) do
|
66
|
+
[obj, access.downcase].join('_')
|
67
|
+
end.downcase
|
70
68
|
end
|
71
|
-
|
72
69
|
end
|
73
|
-
|
@@ -12,39 +12,39 @@ module Git::Lighttp
|
|
12
12
|
def service
|
13
13
|
@service = params[:service]
|
14
14
|
return false if @service.nil?
|
15
|
-
return false if @service[0, 4] !=
|
16
|
-
@service = @service.gsub(
|
15
|
+
return false if @service[0, 4] != 'git-'
|
16
|
+
@service = @service.gsub('git-', '')
|
17
17
|
end
|
18
18
|
|
19
19
|
# pkt_write feature
|
20
20
|
def packet_write(line)
|
21
|
-
(line.size + 4).to_s(base=16).rjust(4,
|
21
|
+
(line.size + 4).to_s(base=16).rjust(4, '0') + line
|
22
22
|
end
|
23
23
|
|
24
24
|
# pkt_flush feature
|
25
25
|
def packet_flush
|
26
|
-
|
26
|
+
'0000'
|
27
27
|
end
|
28
28
|
|
29
29
|
# hdr_nocache feature
|
30
30
|
def header_nocache
|
31
|
-
headers
|
32
|
-
|
33
|
-
|
31
|
+
headers 'Expires' => 'Fri, 01 Jan 1980 00:00:00 GMT',
|
32
|
+
'Pragma' => 'no-cache',
|
33
|
+
'Cache-Control' => 'no-cache, max-age=0, must-revalidate'
|
34
34
|
end
|
35
35
|
|
36
36
|
# hdr_cache_forever feature
|
37
37
|
def header_cache_forever
|
38
38
|
now = Time.now
|
39
|
-
headers
|
40
|
-
|
41
|
-
|
39
|
+
headers 'Date' => now.to_s,
|
40
|
+
'Expires' => (now + 31536000).to_s,
|
41
|
+
'Cache-Control' => 'public, max-age=31536000'
|
42
42
|
end
|
43
43
|
|
44
44
|
# select_getanyfile feature
|
45
45
|
def read_any_file
|
46
46
|
unless settings.get_any_file
|
47
|
-
halt 403,
|
47
|
+
halt 403, 'Unsupported service: getanyfile'
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
@@ -52,7 +52,7 @@ module Git::Lighttp
|
|
52
52
|
def read_text_file(*file)
|
53
53
|
read_any_file
|
54
54
|
header_nocache
|
55
|
-
content_type
|
55
|
+
content_type 'text/plain'
|
56
56
|
repository.read_file(*file)
|
57
57
|
end
|
58
58
|
|
@@ -75,7 +75,7 @@ module Git::Lighttp
|
|
75
75
|
def send_info_packs
|
76
76
|
read_any_file
|
77
77
|
header_nocache
|
78
|
-
content_type
|
78
|
+
content_type 'text/plain; charset=utf-8'
|
79
79
|
send_file(repository.info_packs_path)
|
80
80
|
end
|
81
81
|
|
@@ -86,7 +86,7 @@ module Git::Lighttp
|
|
86
86
|
response.body.clear
|
87
87
|
response.body << packet_write("# service=git-#{service}\n")
|
88
88
|
response.body << packet_flush
|
89
|
-
response.body << repository.run(service,
|
89
|
+
response.body << repository.run(service, '--stateless-rpc --advertise-refs .')
|
90
90
|
response.finish
|
91
91
|
end
|
92
92
|
|
@@ -131,12 +131,12 @@ module Git::Lighttp
|
|
131
131
|
end
|
132
132
|
|
133
133
|
# implements the get_text_file function
|
134
|
-
get
|
135
|
-
read_text_file(
|
134
|
+
get '/:repository/HEAD' do
|
135
|
+
read_text_file('HEAD')
|
136
136
|
end
|
137
137
|
|
138
138
|
# implements the get_info_refs function
|
139
|
-
get
|
139
|
+
get '/:repository/info/refs' do
|
140
140
|
if service_request? # by URL query parameters
|
141
141
|
run_advertisement service
|
142
142
|
else
|
@@ -146,7 +146,7 @@ module Git::Lighttp
|
|
146
146
|
|
147
147
|
# implements the get_text_file and get_info_packs functions
|
148
148
|
get %r{/(.*?)/objects/info/(packs|alternates|http-alternates)$} do |repository, file|
|
149
|
-
if file ==
|
149
|
+
if file == 'packs'
|
150
150
|
send_info_packs
|
151
151
|
else
|
152
152
|
read_text_file(:objects, :info, file)
|
@@ -160,11 +160,11 @@ module Git::Lighttp
|
|
160
160
|
|
161
161
|
# implements the get_pack_file and get_idx_file functions
|
162
162
|
get %r{/(.*?)/objects/pack/(pack-[0-9a-f]{40}.(pack|idx))$} do |repository, pack, ext|
|
163
|
-
send_pack_idx_file(pack, ext ==
|
163
|
+
send_pack_idx_file(pack, ext == 'idx')
|
164
164
|
end
|
165
165
|
|
166
166
|
# implements the service_rpc function
|
167
|
-
post
|
167
|
+
post '/:repository/:service' do
|
168
168
|
run_process service
|
169
169
|
end
|
170
170
|
|
data/lib/git/lighttp/treeish.rb
CHANGED
@@ -12,9 +12,9 @@ module Git::Lighttp
|
|
12
12
|
|
13
13
|
get %r{/(.*?)/(.*?/{0,1}.*)$} do |name, path|
|
14
14
|
content_type :json
|
15
|
-
path = path.split(
|
15
|
+
path = path.split('/')
|
16
16
|
ref = path.shift
|
17
|
-
tree = repository.tree(ref, path.join(
|
17
|
+
tree = repository.tree(ref, path.join('/'))
|
18
18
|
tree.to_json(:max_nesting => tree.size*6)
|
19
19
|
end
|
20
20
|
|
data/lib/git/lighttp/version.rb
CHANGED
@@ -4,9 +4,9 @@ module Git
|
|
4
4
|
# Semantic Versioning Specification (see reference[http://semver.org/]).
|
5
5
|
module Lighttp #:nodoc:
|
6
6
|
|
7
|
-
VERSION =
|
8
|
-
RELEASE =
|
9
|
-
TIMESTAMP =
|
7
|
+
VERSION = '0.3.1'
|
8
|
+
RELEASE = '2016-02-04'
|
9
|
+
TIMESTAMP = '2011-07-05 12:32:36 -04:00'
|
10
10
|
|
11
11
|
def self.info
|
12
12
|
"#{name} v#{VERSION} (#{RELEASE})"
|
metadata
CHANGED
@@ -1,102 +1,110 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-lighttp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hallison Batista
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '1.4'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
26
|
+
version: '1.4'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: json
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.8'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.8'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5.8'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '5.8'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: minitest-rg
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '5.2'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '5.2'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rack-test
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.6'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.6'
|
83
|
+
description: |2
|
84
|
+
Git::Lighttp is a implementation of the several features:
|
85
|
+
- Smart HTTP which works like as git-http-backend.
|
86
|
+
- Show info pages about the projects.
|
31
87
|
email: hallisonbatista@gmail.com
|
32
88
|
executables: []
|
33
89
|
extensions: []
|
34
90
|
extra_rdoc_files: []
|
35
91
|
files:
|
36
|
-
-
|
37
|
-
-
|
38
|
-
- README.pt-BR.
|
39
|
-
-
|
40
|
-
-
|
41
|
-
- doc/releases/v0.
|
42
|
-
- doc/releases/v0.
|
43
|
-
- doc/releases/v0.3.0.rdoc
|
92
|
+
- LICENSE.txt
|
93
|
+
- README.md
|
94
|
+
- README.pt-BR.md
|
95
|
+
- doc/releases/v0.1.0.md
|
96
|
+
- doc/releases/v0.2.0.md
|
97
|
+
- doc/releases/v0.3.0.md
|
98
|
+
- doc/releases/v0.3.1.md
|
44
99
|
- git-lighttp.gemspec
|
45
100
|
- lib/git/lighttp.rb
|
46
101
|
- lib/git/lighttp/extensions.rb
|
47
102
|
- lib/git/lighttp/http_backend.rb
|
48
103
|
- lib/git/lighttp/treeish.rb
|
49
104
|
- lib/git/lighttp/version.rb
|
50
|
-
|
51
|
-
|
52
|
-
-
|
53
|
-
- test/fixtures/htgroup
|
54
|
-
- test/fixtures/htpasswd
|
55
|
-
- test/fixtures/mycode.git/HEAD
|
56
|
-
- test/fixtures/mycode.git/config
|
57
|
-
- test/fixtures/mycode.git/description
|
58
|
-
- test/fixtures/mycode.git/hooks/applypatch-msg.sample
|
59
|
-
- test/fixtures/mycode.git/hooks/commit-msg.sample
|
60
|
-
- test/fixtures/mycode.git/hooks/post-commit.sample
|
61
|
-
- test/fixtures/mycode.git/hooks/post-receive.sample
|
62
|
-
- test/fixtures/mycode.git/hooks/post-update.sample
|
63
|
-
- test/fixtures/mycode.git/hooks/pre-applypatch.sample
|
64
|
-
- test/fixtures/mycode.git/hooks/pre-commit.sample
|
65
|
-
- test/fixtures/mycode.git/hooks/pre-rebase.sample
|
66
|
-
- test/fixtures/mycode.git/hooks/prepare-commit-msg.sample
|
67
|
-
- test/fixtures/mycode.git/hooks/update.sample
|
68
|
-
- test/fixtures/mycode.git/info/exclude
|
69
|
-
- test/fixtures/mycode.git/info/refs
|
70
|
-
- test/fixtures/mycode.git/objects/02/83eb96425444e17b97182e1ba9f216cc67c132
|
71
|
-
- test/fixtures/mycode.git/objects/03/9927042df267a1bc606fc4485b7a79b6a9e3cd
|
72
|
-
- test/fixtures/mycode.git/objects/0d/eed0a56fa8f5f2a788d58b3ea235afd547b828
|
73
|
-
- test/fixtures/mycode.git/objects/4b/825dc642cb6eb9a060e54bf8d69288fbee4904
|
74
|
-
- test/fixtures/mycode.git/objects/5e/54a0767e0c380f3baab17938d68c7f464cf171
|
75
|
-
- test/fixtures/mycode.git/objects/63/9b96262e7e19ca2169575e797b234098b8a72e
|
76
|
-
- test/fixtures/mycode.git/objects/71/6e9568eed27d5ee4378b3ecf6dd095a547bde9
|
77
|
-
- test/fixtures/mycode.git/objects/b6/f3f0fabeaaaaf2db22b8ef98f59115baec7ef9
|
78
|
-
- test/fixtures/mycode.git/objects/be/118435b9d908fd4a689cd8b0cc98059911a31a
|
79
|
-
- test/fixtures/mycode.git/objects/db/aefcb5bde664671c73b99515c386dcbc7f22b6
|
80
|
-
- test/fixtures/mycode.git/objects/eb/669b878d2013ac70aa5dee75e6357ea81d16ea
|
81
|
-
- test/fixtures/mycode.git/objects/ed/10cfcf72862e140c97fe899cba2a55f4cb4c20
|
82
|
-
- test/fixtures/mycode.git/objects/ed/1c3a255ab3fce056dc31cd82df9f61a4d9fa22
|
83
|
-
- test/fixtures/mycode.git/objects/info/alternates
|
84
|
-
- test/fixtures/mycode.git/objects/info/http-alternates
|
85
|
-
- test/fixtures/mycode.git/objects/info/packs
|
86
|
-
- test/fixtures/mycode.git/objects/pack/pack-40a8636b62258fffd78ec1e8d254116e72d385a9.idx
|
87
|
-
- test/fixtures/mycode.git/objects/pack/pack-40a8636b62258fffd78ec1e8d254116e72d385a9.pack
|
88
|
-
- test/fixtures/mycode.git/packed-refs
|
89
|
-
- test/fixtures/mycode.git/refs/heads/master
|
90
|
-
- test/fixtures/mycode.git/refs/tags/v0.1.0
|
91
|
-
- test/helpers.rb
|
92
|
-
- test/htgroup_test.rb
|
93
|
-
- test/htpasswd_test.rb
|
94
|
-
- test/http_backend_authentication_test.rb
|
95
|
-
- test/http_backend_test.rb
|
96
|
-
- test/project_handler_test.rb
|
97
|
-
- test/treeish_test.rb
|
98
|
-
homepage: http://github.com/hallison/git-lighttp
|
99
|
-
licenses: []
|
105
|
+
homepage: https://gitlab.com/hallison/git-lighttp
|
106
|
+
licenses:
|
107
|
+
- MIT
|
100
108
|
metadata: {}
|
101
109
|
post_install_message:
|
102
110
|
rdoc_options: []
|
@@ -113,9 +121,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
121
|
- !ruby/object:Gem::Version
|
114
122
|
version: '0'
|
115
123
|
requirements: []
|
116
|
-
rubyforge_project:
|
117
|
-
rubygems_version: 2.
|
124
|
+
rubyforge_project:
|
125
|
+
rubygems_version: 2.5.1
|
118
126
|
signing_key:
|
119
127
|
specification_version: 4
|
120
|
-
summary: Git Web implementation of the Light (Smart) HTTP
|
128
|
+
summary: Git Web implementation of the Light (Smart) HTTP
|
121
129
|
test_files: []
|
data/Gemfile
DELETED
data/Makefile
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
.SHELL: /bin/sh
|
2
|
-
|
3
|
-
name = git-lighttp
|
4
|
-
version = 0.3.0
|
5
|
-
specfile = $(name).gemspec
|
6
|
-
package = $(name)-$(version).gem
|
7
|
-
|
8
|
-
ctags = '/.*alias(_method)?[[:space:]]+:([[:alnum:]_=!?]+),?[[:space:]]+:([[:alnum:]_=!]+)/\\2/f/'
|
9
|
-
|
10
|
-
all:: check
|
11
|
-
|
12
|
-
ctags:
|
13
|
-
ctags --recurse=yes --tag-relative=yes --totals=yes --extra=+f --fields=+iaS --regex-ruby=$(ctags)
|
14
|
-
|
15
|
-
clean:
|
16
|
-
rm -rf $(name)-*.gem
|
17
|
-
rm -rf *.lock
|
18
|
-
rm -rf doc/api/**
|
19
|
-
|
20
|
-
check:
|
21
|
-
ruby test/all.rb
|
22
|
-
|
23
|
-
docs:
|
24
|
-
rdoc -o doc/api -H -f fivefish -m README.rdoc
|
25
|
-
|
26
|
-
build:
|
27
|
-
gem $@ $(specfile)
|
28
|
-
|
29
|
-
dist: build
|
30
|
-
|
31
|
-
push: build
|
32
|
-
gem $@ $(package)
|
33
|
-
|
34
|
-
release: push
|
35
|
-
|
36
|
-
install: build
|
37
|
-
gem $@ --local $(package)
|
38
|
-
|
39
|
-
uninstall: build
|
40
|
-
gem $@ $(package) -v$(version)
|
41
|
-
|