simonc / memfs

MemFs provides a fake file system that can be used for tests. Strongly inspired by FakeFS.
MIT License
320 stars 27 forks source link

uninitialized constant MemFs::Dir::Tmpname (NameError) #44

Open TastyPi opened 1 year ago

TastyPi commented 1 year ago

The following code:

MemFs.activate { Tempfile.create }

produces the following error:

ruby/3.2.0/tempfile.rb:400:in `create': uninitialized constant MemFs::Dir::Tmpname (NameError)

  Dir::Tmpname.create(basename, tmpdir, **options) do |tmpname, n, opts|                             
     ^^^^^^^^^  

This is with Ruby 3.2.0 and memfs 1.0.0

TastyPi commented 1 year ago

It looks like there hasn't been a release since 2017?

TastyPi commented 1 year ago

I tried with gem "memfs", github: "simonc/memfs" but the error still occurs.