Undocumented changes: uuid_v4 alias
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 28/100
- Tipo de issue
- Documentación
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- ruby
- Área
- documentation
Línea de trabajo
Comienza con lib/random/formatter.rb y los commits enlazados; después, compara la página de lanzamiento de securerandom v0.3.0 con la documentación correspondiente de stdlib. El issue propone documentar el alias uuid_v4 y, de forma más general, registrar cuándo se introdujeron los métodos de Ruby, pero no define el alcance ni la ubicación de la documentación. Done debe incluir un registro acordado y publicado del cambio del alias.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I was using Random.uuid_v4 in Ruby 3.3. Then executed the same code on Ruby 3.2 as my code is supposed to support 3.0-3.3 and got that error:
Quite obviously there was a change between 3.2 and 3.3 and uuid_v4 was not implemented.
I searched a lot about this change, I read Ruby official release notes, third party changelogs, github release notes, etc. … and nothing.
So I looked were uuid_v4 was in the code to discover it's an alias for uuid that was there long before.
uuid_v4 alias for uuid was introduced when uuid_v7 was introduced. It makes sense.
In securerandom: https://github.com/ruby/securerandom/commit/34ed1a2ec35dc8f00ff69665b373cef7484c937f
In stdlib: https://github.com/ruby/ruby/commit/dfb2b4cbc9aa5edc315e210bf6bfd92fcf6e45de
The introduction of uuidv7 in securerandom v0.3.0 is documented here: https://github.com/ruby/securerandom/releases/tag/v0.3.0.
The issue is uuid_v4 addition is not documented anywhere.
More generally, in Ruby, when you use a method, you have no clue when (in which version of ruby) this method was introduced. So it's quite inconvenient if you try to keep support for several versions of Ruby.
Unfortunately Ruby official documentation use plain old RDoc. While in Yard, there is a @since tag to document when a method or class was introduced. This helps a lot in that sens.
Also in the past, APIdock had a bar graph tracking Ruby changes so when browsing Ruby API via APIdock you knew in which version a change was introduced. Unfortunately, APIdock 1) is third party 2) is unmaintained since Ruby 2.6.3.
Has this topic already been discussed? Should I open an issue on Ruby issue tracker and ask the question on the mailing list?
In the meantime as far as securerandom is concerned:
- It seems there is no release note / change log tracked in git (the only release note is the one on github release: https://github.com/ruby/securerandom/releases)
- Could we edit v0.3.0 release (https://github.com/ruby/securerandom/releases/tag/v0.3.0) to document the fact that
uuid_v4alias was introduced? - I don't know how to document that change in Random::Formatter in stdlib
- Lenguaje dominante
- Ruby
- Estrellas
- 76
- Forks
- 17
- Merge medio
- 42 min
- PR fusionados (30 d)
- 5
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ruby/securerandom
-
SecureRandom.alphanumeric can silently return an empty or wrong-length secret instead of raisingAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
ruby/securerandom#92 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
ruby/securerandom#91 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
ruby/securerandom#37 · 3 comentarios ·
-
Make ractor safeAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
ruby/securerandom#16 ·
Todos los issues de ruby/securerandom
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
open-feature/ruby-sdk-contrib#340 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
zold-io/wts.zold.io#651 ·
Los mantenedores suelen responder en 1 día
-
good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 87/100
erkamyaman/rust-anything#788 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 74/100
TheOdinProject/curriculum#31579 ·
Los mantenedores suelen responder en 1 día