Issue #7378 has been reported by aef (Alexander E. Fischer). ---------------------------------------- Feature #7378: Adding Pathname#write https://bugs.ruby-lang.org/issues/7378 Author: aef (Alexander E. Fischer) Status: Open Priority: Normal Assignee: akr (Akira Tanaka) Category: lib Target version: There should be a variant of File.write for Pathname. I will provide a patch if this is acceptable. (Please see my other Pathname related tickets too: #7360 #7361 #7362 #7363 )
on 2012-11-17 01:56
on 2012-11-17 13:47
Issue #7378 has been updated by Eregon (Benoit Daloze). Hello, Your feature requests sound very logical to me, and I actually made a path manipulation library called "Path" [1] Notably, #write, #glob and #touch are already implemented as you propose and #start_with? functionality is implemented by #inside?. I would love to see @akr's opinion on this and to have a path manipulation class in core with these additions and others which are present in Path and other libraries. [1] https://github.com/eregon/path ---------------------------------------- Feature #7378: Adding Pathname#write https://bugs.ruby-lang.org/issues/7378#change-33023 Author: aef (Alexander E. Fischer) Status: Open Priority: Normal Assignee: akr (Akira Tanaka) Category: lib Target version: There should be a variant of File.write for Pathname. I will provide a patch if this is acceptable. (Please see my other Pathname related tickets too: #7360 #7361 #7362 #7363 )
on 2012-11-19 11:51
On 17/11/12 12:46, Eregon (Benoit Daloze) wrote: > > [1] https://github.com/eregon/path I've written almost exactly this code myself in the past, even down to the Path constant :-) I'd love to see this promoted to stdlib.
on 2012-11-20 01:43
Issue #7378 has been updated by duerst (Martin Dürst). I definitely also have written Pathname#write, and used it. Please provide a patch, that should help getting it included. ---------------------------------------- Feature #7378: Adding Pathname#write https://bugs.ruby-lang.org/issues/7378#change-33141 Author: aef (Alexander E. Fischer) Status: Open Priority: Normal Assignee: akr (Akira Tanaka) Category: lib Target version: There should be a variant of File.write for Pathname. I will provide a patch if this is acceptable. (Please see my other Pathname related tickets too: #7360 #7361 #7362 #7363 )
on 2012-11-24 03:19
Issue #7378 has been updated by mame (Yusuke Endoh). Status changed from Open to Assigned Target version set to next minor ---------------------------------------- Feature #7378: Adding Pathname#write https://bugs.ruby-lang.org/issues/7378#change-33738 Author: aef (Alexander E. Fischer) Status: Assigned Priority: Normal Assignee: akr (Akira Tanaka) Category: lib Target version: next minor There should be a variant of File.write for Pathname. I will provide a patch if this is acceptable. (Please see my other Pathname related tickets too: #7360 #7361 #7362 #7363 )
on 2013-01-13 22:05
Issue #7378 has been updated by Eregon (Benoit Daloze). File 0001-ext-pathname-lib-pathname.rb-add-Pathname-write-and-.patch added Here is a patch. ---------------------------------------- Feature #7378: Adding Pathname#write https://bugs.ruby-lang.org/issues/7378#change-35386 Author: aef (Alexander E. Fischer) Status: Assigned Priority: Normal Assignee: akr (Akira Tanaka) Category: lib Target version: next minor There should be a variant of File.write for Pathname. I will provide a patch if this is acceptable. (Please see my other Pathname related tickets too: #7360 #7361 #7362 #7363 )
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.