On Tue 13 Jan 2004 at 12:26:03 +0900, Ian Macdonald wrote:

> On Tue 13 Jan 2004 at 04:18:21 +0900, Ian Macdonald wrote:
> 
> > On Mon 12 Jan 2004 at 22:36:16 +0900, Yukihiro Matsumoto wrote:
> > 
> > > In message "Re: [PATCH] File.readable_world? and File.writable_world?"
> > >     on 04/01/12, Ian Macdonald <ian / caliban.org> writes:
> > > 
> > > |I'll wait for you to accept the first patch, if that's OK. Then, I'll
> > > |make a new patch with the additions to File::Stat.
> > > 
> > > And to lib/pathname.rb too?
> > 
> > The patch I sent you contained the lib/pathname.rb methods.
> > 
> 
> Hmm, I guess I somehow failed to include the patch to lib/pathname.rb.
> I'll send you that soon, too.

OK. Here's the patch for lib/pathname.rb with ChangeLog.

Ian
-- 
Ian Macdonald               | Mistrust first impulses; they are always
System Administrator        | right. 
ian / caliban.org             | 
http://www.caliban.org      | 
                            | 
diff -uNr ruby-1.8.1.orig/ruby/lib/pathname.rb ruby-1.8.1/ruby/lib/pathname.rb
--- ruby-1.8.1.orig/ruby/lib/pathname.rb	2004-01-11 04:33:52.000000000 -0800
+++ ruby-1.8.1/ruby/lib/pathname.rb	2004-01-12 20:31:58.000000000 -0800
@@ -111,6 +111,8 @@
 # - #socket?
 # - #sticky?
 # - #symlink?
+# - #world_readable?
+# - #world_writable?
 # - #writable?
 # - #writable_real?
 # - #zero?
@@ -738,6 +740,12 @@
   # See <tt>FileTest.symlink?</tt>.
   def symlink?() FileTest.symlink?(@path) end
 
+  # See <tt>FileTest.world_readable?</tt>.
+  def world_readable?() FileTest.world_readable?(@path) end
+
+  # See <tt>FileTest.world_writable?</tt>.
+  def world_writable?() FileTest.world_writable?(@path) end
+
   # See <tt>FileTest.writable?</tt>.
   def writable?() FileTest.writable?(@path) end
 
Mon Jan 12 20:48:00 PST 2004  Ian Macdonald  <ian / caliban.org>
	
	* lib/pathname.rb: New methods (Pathname#world_readable?,
	  Pathname#world_writable?).