Forum: Ruby-core [ruby-trunk - Feature #7378][Open] Adding Pathname#write

Posted by aef (Alexander E. Fischer) (Guest)
on 2012-11-17 01:56
(Received via mailing list)
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 )
Posted by Eregon (Benoit Daloze) (Guest)
on 2012-11-17 13:47
(Received via mailing list)
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 )
Posted by Alex Young (regularfry)
on 2012-11-19 11:51
(Received via mailing list)
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.
Posted by "duerst (Martin Dürst)" <duerst@it.aoyama.ac.jp> (Guest)
on 2012-11-20 01:43
(Received via mailing list)
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 )
Posted by mame (Yusuke Endoh) (Guest)
on 2012-11-24 03:19
(Received via mailing list)
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 )
Posted by Eregon (Benoit Daloze) (Guest)
on 2013-01-13 22:05
(Received via mailing list)
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
No account? Register here.