Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TastyPi opened this issue Apr 20, 2023 · 2 comments
Open

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

TastyPi opened this issue Apr 20, 2023 · 2 comments

Comments

@TastyPi
Copy link

TastyPi commented Apr 20, 2023

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
Copy link
Author

TastyPi commented Apr 20, 2023

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

@TastyPi
Copy link
Author

TastyPi commented Apr 20, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant