gitlab-grack 1.0.0 → 1.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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2043f542b17f7cfb055ff210da481b0d2396e285
4
+ data.tar.gz: dbe633ec5179035e0d9f99c90ab4df8af0d6c6c1
5
+ SHA512:
6
+ metadata.gz: d64c06b4125048c4bb68136d9dddf4c972ec9a1080f4492d2dafc3d1e1f965cbba40071d2c2f18a434ae824121d006ff5e73ffc936955dbde6fd8a9504e4bf94
7
+ data.tar.gz: 86032ba1a3c5ed1dba412d029e3b20076f79ceb62f6370012a6afbe87c02d0c2c7871ed4e8713559072457fb0fe2540e96e93ba5bf2c6cb6a4a9b623e2aa5ee3
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
4
+
5
+ group :development do
6
+ gem 'rake'
7
+ gem 'rack-test'
8
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,25 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ gitlab-grack (1.0.1)
5
+ rack (~> 1.4.1)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ metaclass (0.0.1)
11
+ mocha (0.14.0)
12
+ metaclass (~> 0.0.1)
13
+ rack (1.4.5)
14
+ rack-test (0.6.2)
15
+ rack (>= 1.0)
16
+ rake (10.0.4)
17
+
18
+ PLATFORMS
19
+ ruby
20
+
21
+ DEPENDENCIES
22
+ gitlab-grack!
23
+ mocha (~> 0.11)
24
+ rack-test
25
+ rake
data/README.md CHANGED
@@ -1,6 +1,9 @@
1
1
  Grack - Ruby/Rack Git Smart-HTTP Server Handler
2
2
  ===============================================
3
3
 
4
+ [![Build Status](https://travis-ci.org/gitlabhq/grack.png)](https://travis-ci.org/gitlabhq/grack)
5
+ [![Code Climate](https://codeclimate.com/github/gitlabhq/grack.png)](https://codeclimate.com/github/gitlabhq/grack)
6
+
4
7
  This project aims to replace the builtin git-http-backend CGI handler
5
8
  distributed with C Git with a Rack application. This reason for doing this
6
9
  is to allow far more webservers to be able to handle Git smart http requests.
@@ -26,6 +29,7 @@ These web servers include Rack handlers in their distributions:
26
29
  * Fuzed
27
30
  * Phusion Passenger (which is mod_rack for Apache and for nginx)
28
31
  * Unicorn
32
+ * Puma
29
33
 
30
34
  With [Warbler](http://caldersphere.rubyforge.org/warbler/classes/Warbler.html),
31
35
  and JRuby, we can also generate a WAR file that can be deployed in any Java
data/grack.gemspec CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
6
6
  gem.email = ["schacon@gmail.com"]
7
7
  gem.description = %q{Ruby/Rack Git Smart-HTTP Server Handler}
8
8
  gem.summary = %q{Ruby/Rack Git Smart-HTTP Server Handler}
9
- gem.homepage = "https://github.com/schacon/grack"
9
+ gem.homepage = "https://github.com/gitlabhq/grack"
10
10
 
11
11
  gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
12
12
  gem.files = `git ls-files`.split("\n")
data/lib/grack/server.rb CHANGED
@@ -66,6 +66,7 @@ module Grack
66
66
  command = git_command("#{@rpc} --stateless-rpc #{@dir}")
67
67
  IO.popen(command, File::RDWR) do |pipe|
68
68
  pipe.write(input)
69
+ pipe.close_write
69
70
  while !pipe.eof?
70
71
  block = pipe.read(8192) # 8M at a time
71
72
  @res.write block # steam it to the client
data/lib/grack/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Grack
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
data/tests/main_test.rb CHANGED
@@ -218,7 +218,6 @@ class GitHttpTest < Test::Unit::TestCase
218
218
  end
219
219
 
220
220
  class MockProcess
221
-
222
221
  def initialize
223
222
  @counter = 0
224
223
  end
@@ -234,4 +233,7 @@ class MockProcess
234
233
  @counter > 1 ? true : false
235
234
  end
236
235
 
236
+ def close_write
237
+ true
238
+ end
237
239
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-grack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
5
- prerelease:
4
+ version: 1.0.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Scott Chacon
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-03 00:00:00.000000000 Z
11
+ date: 2013-06-10 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rack
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: mocha
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
@@ -52,6 +47,8 @@ extra_rdoc_files: []
52
47
  files:
53
48
  - .gitignore
54
49
  - .gitmodules
50
+ - Gemfile
51
+ - Gemfile.lock
55
52
  - README.md
56
53
  - Rakefile
57
54
  - examples/dispatch.fcgi
@@ -63,29 +60,28 @@ files:
63
60
  - lib/grack/server.rb
64
61
  - lib/grack/version.rb
65
62
  - tests/main_test.rb
66
- homepage: https://github.com/schacon/grack
63
+ homepage: https://github.com/gitlabhq/grack
67
64
  licenses: []
65
+ metadata: {}
68
66
  post_install_message:
69
67
  rdoc_options: []
70
68
  require_paths:
71
69
  - lib
72
70
  required_ruby_version: !ruby/object:Gem::Requirement
73
- none: false
74
71
  requirements:
75
- - - ! '>='
72
+ - - '>='
76
73
  - !ruby/object:Gem::Version
77
74
  version: '0'
78
75
  required_rubygems_version: !ruby/object:Gem::Requirement
79
- none: false
80
76
  requirements:
81
- - - ! '>='
77
+ - - '>='
82
78
  - !ruby/object:Gem::Version
83
79
  version: '0'
84
80
  requirements: []
85
81
  rubyforge_project:
86
- rubygems_version: 1.8.24
82
+ rubygems_version: 2.0.3
87
83
  signing_key:
88
- specification_version: 3
84
+ specification_version: 4
89
85
  summary: Ruby/Rack Git Smart-HTTP Server Handler
90
86
  test_files:
91
87
  - tests/main_test.rb