diff -p -up ruby-1.8.7-p249/lib/pathname.rb.warning~ ruby-1.8.7-p249/lib/pathname.rb --- ruby-1.8.7-p249/lib/pathname.rb.warning~ 2010-02-04 23:57:47.014732163 +0100 +++ ruby-1.8.7-p249/lib/pathname.rb 2010-02-05 00:00:59.125481925 +0100 @@ -260,7 +260,7 @@ class Pathname ensure Thread.current[:pathname_sub_matchdata] = old end - yield *args + yield(*args) } else path = @path.sub(pattern, *rest)