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

Missing #uuid_v4 and #uuid_v7 methods #37

Open
nevans opened this issue Dec 20, 2024 · 1 comment
Open

Missing #uuid_v4 and #uuid_v7 methods #37

nevans opened this issue Dec 20, 2024 · 1 comment

Comments

@nevans
Copy link
Contributor

nevans commented Dec 20, 2024

#36 added back #alphanumeric keyword arg for characters. But #uuid_v7 (and the #uuid_v4 alias) are still missing:

With ruby 3.2.6 and securerandom 0.3.2:

$ rbenv shell 3.2.6
$ gem install securerandom -v0.3.2
Fetching securerandom-0.3.2.gem
Successfully installed securerandom-0.3.2
Parsing documentation for securerandom-0.3.2
Installing ri documentation for securerandom-0.3.2
Done installing documentation for securerandom after 0 seconds
1 gem installed
$ ruby -rsecurerandom -e "puts SecureRandom.uuid_v7; puts SecureRandom.uuid_v4"
0193e518-54a6-7e66-ab61-99adfce68788
fb00fada-2414-4f60-8c54-97d30f22f536

With ruby 3.2.6 and securerandom 0.4.1:

$ rbenv shell 3.2.6
$ gem install securerandom -v0.4.1
Fetching securerandom-0.4.1.gem
Successfully installed securerandom-0.4.1
Parsing documentation for securerandom-0.4.1
Installing ri documentation for securerandom-0.4.1
Done installing documentation for securerandom after 0 seconds
1 gem installed
$ ruby -rsecurerandom -e "puts SecureRandom.uuid_v7"
-e:1:in `<main>': undefined method `uuid_v7' for SecureRandom:Module (NoMethodError)

puts SecureRandom.uuid_v7
                 ^^^^^^^^
Did you mean?  uuid
$ ruby -rsecurerandom -e "puts SecureRandom.uuid_v4"
-e:1:in `<main>': undefined method `uuid_v4' for SecureRandom:Module (NoMethodError)

puts SecureRandom.uuid_v4
                 ^^^^^^^^
Did you mean?  uuid
@nevans nevans changed the title Missing #uuid_v4 and #uuid_v7 methods Missing #uuid_v4 and #uuid_v7 methods Dec 20, 2024
@hsbt
Copy link
Member

hsbt commented Dec 23, 2024

Thanks for this report. I'm super busy for Ruby 3.4 release.

I'll handle this at next year.

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

No branches or pull requests

2 participants