[#76442] [Ruby trunk Feature#11741] Migrate Ruby to Git from Subversion — naruse@...
Issue #11741 has been updated by Yui NARUSE.
3 messages
2016/07/19
[#76515] [Ruby trunk Bug#12610] webrick: protect from httpoxy — nagachika00@...
Issue #12610 has been updated by Tomoyuki Chikanaga.
3 messages
2016/07/22
[ruby-core:76455] [Ruby trunk Feature#7361] Adding Pathname#touch
From:
shyouhei@...
Date:
2016-07-20 00:32:16 UTC
List:
ruby-core #76455
Issue #7361 has been updated by Shyouhei Urabe.
We don't always blindly import broken designs; for instance Ruby do not have creat(2) equivalent method. "Everybody knows it" is (definitely a good property but) not enough.
When it comes to touch, there already is FileUtils.touch so your urgent needs are already satisfied I believe. Here on Pathname let us consider a clearer design.
----------------------------------------
Feature #7361: Adding Pathname#touch
https://bugs.ruby-lang.org/issues/7361#change-59698
* Author: Alexander E. Fischer
* Status: Rejected
* Priority: Normal
* Assignee: Akira Tanaka
----------------------------------------
Pathname has an #mkdir method to create a directory at the path, but does not have a #touch method to create an empty file at that path.
There were numerous cases where I had to fallback to using
new_file = Pathname.new('location/for/new/file')
FileUtils.touch(new_file)
instead of simply being able to use:
new_file.touch
I would like to add this method. If you like it, let me know. I will provide a patch then.
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>