unicorn 2.0.0.2.ga6d9 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  #!/bin/sh
2
2
 
3
3
  GVF=GIT-VERSION-FILE
4
- DEF_VER=v2.0.0.GIT
4
+ DEF_VER=v2.0.1.GIT
5
5
 
6
6
  LF='
7
7
  '
@@ -7,8 +7,8 @@
7
7
  # improve things much compared to constants.
8
8
  module Unicorn::Const
9
9
 
10
- # The current version of Unicorn, currently 2.0.0
11
- UNICORN_VERSION = "2.0.0"
10
+ # The current version of Unicorn, currently 2.0.1
11
+ UNICORN_VERSION = "2.0.1"
12
12
 
13
13
  # default TCP listen host address (0.0.0.0, all interfaces)
14
14
  DEFAULT_HOST = "0.0.0.0"
@@ -0,0 +1,31 @@
1
+ #!/bin/sh
2
+ . ./test-lib.sh
3
+ t_plan 5 "parser error test"
4
+
5
+ t_begin "setup and startup" && {
6
+ unicorn_setup
7
+ unicorn -D env.ru -c $unicorn_config
8
+ unicorn_wait_start
9
+ }
10
+
11
+ t_begin "send a bad request" && {
12
+ (
13
+ printf 'GET / HTTP/1/1\r\nHost: example.com\r\n\r\n'
14
+ cat $fifo > $tmp &
15
+ wait
16
+ echo ok > $ok
17
+ ) | socat - TCP:$listen > $fifo
18
+ test xok = x$(cat $ok)
19
+ }
20
+
21
+ dbgcat tmp
22
+
23
+ t_begin "response should be a 400" && {
24
+ grep -F 'HTTP/1.1 400 Bad Request' $tmp
25
+ }
26
+
27
+ t_begin "server stderr should be clean" && check_stderr
28
+
29
+ t_begin "term signal sent" && kill $unicorn_pid
30
+
31
+ t_done
metadata CHANGED
@@ -1,15 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicorn
3
3
  version: !ruby/object:Gem::Version
4
- hash: 279709113
5
- prerelease: true
4
+ hash: 13
5
+ prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 0
10
- - 2
11
- - ga6d9
12
- version: 2.0.0.2.ga6d9
9
+ - 1
10
+ version: 2.0.1
13
11
  platform: ruby
14
12
  authors:
15
13
  - Unicorn hackers
@@ -232,6 +230,7 @@ files:
232
230
  - t/t0000-http-basic.sh
233
231
  - t/t0001-reload-bad-config.sh
234
232
  - t/t0002-config-conflict.sh
233
+ - t/t0002-parser-error.sh
235
234
  - t/t0003-working_directory.sh
236
235
  - t/t0004-working_directory_broken.sh
237
236
  - t/t0005-working_directory_app.rb.sh
@@ -369,14 +368,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
369
368
  required_rubygems_version: !ruby/object:Gem::Requirement
370
369
  none: false
371
370
  requirements:
372
- - - ">"
371
+ - - ">="
373
372
  - !ruby/object:Gem::Version
374
- hash: 25
373
+ hash: 3
375
374
  segments:
376
- - 1
377
- - 3
378
- - 1
379
- version: 1.3.1
375
+ - 0
376
+ version: "0"
380
377
  requirements: []
381
378
 
382
379
  rubyforge_project: mongrel