ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:49468] [ruby-trunk - Feature #7378][Open] Adding Pathname#write
@ 2012-11-17  0:56 aef (Alexander E. Fischer)
  2012-11-17 12:46 ` [ruby-core:49491] [ruby-trunk - Feature #7378] " Eregon (Benoit Daloze)
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: aef (Alexander E. Fischer) @ 2012-11-17  0:56 UTC (permalink / raw
  To: ruby-core


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 )


-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:49491] [ruby-trunk - Feature #7378] Adding Pathname#write
  2012-11-17  0:56 [ruby-core:49468] [ruby-trunk - Feature #7378][Open] Adding Pathname#write aef (Alexander E. Fischer)
@ 2012-11-17 12:46 ` Eregon (Benoit Daloze)
  2012-11-19 10:51   ` [ruby-core:49576] " Alex Young
  2012-11-20  0:42 ` [ruby-core:49627] " duerst (Martin Dürst)
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 6+ messages in thread
From: Eregon (Benoit Daloze) @ 2012-11-17 12:46 UTC (permalink / raw
  To: ruby-core


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 )


-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:49576] Re: [ruby-trunk - Feature #7378] Adding Pathname#write
  2012-11-17 12:46 ` [ruby-core:49491] [ruby-trunk - Feature #7378] " Eregon (Benoit Daloze)
@ 2012-11-19 10:51   ` Alex Young
  0 siblings, 0 replies; 6+ messages in thread
From: Alex Young @ 2012-11-19 10:51 UTC (permalink / raw
  To: ruby-core

On 17/11/12 12:46, Eregon (Benoit Daloze) wrote:
>
> 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

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.

-- 
Alex

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:49627] [ruby-trunk - Feature #7378] Adding Pathname#write
  2012-11-17  0:56 [ruby-core:49468] [ruby-trunk - Feature #7378][Open] Adding Pathname#write aef (Alexander E. Fischer)
  2012-11-17 12:46 ` [ruby-core:49491] [ruby-trunk - Feature #7378] " Eregon (Benoit Daloze)
@ 2012-11-20  0:42 ` duerst (Martin Dürst)
  2012-11-24  2:18 ` [ruby-core:49972] [ruby-trunk - Feature #7378][Assigned] " mame (Yusuke Endoh)
  2013-01-13 21:05 ` [ruby-core:51408] [ruby-trunk - Feature #7378] " Eregon (Benoit Daloze)
  3 siblings, 0 replies; 6+ messages in thread
From: duerst (Martin Dürst) @ 2012-11-20  0:42 UTC (permalink / raw
  To: ruby-core


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 )


-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:49972] [ruby-trunk - Feature #7378][Assigned] Adding Pathname#write
  2012-11-17  0:56 [ruby-core:49468] [ruby-trunk - Feature #7378][Open] Adding Pathname#write aef (Alexander E. Fischer)
  2012-11-17 12:46 ` [ruby-core:49491] [ruby-trunk - Feature #7378] " Eregon (Benoit Daloze)
  2012-11-20  0:42 ` [ruby-core:49627] " duerst (Martin Dürst)
@ 2012-11-24  2:18 ` mame (Yusuke Endoh)
  2013-01-13 21:05 ` [ruby-core:51408] [ruby-trunk - Feature #7378] " Eregon (Benoit Daloze)
  3 siblings, 0 replies; 6+ messages in thread
From: mame (Yusuke Endoh) @ 2012-11-24  2:18 UTC (permalink / raw
  To: ruby-core


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 )


-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:51408] [ruby-trunk - Feature #7378] Adding Pathname#write
  2012-11-17  0:56 [ruby-core:49468] [ruby-trunk - Feature #7378][Open] Adding Pathname#write aef (Alexander E. Fischer)
                   ` (2 preceding siblings ...)
  2012-11-24  2:18 ` [ruby-core:49972] [ruby-trunk - Feature #7378][Assigned] " mame (Yusuke Endoh)
@ 2013-01-13 21:05 ` Eregon (Benoit Daloze)
  3 siblings, 0 replies; 6+ messages in thread
From: Eregon (Benoit Daloze) @ 2013-01-13 21:05 UTC (permalink / raw
  To: ruby-core


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 )


-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-01-13 21:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-17  0:56 [ruby-core:49468] [ruby-trunk - Feature #7378][Open] Adding Pathname#write aef (Alexander E. Fischer)
2012-11-17 12:46 ` [ruby-core:49491] [ruby-trunk - Feature #7378] " Eregon (Benoit Daloze)
2012-11-19 10:51   ` [ruby-core:49576] " Alex Young
2012-11-20  0:42 ` [ruby-core:49627] " duerst (Martin Dürst)
2012-11-24  2:18 ` [ruby-core:49972] [ruby-trunk - Feature #7378][Assigned] " mame (Yusuke Endoh)
2013-01-13 21:05 ` [ruby-core:51408] [ruby-trunk - Feature #7378] " Eregon (Benoit Daloze)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).