git-lighttp 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f2163ddb50b5ced5e4bcb6fdc020f29751d53a63
4
- data.tar.gz: a8023e7eb5264c37566ae375605adaba5a7f93db
2
+ SHA256:
3
+ metadata.gz: e19add3e8b87804f5cbd1e8fe075e9f2e92bcb39d516e4d984b1bf223d62cd76
4
+ data.tar.gz: b395f352eb981e584ffd8aade07eece2c2cc2e1291ae7188f9eeb87d9af3f07a
5
5
  SHA512:
6
- metadata.gz: 1f8e79c04657f04213d7063657a078e3a1b8be0e7c4ac0449620da5964cb4f2eb1b593c663ee7a104c105334dfc06b33ecf39aba2abedce05fde2a98089eb49b
7
- data.tar.gz: af3321617dfd01fb433d9b82335cd7d0753409fb5a03ced2fcc04491fe7517f51233ab742be504600e027d174c6a14c392565369d59769fbef966edcd59f6feb
6
+ metadata.gz: 65f29a23dae00ba8dacb34963a4a99260ecfa74198fa13036b4b4216355ab91509dfdb817c70e3e1363386ecb3b482bee3152bcd2f39251f28a753128fe9903d
7
+ data.tar.gz: 32089c66e76f6681c5fdb4b92c473b63c41edf4e2aa942ca7da5849ec4aaf25341a80d8e77cf3a91e4b5ee1130e1577e50fb08bee01db35f55cba4bf07552c06
@@ -3,7 +3,6 @@ $LOAD_PATH.unshift 'lib' unless $LOAD_PATH.include? 'lib'
3
3
  require 'git/lighttp/version'
4
4
 
5
5
  Gem::Specification.new do |g|
6
- g.platform = Gem::Platform::RUBY
7
6
  g.name = 'git-lighttp'
8
7
  g.summary = 'Git Web implementation of the Light (Smart) HTTP'
9
8
  g.authors = ['Hallison Batista']
@@ -13,22 +12,26 @@ Gem::Specification.new do |g|
13
12
  g.date = Git::Lighttp::RELEASE
14
13
  g.licenses = ['MIT']
15
14
 
16
- g.test_files = g.files.select do |path|
17
- path =~ %r{^test/.*}
18
- end
15
+ g.platform = Gem::Platform::RUBY
19
16
 
20
17
  g.files = %x(git ls-files).split.reject do |out|
21
18
  ignore = out =~ /([MR]ake|Gem)file/ || out =~ /^\./
22
19
  ignore = ignore || out =~ %r{^doc/api} || out =~ %r{^test/.*}
23
20
  ignore
24
21
  end
22
+
23
+ g.test_files = g.files.select do |path|
24
+ path =~ %r{^test/.*}
25
+ end
26
+
25
27
  g.description = <<-end
26
28
  Git::Lighttp is a implementation of the several features:
27
29
  - Smart HTTP which works like as git-http-backend.
28
30
  - Show info pages about the projects.
29
31
  end
30
- g.add_dependency 'sinatra', '~> 1.4'
31
- g.add_dependency 'json', '~> 1.8'
32
+
33
+ g.add_dependency 'sinatra'
34
+ g.add_dependency 'json'
32
35
 
33
36
  g.add_development_dependency 'minitest', '~> 5.8'
34
37
  g.add_development_dependency 'minitest-rg', '~> 5.2'
@@ -145,7 +145,7 @@ module Git::Lighttp
145
145
  end
146
146
 
147
147
  # implements the get_text_file and get_info_packs functions
148
- get %r{/(.*?)/objects/info/(packs|alternates|http-alternates)$} do |repository, file|
148
+ get %r{/(.*?)/objects/info/(packs|alternates|http-alternates)} do |repository, file|
149
149
  if file == 'packs'
150
150
  send_info_packs
151
151
  else
@@ -154,12 +154,12 @@ module Git::Lighttp
154
154
  end
155
155
 
156
156
  # implements the get_loose_object function
157
- get %r{/(.*?)/objects/([0-9a-f]{2})/([0-9a-f]{38})$} do |repository, prefix, suffix|
157
+ get %r{/(.*?)/objects/([0-9a-f]{2})/([0-9a-f]{38})} do |repository, prefix, suffix|
158
158
  send_loose_object(prefix, suffix)
159
159
  end
160
160
 
161
161
  # implements the get_pack_file and get_idx_file functions
162
- get %r{/(.*?)/objects/pack/(pack-[0-9a-f]{40}.(pack|idx))$} do |repository, pack, ext|
162
+ get %r{/(.*?)/objects/pack/(pack-[0-9a-f]{40}.(pack|idx))} do |repository, pack, ext|
163
163
  send_pack_idx_file(pack, ext == 'idx')
164
164
  end
165
165
 
@@ -10,7 +10,7 @@ module Git::Lighttp
10
10
  authenticate! if settings.authenticate
11
11
  end
12
12
 
13
- get %r{/(.*?)/(.*?/{0,1}.*)$} do |name, path|
13
+ get %r{/(.*?)/(.*?/{0,1}.*)} do |name, path|
14
14
  content_type :json
15
15
  path = path.split('/')
16
16
  ref = path.shift
@@ -1,11 +1,12 @@
1
+ require 'date'
2
+
1
3
  module Git
2
4
 
3
5
  # The objective of this class is to implement various ideas proposed by the
4
6
  # Semantic Versioning Specification (see reference[http://semver.org/]).
5
7
  module Lighttp #:nodoc:
6
-
7
- VERSION = '0.3.1'
8
- RELEASE = '2016-02-04'
8
+ VERSION = '0.3.2'
9
+ RELEASE = Date.today.to_s
9
10
  TIMESTAMP = '2011-07-05 12:32:36 -04:00'
10
11
 
11
12
  def self.info
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-lighttp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
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-02-04 00:00:00.000000000 Z
11
+ date: 2020-02-01 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: '1.4'
19
+ version: '0'
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: '1.4'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.8'
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '1.8'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  version: '0'
123
123
  requirements: []
124
124
  rubyforge_project:
125
- rubygems_version: 2.5.1
125
+ rubygems_version: 2.7.6
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: Git Web implementation of the Light (Smart) HTTP