From: Ian Macdonald Date: 2004-01-13T13:51:36+09:00 Subject: Re: [PATCH] File.readable_world? and File.writable_world? --z6Eq5LdranGa6ru8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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 | | --z6Eq5LdranGa6ru8 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ruby-1.8.1-pathname.diff" 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 FileTest.symlink?. def symlink?() FileTest.symlink?(@path) end + # See FileTest.world_readable?. + def world_readable?() FileTest.world_readable?(@path) end + + # See FileTest.world_writable?. + def world_writable?() FileTest.world_writable?(@path) end + # See FileTest.writable?. def writable?() FileTest.writable?(@path) end --z6Eq5LdranGa6ru8 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=ChangeLog Mon Jan 12 20:48:00 PST 2004 Ian Macdonald * lib/pathname.rb: New methods (Pathname#world_readable?, Pathname#world_writable?). --z6Eq5LdranGa6ru8--