public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Bump Rack version to 0.9
josh (author)
Tue Jan 06 13:20:57 -0800 2009
commit  b7ea4add86231ef628d479516c8a09ca55e610bc
tree    1f1096f4097aae35fade972f0096e8961bc24bf3
parent  ce706b4b9be03a3f2e7d11438e6550d64c5f4461
...
81
82
83
84
 
85
86
87
...
81
82
83
 
84
85
86
87
0
@@ -81,7 +81,7 @@ spec = Gem::Specification.new do |s|
0
   s.requirements << 'none'
0
 
0
   s.add_dependency('activesupport', '= 2.3.0' + PKG_BUILD)
0
-  s.add_dependency('rack', '= 0.4.0')
0
+  s.add_dependency('rack', '>= 0.9.0')
0
 
0
   s.require_path = 'lib'
0
   s.autorequire = 'action_controller'
...
31
32
33
34
 
35
36
37
...
31
32
33
 
34
35
36
37
0
@@ -31,7 +31,7 @@ rescue LoadError
0
   end
0
 end
0
 
0
-gem 'rack', '~> 0.4.0'
0
+gem 'rack', '>= 0.9.0'
0
 require 'rack'
0
 
0
 module ActionController
...
4
5
6
7
 
8
9
10
...
465
466
467
468
 
469
470
 
471
472
473
...
4
5
6
 
7
8
9
10
...
465
466
467
 
468
469
 
470
471
472
473
0
@@ -4,7 +4,7 @@ uses_mocha 'integration' do
0
 
0
 class SessionTest < Test::Unit::TestCase
0
   StubApp = lambda { |env|
0
-    [200, {"Content-Type" => "text/html"}, "Hello, World!"]
0
+    [200, {"Content-Type" => "text/html", "Content-Length" => "13"}, "Hello, World!"]
0
   }
0
 
0
   def setup
0
@@ -465,9 +465,9 @@ class MetalTest < ActionController::IntegrationTest
0
   class Poller
0
     def self.call(env)
0
       if env["PATH_INFO"] =~ /^\/success/
0
-        [200, {"Content-Type" => "text/plain"}, "Hello World!"]
0
+        [200, {"Content-Type" => "text/plain", "Content-Length" => "12"}, "Hello World!"]
0
       else
0
-        [404, {"Content-Type" => "text/plain"}, '']
0
+        [404, {"Content-Type" => "text/plain", "Content-Length" => "0"}, '']
0
       end
0
     end
0
   end
...
236
237
238
239
 
 
 
 
 
 
240
241
242
...
236
237
238
 
239
240
241
242
243
244
245
246
247
0
@@ -236,7 +236,12 @@ class RackResponseTest < BaseRackTest
0
 
0
     status, headers, body = @response.to_a
0
     assert_equal 200, status
0
-    assert_equal({"Content-Type" => "text/html; charset=utf-8", "Cache-Control" => "no-cache", "Set-Cookie" => []}, headers)
0
+    assert_equal({
0
+      "Content-Type" => "text/html; charset=utf-8",
0
+      "Content-Length" => "",
0
+      "Cache-Control" => "no-cache",
0
+      "Set-Cookie" => []
0
+    }, headers)
0
 
0
     parts = []
0
     body.each { |part| parts << part }

Comments