GoogleCloudPlatform / GoogleCloudPlatform/ruby-docs-samples
bookshelf: missing Gemfile.lock, missing updates
- Lenguaje dominante
- Ruby
- Estrellas
- 235
- Forks
- 210
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Multiple errors recurring on getting-started/bookshelf nightly tests, which reports argument and nomethod errors on dependencies
```
An error occurred while loading ./spec/features/book_management_spec.rb.
Failure/Error: require File.expand_path("../../config/environment", __FILE__)
ArgumentError:
wrong number of arguments (given 3, expected 2)
# ./config/environment.rb:18:in `'
# ./spec/spec_helper.rb:17:in `'
# ./spec/features/book_management_spec.rb:14:in `'
An error occurred while loading ./spec/models/book_spec.rb.
Failure/Error: require File.expand_path("../../config/environment", __FILE__)
NoMethodError:
undefined method `operations' for #
MiddlewareStackProxy.new(@operations + other.operations, @delete_operations + other.delete_operations)
^^^^^^^^^^^
# ./config/environment.rb:18:in `'
# ./spec/spec_helper.rb:17:in `'
# ./spec/models/book_spec.rb:14:in `'
No examples found.
```
It looks like dependabot isn't updating this sample. There's no committed Gemfile.lock, that is being updated in other samples.
It's stuck with a very out dated version of Rails which isn't supported on the current Ruby Oldest (https://www.fastruby.io/blog/ruby/rails/versions/compatibility-table.html)
This sample would need to be updated to latest Rails versions and manually updated if any updates required for mulitple major version updates.
Guía de contribución
Línea de trabajo
Empieza con getting-started/bookshelf/config/environment.rb y la configuración de dependencias; después, ejecuta las specs que fallan en spec/features/book_management_spec.rb y spec/models/book_spec.rb. Actualiza las dependencias de Rails del ejemplo y haz commit de su Gemfile.lock; luego verifica que las pruebas nocturnas ya no informen de los errores de carga.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- rails, ruby
- Área
- backend, testing
- Tipo de issue
- Refactorización
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100