unicorn 0.98.0 → 0.99.0
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/GIT-VERSION-GEN +1 -1
- data/GNUmakefile +2 -0
- data/lib/unicorn.rb +2 -14
- data/lib/unicorn/const.rb +1 -1
- metadata +2 -2
data/GIT-VERSION-GEN
CHANGED
data/GNUmakefile
CHANGED
@@ -281,6 +281,8 @@ release: verify package $(release_notes) $(release_changes)
|
|
281
281
|
# in case of gem downloads from RubyForge releases page
|
282
282
|
-rubyforge add_file \
|
283
283
|
$(rfproject) $(rfpackage) $(VERSION) $(pkggem)
|
284
|
+
$(RAKE) raa_update VERSION=$(VERSION)
|
285
|
+
$(RAKE) fm_update VERSION=$(VERSION)
|
284
286
|
else
|
285
287
|
gem install-gem: GIT-VERSION-FILE
|
286
288
|
$(MAKE) $@ VERSION=$(GIT_VERSION)
|
data/lib/unicorn.rb
CHANGED
@@ -2,17 +2,14 @@
|
|
2
2
|
|
3
3
|
require 'fcntl'
|
4
4
|
require 'etc'
|
5
|
+
require 'rack'
|
5
6
|
require 'unicorn/socket_helper'
|
6
7
|
require 'unicorn/const'
|
7
8
|
require 'unicorn/http_request'
|
8
9
|
require 'unicorn/configurator'
|
9
10
|
require 'unicorn/util'
|
10
11
|
require 'unicorn/tee_input'
|
11
|
-
|
12
|
-
# autoload this so the app can prefer a different version, we
|
13
|
-
# don't rely on Rack itself for much and should be compatible for
|
14
|
-
# 1.0.x and 1.1.x+
|
15
|
-
autoload :Rack, 'rack'
|
12
|
+
require 'unicorn/http_response'
|
16
13
|
|
17
14
|
# Unicorn module containing all of the classes (include C extensions) for running
|
18
15
|
# a Unicorn web server. It contains a minimalist HTTP server with just enough
|
@@ -26,11 +23,6 @@ module Unicorn
|
|
26
23
|
class ClientShutdown < EOFError
|
27
24
|
end
|
28
25
|
|
29
|
-
# we load HttpResponse last since it depends on Rack, and we
|
30
|
-
# want the application to be able to specify Rack (if they're
|
31
|
-
# *not* using config.ru)
|
32
|
-
autoload :HttpResponse, 'unicorn/http_response'
|
33
|
-
|
34
26
|
class << self
|
35
27
|
def run(app, options = {})
|
36
28
|
HttpServer.new(app, options).start.join
|
@@ -822,10 +814,6 @@ module Unicorn
|
|
822
814
|
Gem.refresh
|
823
815
|
end
|
824
816
|
self.app = app.call
|
825
|
-
|
826
|
-
# exploit COW in case of preload_app. Also avoids race
|
827
|
-
# conditions in Rainbows! since load/require are not thread-safe
|
828
|
-
Unicorn.const_get :HttpResponse
|
829
817
|
end
|
830
818
|
end
|
831
819
|
|
data/lib/unicorn/const.rb
CHANGED
@@ -7,7 +7,7 @@ module Unicorn
|
|
7
7
|
# gave about a 3% to 10% performance improvement over using the strings directly.
|
8
8
|
# Symbols did not really improve things much compared to constants.
|
9
9
|
module Const
|
10
|
-
UNICORN_VERSION="0.
|
10
|
+
UNICORN_VERSION="0.99.0"
|
11
11
|
|
12
12
|
DEFAULT_HOST = "0.0.0.0" # default TCP listen host address
|
13
13
|
DEFAULT_PORT = 8080 # default TCP listen port
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unicorn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.99.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Unicorn hackers
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-05-
|
12
|
+
date: 2010-05-06 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|