mrueg       14/04/22 03:17:48

  Added:                rack-1.4.5-fix-test-ruby20.patch
  Log:
  Add patch to fix test for ruby 2.0, add ruby20 target to slot 1.4.
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key )

Revision  Changes    Path
1.1                  dev-ruby/rack/files/rack-1.4.5-fix-test-ruby20.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rack/files/rack-1.4.5-fix-test-ruby20.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rack/files/rack-1.4.5-fix-test-ruby20.patch?rev=1.1&content-type=text/plain

Index: rack-1.4.5-fix-test-ruby20.patch
===================================================================
>From 0a74380d2e5157d94c7e9141242af33e5c0bf951 Mon Sep 17 00:00:00 2001
From: Santiago Pastorino <[email protected]>
Date: Sat, 29 Dec 2012 17:36:08 -0200
Subject: [PATCH] Fix Ruby 2.0 build

---
 test/spec_chunked.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/spec_chunked.rb b/test/spec_chunked.rb
index c81409f..12f2158 100644
--- a/test/spec_chunked.rb
+++ b/test/spec_chunked.rb
@@ -41,7 +41,7 @@ def chunked(app)
     response.headers.should.not.include 'Content-Length'
     response.headers['Transfer-Encoding'].should.equal 'chunked'
     response.body.encoding.to_s.should.equal "ASCII-8BIT"
-    response.body.should.equal 
"c\r\n\xFE\xFFH\x00e\x00l\x00l\x00o\x00\r\n2\r\n 
\x00\r\na\r\nW\x00o\x00r\x00l\x00d\x00\r\n0\r\n\r\n"
+    response.body.should.equal 
"c\r\n\xFE\xFFH\x00e\x00l\x00l\x00o\x00\r\n2\r\n 
\x00\r\na\r\nW\x00o\x00r\x00l\x00d\x00\r\n0\r\n\r\n".force_encoding("BINARY")
   end if RUBY_VERSION >= "1.9"
 
   should 'not modify response when Content-Length header present' do
-- 
1.9.1





Reply via email to