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 CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.0.2 2011-05-20
2
+
3
+ * Handle RackAfterReply being loaded before web server library.
4
+
1
5
  == 0.0.1 2011-05-10
2
6
 
3
7
  * Hi.
@@ -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
@@ -1,5 +1,5 @@
1
1
  module RackAfterReply
2
- VERSION = [0, 0, 1]
2
+ VERSION = [0, 0, 2]
3
3
 
4
4
  class << VERSION
5
5
  include Comparable
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
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-10 00:00:00 -04:00
17
+ date: 2011-05-20 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies: []
20
20