summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2011-05-16 18:26:19 +0000
committerHans de Graaff <graaff@gentoo.org>2011-05-16 18:26:19 +0000
commit7c8dc369c298b1bf8f123953f9dede7d117e3450 (patch)
tree03bc1bb2a34acb11380f82e34332f4f5fa6233cc /dev-ruby/fakefs
parentDon't remove racc files since all other ruby targets ship these files themsel... (diff)
downloadgentoo-2-7c8dc369c298b1bf8f123953f9dede7d117e3450.tar.gz
gentoo-2-7c8dc369c298b1bf8f123953f9dede7d117e3450.tar.bz2
gentoo-2-7c8dc369c298b1bf8f123953f9dede7d117e3450.zip
Update ruby19 patch to fix tests for ruby19. Thanks to Nathan Phillip Brink in bug 340783.
(Portage version: 2.1.9.42/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/fakefs')
-rw-r--r--dev-ruby/fakefs/ChangeLog7
-rw-r--r--dev-ruby/fakefs/files/fakefs-0.2.1-ruby19.patch28
2 files changed, 30 insertions, 5 deletions
diff --git a/dev-ruby/fakefs/ChangeLog b/dev-ruby/fakefs/ChangeLog
index 923ea8b55a7c..7a153c8c1248 100644
--- a/dev-ruby/fakefs/ChangeLog
+++ b/dev-ruby/fakefs/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-ruby/fakefs
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/fakefs/ChangeLog,v 1.17 2011/04/16 17:25:11 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/fakefs/ChangeLog,v 1.18 2011/05/16 18:26:19 graaff Exp $
+
+ 16 May 2011; Hans de Graaff <graaff@gentoo.org>
+ files/fakefs-0.2.1-ruby19.patch:
+ Update ruby19 patch to fix tests for ruby19. Thanks to Nathan Phillip Brink
+ in bug 340783.
16 Apr 2011; Raúl Porcel <armin76@gentoo.org> fakefs-0.2.1.ebuild:
ia64 stable wrt #356269
diff --git a/dev-ruby/fakefs/files/fakefs-0.2.1-ruby19.patch b/dev-ruby/fakefs/files/fakefs-0.2.1-ruby19.patch
index a4c742d3cc20..dcc7a2112f45 100644
--- a/dev-ruby/fakefs/files/fakefs-0.2.1-ruby19.patch
+++ b/dev-ruby/fakefs/files/fakefs-0.2.1-ruby19.patch
@@ -1,10 +1,30 @@
-Index: fakefs-0.2.1/lib/fakefs/file.rb
-===================================================================
---- fakefs-0.2.1.orig/lib/fakefs/file.rb
-+++ fakefs-0.2.1/lib/fakefs/file.rb
+--- a/lib/fakefs/file.rb
++++ b/lib/fakefs/file.rb
@@ -1,3 +1,5 @@
+require 'stringio' unless defined? StringIO
+
module FakeFS
class File
PATH_SEPARATOR = '/'
+
+The following Rakefile change extracted from https://github.com/defunkt/fakefs/commit/82db05e85d1a486fbdb6:
+
+--- a/Rakefile
++++ b/Rakefile
+@@ -1,2 +1,4 @@
++$LOAD_PATH.unshift File.join(File.dirname(__FILE__))
++
+ desc "Run tests"
+ task :test do
+
+--- a/test/fakefs_test.rb
++++ b/test/fakefs_test.rb
+@@ -288,7 +288,7 @@
+ assert_nil File.size?("/path/to/other.txt")
+ end
+
+- def test_can_check_size?_of_empty_file
++ def test_can_check_size_of_empty_file
+ path = '/path/to/file.txt'
+ File.open(path, 'w') do |f|
+ f << ''