summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--lib/pathname.rb2
2 files changed, 5 insertions, 1 deletions
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 <akr@fsij.org>
+
+ * lib/pathname.rb (Pathname#sub): suppress a warning. [ruby-dev:38488]
+
Sun May 17 23:23:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* 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)