[#67346] Future of test suites for Ruby — Charles Oliver Nutter <headius@...>

I'll try to be brief so we can discuss all this. tl;dr: RubySpec is

19 messages 2015/01/05

[ruby-core:67757] [ruby-trunk - Feature #7361] Adding Pathname#touch

From: ben@...
Date: 2015-01-22 14:39:15 UTC
List: ruby-core #67757
Issue #7361 has been updated by Ben Rexin.


Any way i can help? 

----------------------------------------
Feature #7361: Adding Pathname#touch
https://bugs.ruby-lang.org/issues/7361#change-51185

* Author: Alexander E. Fischer
* Status: Assigned
* 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/

In This Thread