rack_after_reply 0.0.1 → 0.0.2
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/CHANGELOG +4 -0
- data/lib/rack_after_reply.rb +13 -0
- data/lib/rack_after_reply/version.rb +1 -1
- metadata +3 -3
data/CHANGELOG
CHANGED
data/lib/rack_after_reply.rb
CHANGED
@@ -37,3 +37,16 @@ module RackAfterReply
|
|
37
37
|
end
|
38
38
|
|
39
39
|
RackAfterReply.apply
|
40
|
+
|
41
|
+
# The web server library may not be loaded until we've instantiated the Rack
|
42
|
+
# handler (e.g., Rails 3.0's console command when no server argument is given),
|
43
|
+
# so call apply once we know that has happened too.
|
44
|
+
Rack::Server.class_eval do
|
45
|
+
def server_with_rack_after_reply
|
46
|
+
result = server_without_rack_after_reply
|
47
|
+
RackAfterReply.apply
|
48
|
+
result
|
49
|
+
end
|
50
|
+
|
51
|
+
RackAfterReply.freedom_patch(self, :server)
|
52
|
+
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 2
|
9
|
+
version: 0.0.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- George Ogata
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-05-
|
17
|
+
date: 2011-05-20 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|