kgiszczak / shale

Shale is a Ruby object mapper and serializer for JSON, YAML, TOML, CSV and XML. It allows you to parse JSON, YAML, TOML, CSV and XML data and convert it into Ruby data structures, as well as serialize data structures into JSON, YAML, TOML, CSV or XML.
https://shalerb.org/
MIT License
618 stars 19 forks source link

csv was loaded from standard library warning #31

Closed bruce-szalwinski-he closed 4 months ago

bruce-szalwinski-he commented 4 months ago

Got this warning after added shale.

/usr/local/bundle/gems/shale-1.0.0/lib/shale/adapter/csv.rb:3: warning: csv was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add csv to your Gemfile or gemspec. Also contact author of shale-1.0.0 to add csv into its gemspec.
kgiszczak commented 4 months ago

It should be fixed with the latest release. One caveat is if you want to handle CSV documents you will have to install csv gem and explicitly specify CSV adapter, eg.

require 'shale'
require 'shale/adapter/csv'
Shale.csv_adapter = Shale::Adapter::CSV