From 8ce34a86a27b9fc05fe5d35d387e34f8ab217531 Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 18 May 2009 12:41:08 +0000 Subject: [PATCH] * lib/pathname.rb (Pathname#sub): suppress a warning. [ruby-dev:38488] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ lib/pathname.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index de77382765..7642603ea2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon May 18 21:40:11 2009 Tanaka Akira + + * lib/pathname.rb (Pathname#sub): suppress a warning. [ruby-dev:38488] + Sun May 17 23:23:14 2009 Nobuyoshi Nakada * lib/mkmf.rb (SRC_EXT): should be flat. diff --git a/lib/pathname.rb b/lib/pathname.rb index 7b7ed374ea..8af8957c7b 100644 --- a/lib/pathname.rb +++ b/lib/pathname.rb @@ -270,7 +270,7 @@ class Pathname ensure Thread.current[:pathname_sub_matchdata] = old end - yield *args + yield(*args) } else path = @path.sub(pattern, *rest)