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

Dir::Tmpname.make_tmpname inconsistent with Ruby 2.2+ #3646

Closed
envygeeks opened this Issue Feb 4, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@envygeeks

envygeeks commented Feb 4, 2016

In Ruby 2.1 you had to do:

Dir::Tmpname.make_tmpname(["prefix", ""], nil)
Dir::Tmpname.make_tmpname(["prefix", ".ext"], nil)
Dir::Tmpname.make_tmpname(["", ".ext"], nil)

In 2.2+ the second value of the array is optional so you can do:

Dir::Tmpname.make_tmpname(["prefix"], nil)

if you do not wish to have an extension.

@headius

This comment has been minimized.

Show comment
Hide comment
@headius

headius Feb 13, 2016

Member

Hmm...well Tmpname comes from tmpdir.rb which is just stdlib. I'll try to figure why we differ here.

Member

headius commented Feb 13, 2016

Hmm...well Tmpname comes from tmpdir.rb which is just stdlib. I'll try to figure why we differ here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment