Gem is misnamed causing additional work during implementation
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 28/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- ruby
- Área
- api, documentation
Línea de trabajo
Comienza con stream-chat.gemspec, lib/stream-chat.rb y las secciones Installation y Getting Started de la README. Compara las dos rutas de nomenclatura propuestas y confirma la decisión sobre la compatibilidad y la publicación con los maintainers antes de cambiar nada. Se considera terminado cuando la ruta seleccionada es coherente en el gemspec, el punto de entrada require, la README y el futuro plan de release.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The main file in this gem is lib/stream-chat.rb. The gemspec is named stream-chat.gemspec.
The "-ruby" part of the name is redundant in a Ruby gem name. With all that in mind, the gem should have been published under the name stream-chat. That name is not in use in Rubygems, so that is currently possible.
By not having the name of the gem not matching the name of the main file, the additional step of calling `require "stream-chat" is necessary. That's not standard or expected in the Ruby world, it would only be expected if the gem has files that should only be included under limited and specific conditions, like test harnesses.
So here are two possible paths to improve this:
Change the name of the gem:
- Change the name in the gemspec file to
stream-chat - Update the README to use the new name in the Installation section, and remove the
requirecall in the Getting Started section - Publish new versions to rubygems under the new name (and potentially also the old name)
Downside of simply renaming the gem going forward is that those using the gem under the old name would no longer receive new versions of the gem, unless it's published under both names going forward.
Remove the need for an additional require call:
- Add a file named
lib/stream-chat-ruby.rbwhich callsrequire "stream-chat" - Update the README to remove the
requirecall in the Getting Started section
- Lenguaje dominante
- Ruby
- Estrellas
- 32
- Forks
- 23
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
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 GetStream/stream-chat-ruby
-
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
GetStream/stream-chat-ruby#215 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
GetStream/stream-chat-ruby#137 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
GetStream/stream-chat-ruby#133 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
GetStream/stream-chat-ruby#132 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
GetStream/stream-chat-ruby#127 ·
Todos los issues de GetStream/stream-chat-ruby
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
riscv/riscv-unified-db#2626 ·
-
Component: GLib
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
ds-drift
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
we-promise/sure#3693 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
simp/pupmod-simp-simp#395 ·