From: Francis Hwang Date: 2005-02-16T23:56:06+09:00 Subject: Re: [ANN] FileSystem 0.1.0: Beta for me, Alpha for you On Feb 16, 2005, at 9:49 AM, gabriele renzi wrote: > Francis Hwang ha scritto: >> Greetings! >> Next down my non-stop pipeline of absolutely necessary libraries that >> only I seem to need: FileSystem, a library that will mock out File, >> FileUtils, Dir, and other file-dependent built-in classes. It aims to >> simulate an entire file-system in memory for the purposes of testing. >> http://rubyforge.org/projects/filesystem/ > > first: this seem incredibly cool. Thanks! It's already been pretty helpful for me, hopefully it'll be useful to others too. > second: would'nt something like "FS::Mock" or "test/filesystem" be a > better name? when I first saw this on rubyforge I thought it was some > kind of VFS :) I think it's related to how you're supposed to access the lib in your live code. The name "FileSystem" to me seems less distracting in production code than something like "FS::Mock" ... It's only being mocked out in your tests. I'm not 100% happy with the current form of access either: Typing "FileSystem.get_file" when you really just want "File" is sort of cumbersome. But it just seemed like the least broken thing I could go forward with while I figured out something else. When we talked about this at Ruby-NYC a few weeks ago, Patrick was saying I could write a file to change the definitions of File, FileUtils, Dir, etc. Maybe that'll be the way to go. Anyway, I'm very very open to suggestions regarding the name and/or how to access it. Francis Hwang http://fhwang.net/