public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-ruby/rack-mount/files: rack-mount-fix-ruby20.patch
@ 2014-07-25  3:05 Manuel Rueger (mrueg)
  0 siblings, 0 replies; only message in thread
From: Manuel Rueger (mrueg) @ 2014-07-25  3:05 UTC (permalink / raw
  To: gentoo-commits

mrueg       14/07/25 03:05:31

  Added:                rack-mount-fix-ruby20.patch
  Log:
  Add ruby20, ruby21 targets.
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key )

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

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

Index: rack-mount-fix-ruby20.patch
===================================================================
From 42e7ae47c2dac2d98272ac99239e40bd59398891 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <v.ondruch@tiscali.cz>
Date: Tue, 9 Apr 2013 11:12:02 +0300
Subject: [PATCH] Fix Ruby 2.0.0 compatibility

#respond_to? now exclude protected methods.
---
 lib/rack/mount/multimap.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/rack/mount/multimap.rb b/lib/rack/mount/multimap.rb
index 6b773e2..b88630b 100644
--- a/lib/rack/mount/multimap.rb
+++ b/lib/rack/mount/multimap.rb
@@ -125,7 +125,7 @@ def update_container(key)
       end
 
       def iterate_over_container(container)
-        if container.respond_to?(:each_container_with_default)
+        if container.respond_to?(:each_container_with_default, true)
           container.each_container_with_default do |value|
             yield value
           end
-- 
1.9.3






^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-07-25  3:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-25  3:05 [gentoo-commits] gentoo-x86 commit in dev-ruby/rack-mount/files: rack-mount-fix-ruby20.patch Manuel Rueger (mrueg)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox