Explicitly add csv to Gemfile

We were getting a warning on staging and production environments:

```
app/models/local_census_records/import.rb:1: warning: csv was loaded
from the standard library, but will no longer be part of the default
gems starting from Ruby 3.4.0.

You can add csv to your Gemfile or gemspec to silence this warning
```

The reason we weren't getting this warning during development is that we
do have `csv` in our `Gemfile.lock`, but only in development
environments, since it's an indirect dependency of pronto. On production
environments, we don't install pronto or its dependencies, though.

We can reproduce the warning locally by temporarily removing the pronto
gems from the Gemfile, running `bundle install` and starting a rails
console.
This commit is contained in:
Javi Martín
2025-10-22 21:10:49 +02:00
parent 05204f0e5b
commit 361e4e08a6
4 changed files with 2 additions and 3 deletions

View File

@@ -820,6 +820,7 @@ DEPENDENCIES
caxlsx_rails (~> 0.6.4)
ckeditor (~> 4.3.0)
cocoon (~> 1.2.15)
csv (~> 3.3.5)
daemons (~> 1.4.1)
dalli (~> 3.2.8)
debug (~> 1.9.2)